Exemple #1
0
 /// <summary>
 /// Creates a signature of <paramref name="Data"/> using the EdDSA algorithm.
 /// </summary>
 /// <param name="Data">Payload to sign.</param>
 /// <returns>Signature.</returns>
 public override byte[] Sign(Stream Data)
 {
     return(EdDSA.Sign(Data, this.PrivateKey, this.AdditionalInfo, this.H_dom4, this));
 }
 /// <summary>
 /// Creates a signature of <paramref name="Data"/> using the EdDSA algorithm.
 /// </summary>
 /// <param name="Data">Payload to sign.</param>
 /// <returns>Signature.</returns>
 public override byte[] Sign(byte[] Data)
 {
     return(EdDSA.Sign(Data, this.PrivateKey, this.AdditionalInfo, Hashes.ComputeSHA512Hash, this));
 }