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
- StsCommunicationException.cs
- brushes.cs
- RetrieveVirtualItemEventArgs.cs
- XmlProcessingInstruction.cs
- HandoffBehavior.cs
- TreeNodeClickEventArgs.cs
- TypeUnloadedException.cs
- regiisutil.cs
- NestPullup.cs
- BitmapEffectInputData.cs
- TextRunCacheImp.cs
- DataComponentMethodGenerator.cs
- ResourceFallbackManager.cs
- SqlMethodCallConverter.cs
- AssemblyAttributesGoHere.cs
- DelegateBodyWriter.cs
- SrgsElementFactoryCompiler.cs
- MetadataItemCollectionFactory.cs
- QilList.cs
- EventPrivateKey.cs
- RuleSettingsCollection.cs
- XmlCustomFormatter.cs
- EmptyEnumerable.cs
- Vector.cs
- QuotedPrintableStream.cs
- XmlValueConverter.cs
- AudioDeviceOut.cs
- BindingValueChangedEventArgs.cs
- ZoneMembershipCondition.cs
- DefinitionBase.cs
- SqlDataSourceConfigureSortForm.cs
- DocumentStatusResources.cs
- XmlArrayItemAttributes.cs
- HttpListenerPrefixCollection.cs
- SpellCheck.cs
- SafeThemeHandle.cs
- TemplateParser.cs
- HttpCachePolicyElement.cs
- TraceUtils.cs
- CheckBoxList.cs
- SqlDataSourceCommandEventArgs.cs
- ListControlConvertEventArgs.cs
- FixedLineResult.cs
- CFStream.cs
- QueueException.cs
- EventHandlerService.cs
- SiteMapNodeItemEventArgs.cs
- CompletionBookmark.cs
- BaseProcessor.cs
- OuterGlowBitmapEffect.cs
- TextTreeRootNode.cs
- XNodeValidator.cs
- MD5CryptoServiceProvider.cs
- SetIterators.cs
- AutomationElementCollection.cs
- RijndaelManaged.cs
- MasterPage.cs
- XmlDataImplementation.cs
- ThicknessAnimationBase.cs
- SecurityUniqueId.cs
- ContextMenu.cs
- FileLevelControlBuilderAttribute.cs
- _AutoWebProxyScriptEngine.cs
- CookieProtection.cs
- BinaryObjectReader.cs
- EncoderReplacementFallback.cs
- ListViewItem.cs
- MethodCallTranslator.cs
- JournalEntryStack.cs
- AppModelKnownContentFactory.cs
- DatePicker.cs
- ParsedRoute.cs
- LicenseProviderAttribute.cs
- BooleanKeyFrameCollection.cs
- ByteKeyFrameCollection.cs
- FtpCachePolicyElement.cs
- InternalCache.cs
- MetadataExchangeBindings.cs
- NetworkInformationException.cs
- ObjectViewEntityCollectionData.cs
- ObjectConverter.cs
- EncodedStreamFactory.cs
- SynchronizationFilter.cs
- KnownTypesHelper.cs
- ProcessHostConfigUtils.cs
- IncrementalHitTester.cs
- UIElement3DAutomationPeer.cs
- AutomationPropertyInfo.cs
- WsatServiceAddress.cs
- XPathNavigatorKeyComparer.cs
- DateTimeUtil.cs
- Rotation3D.cs
- DetailsViewDeletedEventArgs.cs
- WindowHelperService.cs
- TraceSection.cs
- Vector3DValueSerializer.cs
- ComponentCommands.cs
- BezierSegment.cs
- FontDifferentiator.cs
- TextCompositionEventArgs.cs