Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / ndp / clr / src / BCL / System / Security / Cryptography / RSAOAEPKeyExchangeDeformatter.cs / 1 / RSAOAEPKeyExchangeDeformatter.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== namespace System.Security.Cryptography { [System.Runtime.InteropServices.ComVisible(true)] public class RSAOAEPKeyExchangeDeformatter : AsymmetricKeyExchangeDeformatter { private RSA _rsaKey; // RSA Key value to do decrypt operation // // public constructors // public RSAOAEPKeyExchangeDeformatter() {} public RSAOAEPKeyExchangeDeformatter(AsymmetricAlgorithm key) { if (key == null) throw new ArgumentNullException("key"); _rsaKey = (RSA) key; } // // public properties // public override String Parameters { get { return null; } set { ; } } // // public methods // public override byte[] DecryptKeyExchange(byte[] rgbData) { if (_rsaKey == null) throw new CryptographicUnexpectedOperationException(Environment.GetResourceString("Cryptography_MissingKey")); if (_rsaKey is RSACryptoServiceProvider) { return ((RSACryptoServiceProvider) _rsaKey).Decrypt(rgbData, true); } else { return Utils.RsaOaepDecrypt(_rsaKey, SHA1.Create(), new PKCS1MaskGenerationMethod(), rgbData); } } public override void SetKey(AsymmetricAlgorithm key) { if (key == null) throw new ArgumentNullException("key"); _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
- ListenerSingletonConnectionReader.cs
- TableLayout.cs
- ConfigurationLocation.cs
- XmlSchemaParticle.cs
- BaseCollection.cs
- HttpResponse.cs
- dbdatarecord.cs
- Math.cs
- SafeUserTokenHandle.cs
- TextRange.cs
- InvalidComObjectException.cs
- FocusWithinProperty.cs
- Rule.cs
- CriticalFinalizerObject.cs
- Base64Decoder.cs
- InstancePersistenceContext.cs
- MessageDecoder.cs
- LassoHelper.cs
- _LocalDataStore.cs
- TableCell.cs
- LogicalTreeHelper.cs
- InstanceData.cs
- DataGridBoolColumn.cs
- PageWrapper.cs
- NeutralResourcesLanguageAttribute.cs
- basenumberconverter.cs
- WeakEventTable.cs
- WindowsRebar.cs
- codemethodreferenceexpression.cs
- StylusButton.cs
- SymLanguageType.cs
- TreeIterators.cs
- ListViewGroup.cs
- ExponentialEase.cs
- TextEncodedRawTextWriter.cs
- ConnectionOrientedTransportChannelFactory.cs
- Visual3DCollection.cs
- ParseHttpDate.cs
- X509RecipientCertificateClientElement.cs
- EntityCommandDefinition.cs
- ColorInterpolationModeValidation.cs
- WebEventTraceProvider.cs
- ProfileInfo.cs
- XmlDataProvider.cs
- MergeFilterQuery.cs
- FieldToken.cs
- EdmRelationshipNavigationPropertyAttribute.cs
- ToggleButton.cs
- EFAssociationProvider.cs
- StatusBarItemAutomationPeer.cs
- CustomMenuItemCollection.cs
- ColumnTypeConverter.cs
- PageSetupDialog.cs
- SmtpClient.cs
- SoapProtocolImporter.cs
- XmlReader.cs
- ISessionStateStore.cs
- XPathSelectionIterator.cs
- CheckedListBox.cs
- HttpCapabilitiesBase.cs
- newitemfactory.cs
- DoubleUtil.cs
- Errors.cs
- XmlDictionaryWriter.cs
- KnownTypesProvider.cs
- WebFaultException.cs
- WinInet.cs
- EntityContainerEntitySetDefiningQuery.cs
- ModuleElement.cs
- MulticastOption.cs
- ListViewInsertionMark.cs
- NamedPermissionSet.cs
- DependencyPropertyValueSerializer.cs
- XmlSchemaFacet.cs
- FieldNameLookup.cs
- FormatVersion.cs
- StackOverflowException.cs
- SqlClientPermission.cs
- HitTestDrawingContextWalker.cs
- TextBoxLine.cs
- MultiBinding.cs
- DateTimeUtil.cs
- x509utils.cs
- EventLogger.cs
- SocketElement.cs
- Util.cs
- SerializationObjectManager.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- ConcurrentDictionary.cs
- PropertyMapper.cs
- Geometry3D.cs
- FunctionDescription.cs
- ImageDrawing.cs
- DSASignatureDeformatter.cs
- DesignerCommandAdapter.cs
- CompositeCollection.cs
- ProvidersHelper.cs
- WindowsFont.cs
- ObjectDataSourceFilteringEventArgs.cs
- HandledEventArgs.cs