Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / infocard / Client / System / IdentityModel / Selectors / InfoCardRSAOAEPKeyExchangeFormatter.cs / 1 / 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. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- HttpListenerContext.cs
- NamespaceInfo.cs
- CatalogPartCollection.cs
- WebPartTransformerAttribute.cs
- TrimSurroundingWhitespaceAttribute.cs
- SiteMapHierarchicalDataSourceView.cs
- HttpCacheVaryByContentEncodings.cs
- UserControlAutomationPeer.cs
- BufferedGraphics.cs
- TraceContextRecord.cs
- LinkedResourceCollection.cs
- SingletonInstanceContextProvider.cs
- TableLayoutPanel.cs
- ADMembershipProvider.cs
- SubtreeProcessor.cs
- SQLBoolean.cs
- ComponentEditorPage.cs
- QueryOperatorEnumerator.cs
- TextBoxAutoCompleteSourceConverter.cs
- TableLayoutCellPaintEventArgs.cs
- IntegrationExceptionEventArgs.cs
- EdgeProfileValidation.cs
- XmlAttributeAttribute.cs
- PagedControl.cs
- FilterQuery.cs
- BinaryNode.cs
- FieldNameLookup.cs
- ValidationErrorCollection.cs
- EventMappingSettingsCollection.cs
- ValidationError.cs
- SupportsEventValidationAttribute.cs
- DataGridItem.cs
- ListView.cs
- HtmlInputFile.cs
- ContentPresenter.cs
- FormsAuthenticationConfiguration.cs
- DataStorage.cs
- SponsorHelper.cs
- DataSourceView.cs
- DynamicActionMessageFilter.cs
- ListViewInsertEventArgs.cs
- DelimitedListTraceListener.cs
- TableParagraph.cs
- XhtmlBasicLinkAdapter.cs
- TextRangeBase.cs
- SplitterPanel.cs
- ServiceDescriptionImporter.cs
- ListViewGroupConverter.cs
- SplitContainerDesigner.cs
- WpfKnownType.cs
- TypeUtils.cs
- brushes.cs
- SQLMoneyStorage.cs
- SpeechEvent.cs
- ConstructorBuilder.cs
- ALinqExpressionVisitor.cs
- FixedBufferAttribute.cs
- Resources.Designer.cs
- SecurityRuntime.cs
- __Error.cs
- ContentHostHelper.cs
- PropertyCollection.cs
- DependencyObject.cs
- ComponentChangingEvent.cs
- JsonFormatReaderGenerator.cs
- TextSelection.cs
- _ConnectionGroup.cs
- BindableTemplateBuilder.cs
- ConfigurationManagerHelper.cs
- Hex.cs
- NotificationContext.cs
- Int32EqualityComparer.cs
- DPCustomTypeDescriptor.cs
- Subset.cs
- IFlowDocumentViewer.cs
- FormViewInsertedEventArgs.cs
- ElementHostAutomationPeer.cs
- ContextProperty.cs
- HtmlInputImage.cs
- AudioBase.cs
- ValidationSummaryDesigner.cs
- IndexingContentUnit.cs
- ReversePositionQuery.cs
- ProgressChangedEventArgs.cs
- ControlPager.cs
- ListViewItem.cs
- InstanceHandle.cs
- CfgParser.cs
- DispatchWrapper.cs
- PathSegmentCollection.cs
- UTF7Encoding.cs
- WebPartDescription.cs
- DbgUtil.cs
- CompatibleComparer.cs
- Array.cs
- SerializationEventsCache.cs
- CrossContextChannel.cs
- UIElementIsland.cs
- WmlPhoneCallAdapter.cs
- HttpDictionary.cs