blake2s.h (66d7fb94e4ffe5acc589e0b2b4710aecc1f07a28) | blake2s.h (7f9b0880925f1f9d7d59504ea0892d2ae9cfc233) |
---|---|
1/* SPDX-License-Identifier: GPL-2.0 OR MIT */ 2 3#ifndef BLAKE2S_INTERNAL_H 4#define BLAKE2S_INTERNAL_H 5 6#include <crypto/blake2s.h> 7 | 1/* SPDX-License-Identifier: GPL-2.0 OR MIT */ 2 3#ifndef BLAKE2S_INTERNAL_H 4#define BLAKE2S_INTERNAL_H 5 6#include <crypto/blake2s.h> 7 |
8struct blake2s_tfm_ctx { 9 u8 key[BLAKE2S_KEY_SIZE]; 10 unsigned int keylen; 11}; 12 |
|
8void blake2s_compress_generic(struct blake2s_state *state,const u8 *block, 9 size_t nblocks, const u32 inc); 10 11void blake2s_compress_arch(struct blake2s_state *state,const u8 *block, 12 size_t nblocks, const u32 inc); 13 14static inline void blake2s_set_lastblock(struct blake2s_state *state) 15{ 16 state->f[0] = -1; 17} 18 19#endif /* BLAKE2S_INTERNAL_H */ | 13void blake2s_compress_generic(struct blake2s_state *state,const u8 *block, 14 size_t nblocks, const u32 inc); 15 16void blake2s_compress_arch(struct blake2s_state *state,const u8 *block, 17 size_t nblocks, const u32 inc); 18 19static inline void blake2s_set_lastblock(struct blake2s_state *state) 20{ 21 state->f[0] = -1; 22} 23 24#endif /* BLAKE2S_INTERNAL_H */ |