/freebsd/sys/contrib/libb2/ |
H A D | blake2-dispatch.c | 204 int blake2s_init_ref( blake2s_state *S, size_t outlen ); 205 int blake2s_init_key_ref( blake2s_state *S, size_t outlen, const void *key, size_t keylen ); 206 int blake2s_init_param_ref( blake2s_state *S, const blake2s_param *P ); 207 int blake2s_update_ref( blake2s_state *S, const uint8_t *in, size_t inlen ); 208 int blake2s_final_ref( blake2s_state *S, uint8_t *out, size_t outlen ); 213 int blake2s_init_sse2( blake2s_state *S, size_t outlen ); 214 int blake2s_init_key_sse2( blake2s_state *S, size_t outlen, const void *key, size_t keylen ); 215 int blake2s_init_param_sse2( blake2s_state *S, const blake2s_param *P ); 216 int blake2s_update_sse2( blake2s_state *S, const uint8_t *in, size_t inlen ); 217 int blake2s_final_sse2( blake2s_state *S, uint8_t *out, size_t outlen ); [all …]
|
H A D | blake2s.c | 76 static inline int blake2s_set_lastnode( blake2s_state *S ) in blake2s_set_lastnode() 82 static inline int blake2s_clear_lastnode( blake2s_state *S ) in blake2s_clear_lastnode() 88 static inline int blake2s_set_lastblock( blake2s_state *S ) in blake2s_set_lastblock() 96 static inline int blake2s_clear_lastblock( blake2s_state *S ) in blake2s_clear_lastblock() 104 static inline int blake2s_increment_counter( blake2s_state *S, const uint32_t inc ) in blake2s_increment_counter() 169 static inline int blake2s_init0( blake2s_state *S ) in blake2s_init0() 171 memset( S, 0, sizeof( blake2s_state ) ); in blake2s_init0() 188 int blake2s_init( blake2s_state *S, size_t outlen ); 189 int blake2s_init_param( blake2s_state *S, const blake2s_param *P ); 190 int blake2s_init_key( blake2s_state *S, size_t outlen, const void *key, size_t keylen ); [all …]
|
H A D | blake2s-ref.c | 41 static inline int blake2s_set_lastnode( blake2s_state *S ) in blake2s_set_lastnode() 47 static inline int blake2s_clear_lastnode( blake2s_state *S ) in blake2s_clear_lastnode() 54 static inline int blake2s_set_lastblock( blake2s_state *S ) in blake2s_set_lastblock() 62 static inline int blake2s_clear_lastblock( blake2s_state *S ) in blake2s_clear_lastblock() 70 static inline int blake2s_increment_counter( blake2s_state *S, const uint32_t inc ) in blake2s_increment_counter() 132 static inline int blake2s_init0( blake2s_state *S ) in blake2s_init0() 134 memset( S, 0, sizeof( blake2s_state ) ); in blake2s_init0() 151 int blake2s_init( blake2s_state *S, size_t outlen ); 152 int blake2s_init_param( blake2s_state *S, const blake2s_param *P ); 153 int blake2s_init_key( blake2s_state *S, size_t outlen, const void *key, size_t keylen ); [all …]
|
H A D | blake2.h | 95 } blake2s_state; typedef 125 blake2s_state S[8][1]; 126 blake2s_state R[1]; 143 BLAKE2_API int blake2s_init( blake2s_state *S, size_t outlen ); 144 …BLAKE2_API int blake2s_init_key( blake2s_state *S, size_t outlen, const void *key, size_t keylen ); 145 BLAKE2_API int blake2s_init_param( blake2s_state *S, const blake2s_param *P ); 146 BLAKE2_API int blake2s_update( blake2s_state *S, const uint8_t *in, size_t inlen ); 147 BLAKE2_API int blake2s_final( blake2s_state *S, uint8_t *out, size_t outlen );
|
H A D | blake2sp.c | 27 static int blake2sp_init_leaf( blake2s_state *S, uint8_t outlen, uint8_t keylen, uint64_t offset ) in blake2sp_init_leaf() 45 static int blake2sp_init_root( blake2s_state *S, uint8_t outlen, uint8_t keylen ) in blake2sp_init_root() 197 blake2s_state S[PARALLELISM_DEGREE][1]; in blake2sp() 198 blake2s_state FS[1]; in blake2sp()
|
/freebsd/contrib/libarchive/libarchive/ |
H A D | archive_blake2s_ref.c | 45 static void blake2s_set_lastnode( blake2s_state *S ) in blake2s_set_lastnode() 51 static int blake2s_is_lastblock( const blake2s_state *S ) in blake2s_is_lastblock() 56 static void blake2s_set_lastblock( blake2s_state *S ) in blake2s_set_lastblock() 63 static void blake2s_increment_counter( blake2s_state *S, const uint32_t inc ) in blake2s_increment_counter() 69 static void blake2s_init0( blake2s_state *S ) in blake2s_init0() 72 memset( S, 0, sizeof( blake2s_state ) ); in blake2s_init0() 78 int blake2s_init_param( blake2s_state *S, const blake2s_param *P ) in blake2s_init_param() 95 int blake2s_init( blake2s_state *S, size_t outlen ) in blake2s_init() 117 int blake2s_init_key( blake2s_state *S, size_t outlen, const void *key, size_t keylen ) in blake2s_init_key() 174 static void blake2s_compress( blake2s_state *S, const uint8_t in[BLAKE2S_BLOCKBYTES] ) in blake2s_compress() [all …]
|
H A D | archive_blake2.h | 61 } blake2s_state; typedef 76 blake2s_state S[8][1]; 77 blake2s_state R[1]; 130 blake2s_state S[1]; 147 int blake2s_init( blake2s_state *S, size_t outlen ); 148 int blake2s_init_key( blake2s_state *S, size_t outlen, const void *key, size_t keylen ); 149 int blake2s_init_param( blake2s_state *S, const blake2s_param *P ); 150 int blake2s_update( blake2s_state *S, const void *in, size_t inlen ); 151 int blake2s_final( blake2s_state *S, void *out, size_t outlen );
|
H A D | archive_blake2sp_ref.c | 38 static int blake2sp_init_leaf_param( blake2s_state *S, const blake2s_param *P ) in blake2sp_init_leaf_param() 45 static int blake2sp_init_leaf( blake2s_state *S, size_t outlen, size_t keylen, uint32_t offset ) in blake2sp_init_leaf() 62 static int blake2sp_init_root( blake2s_state *S, size_t outlen, size_t keylen ) in blake2sp_init_root() 219 blake2s_state S[PARALLELISM_DEGREE][1]; in blake2sp() 220 blake2s_state FS[1]; in blake2sp()
|
/freebsd/sys/dev/wg/ |
H A D | crypto.h | 88 struct blake2s_state { struct 97 void blake2s_init(struct blake2s_state *state, const size_t outlen); argument 99 void blake2s_init_key(struct blake2s_state *state, const size_t outlen, 102 void blake2s_update(struct blake2s_state *state, const uint8_t *in, size_t inlen); 104 void blake2s_final(struct blake2s_state *state, uint8_t *out); 109 struct blake2s_state state; in blake2s()
|
H A D | wg_crypto.c | 65 static inline void blake2s_set_lastblock(struct blake2s_state *state) in blake2s_set_lastblock() 70 static inline void blake2s_increment_counter(struct blake2s_state *state, in blake2s_increment_counter() 77 static inline void blake2s_init_param(struct blake2s_state *state, in blake2s_init_param() 88 void blake2s_init(struct blake2s_state *state, const size_t outlen) in blake2s_init() 94 void blake2s_init_key(struct blake2s_state *state, const size_t outlen, in blake2s_init_key() 106 static inline void blake2s_compress(struct blake2s_state *state, in blake2s_compress() 171 void blake2s_update(struct blake2s_state *state, const uint8_t *in, size_t inlen) in blake2s_update() 195 void blake2s_final(struct blake2s_state *state, uint8_t *out) in blake2s_final()
|
H A D | wg_cookie.c | 274 struct blake2s_state blake; in precompute_key() 285 struct blake2s_state state; in macs_mac1() 295 struct blake2s_state state; in macs_mac2() 313 struct blake2s_state state; in make_cookie()
|
H A D | wg_noise.c | 1198 struct blake2s_state state; in hmac() 1304 struct blake2s_state blake; in noise_mix_hash() 1330 struct blake2s_state blake; in noise_param_init()
|
/freebsd/sys/crypto/blake2/ |
H A D | blake2-sw.c | 17 extern int blake2s_init_ref(blake2s_state *S, size_t outlen); 18 extern int blake2s_init_param_ref(blake2s_state *S, const blake2s_param *P); 19 extern int blake2s_init_key_ref(blake2s_state *S, size_t outlen, 21 extern int blake2s_update_ref(blake2s_state *S, const uint8_t *in, 23 extern int blake2s_final_ref(blake2s_state *S, uint8_t *out, size_t outlen); 91 blake2s_state state;
|
H A D | blake2_cryptodev.c | 255 blake2s_state ss; in blake2_cipher_process()
|