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
- TextParagraphCache.cs
- StorageEntitySetMapping.cs
- CompositionAdorner.cs
- CompositeTypefaceMetrics.cs
- RemoteCryptoTokenProvider.cs
- ProfileService.cs
- BindingsCollection.cs
- SerialStream.cs
- EntityContainer.cs
- Header.cs
- VirtualPathProvider.cs
- AppDomainFactory.cs
- DataControlPagerLinkButton.cs
- PropertyChangedEventArgs.cs
- XsdBuildProvider.cs
- MSHTMLHostUtil.cs
- VisualStateGroup.cs
- ListMarkerSourceInfo.cs
- WorkflowRuntimeEndpoint.cs
- LostFocusEventManager.cs
- DesignerGeometryHelper.cs
- DurableOperationContext.cs
- AppDomainAttributes.cs
- EtwTrace.cs
- WebConfigurationManager.cs
- Mapping.cs
- COM2PictureConverter.cs
- CodeArrayCreateExpression.cs
- XmlSchemaParticle.cs
- LogoValidationException.cs
- BatchParser.cs
- DataColumnSelectionConverter.cs
- WeakReferenceEnumerator.cs
- FaultCallbackWrapper.cs
- smtppermission.cs
- CultureInfoConverter.cs
- DetailsView.cs
- ImmComposition.cs
- SqlBulkCopy.cs
- DesignerWebPartChrome.cs
- SafeNativeMethodsCLR.cs
- DetailsViewModeEventArgs.cs
- TypeSemantics.cs
- WarningException.cs
- ImageSourceValueSerializer.cs
- SystemIPGlobalStatistics.cs
- ProgressBarRenderer.cs
- HwndStylusInputProvider.cs
- SQLDateTimeStorage.cs
- BaseResourcesBuildProvider.cs
- DragEvent.cs
- DataViewSettingCollection.cs
- DeploymentSection.cs
- OdbcConnectionPoolProviderInfo.cs
- ParagraphVisual.cs
- CaseStatementProjectedSlot.cs
- DBConnectionString.cs
- CodeTypeMemberCollection.cs
- PackWebResponse.cs
- GrammarBuilderDictation.cs
- ToolStripPanelSelectionGlyph.cs
- ToolStripButton.cs
- GridViewEditEventArgs.cs
- DataSet.cs
- HMACSHA512.cs
- MsiStyleLogWriter.cs
- Delegate.cs
- DesignerEditorPartChrome.cs
- CheckPair.cs
- SafeFileHandle.cs
- WebHeaderCollection.cs
- StorageMappingItemCollection.cs
- ViewGenResults.cs
- EditorPartDesigner.cs
- ZoneIdentityPermission.cs
- FontWeightConverter.cs
- JournalEntry.cs
- XmlTextEncoder.cs
- BorderGapMaskConverter.cs
- ServiceMetadataExtension.cs
- TypedTableGenerator.cs
- ThemeableAttribute.cs
- CompilerCollection.cs
- CodeFieldReferenceExpression.cs
- ObjectStateEntry.cs
- PopupRoot.cs
- FixedSOMPageElement.cs
- DebuggerAttributes.cs
- ServicePointManagerElement.cs
- JavaScriptString.cs
- StrokeCollectionDefaultValueFactory.cs
- Stopwatch.cs
- XPathNodePointer.cs
- CodeParameterDeclarationExpressionCollection.cs
- WebPartZone.cs
- SQLDoubleStorage.cs
- LinkArea.cs
- FixedSOMTable.cs
- ProfileModule.cs
- ExpressionCopier.cs