1
mirror of https://github.com/jedisct1/libsodium.git synced 2024-12-31 22:42:57 -07:00

Add macros for crypto_hash block size

This commit is contained in:
Frank Denis 2013-04-21 16:30:25 +02:00
parent 7c67c81444
commit fa7ed1faad
3 changed files with 3 additions and 0 deletions

View File

@ -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

View File

@ -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" {

View File

@ -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" {