Add macros for crypto_hash block size

This commit is contained in:
Frank Denis
2013-04-21 17:32:09 -07:00
parent 7c67c81444
commit fa7ed1faad
3 changed files with 3 additions and 0 deletions
@@ -4,6 +4,7 @@
#include "crypto_hash_sha512.h"
#define crypto_hash_BYTES crypto_hash_sha512_BYTES
#define crypto_hash_BLOCKBYTES crypto_hash_sha512_BLOCKBYTES
#define crypto_hash_PRIMITIVE "sha512"
#ifdef __cplusplus
@@ -2,6 +2,7 @@
#define crypto_hash_sha256_H
#define crypto_hash_sha256_BYTES 32
#define crypto_hash_sha256_BLOCKBYTES 64
#ifdef __cplusplus
extern "C" {
@@ -2,6 +2,7 @@
#define crypto_hash_sha512_H
#define crypto_hash_sha512_BYTES 64
#define crypto_hash_sha512_BLOCKBYTES 128
#ifdef __cplusplus
extern "C" {