Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / infocard / Client / System / IdentityModel / Selectors / InfoCardRSAOAEPKeyExchangeDeformatter.cs / 1 / 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. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- RadioButton.cs
- ItemCollection.cs
- PersonalizationAdministration.cs
- Metafile.cs
- DiscoveryMessageSequence11.cs
- HoistedLocals.cs
- ScriptReference.cs
- DataContractJsonSerializer.cs
- Ipv6Element.cs
- DataColumnChangeEvent.cs
- DecimalAnimationBase.cs
- X509ChainPolicy.cs
- HistoryEventArgs.cs
- SqlNotificationRequest.cs
- IItemProperties.cs
- Transform3DCollection.cs
- CqlLexer.cs
- CollectionViewSource.cs
- ResourceDescriptionAttribute.cs
- CompilerGeneratedAttribute.cs
- DateTimeAutomationPeer.cs
- ContainerUtilities.cs
- VideoDrawing.cs
- DoubleStorage.cs
- FontStyleConverter.cs
- UpdateDelegates.Generated.cs
- Bitmap.cs
- BamlRecordHelper.cs
- SamlAuthenticationStatement.cs
- SuppressMergeCheckAttribute.cs
- Version.cs
- Choices.cs
- CodeTypeReferenceSerializer.cs
- OleDbStruct.cs
- VariantWrapper.cs
- FrameworkElementFactory.cs
- XmlILConstructAnalyzer.cs
- RefreshEventArgs.cs
- QueryContinueDragEvent.cs
- DocumentPage.cs
- PermissionToken.cs
- GridItemCollection.cs
- AutoGeneratedField.cs
- MachineKeyValidationConverter.cs
- ParenthesizePropertyNameAttribute.cs
- ClockController.cs
- WriteableBitmap.cs
- OperatingSystem.cs
- DataBoundLiteralControl.cs
- SkipStoryboardToFill.cs
- SoapCodeExporter.cs
- MailWriter.cs
- ProfileProvider.cs
- BufferCache.cs
- SpellerStatusTable.cs
- ColumnResult.cs
- LocalClientSecuritySettings.cs
- ListDictionaryInternal.cs
- Label.cs
- QilChoice.cs
- RewritingProcessor.cs
- Utils.cs
- TdsValueSetter.cs
- Imaging.cs
- DataBoundControl.cs
- AssociationSet.cs
- BridgeDataReader.cs
- AttributeData.cs
- JumpPath.cs
- ConfigsHelper.cs
- SafeCoTaskMem.cs
- DrawToolTipEventArgs.cs
- Trace.cs
- CredentialCache.cs
- BaseCollection.cs
- ConnectionPointConverter.cs
- StandardToolWindows.cs
- X509PeerCertificateAuthentication.cs
- TransformerInfo.cs
- CatalogPartChrome.cs
- InputLanguageProfileNotifySink.cs
- Expressions.cs
- XslException.cs
- ToolStripDropDownClosedEventArgs.cs
- PreviewPrintController.cs
- EditorZone.cs
- ChannelFactoryBase.cs
- X509Utils.cs
- _ContextAwareResult.cs
- ClassValidator.cs
- XmlElementCollection.cs
- ViewPort3D.cs
- GetWinFXPath.cs
- Point.cs
- cookiecollection.cs
- BroadcastEventHelper.cs
- PageContent.cs
- Line.cs
- PageCodeDomTreeGenerator.cs
- SettingsPropertyIsReadOnlyException.cs