Example #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RsaDigitalSignature"/> class.
 /// </summary>
 /// <param name="rsaKey">The RSA key.</param>
 public RsaDigitalSignature(RsaKey rsaKey)
     : base(new ObjectIdentifier(1, 3, 14, 3, 2, 26), new RsaCipher(rsaKey))
 {
     _hash = HashAlgorithmFactory.CreateSHA1();
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="RsaDigitalSignature"/> class.
 /// </summary>
 /// <param name="rsaKey">The RSA key.</param>
 public RsaDigitalSignature(RsaKey rsaKey)
     : base(new ObjectIdentifier(1, 3, 14, 3, 2, 26), new RsaCipher(rsaKey))
 {
     this._hash = HashAlgorithmProvider.OpenAlgorithm(HashAlgorithmNames.Sha1).CreateHash();
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="RsaDigitalSignature"/> class.
 /// </summary>
 /// <param name="rsaKey">The RSA key.</param>
 public RsaDigitalSignature(RsaKey rsaKey)
     : base(new ObjectIdentifier(1, 3, 14, 3, 2, 26), new RsaCipher(rsaKey))
 {
     this._hash = new SHA1Hash();
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="RsaDigitalSignature"/> class.
 /// </summary>
 /// <param name="rsaKey">The RSA key.</param>
 public RsaDigitalSignature(RsaKey rsaKey)
     : base(new ObjectIdentifier(1, 3, 14, 3, 2, 26), new RsaCipher(rsaKey))
 {
     _hash = CryptoAbstraction.CreateSHA1();
 }