Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / WCF / infocard / Client / System / IdentityModel / Selectors / InfoCardRSAOAEPKeyExchangeFormatter.cs / 1305376 / InfoCardRSAOAEPKeyExchangeFormatter.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.IdentityModel.Selectors { using System; using System.Security.Cryptography; internal class InfoCardRSAOAEPKeyExchangeFormatter : RSAOAEPKeyExchangeFormatter { private RSA m_rsaKey; // // public constructors // public InfoCardRSAOAEPKeyExchangeFormatter() : base() {} public InfoCardRSAOAEPKeyExchangeFormatter( 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, true); } 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
- SoapCommonClasses.cs
- StoreAnnotationsMap.cs
- MailBnfHelper.cs
- SortQuery.cs
- SiteMapPathDesigner.cs
- TimeManager.cs
- ToolStripContainerDesigner.cs
- MenuBase.cs
- ObjectRef.cs
- SerializerProvider.cs
- DataGridParentRows.cs
- UserPreferenceChangedEventArgs.cs
- DocumentGridPage.cs
- Manipulation.cs
- UdpTransportSettings.cs
- DetailsViewCommandEventArgs.cs
- DefinitionUpdate.cs
- LineUtil.cs
- ToolStripContentPanelRenderEventArgs.cs
- SqlVisitor.cs
- TransformerInfo.cs
- ExeConfigurationFileMap.cs
- XamlClipboardData.cs
- WebBrowserEvent.cs
- SessionParameter.cs
- XmlValidatingReader.cs
- InputProcessorProfilesLoader.cs
- GridViewCancelEditEventArgs.cs
- TextEffectResolver.cs
- ToolStripOverflow.cs
- EpmCustomContentWriterNodeData.cs
- BulletChrome.cs
- WorkflowServiceBuildProvider.cs
- FolderNameEditor.cs
- DBSqlParserTableCollection.cs
- WebPartActionVerb.cs
- XmlIgnoreAttribute.cs
- OracleConnectionStringBuilder.cs
- ScaleTransform3D.cs
- TextReader.cs
- AssociationSetMetadata.cs
- MemoryPressure.cs
- tooltip.cs
- PreviewPrintController.cs
- SyndicationDeserializer.cs
- XmlStreamStore.cs
- MethodToken.cs
- RouteItem.cs
- TableRow.cs
- WebPartTransformer.cs
- XmlAttributeOverrides.cs
- DocumentGridContextMenu.cs
- LocalFileSettingsProvider.cs
- dbdatarecord.cs
- HMACSHA384.cs
- SchemaImporter.cs
- GradientStopCollection.cs
- ReliabilityContractAttribute.cs
- XsdBuilder.cs
- SqlAliaser.cs
- FixUpCollection.cs
- TreeView.cs
- TreeView.cs
- XmlSchemaElement.cs
- KeyProperty.cs
- SystemTcpStatistics.cs
- LayoutExceptionEventArgs.cs
- AssemblyEvidenceFactory.cs
- DataTableClearEvent.cs
- IsolatedStorage.cs
- Timeline.cs
- VirtualizingPanel.cs
- SiteOfOriginPart.cs
- SqlErrorCollection.cs
- EncodingStreamWrapper.cs
- SingleResultAttribute.cs
- OdbcHandle.cs
- RegexCompilationInfo.cs
- EventLogInformation.cs
- DragEvent.cs
- Pair.cs
- ToolStripManager.cs
- CodeIndexerExpression.cs
- Parser.cs
- Trace.cs
- AccessText.cs
- SortQuery.cs
- COM2PropertyDescriptor.cs
- ExecutionContext.cs
- PartialTrustVisibleAssemblyCollection.cs
- Matrix.cs
- ExpressionBuilder.cs
- SiblingIterators.cs
- FormatVersion.cs
- OciLobLocator.cs
- FormsAuthenticationModule.cs
- ListViewItem.cs
- WeakReference.cs
- XmlSchemaAll.cs
- TrackBar.cs