Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / WCF / infocard / Client / System / IdentityModel / Selectors / InfoCardRSAOAEPKeyExchangeFormatter.cs / 1305376 / 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.
Link Menu
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- _LazyAsyncResult.cs
- EditingScopeUndoUnit.cs
- X509Utils.cs
- CollectionViewProxy.cs
- HandlerBase.cs
- XamlStackWriter.cs
- ObfuscationAttribute.cs
- X509ChainElement.cs
- ExtensionDataReader.cs
- EllipseGeometry.cs
- TrailingSpaceComparer.cs
- ConfigurationStrings.cs
- NaturalLanguageHyphenator.cs
- XmlSchemaProviderAttribute.cs
- MenuItemBinding.cs
- KeyedHashAlgorithm.cs
- UDPClient.cs
- XamlReaderConstants.cs
- MetadataCache.cs
- CngProperty.cs
- BitmapCodecInfoInternal.cs
- IssuedTokensHeader.cs
- MultipartIdentifier.cs
- BitmapMetadataEnumerator.cs
- AssemblyAttributesGoHere.cs
- DocumentXPathNavigator.cs
- HijriCalendar.cs
- FormClosedEvent.cs
- ArrangedElementCollection.cs
- TemplateBindingExpressionConverter.cs
- PointUtil.cs
- CallContext.cs
- XappLauncher.cs
- SingleSelectRootGridEntry.cs
- TrackingLocation.cs
- EncoderFallback.cs
- PathSegment.cs
- printdlgexmarshaler.cs
- DataBindingHandlerAttribute.cs
- LocalizeDesigner.cs
- DBCommand.cs
- NamespaceInfo.cs
- ElementMarkupObject.cs
- DataBindingsDialog.cs
- NetSectionGroup.cs
- RNGCryptoServiceProvider.cs
- XmlText.cs
- DataError.cs
- ICollection.cs
- CLRBindingWorker.cs
- ScrollProperties.cs
- DeviceContexts.cs
- AssemblyBuilderData.cs
- CompilerError.cs
- ResourceAssociationTypeEnd.cs
- __FastResourceComparer.cs
- OrderedHashRepartitionStream.cs
- ExpressionParser.cs
- XslNumber.cs
- ComplexTypeEmitter.cs
- DefaultTextStore.cs
- InvalidPropValue.cs
- DispatchChannelSink.cs
- WhereQueryOperator.cs
- XamlSerializationHelper.cs
- FileSystemInfo.cs
- RightNameExpirationInfoPair.cs
- Encoder.cs
- CodeDOMProvider.cs
- TreeViewEvent.cs
- DynamicUpdateCommand.cs
- _RequestCacheProtocol.cs
- SequentialUshortCollection.cs
- MediaCommands.cs
- TextRange.cs
- XmlAttributeAttribute.cs
- CompilerLocalReference.cs
- VectorAnimationUsingKeyFrames.cs
- ScriptHandlerFactory.cs
- Style.cs
- LinkTarget.cs
- SafeNativeMethods.cs
- CodeMemberEvent.cs
- XPathNavigator.cs
- CommandValueSerializer.cs
- IPPacketInformation.cs
- UriTemplateQueryValue.cs
- PolyLineSegment.cs
- CodeExpressionCollection.cs
- PtsPage.cs
- _SslStream.cs
- ColorTranslator.cs
- CollectionConverter.cs
- KeyBinding.cs
- HTTPRemotingHandler.cs
- HtmlLink.cs
- DataListItem.cs
- UriScheme.cs
- TraceUtils.cs
- GifBitmapEncoder.cs