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
- UserControlBuildProvider.cs
- HostProtectionPermission.cs
- WebPartUserCapability.cs
- XmlChildEnumerator.cs
- BridgeDataReader.cs
- InteropAutomationProvider.cs
- TimerEventSubscription.cs
- PassportAuthentication.cs
- StringArrayConverter.cs
- DataException.cs
- HttpCookiesSection.cs
- BuildProvider.cs
- TrackingProfileCache.cs
- EntityCommand.cs
- LogExtentCollection.cs
- InProcStateClientManager.cs
- DependencyPropertyKey.cs
- BadImageFormatException.cs
- BindingBase.cs
- VersionedStreamOwner.cs
- EventLogException.cs
- TokenBasedSet.cs
- TextBoxLine.cs
- _IPv4Address.cs
- CallbackBehaviorAttribute.cs
- FontStretches.cs
- RsaKeyIdentifierClause.cs
- SecuritySessionServerSettings.cs
- ServiceAuthorizationManager.cs
- DocumentEventArgs.cs
- UserCancellationException.cs
- StringFreezingAttribute.cs
- ResourceDefaultValueAttribute.cs
- UpdateTracker.cs
- CompatibleComparer.cs
- InvalidProgramException.cs
- SHA256.cs
- BindingList.cs
- SortedList.cs
- DbConnectionPool.cs
- WebConfigurationHostFileChange.cs
- SendSecurityHeaderElement.cs
- XmlDataSourceView.cs
- IIS7UserPrincipal.cs
- SHA1CryptoServiceProvider.cs
- ProjectionNode.cs
- ToolStripItemRenderEventArgs.cs
- ServiceDescription.cs
- XsltSettings.cs
- XmlComment.cs
- TreeBuilderXamlTranslator.cs
- LockCookie.cs
- EncoderReplacementFallback.cs
- Literal.cs
- recordstatefactory.cs
- CategoryAttribute.cs
- X509CertificateStore.cs
- GeometryDrawing.cs
- RegexTree.cs
- PropertyCondition.cs
- ResXResourceReader.cs
- LocalsItemDescription.cs
- ServiceDescription.cs
- GreenMethods.cs
- BooleanSwitch.cs
- DataRecordObjectView.cs
- ScriptRef.cs
- StandardToolWindows.cs
- SQLInt32.cs
- SizeKeyFrameCollection.cs
- StyleTypedPropertyAttribute.cs
- CodeMethodInvokeExpression.cs
- DataSourceControlBuilder.cs
- JoinQueryOperator.cs
- MsmqBindingMonitor.cs
- userdatakeys.cs
- CompleteWizardStep.cs
- ListViewItemMouseHoverEvent.cs
- compensatingcollection.cs
- PathFigureCollection.cs
- XmlCharType.cs
- Paragraph.cs
- SqlInternalConnectionTds.cs
- RegexBoyerMoore.cs
- RemoteWebConfigurationHost.cs
- InternalControlCollection.cs
- DocobjHost.cs
- ObservableDictionary.cs
- DbConnectionPoolOptions.cs
- SocketElement.cs
- FontClient.cs
- DefaultValueAttribute.cs
- StreamInfo.cs
- DataGridViewRowPrePaintEventArgs.cs
- XmlUrlResolver.cs
- Zone.cs
- XmlEntity.cs
- StylusCaptureWithinProperty.cs
- UserControlDocumentDesigner.cs
- WindowsGraphicsWrapper.cs