Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / WCF / infocard / Client / System / IdentityModel / Selectors / InfoCardRSAPKCS1KeyExchangeDeformatter.cs / 1305376 / InfoCardRSAPKCS1KeyExchangeDeformatter.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.IdentityModel.Selectors { using System; using System.Security.Cryptography; internal class InfoCardRSAPKCS1KeyExchangeDeformatter : RSAPKCS1KeyExchangeDeformatter { RSA m_rsaKey; // Constructors public InfoCardRSAPKCS1KeyExchangeDeformatter() {} public InfoCardRSAPKCS1KeyExchangeDeformatter( AsymmetricAlgorithm key ) : base( key ) { m_rsaKey = (RSA) key; } // // public methods // public override byte[] DecryptKeyExchange(byte[] rgbIn) { if ( null != m_rsaKey && m_rsaKey is InfoCardRSACryptoProvider) { return ((InfoCardRSACryptoProvider) m_rsaKey).Decrypt(rgbIn, false); } else { return base.DecryptKeyExchange( rgbIn ); } } 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
- SqlVisitor.cs
- EventDescriptor.cs
- CompiledXpathExpr.cs
- MessageQueuePermissionEntry.cs
- Accessors.cs
- HtmlInputHidden.cs
- SectionInformation.cs
- Brushes.cs
- SessionIDManager.cs
- ButtonStandardAdapter.cs
- EventLogPermissionHolder.cs
- ProgressBar.cs
- EnumValidator.cs
- LinqDataSourceContextEventArgs.cs
- MachineSettingsSection.cs
- Scheduler.cs
- DynamicActivity.cs
- QuaternionRotation3D.cs
- ConditionalBranch.cs
- SchemaComplexType.cs
- NonParentingControl.cs
- ProviderUtil.cs
- WhitespaceRule.cs
- HMACSHA256.cs
- DataPagerCommandEventArgs.cs
- DrawingBrush.cs
- WebServiceBindingAttribute.cs
- SharedConnectionListener.cs
- NativeMethods.cs
- ObjectResult.cs
- XmlObjectSerializerContext.cs
- JsonReaderDelegator.cs
- MetadataExporter.cs
- DataGridPageChangedEventArgs.cs
- PixelFormat.cs
- ColorConvertedBitmap.cs
- DataGridViewElement.cs
- MessagingDescriptionAttribute.cs
- SystemColorTracker.cs
- FormParameter.cs
- XhtmlTextWriter.cs
- DataGridColumnEventArgs.cs
- RightsManagementErrorHandler.cs
- FullTextBreakpoint.cs
- LinkedDataMemberFieldEditor.cs
- AdPostCacheSubstitution.cs
- TagMapInfo.cs
- TemplateBindingExpressionConverter.cs
- JsonWriter.cs
- ScrollChrome.cs
- DesignBindingConverter.cs
- WebUtil.cs
- LicFileLicenseProvider.cs
- DependencyPropertyKind.cs
- BufferBuilder.cs
- SqlLiftWhereClauses.cs
- ProfileSettings.cs
- RectConverter.cs
- FillBehavior.cs
- PointIndependentAnimationStorage.cs
- ScriptingProfileServiceSection.cs
- MD5.cs
- AnchoredBlock.cs
- JavaScriptString.cs
- BuilderPropertyEntry.cs
- HashHelpers.cs
- DeviceFiltersSection.cs
- CryptoHandle.cs
- ShapeTypeface.cs
- Font.cs
- SqlBuilder.cs
- Literal.cs
- AccessViolationException.cs
- XPathArrayIterator.cs
- IndividualDeviceConfig.cs
- CssClassPropertyAttribute.cs
- NullPackagingPolicy.cs
- LineVisual.cs
- XmlComplianceUtil.cs
- OperationContextScope.cs
- BorderGapMaskConverter.cs
- ResourceAssociationType.cs
- MouseOverProperty.cs
- IOThreadScheduler.cs
- Literal.cs
- SchemaMapping.cs
- ThicknessAnimationBase.cs
- SrgsRulesCollection.cs
- Converter.cs
- WmpBitmapEncoder.cs
- DataGridViewColumn.cs
- UpdateDelegates.Generated.cs
- DataPagerFieldCommandEventArgs.cs
- CompiledRegexRunner.cs
- EntityDataSourceColumn.cs
- RulePatternOps.cs
- MimeTypeAttribute.cs
- Size3D.cs
- LayoutEngine.cs
- FontWeights.cs