Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / infocard / Client / System / IdentityModel / Selectors / InfoCardRSAPKCS1KeyExchangeDeformatter.cs / 1 / InfoCardRSAPKCS1KeyExchangeDeformatter.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.IdentityModel.Selectors { using System; using System.Security.Cryptography; internal class InfoCardRSAPKCS1KeyExchangeDeformatter : RSAPKCS1KeyExchangeDeformatter { RSA m_rsaKey; // Constructors public InfoCardRSAPKCS1KeyExchangeDeformatter() {} public InfoCardRSAPKCS1KeyExchangeDeformatter( AsymmetricAlgorithm key ) : base( key ) { m_rsaKey = (RSA) key; } // // public methods // public override byte[] DecryptKeyExchange(byte[] rgbIn) { if ( null != m_rsaKey && m_rsaKey is InfoCardRSACryptoProvider) { return ((InfoCardRSACryptoProvider) m_rsaKey).Decrypt(rgbIn, false); } else { return base.DecryptKeyExchange( rgbIn ); } } public override void SetKey(AsymmetricAlgorithm key) { base.SetKey( key ); m_rsaKey = (RSA) key; } } } // 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
- ContentType.cs
- FileSystemInfo.cs
- SafeFindHandle.cs
- ComponentResourceKeyConverter.cs
- Registry.cs
- ResourceContainer.cs
- CloudCollection.cs
- CodeThrowExceptionStatement.cs
- BinHexDecoder.cs
- DiagnosticStrings.cs
- VisualTreeFlattener.cs
- SiteMapNodeCollection.cs
- QueryServiceConfigHandle.cs
- Converter.cs
- SoapProcessingBehavior.cs
- ThreadSafeList.cs
- ExcCanonicalXml.cs
- OutArgument.cs
- ResourceManager.cs
- TypedDataSetSchemaImporterExtension.cs
- SessionStateContainer.cs
- WithStatement.cs
- InkCanvasSelection.cs
- DoubleUtil.cs
- SiteMapNodeItemEventArgs.cs
- IndexOutOfRangeException.cs
- PngBitmapDecoder.cs
- SqlAliasesReferenced.cs
- querybuilder.cs
- CompilerTypeWithParams.cs
- LineBreakRecord.cs
- ProviderConnectionPoint.cs
- DataSourceControl.cs
- ISCIIEncoding.cs
- PolicyManager.cs
- ExpressionConverter.cs
- BlurBitmapEffect.cs
- DesignerAutoFormatCollection.cs
- CompModHelpers.cs
- DynamicMethod.cs
- DefaultMemberAttribute.cs
- GeometryGroup.cs
- XmlSchemaSequence.cs
- SiteMapSection.cs
- ServiceObjectContainer.cs
- ChannelManager.cs
- IsolatedStorageFile.cs
- Thickness.cs
- IgnoreSectionHandler.cs
- ProfileGroupSettingsCollection.cs
- Screen.cs
- BuildProviderCollection.cs
- PrePrepareMethodAttribute.cs
- FontStyles.cs
- CodeRegionDirective.cs
- DbConnectionPool.cs
- FileFormatException.cs
- ReadOnlyDictionary.cs
- CacheSection.cs
- ByteAnimationUsingKeyFrames.cs
- BigInt.cs
- StateItem.cs
- MulticastNotSupportedException.cs
- CompilationSection.cs
- RegexCompiler.cs
- CfgRule.cs
- XmlDataImplementation.cs
- ImageMap.cs
- __ComObject.cs
- XmlDocumentSurrogate.cs
- TypeRestriction.cs
- EpmSourceTree.cs
- PagerSettings.cs
- XmlTextEncoder.cs
- DynamicRenderer.cs
- SmiContextFactory.cs
- CheckBoxField.cs
- ZipIORawDataFileBlock.cs
- diagnosticsswitches.cs
- DaylightTime.cs
- ResourcePool.cs
- SortQuery.cs
- SimpleHandlerBuildProvider.cs
- ScriptResourceHandler.cs
- ServiceAppDomainAssociationProvider.cs
- DataSetMappper.cs
- GlobalizationAssembly.cs
- DbTypeMap.cs
- BrowserCapabilitiesFactory.cs
- SafeRegistryHandle.cs
- TdsParserSafeHandles.cs
- ZipIOExtraField.cs
- PageContentCollection.cs
- MemberCollection.cs
- AudioLevelUpdatedEventArgs.cs
- TextTreeFixupNode.cs
- HtmlWindow.cs
- XmlElement.cs
- WSTransactionSection.cs
- Animatable.cs