コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RSADigitalSignature"/> class.
 /// </summary>
 /// <param name="key">The key.</param>
 public RSADigitalSignature(RSAPublicKey key)
 {
     this._hash = new SHA1Hash();
     this._cipher = new RSACipher(this._hash, key);
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RSACipher"/> class.
 /// </summary>
 /// <param name="hash">The hash.</param>
 /// <param name="key">The key.</param>
 public RSACipher(HashAlgorithm hash, RSAPublicKey key)
 {
     this._key = key;
 }