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
- Cell.cs
- MemberPath.cs
- SmtpFailedRecipientsException.cs
- TcpHostedTransportConfiguration.cs
- PageHandlerFactory.cs
- ComplusTypeValidator.cs
- ProxyWebPartManager.cs
- XmlUTF8TextWriter.cs
- TextAction.cs
- MobileUITypeEditor.cs
- NegationPusher.cs
- BamlTreeNode.cs
- NamedPermissionSet.cs
- PathFigureCollectionConverter.cs
- Light.cs
- EntityContainerEntitySetDefiningQuery.cs
- FrameworkContentElement.cs
- CallbackValidatorAttribute.cs
- PaginationProgressEventArgs.cs
- SchemaDeclBase.cs
- MetabaseServerConfig.cs
- KeyTimeConverter.cs
- CharStorage.cs
- WebControlParameterProxy.cs
- DirectionalLight.cs
- UpdateException.cs
- SymbolEqualComparer.cs
- StrokeSerializer.cs
- FormsAuthenticationTicket.cs
- StringArrayConverter.cs
- DbQueryCommandTree.cs
- Matrix.cs
- DynamicActionMessageFilter.cs
- Size3D.cs
- SqlCacheDependency.cs
- SystemIPInterfaceStatistics.cs
- BamlLocalizer.cs
- StringUtil.cs
- GlobalProxySelection.cs
- BitmapEffectGroup.cs
- FilteredDataSetHelper.cs
- DataGridTableCollection.cs
- LiteralControl.cs
- EUCJPEncoding.cs
- TypeToStringValueConverter.cs
- TimeoutValidationAttribute.cs
- TrustSection.cs
- SchemaInfo.cs
- FixedLineResult.cs
- LongTypeConverter.cs
- EditorPartCollection.cs
- NetSectionGroup.cs
- RadioButton.cs
- LinqDataSourceContextEventArgs.cs
- ValidationErrorCollection.cs
- NoClickablePointException.cs
- DataObject.cs
- DynamicFilter.cs
- MemberHolder.cs
- CompressEmulationStream.cs
- HttpBrowserCapabilitiesWrapper.cs
- MSHTMLHost.cs
- ConsoleCancelEventArgs.cs
- SecureEnvironment.cs
- Schema.cs
- WebPartEventArgs.cs
- IndentedWriter.cs
- NameSpaceExtractor.cs
- LinqExpressionNormalizer.cs
- Line.cs
- itemelement.cs
- ContextProperty.cs
- DoubleCollectionConverter.cs
- ContentPlaceHolder.cs
- Ref.cs
- AdornerHitTestResult.cs
- NonParentingControl.cs
- ToolStripTextBox.cs
- MetaData.cs
- TabControlAutomationPeer.cs
- DataFormat.cs
- LinkedResource.cs
- ContainerControl.cs
- DataServicePagingProviderWrapper.cs
- WebPartZone.cs
- TableRowGroup.cs
- WebPermission.cs
- UnsafeNativeMethods.cs
- DataGridViewAccessibleObject.cs
- StylusPointProperties.cs
- XmlElement.cs
- TextWriter.cs
- CaseInsensitiveHashCodeProvider.cs
- CustomSignedXml.cs
- TabPageDesigner.cs
- ConditionalDesigner.cs
- MetafileHeaderEmf.cs
- TextServicesCompartmentEventSink.cs
- XamlTypeMapper.cs
- AliasedSlot.cs