/// <summary>The encryption of a digest it the atomic operation done by the SSCD.</summary>
 /// <remarks>
 /// The encryption of a digest it the atomic operation done by the SSCD. This encryption (RSA, DSA, ...) create the
 /// signature value.
 /// </remarks>
 /// <param name="digest"></param>
 /// <param name="keyEntry"></param>
 /// <returns></returns>
 /// <exception cref="Sharpen.NoSuchAlgorithmException">Sharpen.NoSuchAlgorithmException
 /// 	</exception>
 public virtual byte[] EncryptDigest(Digest digest, IDssPrivateKeyEntry keyEntry)
 {
     return this.EncryptDigest(digest.GetValue(), digest.GetAlgorithm(), keyEntry);
 }
Example #2
0
 /// <summary>The encryption of a digest it the atomic operation done by the SSCD.</summary>
 /// <remarks>
 /// The encryption of a digest it the atomic operation done by the SSCD. This encryption (RSA, DSA, ...) create the
 /// signature value.
 /// </remarks>
 /// <param name="digest"></param>
 /// <param name="keyEntry"></param>
 /// <returns></returns>
 /// <exception cref="Sharpen.NoSuchAlgorithmException">Sharpen.NoSuchAlgorithmException
 ///     </exception>
 public virtual byte[] EncryptDigest(Digest digest, IDssPrivateKeyEntry keyEntry)
 {
     return(this.EncryptDigest(digest.GetValue(), digest.GetAlgorithm(), keyEntry));
 }