Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / infocard / Client / System / IdentityModel / Selectors / InfoCardRSAOAEPKeyExchangeFormatter.cs / 1 / InfoCardRSAOAEPKeyExchangeFormatter.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.IdentityModel.Selectors { using System; using System.Security.Cryptography; internal class InfoCardRSAOAEPKeyExchangeFormatter : RSAOAEPKeyExchangeFormatter { private RSA m_rsaKey; // // public constructors // public InfoCardRSAOAEPKeyExchangeFormatter() : base() {} public InfoCardRSAOAEPKeyExchangeFormatter( AsymmetricAlgorithm key ) : base( key ) { m_rsaKey = (RSA) key; } // // public methods // public override void SetKey( AsymmetricAlgorithm key ) { base.SetKey( key ); m_rsaKey = (RSA) key; } public override byte[] CreateKeyExchange( byte[] rgbData ) { if ( null != m_rsaKey && m_rsaKey is InfoCardRSACryptoProvider) { return ((InfoCardRSACryptoProvider) m_rsaKey).Encrypt(rgbData, true); } else { return base.CreateKeyExchange( rgbData ); } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XPathNavigatorReader.cs
- BlockCollection.cs
- StrongTypingException.cs
- WindowsRegion.cs
- DocumentOrderQuery.cs
- SerializationFieldInfo.cs
- ConnectionPoolManager.cs
- MetricEntry.cs
- DataGridViewColumnTypeEditor.cs
- UrlPath.cs
- XmlNamedNodeMap.cs
- StylusCollection.cs
- HttpListenerException.cs
- XmlObjectSerializer.cs
- MediaPlayer.cs
- RoleBoolean.cs
- IPEndPointCollection.cs
- ProvidePropertyAttribute.cs
- SqlParameterCollection.cs
- ExpressionBuilderContext.cs
- XmlReaderSettings.cs
- CqlBlock.cs
- StringUtil.cs
- ConnectionManagementElement.cs
- _DigestClient.cs
- FlowLayout.cs
- SslStream.cs
- TemplateControlCodeDomTreeGenerator.cs
- CompModSwitches.cs
- MimeTypeMapper.cs
- JsonDataContract.cs
- SRGSCompiler.cs
- SerializableAttribute.cs
- DescendentsWalkerBase.cs
- DependentList.cs
- SecurityAlgorithmSuite.cs
- HtmlPageAdapter.cs
- WebPartPersonalization.cs
- RegexStringValidatorAttribute.cs
- ObjectIDGenerator.cs
- ObjectQueryProvider.cs
- CustomAttributeSerializer.cs
- SchemaMerger.cs
- MetabaseReader.cs
- ComponentChangedEvent.cs
- BamlLocalizableResource.cs
- RepeaterItem.cs
- FileInfo.cs
- RenderDataDrawingContext.cs
- EndEvent.cs
- SelectedGridItemChangedEvent.cs
- Scalars.cs
- CommonObjectSecurity.cs
- HMACSHA512.cs
- DebugHandleTracker.cs
- QueryCacheKey.cs
- WindowsTokenRoleProvider.cs
- DayRenderEvent.cs
- EditorPart.cs
- HWStack.cs
- ParameterCollection.cs
- XmlSecureResolver.cs
- LayoutEditorPart.cs
- TemplateControlCodeDomTreeGenerator.cs
- UnaryNode.cs
- EntityProviderFactory.cs
- OracleConnectionString.cs
- ImageField.cs
- Light.cs
- BackStopAuthenticationModule.cs
- DependencyObjectType.cs
- AllowedAudienceUriElement.cs
- FixedDSBuilder.cs
- BulletChrome.cs
- TransformConverter.cs
- CommentEmitter.cs
- RangeContentEnumerator.cs
- shaper.cs
- DrawingGroup.cs
- CodeCompileUnit.cs
- RoutedEventConverter.cs
- DropSource.cs
- CompilerLocalReference.cs
- SafeCoTaskMem.cs
- XmlNamespaceMapping.cs
- FrameworkContentElement.cs
- RemotingAttributes.cs
- NavigationExpr.cs
- WindowsAuthenticationModule.cs
- AssemblyBuilder.cs
- ErrorInfoXmlDocument.cs
- XmlSchemaSequence.cs
- NullNotAllowedCollection.cs
- PrintPreviewDialog.cs
- HostProtectionException.cs
- AudioFileOut.cs
- EventPrivateKey.cs
- RootDesignerSerializerAttribute.cs
- PeerNearMe.cs
- CodeCompiler.cs