Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / WCF / infocard / Client / System / IdentityModel / Selectors / InfoCardRSAOAEPKeyExchangeDeformatter.cs / 1305376 / InfoCardRSAOAEPKeyExchangeDeformatter.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.IdentityModel.Selectors { using System; using System.Security.Cryptography; internal class InfoCardRSAOAEPKeyExchangeDeformatter : RSAOAEPKeyExchangeDeformatter { private RSA m_rsaKey; // RSA Key value to do decrypt operation // // public constructors // public InfoCardRSAOAEPKeyExchangeDeformatter() : base() {} public InfoCardRSAOAEPKeyExchangeDeformatter( AsymmetricAlgorithm key ) : base( key ) { m_rsaKey = (RSA) key; } // // public methods // public override byte[] DecryptKeyExchange( byte[] rgbData ) { if ( null != m_rsaKey && m_rsaKey is InfoCardRSACryptoProvider ) { return ((InfoCardRSACryptoProvider) m_rsaKey).Decrypt( rgbData, true ); } else { return base.DecryptKeyExchange( rgbData ); } } 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
- UndoManager.cs
- BufferedWebEventProvider.cs
- TypeGeneratedEventArgs.cs
- FlowPosition.cs
- ParallelForEach.cs
- ChildrenQuery.cs
- OrderPreservingSpoolingTask.cs
- ViewValidator.cs
- securitycriticaldataClass.cs
- TimeSpanOrInfiniteValidator.cs
- _SpnDictionary.cs
- HttpHeaderCollection.cs
- SoapDocumentMethodAttribute.cs
- NullableConverter.cs
- Renderer.cs
- XmlBoundElement.cs
- ValidationResult.cs
- HtmlAnchor.cs
- SecurityTokenAuthenticator.cs
- DataGridViewImageColumn.cs
- DataRowCollection.cs
- ClientRuntimeConfig.cs
- basecomparevalidator.cs
- GeometryDrawing.cs
- SqlBinder.cs
- HyperLinkDesigner.cs
- MoveSizeWinEventHandler.cs
- PersianCalendar.cs
- ResourcesBuildProvider.cs
- PermissionAttributes.cs
- WindowsStatusBar.cs
- ConstructorNeedsTagAttribute.cs
- RegexBoyerMoore.cs
- XmlSchemaProviderAttribute.cs
- safex509handles.cs
- WindowsListViewSubItem.cs
- BatchParser.cs
- RoutedUICommand.cs
- ConnectionPointCookie.cs
- TraceHandler.cs
- ImageListStreamer.cs
- GenerateHelper.cs
- SerializationBinder.cs
- Invariant.cs
- shaperfactoryquerycachekey.cs
- wmiprovider.cs
- NavigationProgressEventArgs.cs
- DrawingContext.cs
- ReflectionPermission.cs
- QilReplaceVisitor.cs
- IdentityModelStringsVersion1.cs
- ResolveNextArgumentWorkItem.cs
- ZipFileInfo.cs
- SendActivityValidator.cs
- DispatcherOperation.cs
- CheckBoxRenderer.cs
- TransactedReceiveData.cs
- Selection.cs
- EditorServiceContext.cs
- SocketAddress.cs
- CollectionBuilder.cs
- ProfilePropertySettings.cs
- DesignerSerializationOptionsAttribute.cs
- HttpPostedFile.cs
- XhtmlStyleClass.cs
- StatusBarPanelClickEvent.cs
- XPathMessageFilterElementComparer.cs
- ValueOfAction.cs
- HMAC.cs
- WebHttpEndpointElement.cs
- ListViewItem.cs
- LogicalChannelCollection.cs
- TimeSpanConverter.cs
- NullableIntAverageAggregationOperator.cs
- StandardOleMarshalObject.cs
- NavigationExpr.cs
- DataGridrowEditEndingEventArgs.cs
- MethodImplAttribute.cs
- MissingMemberException.cs
- EventMappingSettings.cs
- ActionItem.cs
- PathSegment.cs
- PersonalizationDictionary.cs
- ContentHostHelper.cs
- AlphaSortedEnumConverter.cs
- HelpProvider.cs
- XamlNamespaceHelper.cs
- MailAddressCollection.cs
- UIElementParaClient.cs
- WindowsListViewScroll.cs
- RecipientInfo.cs
- odbcmetadatacolumnnames.cs
- RenderingBiasValidation.cs
- OletxDependentTransaction.cs
- DataGridViewLinkColumn.cs
- GenericIdentity.cs
- Oid.cs
- AudioLevelUpdatedEventArgs.cs
- CodeRegionDirective.cs
- Int32AnimationUsingKeyFrames.cs