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
- BuildTopDownAttribute.cs
- UnsafeNativeMethods.cs
- Vector3DConverter.cs
- Converter.cs
- TextAction.cs
- FormsAuthenticationTicket.cs
- SqlCachedBuffer.cs
- BigInt.cs
- EncryptedKey.cs
- JoinGraph.cs
- DesignTimeVisibleAttribute.cs
- HostSecurityManager.cs
- ValidationEventArgs.cs
- JsonMessageEncoderFactory.cs
- MethodInfo.cs
- followingsibling.cs
- Point3DCollection.cs
- TabletDevice.cs
- BinaryMethodMessage.cs
- InternalConfigSettingsFactory.cs
- FunctionDescription.cs
- TextTreeUndoUnit.cs
- XmlSchemaSimpleContentRestriction.cs
- HijriCalendar.cs
- ControlBindingsConverter.cs
- PrintDialogDesigner.cs
- ArgumentOutOfRangeException.cs
- SqlComparer.cs
- KeyedCollection.cs
- CodeDOMProvider.cs
- VideoDrawing.cs
- HttpCacheParams.cs
- XPathNavigatorKeyComparer.cs
- DesignerProperties.cs
- ToolStripPanelRenderEventArgs.cs
- RightNameExpirationInfoPair.cs
- XmlQualifiedNameTest.cs
- SystemSounds.cs
- Pkcs7Signer.cs
- LinkedResource.cs
- ObjectCloneHelper.cs
- GeneralTransformGroup.cs
- AppearanceEditorPart.cs
- IsolatedStorageFilePermission.cs
- IntSecurity.cs
- SecurityResources.cs
- BitmapImage.cs
- DataGridViewColumnConverter.cs
- DocComment.cs
- TokenBasedSetEnumerator.cs
- EntityDataSourceWizardForm.cs
- ReliableRequestSessionChannel.cs
- HttpProfileGroupBase.cs
- ReadOnlyPermissionSet.cs
- DataAdapter.cs
- ObjectStateEntry.cs
- LinqDataSourceDeleteEventArgs.cs
- EmbeddedMailObject.cs
- PointIndependentAnimationStorage.cs
- SignatureToken.cs
- Binding.cs
- hwndwrapper.cs
- HtmlInputButton.cs
- HostingEnvironmentSection.cs
- ToolStripRendererSwitcher.cs
- ListBindingConverter.cs
- FormViewDeletedEventArgs.cs
- HostingPreferredMapPath.cs
- TypeSystemHelpers.cs
- EncoderParameters.cs
- AssertFilter.cs
- AppModelKnownContentFactory.cs
- EntityDataSourceState.cs
- CommandConverter.cs
- TracingConnectionListener.cs
- HwndKeyboardInputProvider.cs
- AsymmetricSignatureFormatter.cs
- EmptyCollection.cs
- XmlTextAttribute.cs
- FastEncoderWindow.cs
- DataServiceExpressionVisitor.cs
- TransformerTypeCollection.cs
- IFlowDocumentViewer.cs
- XpsStructure.cs
- BuildProviderCollection.cs
- PartBasedPackageProperties.cs
- HtmlButton.cs
- RecordBuilder.cs
- IdentityModelStringsVersion1.cs
- JoinCqlBlock.cs
- DbXmlEnabledProviderManifest.cs
- Root.cs
- CodeTypeParameterCollection.cs
- ExpressionBindings.cs
- HostedTransportConfigurationBase.cs
- NamespaceCollection.cs
- ParagraphResult.cs
- SafeNativeMethods.cs
- ListControlBoundActionList.cs
- HtmlTernaryTree.cs