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
- Int64.cs
- ConfigurationLocation.cs
- XmlAttributeAttribute.cs
- SQLDateTimeStorage.cs
- DESCryptoServiceProvider.cs
- LogicalExpr.cs
- PropertyItem.cs
- HttpModulesSection.cs
- UTF8Encoding.cs
- BadImageFormatException.cs
- DataMisalignedException.cs
- TemplateControlParser.cs
- DesignerActionPropertyItem.cs
- LayoutManager.cs
- DurableServiceAttribute.cs
- XPathDocument.cs
- RSAOAEPKeyExchangeDeformatter.cs
- GenerateHelper.cs
- XPathDocumentNavigator.cs
- SessionStateItemCollection.cs
- CharacterShapingProperties.cs
- DataBoundControlHelper.cs
- DataGridAutoGeneratingColumnEventArgs.cs
- SafeViewOfFileHandle.cs
- AttributeEmitter.cs
- ContentPosition.cs
- MetaType.cs
- ImageSource.cs
- ViewGenResults.cs
- FilterableAttribute.cs
- AudioFileOut.cs
- PinProtectionHelper.cs
- ForceCopyBuildProvider.cs
- TagNameToTypeMapper.cs
- IRCollection.cs
- DecimalKeyFrameCollection.cs
- ClientTarget.cs
- HGlobalSafeHandle.cs
- XpsStructure.cs
- RankException.cs
- Base64Stream.cs
- IteratorFilter.cs
- FontSizeConverter.cs
- LifetimeServices.cs
- XmlSchemaSet.cs
- HttpCacheParams.cs
- TextLine.cs
- ContainerSelectorGlyph.cs
- InvalidPrinterException.cs
- TextModifierScope.cs
- SettingsProviderCollection.cs
- Win32.cs
- ConfigurationSection.cs
- WindowsTitleBar.cs
- AutoResetEvent.cs
- ScrollableControl.cs
- SectionXmlInfo.cs
- Stylus.cs
- DataGridViewRowConverter.cs
- MetricEntry.cs
- AstTree.cs
- InstanceCreationEditor.cs
- XmlNavigatorFilter.cs
- InternalPermissions.cs
- TemplateBamlRecordReader.cs
- StreamResourceInfo.cs
- ProxyAttribute.cs
- AttributeCallbackBuilder.cs
- StylusLogic.cs
- XmlTypeAttribute.cs
- Material.cs
- Itemizer.cs
- TaiwanLunisolarCalendar.cs
- WSIdentityFaultException.cs
- PropertyConverter.cs
- NamedPermissionSet.cs
- RegionIterator.cs
- ToolStripButton.cs
- HwndSource.cs
- SystemIPInterfaceStatistics.cs
- ModifiableIteratorCollection.cs
- FlatButtonAppearance.cs
- StyleXamlParser.cs
- Pair.cs
- COMException.cs
- PositiveTimeSpanValidatorAttribute.cs
- XmlHierarchicalEnumerable.cs
- TrackingServices.cs
- OpenTypeLayoutCache.cs
- DataGridView.cs
- SurrogateEncoder.cs
- FixedSOMGroup.cs
- DocumentViewerBaseAutomationPeer.cs
- GridItem.cs
- ControlCollection.cs
- ClassValidator.cs
- CodeCommentStatement.cs
- TraceLog.cs
- HttpsChannelListener.cs
- ActivitySurrogateSelector.cs