Searched refs:type2 (Results 1 – 5 of 5) sorted by relevance
| /optee_os/core/drivers/crypto/hisilicon/ |
| H A D | sec_pbkdf2.c | 18 done = SEC_GET_FIELD(sqe->type2.done_flag, SEC_DONE_MASK, 0); in sec_pbkdf2_parse_sqe() 19 if (done != SEC_HW_TASK_DONE || sqe->type2.error_type) { in sec_pbkdf2_parse_sqe() 21 done, sqe->type2.error_type); in sec_pbkdf2_parse_sqe() 37 sqe->type2.mac_key_alg = SHIFT_U32(pbkdf2_msg->derive_type, in sec_pbkdf2_fill_sqe() 40 sqe->type2.mac_key_alg |= 0x1; in sec_pbkdf2_fill_sqe() 41 sqe->type2.mac_key_alg |= SHIFT_U32(0x1, SEC_AKEY_OFFSET); in sec_pbkdf2_fill_sqe() 43 sqe->type2.alen_ivllen = pbkdf2_msg->salt_len; in sec_pbkdf2_fill_sqe() 44 sqe->type2.clen_ivhlen = pbkdf2_msg->c_num; in sec_pbkdf2_fill_sqe() 45 sqe->type2.pass_word_len = (uint16_t)pbkdf2_msg->key_len; in sec_pbkdf2_fill_sqe() 46 sqe->type2.dk_len = (uint16_t)pbkdf2_msg->out_len; in sec_pbkdf2_fill_sqe() [all …]
|
| H A D | sec_hash.c | 22 sqe->type2.mac_key_alg |= SHIFT_U64(DIV_ROUND_UP(ctx->key_len, in sec_digest_set_hmac_key() 25 sqe->type2.a_key_addr = ctx->key_dma; in sec_digest_set_hmac_key() 44 sqe->type2.a_ivin_addr = sqe->type2.mac_addr; in sec_digest_fill_long_bd2() 50 sqe->type2.a_ivin_addr = sqe->type2.mac_addr; in sec_digest_fill_long_bd2() 52 sqe->type2.long_a_data_len = total_bits; in sec_digest_fill_long_bd2() 116 sqe->type2.alen_ivllen = ctx->in_len; in sec_digest_fill_sqe() 118 sqe->type2.data_src_addr = ctx->in_dma; in sec_digest_fill_sqe() 119 sqe->type2.mac_addr = ctx->out_dma; in sec_digest_fill_sqe() 120 sqe->type2.mac_key_alg |= ctx->mac_len / SEC_ENCODE_BYTES; in sec_digest_fill_sqe() 133 sqe->type2.mac_key_alg |= SHIFT_U32(alg_type, SEC_AEAD_ALG_OFFSET); in sec_digest_fill_sqe() [all …]
|
| H A D | sec_authenc.c | 31 sqe->type2.cipher_src_offset = ae_ctx->aad.length; in sec_aead_bd_fill() 32 sqe->type2.icvw_kmode = SHIFT_U32(ae_ctx->c_key_len, SEC_CKEY_OFFSET) | in sec_aead_bd_fill() 35 sqe->type2.clen_ivhlen = ae_ctx->payload_len; in sec_aead_bd_fill() 36 sqe->type2.alen_ivllen = ae_ctx->aad.length; in sec_aead_bd_fill() 37 sqe->type2.c_alg = ae_ctx->algo; in sec_aead_bd_fill() 49 sqe->type2.data_dst_addr = ae_ctx->dst_dma; in sec_aead_bd_fill() 50 sqe->type2.data_src_addr = ae_ctx->src_dma; in sec_aead_bd_fill() 51 sqe->type2.c_ivin_addr = ae_ctx->civ_dma; in sec_aead_bd_fill() 52 sqe->type2.c_key_addr = ae_ctx->key_dma; in sec_aead_bd_fill() 53 sqe->type2.mac_addr = ae_ctx->tag_dma; in sec_aead_bd_fill() [all …]
|
| H A D | sec_cipher.c | 354 sqe->type2.clen_ivhlen = c_ctx->len; in sec_cipher_bd_fill() 356 sqe->type2.c_alg = c_ctx->alg; in sec_cipher_bd_fill() 357 sqe->type2.icvw_kmode = SHIFT_U32(c_ctx->mode, SEC_CMODE_OFFSET) | in sec_cipher_bd_fill() 367 sqe->type2.data_dst_addr = c_ctx->out_dma; in sec_cipher_bd_fill() 368 sqe->type2.data_src_addr = c_ctx->in_dma; in sec_cipher_bd_fill() 369 sqe->type2.c_key_addr = c_ctx->key_dma; in sec_cipher_bd_fill() 370 sqe->type2.c_ivin_addr = c_ctx->iv_dma; in sec_cipher_bd_fill() 380 done = SEC_GET_FIELD(sqe->type2.done_flag, SEC_DONE_MASK, 0); in sec_cipher_bd_parse() 381 if (done != SEC_HW_TASK_DONE || sqe->type2.error_type) { in sec_cipher_bd_parse() 383 done, sqe->type2.error_type); in sec_cipher_bd_parse()
|
| H A D | sec_main.h | 182 struct hisi_sec_sqe_type2 type2; /* the other scene */ member
|