Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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; } } }
Link Menu
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- UITypeEditor.cs
- DropShadowBitmapEffect.cs
- ScriptManager.cs
- DataSourceCache.cs
- EntityRecordInfo.cs
- CharKeyFrameCollection.cs
- ImageClickEventArgs.cs
- ConfigurationUtility.cs
- XmlValueConverter.cs
- Int64AnimationBase.cs
- WindowsUserNameSecurityTokenAuthenticator.cs
- CommaDelimitedStringAttributeCollectionConverter.cs
- RuleAttributes.cs
- BuildManagerHost.cs
- DuplicateWaitObjectException.cs
- XmlSchemaCompilationSettings.cs
- InputProcessorProfiles.cs
- SoundPlayer.cs
- CodeTypeMember.cs
- EdmFunctions.cs
- RepeaterDesigner.cs
- ConfigurationProviderException.cs
- BitStream.cs
- InputScopeManager.cs
- DictionaryGlobals.cs
- RijndaelManagedTransform.cs
- StorageInfo.cs
- DrawListViewItemEventArgs.cs
- MailWriter.cs
- QilCloneVisitor.cs
- Oid.cs
- InvokeGenerator.cs
- SqlReferenceCollection.cs
- ConfigurationSectionGroup.cs
- XmlSchemaAnnotated.cs
- FixedPageProcessor.cs
- StyleXamlTreeBuilder.cs
- Page.cs
- DataSetViewSchema.cs
- DataServiceException.cs
- CommandEventArgs.cs
- RijndaelManaged.cs
- ControlPaint.cs
- SmiRequestExecutor.cs
- parserscommon.cs
- LinqDataSourceHelper.cs
- XPathChildIterator.cs
- Utils.cs
- EncodingInfo.cs
- FormsAuthenticationTicket.cs
- ReaderWriterLockSlim.cs
- GenericXmlSecurityTokenAuthenticator.cs
- webproxy.cs
- CompilerGeneratedAttribute.cs
- CodeSnippetCompileUnit.cs
- PointLight.cs
- TreeNodeMouseHoverEvent.cs
- DispatcherObject.cs
- HeaderLabel.cs
- IdleTimeoutMonitor.cs
- ReflectEventDescriptor.cs
- DataGridCellItemAutomationPeer.cs
- ToolStripCodeDomSerializer.cs
- TypeUtil.cs
- EdmComplexTypeAttribute.cs
- OLEDB_Util.cs
- VisualCollection.cs
- StoreItemCollection.cs
- ValidationRule.cs
- DataGridViewCellStyleConverter.cs
- FlowDocumentPage.cs
- DetailsViewRow.cs
- RectangleHotSpot.cs
- TextBlockAutomationPeer.cs
- TableLayoutSettingsTypeConverter.cs
- MouseBinding.cs
- LockCookie.cs
- _OSSOCK.cs
- DynamicMetaObjectBinder.cs
- FontWeight.cs
- SQLUtility.cs
- ClipboardData.cs
- ButtonAutomationPeer.cs
- InvalidCommandTreeException.cs
- ApplicationException.cs
- TargetInvocationException.cs
- RepeaterItemCollection.cs
- Light.cs
- CodeAttachEventStatement.cs
- TextShapeableCharacters.cs
- RuntimeHelpers.cs
- InvalidProgramException.cs
- InlineObject.cs
- ViewValidator.cs
- SamlAssertionDirectKeyIdentifierClause.cs
- DispatcherFrame.cs
- QueryContinueDragEvent.cs
- AddInBase.cs
- TextAction.cs
- WorkflowInstanceSuspendedRecord.cs