Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / infocard / Client / System / IdentityModel / Selectors / InfoCardRSAOAEPKeyExchangeDeformatter.cs / 1 / InfoCardRSAOAEPKeyExchangeDeformatter.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.IdentityModel.Selectors { using System; using System.Security.Cryptography; internal class InfoCardRSAOAEPKeyExchangeDeformatter : RSAOAEPKeyExchangeDeformatter { private RSA m_rsaKey; // RSA Key value to do decrypt operation // // public constructors // public InfoCardRSAOAEPKeyExchangeDeformatter() : base() {} public InfoCardRSAOAEPKeyExchangeDeformatter( AsymmetricAlgorithm key ) : base( key ) { m_rsaKey = (RSA) key; } // // public methods // public override byte[] DecryptKeyExchange( byte[] rgbData ) { if ( null != m_rsaKey && m_rsaKey is InfoCardRSACryptoProvider ) { return ((InfoCardRSACryptoProvider) m_rsaKey).Decrypt( rgbData, true ); } else { return base.DecryptKeyExchange( rgbData ); } } public override void SetKey( AsymmetricAlgorithm key ) { base.SetKey( key ); m_rsaKey = (RSA) key; } } } // 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
- ClientEndpointLoader.cs
- PenThreadWorker.cs
- AcceptorSessionSymmetricMessageSecurityProtocol.cs
- BitHelper.cs
- List.cs
- RtfToken.cs
- DrawingContextDrawingContextWalker.cs
- GridItemCollection.cs
- InputLangChangeRequestEvent.cs
- ListItemsPage.cs
- Atom10ItemFormatter.cs
- ToolStripSeparator.cs
- XmlEntityReference.cs
- SamlConditions.cs
- Transactions.cs
- ReaderContextStackData.cs
- SplitterPanelDesigner.cs
- Monitor.cs
- DefaultPrintController.cs
- PolyBezierSegmentFigureLogic.cs
- UInt32Converter.cs
- TextControl.cs
- PhysicalFontFamily.cs
- DispatchChannelSink.cs
- PolyQuadraticBezierSegmentFigureLogic.cs
- CanonicalFormWriter.cs
- ChangePasswordAutoFormat.cs
- WindowsAuthenticationModule.cs
- GeneratedCodeAttribute.cs
- OutputCacheSection.cs
- XmlSchemas.cs
- DataTableTypeConverter.cs
- TypedElement.cs
- TreeViewHitTestInfo.cs
- EditCommandColumn.cs
- TextTreeText.cs
- Point4DValueSerializer.cs
- DataServiceRequestOfT.cs
- DataFormats.cs
- XmlParser.cs
- TargetConverter.cs
- GridViewItemAutomationPeer.cs
- PolyQuadraticBezierSegment.cs
- BindingExpressionBase.cs
- ListViewTableRow.cs
- _SingleItemRequestCache.cs
- XmlCollation.cs
- Freezable.cs
- MiniAssembly.cs
- OracleParameter.cs
- ProvidePropertyAttribute.cs
- Model3DGroup.cs
- NumericUpDown.cs
- AutomationEventArgs.cs
- StylusPlugInCollection.cs
- TextEditorCopyPaste.cs
- PrintPreviewControl.cs
- ButtonColumn.cs
- LocalizationParserHooks.cs
- WebPartHelpVerb.cs
- SqlStream.cs
- _ServiceNameStore.cs
- BlurEffect.cs
- SqlBooleanMismatchVisitor.cs
- FormViewModeEventArgs.cs
- AccessibleObject.cs
- CharacterString.cs
- Configuration.cs
- Reference.cs
- CodeExporter.cs
- Merger.cs
- StateWorkerRequest.cs
- TabPage.cs
- ZoneMembershipCondition.cs
- X509Extension.cs
- WebRequestModuleElement.cs
- AccessControlList.cs
- ChildrenQuery.cs
- ConditionalDesigner.cs
- CheckableControlBaseAdapter.cs
- EmptyElement.cs
- InternalRelationshipCollection.cs
- mactripleDES.cs
- ChildrenQuery.cs
- DateTimeConverter.cs
- InputElement.cs
- QueryContinueDragEvent.cs
- GenericFlowSwitchHelper.cs
- RichTextBoxConstants.cs
- ConnectorSelectionGlyph.cs
- StaticExtension.cs
- BooleanConverter.cs
- Attachment.cs
- ToolStripContentPanel.cs
- SortFieldComparer.cs
- Tool.cs
- XPathDocumentBuilder.cs
- CodeStatementCollection.cs
- TemplateControlParser.cs
- ExtendedPropertyInfo.cs