1 /* $OpenBSD: crypto_api.h,v 1.4 2017/12/14 21:07:39 naddy Exp $ */
4 * Assembled from generated headers and source files by Markus Friedl.
5 * Placed in the public domain.
18 typedef int32_t crypto_int32;
19 typedef uint32_t crypto_uint32;
21 #define randombytes(buf, buf_len) arc4random_buf((buf), (buf_len))
23 #define crypto_hash_sha512_BYTES 64U
25 int crypto_hash_sha512(unsigned char *, const unsigned char *,
28 int crypto_verify_32(const unsigned char *, const unsigned char *);
30 #define crypto_sign_ed25519_SECRETKEYBYTES 64U
31 #define crypto_sign_ed25519_PUBLICKEYBYTES 32U
32 #define crypto_sign_ed25519_BYTES 64U
34 int crypto_sign_ed25519(unsigned char *, unsigned long long *,
35 const unsigned char *, unsigned long long, const unsigned char *);
36 int crypto_sign_ed25519_open(unsigned char *, unsigned long long *,
37 const unsigned char *, unsigned long long, const unsigned char *);
38 int crypto_sign_ed25519_keypair(unsigned char *, unsigned char *);
40 #endif /* crypto_api_h */