Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / infocard / Client / System / IdentityModel / Selectors / InfoCardRSAPKCS1KeyExchangeDeformatter.cs / 1 / 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. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- InputLanguage.cs
- PlatformCulture.cs
- MatchingStyle.cs
- SiteMapDataSourceView.cs
- StringWriter.cs
- DrawTreeNodeEventArgs.cs
- CollectionChangedEventManager.cs
- WindowsListViewSubItem.cs
- EventProxy.cs
- Axis.cs
- TdsParserStateObject.cs
- XmlNavigatorStack.cs
- UdpReplyToBehavior.cs
- XmlSchemaSimpleTypeRestriction.cs
- PermissionSet.cs
- ResizeGrip.cs
- SqlDataSourceCache.cs
- Composition.cs
- NavigationWindowAutomationPeer.cs
- ValidationErrorCollection.cs
- WriteFileContext.cs
- SpecialNameAttribute.cs
- BamlCollectionHolder.cs
- XmlChoiceIdentifierAttribute.cs
- ChineseLunisolarCalendar.cs
- IconConverter.cs
- Bidi.cs
- FileDialogCustomPlace.cs
- ListGeneralPage.cs
- FixedHyperLink.cs
- ErrorHandlerModule.cs
- BaseTemplateParser.cs
- TableSectionStyle.cs
- GeneratedCodeAttribute.cs
- GacUtil.cs
- DelegateArgumentValue.cs
- VisualBrush.cs
- Bezier.cs
- PointAnimationClockResource.cs
- ValidationRule.cs
- ProtocolsConfigurationHandler.cs
- WhitespaceRule.cs
- StringUtil.cs
- ApplicationManager.cs
- XPathChildIterator.cs
- XamlRtfConverter.cs
- XmlAttributes.cs
- CalendarDateChangedEventArgs.cs
- StringStorage.cs
- ActivationArguments.cs
- AuthenticationModulesSection.cs
- EmptyArray.cs
- SerTrace.cs
- Int64KeyFrameCollection.cs
- OdbcParameter.cs
- Adorner.cs
- ButtonColumn.cs
- BufferedWebEventProvider.cs
- EmbeddedMailObject.cs
- PackWebRequest.cs
- CultureSpecificStringDictionary.cs
- GenericUriParser.cs
- ValidatorCollection.cs
- CodeSnippetStatement.cs
- SrgsElementFactoryCompiler.cs
- FormViewUpdateEventArgs.cs
- isolationinterop.cs
- FileDetails.cs
- TreeViewAutomationPeer.cs
- Grid.cs
- TextBoxBase.cs
- XmlTypeAttribute.cs
- ImageAutomationPeer.cs
- HttpCacheVary.cs
- ViewStateChangedEventArgs.cs
- securestring.cs
- Ray3DHitTestResult.cs
- FacetDescriptionElement.cs
- FileDialogCustomPlacesCollection.cs
- PreloadedPackages.cs
- XslNumber.cs
- XmlHierarchyData.cs
- RectAnimation.cs
- NetSectionGroup.cs
- Pool.cs
- QueryOperatorEnumerator.cs
- CodeTypeParameter.cs
- IRCollection.cs
- Transform3D.cs
- PeerTransportCredentialType.cs
- FusionWrap.cs
- SymbolMethod.cs
- ColorKeyFrameCollection.cs
- NavigationProperty.cs
- GlyphingCache.cs
- _Events.cs
- Attribute.cs
- HighlightOverlayGlyph.cs
- Convert.cs
- DataGridSortCommandEventArgs.cs