X-Git-Url: https://git.cryptolib.org/?p=avr-crypto-lib.git;a=blobdiff_plain;f=hfal%2Fhfal_blake_small.c;h=b53b450d786f9c2fc81e8097e5bf832606dec1ba;hp=1d890f650295aa25e65f291811ca7362a03caddd;hb=2c909fca2a13cd76a526515bda5d0292483d7a55;hpb=924aa320bef6f192feecdb67d209c790bd49ea49 diff --git a/hfal/hfal_blake_small.c b/hfal/hfal_blake_small.c index 1d890f6..b53b450 100644 --- a/hfal/hfal_blake_small.c +++ b/hfal/hfal_blake_small.c @@ -31,37 +31,37 @@ #include "blake_small.h" -static const char blake28_str[] PROGMEM = "Blake-28"; -static const char blake32_str[] PROGMEM = "Blake-32"; +static const char blake224_str[] PROGMEM = "Blake-224"; +static const char blake256_str[] PROGMEM = "Blake-256"; -const hfdesc_t blake28_desc PROGMEM = { +const hfdesc_t blake224_desc PROGMEM = { HFDESC_TYPE_HASHFUNCTION, 0, - blake28_str, - sizeof(blake28_ctx_t), - BLAKE28_BLOCKSIZE, + blake224_str, + sizeof(blake224_ctx_t), + BLAKE224_BLOCKSIZE, 224, - (hf_init_fpt)blake28_init, + (hf_init_fpt)blake224_init, (hf_nextBlock_fpt)blake_small_nextBlock, (hf_lastBlock_fpt)blake_small_lastBlock, - (hf_ctx2hash_fpt)blake28_ctx2hash, + (hf_ctx2hash_fpt)blake224_ctx2hash, (hf_free_fpt)NULL, - (hf_mem_fpt)blake28 + (hf_mem_fpt)blake224 }; -const hfdesc_t blake32_desc PROGMEM = { +const hfdesc_t blake256_desc PROGMEM = { HFDESC_TYPE_HASHFUNCTION, 0, - blake32_str, - sizeof(blake32_ctx_t), - BLAKE32_BLOCKSIZE, + blake256_str, + sizeof(blake256_ctx_t), + BLAKE256_BLOCKSIZE, 256, - (hf_init_fpt)blake32_init, + (hf_init_fpt)blake256_init, (hf_nextBlock_fpt)blake_small_nextBlock, (hf_lastBlock_fpt)blake_small_lastBlock, - (hf_ctx2hash_fpt)blake32_ctx2hash, + (hf_ctx2hash_fpt)blake256_ctx2hash, (hf_free_fpt)NULL, - (hf_mem_fpt)blake32 + (hf_mem_fpt)blake256 };