Searched refs:gen_hash_type (Results 1 – 4 of 4) sorted by relevance
/freebsd/crypto/libecc/src/examples/hash/ |
H A D | hash.c | 14 ATTRIBUTE_WARN_UNUSED_RET static int get_libecc_hash(gen_hash_alg_type gen_hash_type, hash_alg_type… in get_libecc_hash() argument 21 switch(gen_hash_type){ in get_libecc_hash() 169 int gen_hash_get_hash_sizes(gen_hash_alg_type gen_hash_type, u8 *hlen, u8 *block_size) in gen_hash_get_hash_sizes() argument 175 switch(gen_hash_type){ in gen_hash_get_hash_sizes() 224 … ret = get_libecc_hash(gen_hash_type, &hash_type, &hm, hlen, block_size); EG(ret, err); in gen_hash_get_hash_sizes() 233 …ash_hfunc_scattered(const u8 **input, const u32 *ilen, u8 *digest, gen_hash_alg_type gen_hash_type) in gen_hash_hfunc_scattered() argument 237 switch(gen_hash_type){ in gen_hash_hfunc_scattered() 279 ret = get_libecc_hash(gen_hash_type, &hash_type, &hm, &hlen, &block_size); EG(ret, err); in gen_hash_hfunc_scattered() 290 int gen_hash_hfunc(const u8 *input, u32 ilen, u8 *digest, gen_hash_alg_type gen_hash_type) in gen_hash_hfunc() argument 295 return gen_hash_hfunc_scattered(inputs, ilens, digest, gen_hash_type); in gen_hash_hfunc() [all …]
|
H A D | hash.h | 99 ATTRIBUTE_WARN_UNUSED_RET int gen_hash_get_hash_sizes(gen_hash_alg_type gen_hash_type, u8 *hlen, u8… 100 ATTRIBUTE_WARN_UNUSED_RET int gen_hash_init(gen_hash_context *ctx, gen_hash_alg_type gen_hash_type); 101 …hash_update(gen_hash_context *ctx, const u8 *chunk, u32 chunklen, gen_hash_alg_type gen_hash_type); 102 …_UNUSED_RET int gen_hash_final(gen_hash_context *ctx, u8 *output, gen_hash_alg_type gen_hash_type); 103 …SED_RET int gen_hash_hfunc(const u8 *input, u32 ilen, u8 *digest, gen_hash_alg_type gen_hash_type); 104 …sh_hfunc_scattered(const u8 **input, const u32 *ilen, u8 *digest, gen_hash_alg_type gen_hash_type);
|
/freebsd/crypto/libecc/src/examples/sig/rsa/ |
H A D | rsa.c | 603 ATTRIBUTE_WARN_UNUSED_RET static int rsa_digestinfo_from_hash(gen_hash_alg_type gen_hash_type, u8 *… in rsa_digestinfo_from_hash() argument 610 switch(gen_hash_type){ in rsa_digestinfo_from_hash() 835 u16 *eminlen, gen_hash_alg_type gen_hash_type, gen_hash_alg_type mgf_hash_type, in emsa_pss_encode() argument 877 ret = gen_hash_get_hash_sizes(gen_hash_type, &hlen, &block_size); EG(ret, err); in emsa_pss_encode() 887 ret = gen_hash_hfunc_scattered(input, ilens, mhash, gen_hash_type); EG(ret, err); in emsa_pss_encode() 908 ret = gen_hash_hfunc_scattered(input_, ilens_, h, gen_hash_type); EG(ret, err); in emsa_pss_encode() 957 gen_hash_alg_type gen_hash_type, gen_hash_alg_type mgf_hash_type, in emsa_pss_verify() argument 992 ret = gen_hash_get_hash_sizes(gen_hash_type, &hlen, &block_size); EG(ret, err); in emsa_pss_verify() 996 ret = gen_hash_hfunc_scattered(input, ilens, mhash, gen_hash_type); EG(ret, err); in emsa_pss_verify() 1063 ret = gen_hash_hfunc_scattered(input_, ilens_, h_, gen_hash_type); EG(ret, err); in emsa_pss_verify() [all …]
|
H A D | rsa.h | 180 u32 modbits, gen_hash_alg_type gen_hash_type); 184 u32 modbits, gen_hash_alg_type gen_hash_type); 186 … const u8 *s, u16 slen, u32 modbits, gen_hash_alg_type gen_hash_type);
|