Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / infocard / Client / System / IdentityModel / Selectors / InfoCardRSAPKCS1KeyExchangeFormatter.cs / 1 / InfoCardRSAPKCS1KeyExchangeFormatter.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.IdentityModel.Selectors { using System; using System.Security.Cryptography; internal class InfoCardRSAPKCS1KeyExchangeFormatter : RSAPKCS1KeyExchangeFormatter { RSA m_rsaKey; // // public constructors // public InfoCardRSAPKCS1KeyExchangeFormatter() : base() {} public InfoCardRSAPKCS1KeyExchangeFormatter(AsymmetricAlgorithm key) : base( key ) { m_rsaKey = (RSA) key; } // // public methods // public override void SetKey( AsymmetricAlgorithm key ) { base.SetKey( key ); m_rsaKey = (RSA) key; } public override byte[] CreateKeyExchange(byte[] rgbData) { if ( null != m_rsaKey && m_rsaKey is InfoCardRSACryptoProvider) { return ((InfoCardRSACryptoProvider) m_rsaKey).Encrypt(rgbData, false); } else { return base.CreateKeyExchange( rgbData ); } } } } // 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
- LassoSelectionBehavior.cs
- BaseComponentEditor.cs
- Evidence.cs
- WindowsTooltip.cs
- WebBrowserNavigatedEventHandler.cs
- ByteStreamGeometryContext.cs
- WeakReferenceEnumerator.cs
- securestring.cs
- IOThreadScheduler.cs
- Thread.cs
- XmlWrappingReader.cs
- SoapCodeExporter.cs
- CommonProperties.cs
- Currency.cs
- SqlConnectionPoolGroupProviderInfo.cs
- SessionEndingEventArgs.cs
- Model3DGroup.cs
- CFGGrammar.cs
- storepermissionattribute.cs
- XsdDateTime.cs
- PageAdapter.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- QilParameter.cs
- XamlTreeBuilderBamlRecordWriter.cs
- OpenCollectionAsyncResult.cs
- Error.cs
- NumberSubstitution.cs
- IdentityModelStringsVersion1.cs
- KeyFrames.cs
- Frame.cs
- PointAnimationClockResource.cs
- DefaultExpressionVisitor.cs
- LinkedResource.cs
- FrameworkContentElement.cs
- IndicShape.cs
- Visual3D.cs
- Normalization.cs
- ControlDesignerState.cs
- FocusManager.cs
- HandlerElement.cs
- HttpCookiesSection.cs
- ImageKeyConverter.cs
- TrackingProvider.cs
- QueryOpcode.cs
- Encoder.cs
- ThreadExceptionEvent.cs
- StringToken.cs
- FileBasedResourceGroveler.cs
- CompositeFontFamily.cs
- DBSqlParserTableCollection.cs
- PeerPresenceInfo.cs
- SoapRpcMethodAttribute.cs
- xamlnodes.cs
- XmlNamespaceDeclarationsAttribute.cs
- BaseAddressPrefixFilterElementCollection.cs
- UniqueEventHelper.cs
- BindToObject.cs
- SessionConnectionReader.cs
- DataGridCellsPanel.cs
- DataGridRow.cs
- WebPartZoneBase.cs
- GeneratedContractType.cs
- CrossContextChannel.cs
- TextTreeNode.cs
- HandlerBase.cs
- HandlerFactoryWrapper.cs
- PerformanceCountersBase.cs
- SchemaMapping.cs
- GetReadStreamResult.cs
- GeometryDrawing.cs
- SelectionChangedEventArgs.cs
- TypedReference.cs
- StandardCommands.cs
- TakeOrSkipQueryOperator.cs
- ObjectDataSourceEventArgs.cs
- CopyOfAction.cs
- MetadataArtifactLoaderComposite.cs
- OleDbRowUpdatedEvent.cs
- NavigateUrlConverter.cs
- ToolStripItemCollection.cs
- IPAddressCollection.cs
- DesignerDeviceConfig.cs
- DataService.cs
- LocalFileSettingsProvider.cs
- VectorAnimation.cs
- PersonalizationState.cs
- UnsignedPublishLicense.cs
- XmlUnspecifiedAttribute.cs
- parserscommon.cs
- BoundsDrawingContextWalker.cs
- SoapParser.cs
- LinkButton.cs
- SerialReceived.cs
- FontSizeConverter.cs
- StringReader.cs
- HtmlToClrEventProxy.cs
- IIS7ConfigurationLoader.cs
- _emptywebproxy.cs
- DataGridViewCellCollection.cs
- SqlMetaData.cs