/* 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
#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
};