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
- GridViewRowPresenterBase.cs
- DocumentViewerBase.cs
- CompilerHelpers.cs
- SchemaElementLookUpTable.cs
- BitmapImage.cs
- CacheForPrimitiveTypes.cs
- SoapObjectWriter.cs
- DataGridCellsPanel.cs
- PopupRootAutomationPeer.cs
- SplayTreeNode.cs
- cookiecollection.cs
- TableRowGroup.cs
- TextBoxBaseDesigner.cs
- CodeGeneratorOptions.cs
- PageAsyncTaskManager.cs
- BitmapEffectrendercontext.cs
- XMLSyntaxException.cs
- ImageSource.cs
- GridItemPattern.cs
- HTMLTagNameToTypeMapper.cs
- XmlComplianceUtil.cs
- MethodBody.cs
- BuildProvider.cs
- WebPartAddingEventArgs.cs
- Exceptions.cs
- GridViewUpdatedEventArgs.cs
- DocComment.cs
- BaseTreeIterator.cs
- ToolConsole.cs
- ApplicationActivator.cs
- DependencyObject.cs
- NetworkStream.cs
- ShapeTypeface.cs
- Membership.cs
- SurrogateSelector.cs
- CrossContextChannel.cs
- SuppressMergeCheckAttribute.cs
- RowSpanVector.cs
- NamedObject.cs
- TopClause.cs
- HwndTarget.cs
- GeneralTransform3D.cs
- JournalEntry.cs
- SizeF.cs
- Symbol.cs
- ReliableInputConnection.cs
- VoiceChangeEventArgs.cs
- WindowHideOrCloseTracker.cs
- OdbcStatementHandle.cs
- ItemTypeToolStripMenuItem.cs
- DATA_BLOB.cs
- CompositeTypefaceMetrics.cs
- TiffBitmapEncoder.cs
- MetadataCache.cs
- ObjectResult.cs
- ListSortDescriptionCollection.cs
- WindowsToolbarAsMenu.cs
- Expressions.cs
- AssemblySettingAttributes.cs
- AnnotationHighlightLayer.cs
- JpegBitmapDecoder.cs
- CompilationSection.cs
- LinqDataSourceSelectEventArgs.cs
- SimpleHandlerBuildProvider.cs
- XmlLanguageConverter.cs
- XsdBuildProvider.cs
- XPathMessageContext.cs
- DbCommandDefinition.cs
- BinaryFormatterWriter.cs
- PlatformNotSupportedException.cs
- NoResizeSelectionBorderGlyph.cs
- SystemWebSectionGroup.cs
- peernodeimplementation.cs
- VisualCollection.cs
- ApplicationDirectory.cs
- SessionEndingEventArgs.cs
- Win32SafeHandles.cs
- FileBasedResourceGroveler.cs
- PackageDigitalSignatureManager.cs
- MsmqTransportElement.cs
- TypeForwardedToAttribute.cs
- PageBreakRecord.cs
- ZoomPercentageConverter.cs
- dtdvalidator.cs
- SemaphoreSecurity.cs
- WebBrowserSiteBase.cs
- BorderGapMaskConverter.cs
- X509Certificate.cs
- ActivationArguments.cs
- ThemeDirectoryCompiler.cs
- Choices.cs
- DoubleAnimation.cs
- PictureBox.cs
- TableItemProviderWrapper.cs
- TabPanel.cs
- BaseCodeDomTreeGenerator.cs
- PowerModeChangedEventArgs.cs
- DataGridItemEventArgs.cs
- PageBreakRecord.cs
- DescendantBaseQuery.cs