25 lines
563 B
C
Raw Normal View History

2021-05-27 00:09:36 +05:00
/* SPDX-License-Identifier: GPL-2.0 OR MIT */
2021-09-23 21:59:15 +05:00
#ifndef BLAKE2S_INTERNAL_H
#define BLAKE2S_INTERNAL_H
2021-05-27 00:09:36 +05:00
#include <crypto/blake2s.h>
2021-09-23 21:59:15 +05:00
struct blake2s_tfm_ctx {
u8 key[BLAKE2S_KEY_SIZE];
unsigned int keylen;
};
2021-05-27 00:09:36 +05:00
void blake2s_compress_generic(struct blake2s_state *state,const u8 *block,
size_t nblocks, const u32 inc);
void blake2s_compress_arch(struct blake2s_state *state,const u8 *block,
size_t nblocks, const u32 inc);
static inline void blake2s_set_lastblock(struct blake2s_state *state)
{
state->f[0] = -1;
}
2021-09-23 21:59:15 +05:00
#endif /* BLAKE2S_INTERNAL_H */