X-Git-Url: https://git.cryptolib.org/?a=blobdiff_plain;f=hfal%2Fhfal_blake_small.c;h=d83a242a1c64ba9601509df1885d5bd930037045;hb=61b5214b9a948a74fe9c22586b84d19d24537fdb;hp=7273abb2e433a474024dc13a22d8cc0e259fd0ba;hpb=d70d1d77bab1a5f5278227d674bc59da0378fe15;p=arm-crypto-lib.git diff --git a/hfal/hfal_blake_small.c b/hfal/hfal_blake_small.c index 7273abb..d83a242 100644 --- a/hfal/hfal_blake_small.c +++ b/hfal/hfal_blake_small.c @@ -1,6 +1,6 @@ /* hfal_blake_small.c */ /* - This file is part of the AVR-Crypto-Lib. + This file is part of the ARM-Crypto-Lib. Copyright (C) 2009 Daniel Otte (daniel.otte@rub.de) This program is free software: you can redistribute it and/or modify @@ -30,37 +30,37 @@ #include "blake_small.h" -static const char blake28_str[] = "Blake-28"; -static const char blake32_str[] = "Blake-32"; +static const char blake224_str[] = "Blake-224"; +static const char blake256_str[] = "Blake-256"; -const hfdesc_t blake28_desc = { +const hfdesc_t blake224_desc = { 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 = { +const hfdesc_t blake256_desc = { 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 };