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
- FileDetails.cs
- Win32.cs
- DataBindingCollection.cs
- IdentityValidationException.cs
- ServiceThrottlingBehavior.cs
- SmtpTransport.cs
- DeflateStreamAsyncResult.cs
- Compilation.cs
- XmlElementList.cs
- EntityDataSourceQueryBuilder.cs
- DecoderReplacementFallback.cs
- SortFieldComparer.cs
- ReadOnlyHierarchicalDataSourceView.cs
- ZipIOCentralDirectoryBlock.cs
- DbFunctionCommandTree.cs
- ElementInit.cs
- JapaneseCalendar.cs
- WithStatement.cs
- Form.cs
- XmlExtensionFunction.cs
- Point3D.cs
- CounterCreationDataConverter.cs
- XpsTokenContext.cs
- SignedXml.cs
- TemplateControlCodeDomTreeGenerator.cs
- PackageProperties.cs
- SplitContainerDesigner.cs
- LoopExpression.cs
- DefaultValueConverter.cs
- ChangeDirector.cs
- MdiWindowListStrip.cs
- XmlSequenceWriter.cs
- DbMetaDataColumnNames.cs
- HtmlInputFile.cs
- QueryableFilterUserControl.cs
- OperationDescriptionCollection.cs
- PropertyIDSet.cs
- EventWaitHandle.cs
- DeviceContexts.cs
- RegexTypeEditor.cs
- DataTable.cs
- Matrix.cs
- ScrollBar.cs
- SystemColorTracker.cs
- MarkupCompilePass2.cs
- DeobfuscatingStream.cs
- _Connection.cs
- UrlPath.cs
- EventLogWatcher.cs
- XmlSchemaSimpleContent.cs
- InternalRelationshipCollection.cs
- FileDialog.cs
- SetterTriggerConditionValueConverter.cs
- HttpCacheVary.cs
- BamlRecordWriter.cs
- BasicHttpBindingCollectionElement.cs
- DelayedRegex.cs
- SafeNativeMethods.cs
- SortKey.cs
- ReadOnlyDictionary.cs
- ResourceDisplayNameAttribute.cs
- UIInitializationException.cs
- RequiredAttributeAttribute.cs
- AuthenticationModuleElement.cs
- OracleCommandBuilder.cs
- DataSourceViewSchemaConverter.cs
- Rotation3DAnimation.cs
- ButtonAutomationPeer.cs
- DataGridHeaderBorder.cs
- ReadOnlyDictionary.cs
- HandoffBehavior.cs
- InputLanguageManager.cs
- AsnEncodedData.cs
- StringStorage.cs
- UpdateExpressionVisitor.cs
- IPHostEntry.cs
- BufferedResponseStream.cs
- WinFormsComponentEditor.cs
- COM2TypeInfoProcessor.cs
- ExpressionWriter.cs
- WinCategoryAttribute.cs
- sqlinternaltransaction.cs
- Rotation3D.cs
- ProfileBuildProvider.cs
- DetailsViewRow.cs
- FilteredDataSetHelper.cs
- XmlArrayItemAttribute.cs
- SafeArrayTypeMismatchException.cs
- ComplusTypeValidator.cs
- COM2FontConverter.cs
- PropertyDescriptorCollection.cs
- GridViewDeletedEventArgs.cs
- AttributedMetaModel.cs
- SelectionGlyphBase.cs
- ViewKeyConstraint.cs
- DefaultAsyncDataDispatcher.cs
- XmlParserContext.cs
- ComContractElement.cs
- UserControlBuildProvider.cs
- WindowsListViewItem.cs