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
- compensatingcollection.cs
- RadioButton.cs
- DataGridViewRow.cs
- SafeNativeMethods.cs
- PointLight.cs
- WebRequestModuleElement.cs
- DtrList.cs
- ElementFactory.cs
- Cursor.cs
- SecurityPolicySection.cs
- FontSource.cs
- ClientType.cs
- validationstate.cs
- EntityProviderFactory.cs
- CollectionDataContractAttribute.cs
- FixedSOMFixedBlock.cs
- HttpMethodConstraint.cs
- AssemblyUtil.cs
- SmtpNetworkElement.cs
- RegularExpressionValidator.cs
- DescendantQuery.cs
- XComponentModel.cs
- SqlExpressionNullability.cs
- XmlTextAttribute.cs
- XmlNamespaceMapping.cs
- HMAC.cs
- AssemblyAssociatedContentFileAttribute.cs
- LocalValueEnumerator.cs
- BitArray.cs
- ZipIOLocalFileDataDescriptor.cs
- NullableDecimalAverageAggregationOperator.cs
- IsolatedStoragePermission.cs
- CollectionEditorDialog.cs
- dsa.cs
- TextServicesDisplayAttribute.cs
- IMembershipProvider.cs
- TransformedBitmap.cs
- MimeWriter.cs
- StreamResourceInfo.cs
- DataGridCaption.cs
- Activator.cs
- Query.cs
- XmlResolver.cs
- CodeEntryPointMethod.cs
- AlgoModule.cs
- SqlSupersetValidator.cs
- SafeRightsManagementQueryHandle.cs
- IntSecurity.cs
- VisualStyleInformation.cs
- XmlChoiceIdentifierAttribute.cs
- SqlDataSourceAdvancedOptionsForm.cs
- StringConcat.cs
- ECDiffieHellman.cs
- ColumnHeader.cs
- XamlFilter.cs
- _NegoStream.cs
- CookielessData.cs
- InkCanvasFeedbackAdorner.cs
- StrokeSerializer.cs
- MDIClient.cs
- OdbcException.cs
- DependencyObjectType.cs
- TemplateField.cs
- DocumentCollection.cs
- QueryStringParameter.cs
- TemplatePropertyEntry.cs
- ReachSerializationUtils.cs
- NamespaceMapping.cs
- ProviderCollection.cs
- ServiceHttpModule.cs
- QueryStringHandler.cs
- SimpleMailWebEventProvider.cs
- DynamicILGenerator.cs
- XmlProcessingInstruction.cs
- ConfigUtil.cs
- PageAsyncTaskManager.cs
- FormViewDesigner.cs
- Hash.cs
- ScriptModule.cs
- ProtocolElement.cs
- AsyncResult.cs
- QfeChecker.cs
- LinqDataSourceDeleteEventArgs.cs
- MLangCodePageEncoding.cs
- ProfileSettings.cs
- RSAPKCS1SignatureDeformatter.cs
- DataGridViewCheckBoxCell.cs
- MouseCaptureWithinProperty.cs
- KeyManager.cs
- AssemblyAttributesGoHere.cs
- RawTextInputReport.cs
- Repeater.cs
- DataGridViewCellCollection.cs
- ElementProxy.cs
- TaskFileService.cs
- CodeMemberProperty.cs
- IndexedGlyphRun.cs
- TextSimpleMarkerProperties.cs
- TextHintingModeValidation.cs
- UrlRoutingModule.cs