xref: /freebsd/sys/contrib/libsodium/src/libsodium/crypto_sign/ed25519/ref10/sign_ed25519_ref10.h (revision 3611ec604864a7d4dcc9a3ea898c80eb35eef8a0)
1 #ifndef sign_ed25519_ref10_H
2 #define sign_ed25519_ref10_H
3 
4 void _crypto_sign_ed25519_ref10_hinit(crypto_hash_sha512_state *hs,
5                                       int prehashed);
6 
7 int _crypto_sign_ed25519_detached(unsigned char *sig,
8                                   unsigned long long *siglen_p,
9                                   const unsigned char *m,
10                                   unsigned long long mlen,
11                                   const unsigned char *sk, int prehashed);
12 
13 int _crypto_sign_ed25519_verify_detached(const unsigned char *sig,
14                                          const unsigned char *m,
15                                          unsigned long long   mlen,
16                                          const unsigned char *pk,
17                                          int prehashed);
18 #endif
19