Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / infocard / Client / System / IdentityModel / Selectors / InfoCardRSAPKCS1KeyExchangeFormatter.cs / 1 / InfoCardRSAPKCS1KeyExchangeFormatter.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.IdentityModel.Selectors { using System; using System.Security.Cryptography; internal class InfoCardRSAPKCS1KeyExchangeFormatter : RSAPKCS1KeyExchangeFormatter { RSA m_rsaKey; // // public constructors // public InfoCardRSAPKCS1KeyExchangeFormatter() : base() {} public InfoCardRSAPKCS1KeyExchangeFormatter(AsymmetricAlgorithm key) : base( key ) { m_rsaKey = (RSA) key; } // // public methods // public override void SetKey( AsymmetricAlgorithm key ) { base.SetKey( key ); m_rsaKey = (RSA) key; } public override byte[] CreateKeyExchange(byte[] rgbData) { if ( null != m_rsaKey && m_rsaKey is InfoCardRSACryptoProvider) { return ((InfoCardRSACryptoProvider) m_rsaKey).Encrypt(rgbData, false); } else { return base.CreateKeyExchange( rgbData ); } } } } // 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
- TrayIconDesigner.cs
- ScrollContentPresenter.cs
- UniqueIdentifierService.cs
- Int32Rect.cs
- ExtensionElementCollection.cs
- ExpressionBuilder.cs
- KeyProperty.cs
- SecurityHelper.cs
- ProcessHostConfigUtils.cs
- FrugalMap.cs
- DefaultAsyncDataDispatcher.cs
- SkewTransform.cs
- BuildResult.cs
- documentsequencetextpointer.cs
- GridViewRowEventArgs.cs
- ActivityDesignerHighlighter.cs
- WindowsComboBox.cs
- TabItem.cs
- DataTableNewRowEvent.cs
- CatalogZone.cs
- EdmItemCollection.cs
- DocumentViewerConstants.cs
- NonBatchDirectoryCompiler.cs
- QueueProcessor.cs
- DbMetaDataFactory.cs
- TypeSystemProvider.cs
- XsltException.cs
- ContractReference.cs
- SecurityPolicySection.cs
- ServicePointManager.cs
- XmlSchemaValidator.cs
- _CacheStreams.cs
- X509KeyIdentifierClauseType.cs
- NavigationProperty.cs
- CodeArgumentReferenceExpression.cs
- TableRowGroup.cs
- ZipIOLocalFileDataDescriptor.cs
- CharUnicodeInfo.cs
- AllMembershipCondition.cs
- FlowPanelDesigner.cs
- StoreItemCollection.Loader.cs
- SqlClientMetaDataCollectionNames.cs
- DefinitionUpdate.cs
- SecurityManager.cs
- WindowsPen.cs
- PagedDataSource.cs
- MemberHolder.cs
- PriorityBinding.cs
- NotifyCollectionChangedEventArgs.cs
- ShapeTypeface.cs
- XmlEventCache.cs
- ProfileParameter.cs
- OracleEncoding.cs
- TableCellAutomationPeer.cs
- StreamingContext.cs
- ColorDialog.cs
- UmAlQuraCalendar.cs
- BreakSafeBase.cs
- BamlRecords.cs
- EnumUnknown.cs
- ManagementClass.cs
- AuthenticatedStream.cs
- ImageFormatConverter.cs
- ErrorHandlingAcceptor.cs
- UidManager.cs
- UnionCodeGroup.cs
- RelationshipConstraintValidator.cs
- IgnorePropertiesAttribute.cs
- CodeIdentifiers.cs
- DiscreteKeyFrames.cs
- ObjectReferenceStack.cs
- View.cs
- TextUtf8RawTextWriter.cs
- XXXInfos.cs
- OdbcFactory.cs
- ManipulationLogic.cs
- SQLSingle.cs
- ReferentialConstraint.cs
- SafeSecurityHelper.cs
- DataGridViewCellLinkedList.cs
- SqlBuffer.cs
- Boolean.cs
- RegistryExceptionHelper.cs
- HttpException.cs
- _SslSessionsCache.cs
- MobileSysDescriptionAttribute.cs
- BaseValidator.cs
- ClipboardData.cs
- ErrorTableItemStyle.cs
- Stack.cs
- ToolStripDropDownClosedEventArgs.cs
- BypassElement.cs
- TextEditorSelection.cs
- ActiveXContainer.cs
- FileReader.cs
- CheckBox.cs
- UserValidatedEventArgs.cs
- KnownIds.cs
- AsnEncodedData.cs
- PeerTransportElement.cs