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
- PartialList.cs
- SerializationHelper.cs
- AdjustableArrowCap.cs
- TypeContext.cs
- StringKeyFrameCollection.cs
- BamlBinaryReader.cs
- arabicshape.cs
- FuncCompletionCallbackWrapper.cs
- ContextMarshalException.cs
- TypeElement.cs
- WebHttpBehavior.cs
- TextRange.cs
- DataGridViewCellStyleChangedEventArgs.cs
- InlineUIContainer.cs
- ClientTargetCollection.cs
- RelationshipDetailsRow.cs
- RuntimeHandles.cs
- ProtocolViolationException.cs
- LinkLabel.cs
- DataGridViewCellStyleEditor.cs
- StylusCaptureWithinProperty.cs
- HierarchicalDataBoundControlAdapter.cs
- XslAst.cs
- ChannelFactoryRefCache.cs
- SubMenuStyle.cs
- WinCategoryAttribute.cs
- Axis.cs
- ByteAnimation.cs
- PrtTicket_Public.cs
- GridViewRowCollection.cs
- ServiceDeploymentInfo.cs
- MobilePage.cs
- SubordinateTransaction.cs
- TypeUtils.cs
- JsonObjectDataContract.cs
- Mappings.cs
- BinHexDecoder.cs
- CompleteWizardStep.cs
- PermissionSetTriple.cs
- ExtentKey.cs
- LoginCancelEventArgs.cs
- HtmlTableCell.cs
- ImageClickEventArgs.cs
- IxmlLineInfo.cs
- EventSinkHelperWriter.cs
- GeometryGroup.cs
- ExpressionReplacer.cs
- HtmlFormParameterReader.cs
- DocumentViewer.cs
- ObjectContextServiceProvider.cs
- Events.cs
- Decimal.cs
- ConfigurationLocation.cs
- StateWorkerRequest.cs
- ConstructorNeedsTagAttribute.cs
- RenderOptions.cs
- DBNull.cs
- PinnedBufferMemoryStream.cs
- NaturalLanguageHyphenator.cs
- CryptoApi.cs
- DefaultPropertyAttribute.cs
- SiteMapPath.cs
- SqlUserDefinedAggregateAttribute.cs
- MessageSmuggler.cs
- FilteredAttributeCollection.cs
- Vector3D.cs
- MenuBase.cs
- MsmqIntegrationSecurity.cs
- CustomAssemblyResolver.cs
- ServiceSecurityAuditElement.cs
- EncoderFallback.cs
- TextEditorSelection.cs
- SiteOfOriginPart.cs
- DbTransaction.cs
- SequenceQuery.cs
- CssTextWriter.cs
- SmiEventSink_Default.cs
- VirtualPath.cs
- BulletedList.cs
- XsdDuration.cs
- ToolStripDropTargetManager.cs
- GridViewRowPresenterBase.cs
- GuidelineSet.cs
- SignatureDescription.cs
- SafeTimerHandle.cs
- StylusDownEventArgs.cs
- SqlStream.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- ToolStripDropDownItem.cs
- ContextProperty.cs
- OleDragDropHandler.cs
- Attributes.cs
- TreeNodeBinding.cs
- ToolBarPanel.cs
- PageRequestManager.cs
- DataTableCollection.cs
- SiteMapDataSourceView.cs
- UncommonField.cs
- SevenBitStream.cs
- PerspectiveCamera.cs