Exemplo n.º 1
0
 /// <summary>
 /// Create new Ed25519 signature
 /// </summary>
 /// <param name="signature">
 /// Buffer for signature
 /// </param>
 /// <param name="message">
 /// Message bytes
 /// </param>
 /// <param name="expandedPrivateKey">
 /// Expanded form of private key
 /// </param>
 public static void Sign(ArraySegment <byte> signature, ArraySegment <byte> message,
                         ArraySegment <byte> expandedPrivateKey)
 {
     Ed25519Operations.CryptoSign(signature.Array, signature.Offset, message.Array, message.Offset,
                                  message.Count, expandedPrivateKey.Array, expandedPrivateKey.Offset);
 }