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
- XslTransform.cs
- _LazyAsyncResult.cs
- CommandID.cs
- DispatcherExceptionEventArgs.cs
- SortedList.cs
- WebReference.cs
- WindowsEditBox.cs
- OleDbReferenceCollection.cs
- TimeStampChecker.cs
- _TLSstream.cs
- TryCatch.cs
- NameValuePair.cs
- IPGlobalProperties.cs
- EntryWrittenEventArgs.cs
- EntitySqlQueryCacheEntry.cs
- CompositeCollection.cs
- Message.cs
- XamlInterfaces.cs
- LastQueryOperator.cs
- IisTraceListener.cs
- TextEffect.cs
- HttpWebResponse.cs
- EntityKey.cs
- ConstNode.cs
- QilUnary.cs
- XmlSecureResolver.cs
- WmlTextViewAdapter.cs
- RelationshipFixer.cs
- ObfuscateAssemblyAttribute.cs
- Object.cs
- SignatureResourceHelper.cs
- ReflectionServiceProvider.cs
- ItemsChangedEventArgs.cs
- AlphaSortedEnumConverter.cs
- BasicExpressionVisitor.cs
- DragDropHelper.cs
- CorrelationToken.cs
- WinOEToolBoxItem.cs
- InvalidCastException.cs
- Renderer.cs
- DataGridViewColumnConverter.cs
- DetailsViewDeleteEventArgs.cs
- BreakSafeBase.cs
- EventHandlersDesigner.cs
- RootBuilder.cs
- Imaging.cs
- AsymmetricSignatureDeformatter.cs
- ControlCollection.cs
- PropertyGrid.cs
- SmiContextFactory.cs
- ScriptingWebServicesSectionGroup.cs
- Style.cs
- NativeMethods.cs
- ResourceAssociationSetEnd.cs
- SortableBindingList.cs
- StateChangeEvent.cs
- DnsPermission.cs
- XmlILModule.cs
- XamlFilter.cs
- X509Extension.cs
- UrlMapping.cs
- EllipseGeometry.cs
- TypeConverterAttribute.cs
- QilParameter.cs
- Connector.xaml.cs
- URLString.cs
- AppSettingsExpressionBuilder.cs
- ValidationErrorCollection.cs
- DataGridViewCellCollection.cs
- CodePageUtils.cs
- EFColumnProvider.cs
- EmptyImpersonationContext.cs
- MonitoringDescriptionAttribute.cs
- EditBehavior.cs
- Attribute.cs
- DescendantBaseQuery.cs
- FamilyMapCollection.cs
- ServiceProviders.cs
- PassportIdentity.cs
- XmlCharCheckingReader.cs
- SemanticResultKey.cs
- ConstraintConverter.cs
- DataColumnMappingCollection.cs
- TextUtf8RawTextWriter.cs
- UnsafeNativeMethods.cs
- JoinCqlBlock.cs
- LocalizableResourceBuilder.cs
- DynamicAttribute.cs
- PagePropertiesChangingEventArgs.cs
- MatrixStack.cs
- NativeDirectoryServicesQueryAPIs.cs
- KnownBoxes.cs
- CacheAxisQuery.cs
- DataSvcMapFile.cs
- GPPOINT.cs
- ToolStripContentPanelDesigner.cs
- ListMarkerSourceInfo.cs
- PowerModeChangedEventArgs.cs
- HttpChannelListener.cs
- ApplicationException.cs