Lines Matching refs:hm
14 …ash_alg_type gen_hash_type, hash_alg_type *hash_type, const hash_mapping **hm, u8 *hlen, u8 *block… in get_libecc_hash() argument
19 MUST_HAVE((hash_type != NULL) && (hm != NULL), ret, err); in get_libecc_hash()
150 ret = get_hash_by_type(htype, hm); EG(ret, err); in get_libecc_hash()
160 if(ret && (hm != NULL)){ in get_libecc_hash()
161 (*hm) = NULL; in get_libecc_hash()
222 const hash_mapping *hm; in gen_hash_get_hash_sizes() local
224 … ret = get_libecc_hash(gen_hash_type, &hash_type, &hm, hlen, block_size); EG(ret, err); in gen_hash_get_hash_sizes()
276 const hash_mapping *hm; in gen_hash_hfunc_scattered() local
279 ret = get_libecc_hash(gen_hash_type, &hash_type, &hm, &hlen, &block_size); EG(ret, err); in gen_hash_hfunc_scattered()
280 MUST_HAVE((hm != NULL), ret, err); in gen_hash_hfunc_scattered()
281 ret = hm->hfunc_scattered(input, ilen, digest); EG(ret, err); in gen_hash_hfunc_scattered()
347 const hash_mapping *hm; in gen_hash_init() local
350 ret = get_libecc_hash(gen_hash_type, &hash_type, &hm, &hlen, &block_size); EG(ret, err); in gen_hash_init()
351 MUST_HAVE((hm != NULL), ret, err); in gen_hash_init()
352 ret = hm->hfunc_init(&(ctx->hctx)); EG(ret, err); in gen_hash_init()
400 const hash_mapping *hm; in gen_hash_update() local
403 ret = get_libecc_hash(gen_hash_type, &hash_type, &hm, &hlen, &block_size); EG(ret, err); in gen_hash_update()
404 MUST_HAVE((hm != NULL), ret, err); in gen_hash_update()
405 ret = hm->hfunc_update(&(ctx->hctx), chunk, chunklen); EG(ret, err); in gen_hash_update()
453 const hash_mapping *hm; in gen_hash_final() local
456 ret = get_libecc_hash(gen_hash_type, &hash_type, &hm, &hlen, &block_size); EG(ret, err); in gen_hash_final()
457 MUST_HAVE((hm != NULL), ret, err); in gen_hash_final()
458 ret = hm->hfunc_finalize(&(ctx->hctx), output); EG(ret, err); in gen_hash_final()