Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / WCF / infocard / Client / System / IdentityModel / Selectors / InfoCardRSAOAEPKeyExchangeDeformatter.cs / 1305376 / InfoCardRSAOAEPKeyExchangeDeformatter.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.IdentityModel.Selectors { using System; using System.Security.Cryptography; internal class InfoCardRSAOAEPKeyExchangeDeformatter : RSAOAEPKeyExchangeDeformatter { private RSA m_rsaKey; // RSA Key value to do decrypt operation // // public constructors // public InfoCardRSAOAEPKeyExchangeDeformatter() : base() {} public InfoCardRSAOAEPKeyExchangeDeformatter( AsymmetricAlgorithm key ) : base( key ) { m_rsaKey = (RSA) key; } // // public methods // public override byte[] DecryptKeyExchange( byte[] rgbData ) { if ( null != m_rsaKey && m_rsaKey is InfoCardRSACryptoProvider ) { return ((InfoCardRSACryptoProvider) m_rsaKey).Decrypt( rgbData, true ); } else { return base.DecryptKeyExchange( rgbData ); } } public override void SetKey( AsymmetricAlgorithm key ) { base.SetKey( key ); m_rsaKey = (RSA) key; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- MetaModel.cs
- PolicyUtility.cs
- RepeatButtonAutomationPeer.cs
- JsonQueryStringConverter.cs
- SafeLibraryHandle.cs
- BindingExpressionBase.cs
- XmlTypeMapping.cs
- AccessDataSourceView.cs
- Memoizer.cs
- DrawingContextWalker.cs
- SingleStorage.cs
- xsdvalidator.cs
- TableLayoutStyle.cs
- HtmlImage.cs
- PageCatalogPart.cs
- Predicate.cs
- CommandSet.cs
- FontNamesConverter.cs
- SQLChars.cs
- SoapEnvelopeProcessingElement.cs
- WebSysDefaultValueAttribute.cs
- StringFreezingAttribute.cs
- DataContractAttribute.cs
- ApplicationBuildProvider.cs
- TimeoutValidationAttribute.cs
- RuntimeUtils.cs
- TagMapCollection.cs
- XamlInt32CollectionSerializer.cs
- SynchronizingStream.cs
- HelpEvent.cs
- DiscardableAttribute.cs
- BulletChrome.cs
- PageAdapter.cs
- XsltException.cs
- MessageBodyMemberAttribute.cs
- RijndaelManaged.cs
- SafePointer.cs
- HtmlElementCollection.cs
- DesignRelation.cs
- AspNetSynchronizationContext.cs
- BidOverLoads.cs
- ObjectDataSourceMethodEventArgs.cs
- RightsManagementPermission.cs
- ADMembershipUser.cs
- Int16AnimationUsingKeyFrames.cs
- EventItfInfo.cs
- TextElement.cs
- SafeNativeMethods.cs
- AnnotationComponentChooser.cs
- Zone.cs
- IImplicitResourceProvider.cs
- RouteValueDictionary.cs
- SmtpNtlmAuthenticationModule.cs
- PrintDialog.cs
- _CacheStreams.cs
- TileBrush.cs
- ExpressionEditor.cs
- CurrentTimeZone.cs
- OutArgumentConverter.cs
- BooleanProjectedSlot.cs
- XmlAnyElementAttribute.cs
- MethodMessage.cs
- ComponentDispatcher.cs
- CornerRadius.cs
- Resources.Designer.cs
- CodeTypeDelegate.cs
- Literal.cs
- ClientTargetCollection.cs
- WaitForChangedResult.cs
- XPathAxisIterator.cs
- IdentifierService.cs
- QualifiedCellIdBoolean.cs
- WaitForChangedResult.cs
- SecurityPermission.cs
- TickBar.cs
- SelectionPattern.cs
- Pointer.cs
- FusionWrap.cs
- EDesignUtil.cs
- Brush.cs
- TreeNodeStyle.cs
- AssemblyInfo.cs
- WindowsToolbarItemAsMenuItem.cs
- NamespaceCollection.cs
- PassportAuthenticationModule.cs
- AppSecurityManager.cs
- ContainerParaClient.cs
- SAPIEngineTypes.cs
- ControlIdConverter.cs
- ModelVisual3D.cs
- TransformationRules.cs
- ExpressionBuilder.cs
- WebConvert.cs
- FunctionImportMapping.cs
- DataControlCommands.cs
- SessionEndedEventArgs.cs
- FragmentNavigationEventArgs.cs
- TrustLevelCollection.cs
- AdapterSwitches.cs
- TableProviderWrapper.cs