Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / infocard / Client / System / IdentityModel / Selectors / InfoCardRSAOAEPKeyExchangeFormatter.cs / 1 / InfoCardRSAOAEPKeyExchangeFormatter.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.IdentityModel.Selectors { using System; using System.Security.Cryptography; internal class InfoCardRSAOAEPKeyExchangeFormatter : RSAOAEPKeyExchangeFormatter { private RSA m_rsaKey; // // public constructors // public InfoCardRSAOAEPKeyExchangeFormatter() : base() {} public InfoCardRSAOAEPKeyExchangeFormatter( 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, true); } 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
- RuleSetBrowserDialog.cs
- SynchronizedDisposablePool.cs
- HttpResponseHeader.cs
- Proxy.cs
- QueryStringParameter.cs
- DBConnection.cs
- RelationshipFixer.cs
- CorrelationManager.cs
- ItemsChangedEventArgs.cs
- SafeFileMapViewHandle.cs
- XmlSignatureProperties.cs
- DataList.cs
- TextServicesLoader.cs
- FeatureManager.cs
- StylusPoint.cs
- HtmlElementEventArgs.cs
- FloaterParagraph.cs
- BoundField.cs
- MenuScrollingVisibilityConverter.cs
- DataGridViewDataErrorEventArgs.cs
- ArrayElementGridEntry.cs
- SafeUserTokenHandle.cs
- AuthenticationManager.cs
- Misc.cs
- FolderLevelBuildProviderAppliesToAttribute.cs
- BindingCollectionElement.cs
- SoapElementAttribute.cs
- ScrollProviderWrapper.cs
- QuotedPrintableStream.cs
- ConnectionsZone.cs
- CodeTypeMember.cs
- AsyncPostBackErrorEventArgs.cs
- GroupBoxRenderer.cs
- BindableTemplateBuilder.cs
- ListControlBuilder.cs
- IntSecurity.cs
- DrawingContextWalker.cs
- XamlPathDataSerializer.cs
- HitTestParameters.cs
- Effect.cs
- RequestCachePolicyConverter.cs
- VariableQuery.cs
- DoubleStorage.cs
- BitmapSourceSafeMILHandle.cs
- SchemaType.cs
- DBCommand.cs
- Timeline.cs
- XPathAncestorQuery.cs
- UIElementIsland.cs
- NextPreviousPagerField.cs
- AsymmetricSignatureDeformatter.cs
- KeyFrames.cs
- TcpConnectionPoolSettingsElement.cs
- FixedElement.cs
- SaveCardRequest.cs
- Bidi.cs
- HostingEnvironmentSection.cs
- BackgroundWorker.cs
- UnsafePeerToPeerMethods.cs
- XmlSchemaSimpleContentRestriction.cs
- IncrementalReadDecoders.cs
- Trace.cs
- ISAPIWorkerRequest.cs
- Funcletizer.cs
- printdlgexmarshaler.cs
- EntityConnectionStringBuilder.cs
- InvalidOperationException.cs
- DES.cs
- UrlPropertyAttribute.cs
- odbcmetadatafactory.cs
- DbConnectionInternal.cs
- ISAPIWorkerRequest.cs
- SplashScreenNativeMethods.cs
- OutputCacheProfile.cs
- SafeUserTokenHandle.cs
- DateTimeValueSerializer.cs
- DynamicVirtualDiscoSearcher.cs
- ProcessProtocolHandler.cs
- DesignerUtility.cs
- CustomPopupPlacement.cs
- IndexedGlyphRun.cs
- CounterCreationDataCollection.cs
- ArcSegment.cs
- EntityDescriptor.cs
- AsymmetricSignatureDeformatter.cs
- RuleSet.cs
- RepeaterItemEventArgs.cs
- ScriptModule.cs
- WebResourceAttribute.cs
- SecurityManager.cs
- New.cs
- OleDbRowUpdatedEvent.cs
- ListViewHitTestInfo.cs
- ValidatedControlConverter.cs
- WindowHideOrCloseTracker.cs
- MimeTypePropertyAttribute.cs
- ProvidersHelper.cs
- AnnotationAuthorChangedEventArgs.cs
- XmlSchemaNotation.cs
- ZipIOCentralDirectoryFileHeader.cs