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
- TraceProvider.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- Parameter.cs
- AppSettingsExpressionBuilder.cs
- CallbackHandler.cs
- TextReader.cs
- EntityModelBuildProvider.cs
- __Filters.cs
- AutomationPeer.cs
- SystemSounds.cs
- XmlNodeList.cs
- CookielessData.cs
- ListBindingConverter.cs
- VoiceChangeEventArgs.cs
- QilStrConcat.cs
- FormCollection.cs
- _SslSessionsCache.cs
- CategoryNameCollection.cs
- DataViewManagerListItemTypeDescriptor.cs
- Dispatcher.cs
- XmlNodeReader.cs
- WebEvents.cs
- StringResourceManager.cs
- Brush.cs
- PenThreadWorker.cs
- HtmlLink.cs
- Transform3DGroup.cs
- DiscoveryExceptionDictionary.cs
- LoginStatusDesigner.cs
- XmlNullResolver.cs
- TimeSpanValidatorAttribute.cs
- DataServiceOperationContext.cs
- ParameterToken.cs
- GeometryCollection.cs
- TextTreeDeleteContentUndoUnit.cs
- NullableLongMinMaxAggregationOperator.cs
- ComponentDispatcherThread.cs
- CatalogPartChrome.cs
- DataContractSerializerSection.cs
- DomainUpDown.cs
- DaylightTime.cs
- SessionMode.cs
- LinqDataSourceDeleteEventArgs.cs
- BinaryObjectReader.cs
- DirectoryInfo.cs
- WindowsSysHeader.cs
- TranslateTransform3D.cs
- TextAutomationPeer.cs
- DecimalStorage.cs
- PreviewPrintController.cs
- WebBrowserNavigatedEventHandler.cs
- AutoGeneratedFieldProperties.cs
- SchemaImporterExtensionElement.cs
- SoapAttributeOverrides.cs
- MailAddress.cs
- AsymmetricKeyExchangeDeformatter.cs
- DbException.cs
- AttributeUsageAttribute.cs
- Crypto.cs
- InvalidProgramException.cs
- securestring.cs
- ReversePositionQuery.cs
- IisTraceListener.cs
- AsnEncodedData.cs
- ConfigXmlAttribute.cs
- SpeakCompletedEventArgs.cs
- FontFaceLayoutInfo.cs
- OpenTypeLayout.cs
- SwitchAttribute.cs
- Point3DAnimation.cs
- AppLevelCompilationSectionCache.cs
- Odbc32.cs
- MulticastDelegate.cs
- CodeSubDirectory.cs
- WindowsSolidBrush.cs
- WebPartEditorCancelVerb.cs
- ResourceManager.cs
- CheckBox.cs
- DataGridViewCellStyle.cs
- PinnedBufferMemoryStream.cs
- DocumentXmlWriter.cs
- CircleEase.cs
- FlowchartDesigner.xaml.cs
- PhysicalFontFamily.cs
- TemplateNameScope.cs
- SByteStorage.cs
- SafeCancelMibChangeNotify.cs
- XmlLanguage.cs
- ClipboardProcessor.cs
- TranslateTransform.cs
- ToolBarPanel.cs
- SmtpFailedRecipientsException.cs
- NestedContainer.cs
- ThemeInfoAttribute.cs
- NotCondition.cs
- Debug.cs
- HashHelper.cs
- SynchronizedInputHelper.cs
- TreeNodeClickEventArgs.cs
- OpacityConverter.cs