crypto_hash.c 323 B

1234567891011121314151617181920
  1. #include "crypto_hash.h"
  2. size_t
  3. crypto_hash_bytes(void)
  4. {
  5. return crypto_hash_BYTES;
  6. }
  7. int
  8. crypto_hash(unsigned char *out, const unsigned char *in,
  9. unsigned long long inlen)
  10. {
  11. return crypto_hash_sha512(out, in, inlen);
  12. }
  13. const char *
  14. crypto_hash_primitive(void) {
  15. return crypto_hash_PRIMITIVE;
  16. }