Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / WCF / infocard / Client / System / IdentityModel / Selectors / InfoCardRSAPKCS1KeyExchangeFormatter.cs / 1305376 / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ProviderConnectionPoint.cs
- SHA512CryptoServiceProvider.cs
- Attributes.cs
- DayRenderEvent.cs
- Transactions.cs
- MatrixTransform.cs
- SqlTriggerContext.cs
- OdbcDataAdapter.cs
- ConnectionString.cs
- TableItemStyle.cs
- ErrorFormatterPage.cs
- Operator.cs
- AutomationAttributeInfo.cs
- TypeLoadException.cs
- XmlIlVisitor.cs
- UInt32.cs
- ComAwareEventInfo.cs
- XsltContext.cs
- CompiledXpathExpr.cs
- XsdDuration.cs
- securestring.cs
- InkCanvas.cs
- SystemIPInterfaceProperties.cs
- StringReader.cs
- MemberAssignment.cs
- ProcessHostServerConfig.cs
- ClickablePoint.cs
- ScrollEventArgs.cs
- InfoCardSchemas.cs
- AssemblyNameProxy.cs
- XmlMembersMapping.cs
- SocketPermission.cs
- TypeListConverter.cs
- SqlDesignerDataSourceView.cs
- ViewSimplifier.cs
- Operand.cs
- GeneralTransform2DTo3DTo2D.cs
- Choices.cs
- LayoutSettings.cs
- DataGridViewComboBoxCell.cs
- SudsCommon.cs
- PartitionedStreamMerger.cs
- ScrollProperties.cs
- XmlDocumentSerializer.cs
- TextRangeEditTables.cs
- XmlUTF8TextWriter.cs
- VectorCollectionConverter.cs
- SecurityCapabilities.cs
- ValueUnavailableException.cs
- SchemaImporter.cs
- ResourceProviderFactory.cs
- XmlNavigatorFilter.cs
- PriorityChain.cs
- IndentedWriter.cs
- Constants.cs
- entityreference_tresulttype.cs
- SettingsPropertyNotFoundException.cs
- XmlNotation.cs
- HighlightVisual.cs
- IssuedSecurityTokenProvider.cs
- XmlSignificantWhitespace.cs
- _FtpControlStream.cs
- MergablePropertyAttribute.cs
- ParagraphResult.cs
- ReferencedType.cs
- StylusLogic.cs
- XNameConverter.cs
- ItemsPanelTemplate.cs
- mediapermission.cs
- Int32AnimationUsingKeyFrames.cs
- Adorner.cs
- EntitySqlQueryState.cs
- XPathSelectionIterator.cs
- FixedSOMImage.cs
- XmlSchemaSimpleContent.cs
- HostingEnvironmentSection.cs
- DataGridColumnStyleMappingNameEditor.cs
- DataSourceSelectArguments.cs
- wmiprovider.cs
- FlowchartStart.xaml.cs
- TitleStyle.cs
- Line.cs
- FormattedText.cs
- Psha1DerivedKeyGeneratorHelper.cs
- SpeechDetectedEventArgs.cs
- TextBoxBase.cs
- TTSEngineTypes.cs
- _HeaderInfoTable.cs
- StyleBamlTreeBuilder.cs
- EncodingFallbackAwareXmlTextWriter.cs
- DateTimeConstantAttribute.cs
- DefaultAsyncDataDispatcher.cs
- Environment.cs
- DecoderNLS.cs
- ComponentResourceManager.cs
- DoubleAnimation.cs
- XmlCharCheckingReader.cs
- SqlInternalConnectionTds.cs
- TreeView.cs
- filewebrequest.cs