Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / infocard / Client / System / IdentityModel / Selectors / InfoCardRSAPKCS1KeyExchangeDeformatter.cs / 1 / InfoCardRSAPKCS1KeyExchangeDeformatter.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.IdentityModel.Selectors { using System; using System.Security.Cryptography; internal class InfoCardRSAPKCS1KeyExchangeDeformatter : RSAPKCS1KeyExchangeDeformatter { RSA m_rsaKey; // Constructors public InfoCardRSAPKCS1KeyExchangeDeformatter() {} public InfoCardRSAPKCS1KeyExchangeDeformatter( AsymmetricAlgorithm key ) : base( key ) { m_rsaKey = (RSA) key; } // // public methods // public override byte[] DecryptKeyExchange(byte[] rgbIn) { if ( null != m_rsaKey && m_rsaKey is InfoCardRSACryptoProvider) { return ((InfoCardRSACryptoProvider) m_rsaKey).Decrypt(rgbIn, false); } else { return base.DecryptKeyExchange( rgbIn ); } } 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
- SystemResources.cs
- PreviousTrackingServiceAttribute.cs
- PasswordTextContainer.cs
- PropVariant.cs
- ExecutionEngineException.cs
- SQLString.cs
- PrimitiveXmlSerializers.cs
- InteropEnvironment.cs
- SimplePropertyEntry.cs
- COM2ColorConverter.cs
- TextServicesDisplayAttribute.cs
- FixedHyperLink.cs
- Point3D.cs
- PublishLicense.cs
- Model3DGroup.cs
- TreeNodeStyle.cs
- BorderGapMaskConverter.cs
- ConfigXmlCDataSection.cs
- CompiledQuery.cs
- SecondaryIndexList.cs
- HorizontalAlignConverter.cs
- FolderBrowserDialog.cs
- ExpressionBinding.cs
- ListItemCollection.cs
- SoapSchemaExporter.cs
- TrackingProvider.cs
- NotifyParentPropertyAttribute.cs
- PropertyMapper.cs
- HtmlMeta.cs
- EmissiveMaterial.cs
- PolicyLevel.cs
- _NetworkingPerfCounters.cs
- PageThemeParser.cs
- LayoutEditorPart.cs
- Application.cs
- FileRegion.cs
- CodeLabeledStatement.cs
- WorkflowItemsPresenter.cs
- RowParagraph.cs
- WebBrowser.cs
- DockPattern.cs
- EndpointDiscoveryMetadata.cs
- ListViewHitTestInfo.cs
- BrowsableAttribute.cs
- ClickablePoint.cs
- TypedTableBaseExtensions.cs
- DataGridTextBox.cs
- HiddenFieldPageStatePersister.cs
- StickyNoteContentControl.cs
- IndicShape.cs
- EmptyStringExpandableObjectConverter.cs
- FamilyMap.cs
- ItemCollection.cs
- InkCanvasSelectionAdorner.cs
- ServiceInstanceProvider.cs
- ProgressChangedEventArgs.cs
- MenuBindingsEditor.cs
- ControlAdapter.cs
- XmlDataSourceNodeDescriptor.cs
- MDIControlStrip.cs
- XPathNodeIterator.cs
- PropertyCondition.cs
- ApplicationCommands.cs
- FunctionNode.cs
- HitTestResult.cs
- wmiutil.cs
- WFItemsToSpacerVisibility.cs
- WebPartDisplayModeEventArgs.cs
- EntityDataSourceQueryBuilder.cs
- AnimationTimeline.cs
- DataGridViewLinkColumn.cs
- MetadataArtifactLoaderFile.cs
- LazyTextWriterCreator.cs
- HTMLTagNameToTypeMapper.cs
- BitSet.cs
- DataGridViewCellFormattingEventArgs.cs
- GroupBoxRenderer.cs
- BamlReader.cs
- TimeManager.cs
- NextPreviousPagerField.cs
- DesignerActionItem.cs
- SqlClientMetaDataCollectionNames.cs
- PathStreamGeometryContext.cs
- SendKeys.cs
- PreloadedPackages.cs
- UrlAuthFailedErrorFormatter.cs
- WebSysDescriptionAttribute.cs
- ListBoxDesigner.cs
- HandlerWithFactory.cs
- ListenerElementsCollection.cs
- SafeReadContext.cs
- GraphicsContainer.cs
- Span.cs
- FontCollection.cs
- DuplicateWaitObjectException.cs
- ConvertersCollection.cs
- XmlNode.cs
- PeerNameResolver.cs
- UidManager.cs
- BamlBinaryReader.cs