Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / infocard / Client / System / IdentityModel / Selectors / InfoCardRSAOAEPKeyExchangeDeformatter.cs / 1 / 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. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- VsPropertyGrid.cs
- SqlLiftWhereClauses.cs
- FontUnit.cs
- XmlAtomicValue.cs
- NavigationHelper.cs
- CultureInfo.cs
- Brush.cs
- UtilityExtension.cs
- DrawingImage.cs
- CurrencyWrapper.cs
- WindowsNonControl.cs
- HttpApplication.cs
- DesignTimeSiteMapProvider.cs
- SspiNegotiationTokenAuthenticatorState.cs
- EncoderReplacementFallback.cs
- AutoSizeComboBox.cs
- XmlWellformedWriter.cs
- __ConsoleStream.cs
- UserControlCodeDomTreeGenerator.cs
- EventSinkHelperWriter.cs
- DrawingAttributesDefaultValueFactory.cs
- TextPointerBase.cs
- RelationshipEndCollection.cs
- RSACryptoServiceProvider.cs
- SmtpTransport.cs
- FormattedTextSymbols.cs
- DocumentOrderQuery.cs
- WizardStepBase.cs
- Vector3D.cs
- TimeIntervalCollection.cs
- PropVariant.cs
- AutomationProperties.cs
- AsynchronousChannelMergeEnumerator.cs
- IList.cs
- CodePrimitiveExpression.cs
- UserNamePasswordValidator.cs
- EncryptedData.cs
- BooleanKeyFrameCollection.cs
- IsolatedStoragePermission.cs
- SoapAttributeAttribute.cs
- PageRequestManager.cs
- WebSysDisplayNameAttribute.cs
- GridViewEditEventArgs.cs
- StatusBar.cs
- LoadedOrUnloadedOperation.cs
- DocumentPageViewAutomationPeer.cs
- WebPartDescription.cs
- NameSpaceExtractor.cs
- CriticalFinalizerObject.cs
- Splitter.cs
- _RequestCacheProtocol.cs
- WebPartHeaderCloseVerb.cs
- PersonalizationAdministration.cs
- RangeBase.cs
- NullableDecimalSumAggregationOperator.cs
- SystemDropShadowChrome.cs
- MailWebEventProvider.cs
- Marshal.cs
- GroupDescription.cs
- DoubleConverter.cs
- CaseCqlBlock.cs
- WmlCommandAdapter.cs
- Pen.cs
- Memoizer.cs
- TwoPhaseCommit.cs
- DateTimeConstantAttribute.cs
- Font.cs
- Point3DCollection.cs
- InvokeMemberBinder.cs
- AncestorChangedEventArgs.cs
- OpenTypeLayoutCache.cs
- CharAnimationBase.cs
- AttachedAnnotationChangedEventArgs.cs
- ArrayItemReference.cs
- XmlSchemaParticle.cs
- XmlSchemaValidator.cs
- TableSectionStyle.cs
- DynamicRendererThreadManager.cs
- KoreanLunisolarCalendar.cs
- GridItemCollection.cs
- SocketException.cs
- ServerType.cs
- Html32TextWriter.cs
- HwndKeyboardInputProvider.cs
- TextChangedEventArgs.cs
- EllipseGeometry.cs
- HybridObjectCache.cs
- UrlPath.cs
- DetailsView.cs
- PersonalizationProvider.cs
- _ConnectOverlappedAsyncResult.cs
- CompositionAdorner.cs
- ScrollChrome.cs
- FormViewPageEventArgs.cs
- ToolStripItemRenderEventArgs.cs
- Command.cs
- ActivityXRefConverter.cs
- PartialCachingControl.cs
- CodeVariableReferenceExpression.cs
- XmlSerializer.cs