Home
last modified time | relevance | path

Searched refs:caam_desc_add_word (Results 1 – 15 of 15) sorted by relevance

/optee_os/core/drivers/crypto/caam/acipher/
A Dcaam_prime_dsa.c73 caam_desc_add_word(desc, in do_desc_prime_q()
91 caam_desc_add_word(desc, in do_desc_prime_q()
114 caam_desc_add_word(desc, in do_desc_prime_q()
127 caam_desc_add_word(desc, in do_desc_prime_q()
184 caam_desc_add_word(desc, in do_desc_prime_q()
251 caam_desc_add_word(desc, in do_desc_gen_x()
264 caam_desc_add_word(desc, in do_desc_gen_x()
296 caam_desc_add_word(desc, in do_desc_gen_x()
301 caam_desc_add_word(desc, in do_desc_gen_x()
321 caam_desc_add_word(desc, in do_desc_gen_x()
[all …]
A Dcaam_prime_rsa.c484 caam_desc_add_word(desc, in do_desc_prime()
490 caam_desc_add_word(desc, in do_desc_prime()
548 caam_desc_add_word(desc, in do_desc_prime()
554 caam_desc_add_word(desc, in do_desc_prime()
571 caam_desc_add_word(desc, in do_desc_prime()
595 caam_desc_add_word(desc, in do_desc_prime()
645 caam_desc_add_word(desc, in do_checks_primes()
680 caam_desc_add_word(desc, in do_checks_primes()
688 caam_desc_add_word(desc, in do_checks_primes()
696 caam_desc_add_word(desc, in do_checks_primes()
[all …]
A Dcaam_ecc.c272 caam_desc_add_word(desc, DESC_HEADER(0)); in do_gen_keypair()
273 caam_desc_add_word(desc, PDB_PKGEN_PD1 | PDB_ECC_ECDSEL(curve)); in do_gen_keypair()
276 caam_desc_add_word(desc, PK_KEYPAIR_GEN(ECC)); in do_gen_keypair()
406 caam_desc_add_word(desc, DESC_HEADER(0)); in do_sign()
418 caam_desc_add_word(desc, sdata->message.length); in do_sign()
420 caam_desc_add_word(desc, DSA_SIGN(ECC)); in do_sign()
540 caam_desc_add_word(desc, DESC_HEADER(0)); in do_verify()
554 caam_desc_add_word(desc, sdata->message.length); in do_verify()
556 caam_desc_add_word(desc, DSA_VERIFY(ECC)); in do_verify()
651 caam_desc_add_word(desc, DESC_HEADER(0)); in do_shared_secret()
[all …]
A Dcaam_math.c69 caam_desc_add_word(desc, DESC_HEADER(0)); in do_xor_mod_n()
70 caam_desc_add_word(desc, LD_IMM(CLASS_1, REG_PKHA_N_SIZE, 4)); in do_xor_mod_n()
71 caam_desc_add_word(desc, data->n.length); in do_xor_mod_n()
78 caam_desc_add_word(desc, PKHA_F2M_OP(MOD_ADD_A_B, B)); in do_xor_mod_n()
A Dcaam_dsa.c427 caam_desc_add_word(desc, DESC_HEADER(0)); in do_gen_keypair()
428 caam_desc_add_word(desc, PDB_DL_KEY_L_SIZE(l_bytes) | in do_gen_keypair()
435 caam_desc_add_word(desc, PK_KEYPAIR_GEN(DL)); in do_gen_keypair()
562 caam_desc_add_word(desc, DESC_HEADER(0)); in do_sign()
563 caam_desc_add_word(desc, PDB_DSA_SIGN_N(n_bytes) | in do_sign()
580 caam_desc_add_word(desc, sdata->message.length); in do_sign()
582 caam_desc_add_word(desc, DSA_SIGN(DL)); in do_sign()
702 caam_desc_add_word(desc, DESC_HEADER(0)); in do_verify()
703 caam_desc_add_word(desc, PDB_DSA_VERIF_N(n_bytes) | in do_verify()
722 caam_desc_add_word(desc, sdata->message.length); in do_verify()
[all …]
A Dcaam_rsa.c618 caam_desc_add_word(desc, DESC_HEADER(0)); in do_gen_keypair()
620 caam_desc_add_word(desc, 0); in do_gen_keypair()
636 caam_desc_add_word(desc, RSA_FINAL_KEY(ALL)); in do_gen_keypair()
1216 caam_desc_add_word(desc, DESC_HEADER(0)); in do_caam_encrypt()
1225 caam_desc_add_word(desc, operation); in do_caam_encrypt()
1360 caam_desc_add_word(desc, DESC_HEADER(0)); in do_caam_decrypt()
1365 caam_desc_add_word(desc, in do_caam_decrypt()
1377 caam_desc_add_word(desc, in do_caam_decrypt()
1388 caam_desc_add_word(desc, in do_caam_decrypt()
1405 caam_desc_add_word(desc, in do_caam_decrypt()
[all …]
A Dcaam_dh.c298 caam_desc_add_word(desc, DESC_HEADER(0)); in do_gen_keypair()
299 caam_desc_add_word(desc, PDB_DL_KEY_L_SIZE(l_bytes) | in do_gen_keypair()
306 caam_desc_add_word(desc, PK_KEYPAIR_GEN(DL)); in do_gen_keypair()
432 caam_desc_add_word(desc, DESC_HEADER(0)); in do_shared_secret()
433 caam_desc_add_word(desc, pdb_sgt_flags | in do_shared_secret()
447 caam_desc_add_word(desc, SHARED_SECRET(DL)); in do_shared_secret()
/optee_os/core/drivers/crypto/caam/
A Dcaam_rng.c170 caam_desc_add_word(desc, DESC_HEADER(0)); in prepare_gen_desc()
171 caam_desc_add_word(desc, RNG_GEN_DATA); in prepare_gen_desc()
382 caam_desc_add_word(desc, DESC_HEADER(0)); in prepare_inst_desc()
384 caam_desc_add_word(desc, RNG_SH_INST(sh_idx)); in prepare_inst_desc()
394 caam_desc_add_word(desc, in prepare_inst_desc()
397 caam_desc_add_word(desc, in prepare_inst_desc()
400 caam_desc_add_word(desc, 0x1); in prepare_inst_desc()
401 caam_desc_add_word(desc, RNG_SH_INST(sh_idx)); in prepare_inst_desc()
411 caam_desc_add_word(desc, JUMP_C1_LOCAL(ALL_COND_TRUE, in prepare_inst_desc()
415 caam_desc_add_word(desc, 0x1); in prepare_inst_desc()
[all …]
A Dcaam_desc.c38 void caam_desc_add_word(uint32_t *desc, uint32_t word) in caam_desc_add_word() function
159 caam_desc_add_word(desc, operation); in caam_desc_add_dmaobj()
163 caam_desc_add_word(desc, data->sgtbuf.length); in caam_desc_add_dmaobj()
/optee_os/core/drivers/crypto/caam/hash/
A Dcaam_hash.c121 caam_desc_add_word(desc, LD_KEY_SPLIT(key->length)); in do_desc_load_key()
401 caam_desc_add_word(desc, DESC_HEADER(0)); in do_update_hash()
407 caam_desc_add_word(desc, HASH_UPDATE(alg->type)); in do_update_hash()
409 caam_desc_add_word(desc, in do_update_hash()
423 caam_desc_add_word(desc, HASH_INIT(alg->type)); in do_update_hash()
443 caam_desc_add_word(desc, in do_update_hash()
601 caam_desc_add_word(desc, DESC_HEADER(0)); in caam_hash_hmac_final()
613 caam_desc_add_word(desc, HASH_FINAL(alg->type)); in caam_hash_hmac_final()
616 caam_desc_add_word(desc, in caam_hash_hmac_final()
627 caam_desc_add_word(desc, in caam_hash_hmac_final()
[all …]
A Dcaam_hash_mac.c86 caam_desc_add_word(desc, DESC_HEADER(0)); in do_reduce_key()
87 caam_desc_add_word(desc, HASH_INITFINAL(alg->type)); in do_reduce_key()
172 caam_desc_add_word(desc, DESC_HEADER(0)); in do_hmac_init()
176 caam_desc_add_word(desc, HMAC_INIT_DECRYPT(alg->type)); in do_hmac_init()
177 caam_desc_add_word(desc, FIFO_LD_IMM(CLASS_2, MSG, LAST_C2, 0)); in do_hmac_init()
179 caam_desc_add_word(desc, FIFO_ST(C2_MDHA_SPLIT_KEY_AES_ECB_JKEK, in do_hmac_init()
/optee_os/core/drivers/crypto/caam/blob/
A Dcaam_blob.c43 caam_desc_add_word(desc, DESC_HEADER(0)); in caam_blob_mkvb_init()
44 caam_desc_add_word(desc, SEQ_OUT_PTR(32)); in caam_blob_mkvb_init()
46 caam_desc_add_word(desc, BLOB_MSTR_KEY); in caam_blob_mkvb_init()
/optee_os/core/drivers/crypto/caam/cipher/
A Dcaam_cipher_mac.c307 caam_desc_add_word(desc, DESC_HEADER(0)); in run_cmac_desc()
311 caam_desc_add_word(desc, LD_KEY_PLAIN(CLASS_1, REG, in run_cmac_desc()
319 caam_desc_add_word(desc, LD_NOIMM_OFF(CLASS_1, REG_CTX, in run_cmac_desc()
324 caam_desc_add_word(desc, in run_cmac_desc()
327 caam_desc_add_word(desc, in run_cmac_desc()
332 caam_desc_add_word(desc, in run_cmac_desc()
350 caam_desc_add_word(desc, in run_cmac_desc()
353 caam_desc_add_word(desc, in run_cmac_desc()
357 caam_desc_add_word(desc, ctx->blockbuf.filled); in run_cmac_desc()
373 caam_desc_add_word(desc, in run_cmac_desc()
[all …]
A Dcaam_cipher.c171 caam_desc_add_word(desc, DESC_HEADER(0)); in caam_cipher_block()
175 caam_desc_add_word(desc, LD_KEY_PLAIN(CLASS_1, REG, in caam_cipher_block()
180 caam_desc_add_word(desc, LD_KEY_PLAIN(CLASS_1, REG, in caam_cipher_block()
187 caam_desc_add_word(desc, LD_NOIMM_OFF(CLASS_1, REG_CTX, in caam_cipher_block()
192 caam_desc_add_word(desc, CIPHER_INIT(ctx->alg->type, encrypt)); in caam_cipher_block()
195 caam_desc_add_word(desc, in caam_cipher_block()
214 caam_desc_add_word(desc, in caam_cipher_block()
/optee_os/core/drivers/crypto/caam/include/
A Dcaam_desc_helper.h24 void caam_desc_add_word(uint32_t *desc, uint32_t word);

Completed in 22 milliseconds