3 This file is part of the AVR-Crypto-Lib.
4 Copyright (C) 2008 Daniel Otte (daniel.otte@rub.de)
6 This program is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 3 of the License, or
9 (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program. If not, see <http://www.gnu.org/licenses/>.
21 * \email daniel.otte@rub.de
24 * \license GPLv3 or later
30 #include "hashfunction_descriptor.h"
34 static const char shabal192_str[] = "Shabal-192";
35 static const char shabal224_str[] = "Shabal-224";
36 static const char shabal256_str[] = "Shabal-256";
37 static const char shabal384_str[] = "Shabal-384";
38 static const char shabal512_str[] = "Shabal-512";
40 const hfdesc_t shabal192_desc = {
41 HFDESC_TYPE_HASHFUNCTION,
47 (hf_init_fpt)shabal192_init,
48 (hf_nextBlock_fpt)shabal_nextBlock,
49 (hf_lastBlock_fpt)shabal_lastBlock,
50 (hf_ctx2hash_fpt)shabal192_ctx2hash,
55 const hfdesc_t shabal224_desc = {
56 HFDESC_TYPE_HASHFUNCTION,
62 (hf_init_fpt)shabal224_init,
63 (hf_nextBlock_fpt)shabal_nextBlock,
64 (hf_lastBlock_fpt)shabal_lastBlock,
65 (hf_ctx2hash_fpt)shabal224_ctx2hash,
70 const hfdesc_t shabal256_desc = {
71 HFDESC_TYPE_HASHFUNCTION,
77 (hf_init_fpt)shabal256_init,
78 (hf_nextBlock_fpt)shabal_nextBlock,
79 (hf_lastBlock_fpt)shabal_lastBlock,
80 (hf_ctx2hash_fpt)shabal256_ctx2hash,
85 const hfdesc_t shabal384_desc = {
86 HFDESC_TYPE_HASHFUNCTION,
92 (hf_init_fpt)shabal384_init,
93 (hf_nextBlock_fpt)shabal_nextBlock,
94 (hf_lastBlock_fpt)shabal_lastBlock,
95 (hf_ctx2hash_fpt)shabal384_ctx2hash,
100 const hfdesc_t shabal512_desc = {
101 HFDESC_TYPE_HASHFUNCTION,
104 sizeof(shabal_ctx_t),
107 (hf_init_fpt)shabal512_init,
108 (hf_nextBlock_fpt)shabal_nextBlock,
109 (hf_lastBlock_fpt)shabal_lastBlock,
110 (hf_ctx2hash_fpt)shabal512_ctx2hash,
112 (hf_mem_fpt)shabal512