Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / WCF / infocard / Client / System / IdentityModel / Selectors / InfoCardRSAOAEPKeyExchangeFormatter.cs / 1305376 / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CanExecuteRoutedEventArgs.cs
- Int32Animation.cs
- Preprocessor.cs
- X509Chain.cs
- ImageCodecInfoPrivate.cs
- WindowsRichEditRange.cs
- CodeDomConfigurationHandler.cs
- CodeDirectiveCollection.cs
- SqlCharStream.cs
- RequestStatusBarUpdateEventArgs.cs
- RelationshipConverter.cs
- HorizontalAlignConverter.cs
- ProgressChangedEventArgs.cs
- ClientConfigPaths.cs
- HttpCapabilitiesBase.cs
- StringCollection.cs
- SpinLock.cs
- RelationshipWrapper.cs
- QuestionEventArgs.cs
- ConnectionManagementSection.cs
- Codec.cs
- CopyAction.cs
- TemplateContentLoader.cs
- FacetEnabledSchemaElement.cs
- FileSystemWatcher.cs
- RangeValidator.cs
- SHA256Managed.cs
- SimpleHandlerBuildProvider.cs
- MetaType.cs
- PostBackOptions.cs
- InputLanguage.cs
- CodeMemberField.cs
- SHA1CryptoServiceProvider.cs
- ImageDrawing.cs
- SR.cs
- CanonicalXml.cs
- UnsafeMethods.cs
- StatusStrip.cs
- FormViewUpdatedEventArgs.cs
- XmlAttributes.cs
- Emitter.cs
- Predicate.cs
- KnownTypeHelper.cs
- EncodingDataItem.cs
- PolyLineSegment.cs
- GuidelineSet.cs
- JoinCqlBlock.cs
- QueryableDataSourceHelper.cs
- DataServiceEntityAttribute.cs
- HttpPostLocalhostServerProtocol.cs
- ResourcePool.cs
- SortedList.cs
- PropertyCondition.cs
- EncodingFallbackAwareXmlTextWriter.cs
- HttpBindingExtension.cs
- AccessText.cs
- ScrollItemPattern.cs
- EntityDesignerUtils.cs
- ImageField.cs
- MasterPageBuildProvider.cs
- RefType.cs
- Function.cs
- RemoteWebConfigurationHostServer.cs
- configsystem.cs
- SslStream.cs
- FileDialogPermission.cs
- Preprocessor.cs
- TreeWalkHelper.cs
- CallbackValidatorAttribute.cs
- InkCollectionBehavior.cs
- CorruptingExceptionCommon.cs
- DependencyObjectPropertyDescriptor.cs
- httpapplicationstate.cs
- WebPartUserCapability.cs
- NoneExcludedImageIndexConverter.cs
- SecurityChannelFaultConverter.cs
- Interfaces.cs
- RequestCache.cs
- AppDomainFactory.cs
- CompoundFileDeflateTransform.cs
- SecurityContext.cs
- SocketAddress.cs
- TextServicesCompartment.cs
- WebCategoryAttribute.cs
- StringExpressionSet.cs
- SafeArrayTypeMismatchException.cs
- ServiceMoniker.cs
- LocalizationParserHooks.cs
- DataKey.cs
- ConcatQueryOperator.cs
- AnnotationService.cs
- ListParagraph.cs
- XmlCountingReader.cs
- SpellerError.cs
- XmlImplementation.cs
- XmlDataSourceNodeDescriptor.cs
- DateTimeValueSerializerContext.cs
- DataGridViewColumnEventArgs.cs
- DataGridViewRowsRemovedEventArgs.cs
- CommandHelpers.cs