Annotation of src/usr.bin/ssh/crypto_api.h, Revision 1.1
1.1 ! markus 1: /* $OpenBSD$ */
! 2:
! 3: /* Placed in the public domain. */
! 4:
! 5: #ifndef crypto_api_h
! 6: #define crypto_api_h
! 7:
! 8: #include <stdint.h>
! 9: #include <stdlib.h>
! 10:
! 11: typedef int32_t crypto_int32;
! 12: typedef uint32_t crypto_uint32;
! 13:
! 14: #define randombytes(buf, buf_len) arc4random_buf((buf), (buf_len))
! 15:
! 16: #define crypto_hashblocks_sha512_STATEBYTES 64U
! 17: #define crypto_hashblocks_sha512_BLOCKBYTES 128U
! 18:
! 19: int crypto_hashblocks_sha512(unsigned char *, const unsigned char *,
! 20: unsigned long long);
! 21:
! 22: #define crypto_hash_sha512_BYTES 64U
! 23:
! 24: int crypto_hash_sha512(unsigned char *, const unsigned char *,
! 25: unsigned long long);
! 26:
! 27: int crypto_verify_32(const unsigned char *, const unsigned char *);
! 28:
! 29: #define crypto_sign_BYTES crypto_sign_ed25519_BYTES
! 30: #define crypto_sign_PUBLICKEYBYTES crypto_sign_ed25519_PUBLICKEYBYTES
! 31: #define crypto_sign_SECRETKEYBYTES crypto_sign_ed25519_SECRETKEYBYTES
! 32:
! 33: #define crypto_sign_ed25519_SECRETKEYBYTES 64U
! 34: #define crypto_sign_ed25519_PUBLICKEYBYTES 32U
! 35: #define crypto_sign_ed25519_BYTES 64U
! 36:
! 37: int crypto_sign_ed25519(unsigned char *, unsigned long long *,
! 38: const unsigned char *, unsigned long long, const unsigned char *);
! 39: int crypto_sign_ed25519_open(unsigned char *, unsigned long long *,
! 40: const unsigned char *, unsigned long long, const unsigned char *);
! 41: int crypto_sign_ed25519_keypair(unsigned char *, unsigned char *);
! 42:
! 43: #endif /* crypto_api_h */