Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / WCF / infocard / Client / System / IdentityModel / Selectors / InfoCardRSAPKCS1KeyExchangeDeformatter.cs / 1305376 / InfoCardRSAPKCS1KeyExchangeDeformatter.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.IdentityModel.Selectors { using System; using System.Security.Cryptography; internal class InfoCardRSAPKCS1KeyExchangeDeformatter : RSAPKCS1KeyExchangeDeformatter { RSA m_rsaKey; // Constructors public InfoCardRSAPKCS1KeyExchangeDeformatter() {} public InfoCardRSAPKCS1KeyExchangeDeformatter( AsymmetricAlgorithm key ) : base( key ) { m_rsaKey = (RSA) key; } // // public methods // public override byte[] DecryptKeyExchange(byte[] rgbIn) { if ( null != m_rsaKey && m_rsaKey is InfoCardRSACryptoProvider) { return ((InfoCardRSACryptoProvider) m_rsaKey).Decrypt(rgbIn, false); } else { return base.DecryptKeyExchange( rgbIn ); } } 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
- TextSpanModifier.cs
- CopyNodeSetAction.cs
- ContainerControl.cs
- securitycriticaldataformultiplegetandset.cs
- CustomAttributeSerializer.cs
- TrackingLocationCollection.cs
- InlineObject.cs
- PrePrepareMethodAttribute.cs
- hwndwrapper.cs
- XmlSerializerVersionAttribute.cs
- PerfCounters.cs
- FormParameter.cs
- TextLineResult.cs
- DependentTransaction.cs
- SectionInput.cs
- clipboard.cs
- EventLogEntryCollection.cs
- SequenceDesigner.cs
- NativeMethods.cs
- PersonalizationAdministration.cs
- HtmlTableRowCollection.cs
- PackageProperties.cs
- RelationshipEndCollection.cs
- LocatorPart.cs
- smtpconnection.cs
- Binding.cs
- HttpRuntime.cs
- SqlProvider.cs
- RegexInterpreter.cs
- ScopelessEnumAttribute.cs
- FontCacheUtil.cs
- CodeExpressionStatement.cs
- RoutedCommand.cs
- LabelLiteral.cs
- TransformValueSerializer.cs
- WindowsTooltip.cs
- ExpandSegmentCollection.cs
- TreeNodeStyleCollectionEditor.cs
- ToolStripContainerActionList.cs
- CopyCodeAction.cs
- ListBindingHelper.cs
- GraphicsContainer.cs
- EntityRecordInfo.cs
- ConditionValidator.cs
- XmlTextReader.cs
- DecoratedNameAttribute.cs
- TabControlCancelEvent.cs
- FormCollection.cs
- TriggerActionCollection.cs
- RelationshipFixer.cs
- baseaxisquery.cs
- FormParameter.cs
- TableLayoutSettings.cs
- HostDesigntimeLicenseContext.cs
- DynamicActivityTypeDescriptor.cs
- ProcessModuleCollection.cs
- WebControlsSection.cs
- PageParser.cs
- CodeActivityMetadata.cs
- ResponseBodyWriter.cs
- PointIndependentAnimationStorage.cs
- KnownTypesProvider.cs
- WebCategoryAttribute.cs
- SchemaMerger.cs
- SyndicationSerializer.cs
- CuspData.cs
- ShaperBuffers.cs
- WsatAdminException.cs
- PickDesigner.xaml.cs
- GCHandleCookieTable.cs
- _HeaderInfoTable.cs
- PathGeometry.cs
- ConfigXmlWhitespace.cs
- SID.cs
- DoubleCollection.cs
- UTF8Encoding.cs
- NamedServiceModelExtensionCollectionElement.cs
- BasicKeyConstraint.cs
- CqlBlock.cs
- HtmlEncodedRawTextWriter.cs
- CodeIndexerExpression.cs
- _AutoWebProxyScriptEngine.cs
- SchemaObjectWriter.cs
- MethodExecutor.cs
- StorageTypeMapping.cs
- XamlSerializerUtil.cs
- DefaultShape.cs
- ObjectIDGenerator.cs
- TimeZone.cs
- ButtonAutomationPeer.cs
- SqlDataSource.cs
- DataServiceProviderWrapper.cs
- MessageBuilder.cs
- Decimal.cs
- Registry.cs
- ActivityDesignerAccessibleObject.cs
- TextBoxBase.cs
- TabPanel.cs
- SizeConverter.cs
- OdbcCommand.cs