libsodium: Needed for Dnscrypto-proxy Release 1.3.0
[tomato.git] / release / src / router / libsodium / src / libsodium / crypto_sign / crypto_sign.c
blob1f3b856042d95f6d9f8e0a86dd26a6254b8e0247
2 #include "crypto_sign.h"
4 size_t
5 crypto_sign_bytes(void)
7 return crypto_sign_BYTES;
10 size_t
11 crypto_sign_publickeybytes(void)
13 return crypto_sign_PUBLICKEYBYTES;
16 size_t
17 crypto_sign_secretkeybytes(void)
19 return crypto_sign_SECRETKEYBYTES;
22 const char *
23 crypto_sign_primitive(void)
25 return crypto_sign_PRIMITIVE;
28 int
29 crypto_sign_seed_keypair(unsigned char *pk, unsigned char *sk,
30 const unsigned char *seed)
32 return crypto_sign_ed25519_seed_keypair(pk, sk, seed);
35 int
36 crypto_sign_keypair(unsigned char *pk, unsigned char *sk)
38 return crypto_sign_ed25519_keypair(pk, sk);
41 int
42 crypto_sign(unsigned char *sm, unsigned long long *smlen,
43 const unsigned char *m, unsigned long long mlen,
44 const unsigned char *sk)
46 return crypto_sign_ed25519(sm, smlen, m, mlen, sk);
49 int
50 crypto_sign_open(unsigned char *m, unsigned long long *mlen,
51 const unsigned char *sm, unsigned long long smlen,
52 const unsigned char *pk)
54 return crypto_sign_ed25519_open(m, mlen, sm, smlen, pk);