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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- basecomparevalidator.cs
- GraphicsPathIterator.cs
- HotSpotCollection.cs
- Matrix.cs
- SiteMembershipCondition.cs
- TableRowGroup.cs
- BasicHttpBinding.cs
- FaultDesigner.cs
- Form.cs
- RSAOAEPKeyExchangeDeformatter.cs
- TextWriterTraceListener.cs
- Mapping.cs
- KeyValueInternalCollection.cs
- SmtpNegotiateAuthenticationModule.cs
- StreamingContext.cs
- SHA512Managed.cs
- Logging.cs
- CanonicalFontFamilyReference.cs
- WebRequestModulesSection.cs
- GridViewUpdateEventArgs.cs
- SqlDependencyListener.cs
- QueryOperationResponseOfT.cs
- IndexerNameAttribute.cs
- ThemeConfigurationDialog.cs
- XmlSchemaInclude.cs
- ServiceOperationDetailViewControl.cs
- IsolatedStorage.cs
- ColumnMapCopier.cs
- EntityDataSourceState.cs
- ExpressionNode.cs
- CombinedGeometry.cs
- Base64Decoder.cs
- DispatcherObject.cs
- WebPartsPersonalizationAuthorization.cs
- CapabilitiesAssignment.cs
- CriticalFinalizerObject.cs
- SpellerStatusTable.cs
- BitVec.cs
- RectangleConverter.cs
- Material.cs
- ObjectDataSourceWizardForm.cs
- AsynchronousChannel.cs
- PhoneCallDesigner.cs
- AdapterUtil.cs
- RightNameExpirationInfoPair.cs
- ProcessInputEventArgs.cs
- TableLayoutStyleCollection.cs
- XmlSchemaAttributeGroup.cs
- DataSvcMapFileSerializer.cs
- SmiEventSink_Default.cs
- ParseNumbers.cs
- LoginCancelEventArgs.cs
- BrowserCapabilitiesFactory.cs
- ForwardPositionQuery.cs
- MimeFormImporter.cs
- PatternMatcher.cs
- ItemsPresenter.cs
- ColorConverter.cs
- XPathPatternBuilder.cs
- XsltException.cs
- GeometryGroup.cs
- CacheChildrenQuery.cs
- CodeCatchClauseCollection.cs
- HttpProxyCredentialType.cs
- BufferedGraphics.cs
- FormViewRow.cs
- GlyphRun.cs
- EncryptedPackage.cs
- CollectionBuilder.cs
- EdmConstants.cs
- NavigationPropertyEmitter.cs
- Transform3DGroup.cs
- SqlRecordBuffer.cs
- cookieexception.cs
- DynamicResourceExtensionConverter.cs
- JoinTreeSlot.cs
- SqlDataSourceCache.cs
- ResetableIterator.cs
- MouseGesture.cs
- WebPartExportVerb.cs
- CodeGeneratorOptions.cs
- StringStorage.cs
- ObjectViewEntityCollectionData.cs
- SwitchLevelAttribute.cs
- JulianCalendar.cs
- DiagnosticSection.cs
- ToolStripItemTextRenderEventArgs.cs
- ApplicationHost.cs
- XmlSerializerNamespaces.cs
- MemberProjectionIndex.cs
- ProxyHelper.cs
- SoapIgnoreAttribute.cs
- FixedLineResult.cs
- UriSection.cs
- CancelAsyncOperationRequest.cs
- MD5HashHelper.cs
- XmlSchemaValidator.cs
- DBConnection.cs
- QueryAsyncResult.cs
- CodeObjectCreateExpression.cs