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
- WinInet.cs
- DataServiceClientException.cs
- PageCodeDomTreeGenerator.cs
- TextProperties.cs
- LinearGradientBrush.cs
- DuplexClientBase.cs
- HostSecurityManager.cs
- SessionStateItemCollection.cs
- DesignerSerializationOptionsAttribute.cs
- SchemaTypeEmitter.cs
- Polyline.cs
- RepeatBehaviorConverter.cs
- DataListCommandEventArgs.cs
- TrustManagerMoreInformation.cs
- X509Extension.cs
- RsaSecurityToken.cs
- SplitterCancelEvent.cs
- CompositeControl.cs
- InternalConfigHost.cs
- ContentPlaceHolder.cs
- Opcode.cs
- SamlAttributeStatement.cs
- AssemblyCache.cs
- SafeHandle.cs
- WebResourceAttribute.cs
- Form.cs
- ImageCodecInfo.cs
- ReaderOutput.cs
- SmtpLoginAuthenticationModule.cs
- FaultConverter.cs
- SqlNode.cs
- PrimitiveType.cs
- DSASignatureDeformatter.cs
- WindowsScrollBar.cs
- DataSourceXmlSubItemAttribute.cs
- XmlSchemaComplexContentExtension.cs
- BoundField.cs
- OrthographicCamera.cs
- RuntimeHandles.cs
- SymbolType.cs
- DataMember.cs
- AdapterUtil.cs
- RegexBoyerMoore.cs
- SoapMessage.cs
- HealthMonitoringSectionHelper.cs
- SoapInteropTypes.cs
- xmlsaver.cs
- ToolStrip.cs
- CodeAccessPermission.cs
- DropDownButton.cs
- ListViewDeleteEventArgs.cs
- ClientTarget.cs
- TextLineResult.cs
- IndexedEnumerable.cs
- Win32.cs
- TemplateApplicationHelper.cs
- DetailsViewPagerRow.cs
- HeaderedContentControl.cs
- ColorConvertedBitmapExtension.cs
- ThousandthOfEmRealPoints.cs
- MgmtConfigurationRecord.cs
- NativeMethods.cs
- ExpiredSecurityTokenException.cs
- RuleProcessor.cs
- RoleGroup.cs
- TrackingStringDictionary.cs
- AutomationPatternInfo.cs
- DesignerAttribute.cs
- Renderer.cs
- XmlAggregates.cs
- XmlExceptionHelper.cs
- CollectionsUtil.cs
- EventLogEntryCollection.cs
- Constants.cs
- CorrelationValidator.cs
- HandleCollector.cs
- PrimitiveCodeDomSerializer.cs
- CallbackValidatorAttribute.cs
- HuffmanTree.cs
- SiteMapProvider.cs
- ParsedAttributeCollection.cs
- WebResourceAttribute.cs
- ColorMap.cs
- DataGridViewAddColumnDialog.cs
- IsolatedStorageFileStream.cs
- PenThread.cs
- WebHeaderCollection.cs
- PaintEvent.cs
- FixedBufferAttribute.cs
- XmlIlTypeHelper.cs
- OutKeywords.cs
- XmlDataSource.cs
- FormViewCommandEventArgs.cs
- CollectionViewGroupInternal.cs
- IriParsingElement.cs
- SoapServerMessage.cs
- FontNamesConverter.cs
- odbcmetadatafactory.cs
- ThreadAttributes.cs
- controlskin.cs