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
- WsatEtwTraceListener.cs
- Path.cs
- DataFormat.cs
- DependentList.cs
- SelectionProcessor.cs
- _DigestClient.cs
- TransformValueSerializer.cs
- WebBrowserBase.cs
- smtpconnection.cs
- BigInt.cs
- IncrementalCompileAnalyzer.cs
- AccessedThroughPropertyAttribute.cs
- validationstate.cs
- AmbientValueAttribute.cs
- Relationship.cs
- DataGridViewAdvancedBorderStyle.cs
- XmlEncodedRawTextWriter.cs
- BackEase.cs
- DataContractSerializerSection.cs
- DesignerForm.cs
- WebProxyScriptElement.cs
- ListBox.cs
- CalendarDesigner.cs
- bidPrivateBase.cs
- SingleAnimationBase.cs
- ReadWriteSpinLock.cs
- Mouse.cs
- ToolStripControlHost.cs
- FormsAuthenticationConfiguration.cs
- AutomationTextAttribute.cs
- EntityClassGenerator.cs
- FormViewAutoFormat.cs
- TraceUtility.cs
- Focus.cs
- GenericAuthenticationEventArgs.cs
- XPathDocumentNavigator.cs
- Quaternion.cs
- UITypeEditor.cs
- OleDbTransaction.cs
- JoinElimination.cs
- AutoCompleteStringCollection.cs
- CodeNamespaceImportCollection.cs
- Error.cs
- Misc.cs
- JavaScriptSerializer.cs
- QilFunction.cs
- ProxyGenerator.cs
- Site.cs
- AsyncOperationManager.cs
- COM2PropertyDescriptor.cs
- MexHttpBindingCollectionElement.cs
- GridEntryCollection.cs
- SQLDecimalStorage.cs
- Stroke2.cs
- FormatVersion.cs
- Control.cs
- Wizard.cs
- SeparatorAutomationPeer.cs
- TagNameToTypeMapper.cs
- MetadataSection.cs
- DataControlReference.cs
- CultureSpecificCharacterBufferRange.cs
- MemberInfoSerializationHolder.cs
- Deflater.cs
- TcpConnectionPoolSettings.cs
- SafeCancelMibChangeNotify.cs
- SQLDecimalStorage.cs
- ArrangedElement.cs
- SqlClientWrapperSmiStream.cs
- XmlNamespaceMappingCollection.cs
- RoleServiceManager.cs
- TemplateAction.cs
- DataException.cs
- CopyOnWriteList.cs
- BinHexDecoder.cs
- RotateTransform3D.cs
- Transform3DGroup.cs
- MailAddressCollection.cs
- InheritablePropertyChangeInfo.cs
- RawStylusInputCustomData.cs
- ObjectDataSourceView.cs
- OracleConnectionString.cs
- StagingAreaInputItem.cs
- BaseAddressElement.cs
- SpecularMaterial.cs
- TriggerActionCollection.cs
- ProfileGroupSettingsCollection.cs
- XPathDocumentNavigator.cs
- SqlNotificationRequest.cs
- XmlAttributeCache.cs
- RemoteWebConfigurationHostServer.cs
- AnimationException.cs
- TemplateBuilder.cs
- SpinWait.cs
- TextChange.cs
- EventsTab.cs
- NullRuntimeConfig.cs
- PropertySourceInfo.cs
- EncryptedPackageFilter.cs
- DataStorage.cs