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
- HttpRawResponse.cs
- PermissionToken.cs
- Base64Decoder.cs
- Bold.cs
- InternalsVisibleToAttribute.cs
- DesignerActionList.cs
- VectorCollectionConverter.cs
- GeneralTransform3DTo2DTo3D.cs
- ErrorEventArgs.cs
- EntityDataSourceContainerNameItem.cs
- Panel.cs
- PersonalizationStateInfo.cs
- SchemaComplexType.cs
- IdentityModelDictionary.cs
- RtfControlWordInfo.cs
- HtmlElementErrorEventArgs.cs
- ToolStripItemRenderEventArgs.cs
- HostedElements.cs
- ConsoleKeyInfo.cs
- TextDecorations.cs
- WebPartAuthorizationEventArgs.cs
- DispatcherProcessingDisabled.cs
- Message.cs
- EncoderReplacementFallback.cs
- CompilerWrapper.cs
- XmlElementList.cs
- CardSpacePolicyElement.cs
- UnionQueryOperator.cs
- StringPropertyBuilder.cs
- MaskedTextBoxDesignerActionList.cs
- SplineKeyFrames.cs
- ToolStripManager.cs
- StrokeNodeData.cs
- StringWriter.cs
- DiffuseMaterial.cs
- ToolZone.cs
- _BaseOverlappedAsyncResult.cs
- ForeignKeyFactory.cs
- CardSpaceShim.cs
- XmlIgnoreAttribute.cs
- UIElementPropertyUndoUnit.cs
- ForeignConstraint.cs
- CodeStatement.cs
- SoapSchemaExporter.cs
- COM2ExtendedTypeConverter.cs
- CheckableControlBaseAdapter.cs
- BamlReader.cs
- TakeOrSkipQueryOperator.cs
- ImageSource.cs
- UniqueIdentifierService.cs
- DataObjectAttribute.cs
- SchemaImporterExtensionElement.cs
- SAPIEngineTypes.cs
- XMLUtil.cs
- StorageModelBuildProvider.cs
- CacheVirtualItemsEvent.cs
- MonitorWrapper.cs
- RoleManagerEventArgs.cs
- ColorConvertedBitmap.cs
- VoiceObjectToken.cs
- WindowHideOrCloseTracker.cs
- UdpReplyToBehavior.cs
- XmlAttributeCollection.cs
- ListCardsInFileRequest.cs
- BitmapEffectDrawingContent.cs
- UserNamePasswordValidator.cs
- GridItemPattern.cs
- DbMetaDataColumnNames.cs
- PriorityRange.cs
- PathFigureCollectionConverter.cs
- ContextMenuStrip.cs
- XmlHierarchyData.cs
- PrefixQName.cs
- formatter.cs
- HostingEnvironment.cs
- ColorAnimation.cs
- SourceElementsCollection.cs
- InvokeMemberBinder.cs
- SerialPort.cs
- CommittableTransaction.cs
- ETagAttribute.cs
- ScriptingScriptResourceHandlerSection.cs
- TableLayoutStyleCollection.cs
- ClientCultureInfo.cs
- Part.cs
- TableCellCollection.cs
- XXXOnTypeBuilderInstantiation.cs
- TreeViewImageIndexConverter.cs
- XmlDocumentSurrogate.cs
- TextDecorationUnitValidation.cs
- DynamicRendererThreadManager.cs
- smtpconnection.cs
- MaskedTextBox.cs
- DataGridViewImageCell.cs
- CodeAttributeArgumentCollection.cs
- LocalValueEnumerator.cs
- DocumentsTrace.cs
- StrongNameIdentityPermission.cs
- ToolStripManager.cs
- Catch.cs