Home
last modified time | relevance | path

Searched refs:mac_len (Results 1 – 3 of 3) sorted by relevance

/optee_os/core/drivers/crypto/hisilicon/
H A Dsec_hash.c39 ctx->iv_len = ctx->mac_len; in sec_digest_fill_long_bd2()
45 ctx->iv_len = ctx->mac_len; in sec_digest_fill_long_bd2()
120 sqe->type2.mac_key_alg |= ctx->mac_len / SEC_ENCODE_BYTES; in sec_digest_fill_sqe()
167 ctx->iv_len = ctx->mac_len; in sec_digest_fill_long_bd3()
174 ctx->iv_len = ctx->mac_len; in sec_digest_fill_long_bd3()
209 sqe->auth_mac_key |= SHIFT_U64(ctx->mac_len / SEC_ENCODE_BYTES, in sec_digest_fill_bd3_sqe()
363 hash_ctx->iv_len = hash_ctx->mac_len; in hisi_sec_digest_do_update()
402 if (hash_ctx->mac_len & WORD_ALIGNMENT_MASK) { in hisi_sec_digest_do_final()
414 memcpy(digest, hash_ctx->out, MIN(hash_ctx->mac_len, len)); in hisi_sec_digest_do_final()
569 hash_ctx->mac_len = sec_hash_get_mac_len(algo); in hisi_sec_hash_ctx_init()
[all …]
H A Dsec_hash.h39 size_t mac_len; member
/optee_os/core/drivers/crypto/se050/glue/
H A Duser.c46 uint8_t *buf, size_t mac_len) in glue_mac_one_go() argument
51 if (crypto_mac_final(mac, buf, mac_len)) in glue_mac_one_go()