Export (0) Print
Expand All

RSAPKCS1SignatureDeformatter.SetKey Method

Sets the public key to use for verifying the signature.

[Visual Basic]
Overrides Public Sub SetKey( _
   ByVal key As AsymmetricAlgorithm _
)
[C#]
public override void SetKey(
 AsymmetricAlgorithm key
);
[C++]
public: void SetKey(
 AsymmetricAlgorithm* key
);
[JScript]
public override function SetKey(
   key : AsymmetricAlgorithm
);

Parameters

key
The instance of RSA that holds the public key.

Remarks

You must set a key before calling VerifySignature.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

RSAPKCS1SignatureDeformatter Class | RSAPKCS1SignatureDeformatter Members | System.Security.Cryptography Namespace | Cryptographic Services

Show:
© 2015 Microsoft