27 #if defined(HAVE_SHA256) || defined(HAVE_SHA224)
28 #define SHA256_BLOCK_SIZE 64
31 #if defined(HAVE_SHA512) || defined(HAVE_SHA384)
32 #define SHA512_BLOCK_SIZE 128
36 #define MAX_HASH_SIZE 128
37 #define MAX_HASH_BLOCK_SIZE 128
40 WARN_UNUSED_RESULT cx_err_t cx_blake2b(cx_hash_t *hash,
48 const cx_hash_info_t *cx_hash_get_info(cx_md_t md_type);
53 void cx_hash_destroy(cx_hash_t *hash_ctx);