X-Git-Url: https://git.cryptolib.org/?a=blobdiff_plain;f=hfal%2Fhfal_blake_small.c;h=0cb0ca9f2010e15b0b7bafd226e62ac5b1bdf697;hb=d9352fc79fbdee0cf3288809b104ea196ea85693;hp=1d890f650295aa25e65f291811ca7362a03caddd;hpb=924aa320bef6f192feecdb67d209c790bd49ea49;p=avr-crypto-lib.git diff --git a/hfal/hfal_blake_small.c b/hfal/hfal_blake_small.c index 1d890f6..0cb0ca9 100644 --- a/hfal/hfal_blake_small.c +++ b/hfal/hfal_blake_small.c @@ -1,7 +1,7 @@ /* hfal_blake_small.c */ /* This file is part of the AVR-Crypto-Lib. - Copyright (C) 2009 Daniel Otte (daniel.otte@rub.de) + Copyright (C) 2006-2015 Daniel Otte (bg@nerilex.org) This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -18,7 +18,7 @@ */ /** * \file hfal_blake_small.c - * \email daniel.otte@rub.de + * \email bg@nerilex.org * \author Daniel Otte * \date 2009-05-05 * \license GPLv3 or later @@ -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 };