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
- UiaCoreProviderApi.cs
- isolationinterop.cs
- QuaternionConverter.cs
- LayoutTableCell.cs
- ScrollEvent.cs
- MouseActionValueSerializer.cs
- Triplet.cs
- _Semaphore.cs
- FocusTracker.cs
- CompilerGlobalScopeAttribute.cs
- PropertyMap.cs
- RichTextBoxAutomationPeer.cs
- Int32CollectionConverter.cs
- CollectionExtensions.cs
- SBCSCodePageEncoding.cs
- DataGridColumnCollection.cs
- IDispatchConstantAttribute.cs
- ClientCredentialsSecurityTokenManager.cs
- ExpressionEditorAttribute.cs
- StylusDevice.cs
- CollectionView.cs
- LeaseManager.cs
- Model3D.cs
- PolyBezierSegmentFigureLogic.cs
- SByteStorage.cs
- CodeMethodInvokeExpression.cs
- Propagator.JoinPropagator.cs
- XmlIgnoreAttribute.cs
- TemplateBindingExtension.cs
- AttachedPropertyBrowsableAttribute.cs
- BinHexEncoder.cs
- ObjectConverter.cs
- IntersectQueryOperator.cs
- configsystem.cs
- OracleParameterBinding.cs
- ServiceErrorHandler.cs
- SqlNode.cs
- Icon.cs
- GridViewColumnHeaderAutomationPeer.cs
- OptimizerPatterns.cs
- CultureTable.cs
- CornerRadiusConverter.cs
- DesigntimeLicenseContext.cs
- _NTAuthentication.cs
- DataStorage.cs
- DirectionalLight.cs
- EnumValAlphaComparer.cs
- MultipleViewProviderWrapper.cs
- GenerateScriptTypeAttribute.cs
- CellNormalizer.cs
- RelatedEnd.cs
- WebPartHelpVerb.cs
- UserValidatedEventArgs.cs
- XmlAnyAttributeAttribute.cs
- XPathSingletonIterator.cs
- CompoundFileReference.cs
- OverloadGroupAttribute.cs
- CallbackValidator.cs
- ModifierKeysConverter.cs
- TextMetrics.cs
- oledbmetadatacolumnnames.cs
- FastEncoderWindow.cs
- UdpChannelFactory.cs
- Border.cs
- XmlToDatasetMap.cs
- HttpRawResponse.cs
- DataServiceProviderMethods.cs
- NativeMethods.cs
- SoapServerProtocol.cs
- LogExtentCollection.cs
- StandardMenuStripVerb.cs
- Cell.cs
- IconHelper.cs
- CommonObjectSecurity.cs
- TableAdapterManagerHelper.cs
- HttpWriter.cs
- EventManager.cs
- ActivityDesignerHelper.cs
- DataSpaceManager.cs
- IMembershipProvider.cs
- SqlCrossApplyToCrossJoin.cs
- CodeGenHelper.cs
- RadialGradientBrush.cs
- SrgsToken.cs
- SwitchExpression.cs
- XmlWhitespace.cs
- FrugalList.cs
- BaseCollection.cs
- HtmlToClrEventProxy.cs
- XmlAnyAttributeAttribute.cs
- SessionParameter.cs
- BaseTemplateCodeDomTreeGenerator.cs
- MobileCategoryAttribute.cs
- ContainerUtilities.cs
- CharacterHit.cs
- X500Name.cs
- ZipIOLocalFileDataDescriptor.cs
- Atom10FormatterFactory.cs
- Journal.cs
- UnauthorizedWebPart.cs