add blake2s to various places.
This commit is contained in:
parent
68296e0608
commit
647b53d880
@ -180,6 +180,9 @@ const char *crypt_build_settings =
|
||||
#if defined(LTC_WHIRLPOOL)
|
||||
" WHIRLPOOL\n"
|
||||
#endif
|
||||
#if defined(LTC_BLAKE2S)
|
||||
" BLAKE2S\n"
|
||||
#endif
|
||||
#if defined(LTC_CHC_HASH)
|
||||
" CHC_HASH\n"
|
||||
#endif
|
||||
|
@ -71,6 +71,9 @@ static const crypt_size _crypt_sizes[] = {
|
||||
#ifdef LTC_TIGER
|
||||
_SZ_STRINGIFY_S(tiger_state),
|
||||
#endif
|
||||
#ifdef LTC_BLAKE2S
|
||||
_SZ_STRINGIFY_S(blake2s_state),
|
||||
#endif
|
||||
#ifdef LTC_CHC_HASH
|
||||
_SZ_STRINGIFY_S(chc_state),
|
||||
#endif
|
||||
|
@ -319,6 +319,12 @@ static void _unregister_all(void)
|
||||
#ifdef LTC_WHIRLPOOL
|
||||
unregister_hash(&whirlpool_desc);
|
||||
#endif
|
||||
#ifdef LTC_BLAKE2S
|
||||
unregister_hash(&blake2s_128_desc);
|
||||
unregister_hash(&blake2s_160_desc);
|
||||
unregister_hash(&blake2s_224_desc);
|
||||
unregister_hash(&blake2s_256_desc);
|
||||
#endif
|
||||
#ifdef LTC_CHC_HASH
|
||||
unregister_hash(&chc_desc);
|
||||
#endif
|
||||
@ -481,6 +487,12 @@ void reg_algs(void)
|
||||
#ifdef LTC_WHIRLPOOL
|
||||
register_hash (&whirlpool_desc);
|
||||
#endif
|
||||
#ifdef LTC_BLAKE2S
|
||||
register_hash(&blake2s_128_desc);
|
||||
register_hash(&blake2s_160_desc);
|
||||
register_hash(&blake2s_224_desc);
|
||||
register_hash(&blake2s_256_desc);
|
||||
#endif
|
||||
#ifdef LTC_CHC_HASH
|
||||
register_hash(&chc_desc);
|
||||
if ((err = chc_register(register_cipher(&aes_desc))) != CRYPT_OK) {
|
||||
|
Loading…
Reference in New Issue
Block a user