/// <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); }
/// <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; }