Lines Matching refs:desc

112 int inline_cnstr_jobdesc_blob_dek(uint32_t *desc, const uint8_t *plain_txt,  in inline_cnstr_jobdesc_blob_dek()  argument
155 init_job_desc(desc, 0); in inline_cnstr_jobdesc_blob_dek()
157 append_cmd(desc, CMD_LOAD | CLASS_2 | KEY_IMM | KEY_ENC | in inline_cnstr_jobdesc_blob_dek()
160 append_u32(desc, aad_w1); in inline_cnstr_jobdesc_blob_dek()
162 append_u32(desc, aad_w2); in inline_cnstr_jobdesc_blob_dek()
164 append_cmd_ptr(desc, (dma_addr_t)SEC_MEM_PAGE1, in_sz, CMD_SEQ_IN_PTR); in inline_cnstr_jobdesc_blob_dek()
166 append_cmd_ptr(desc, (dma_addr_t)dek_blob + 8, out_sz, CMD_SEQ_OUT_PTR); in inline_cnstr_jobdesc_blob_dek()
168 append_operation(desc, OP_TYPE_ENCAP_PROTOCOL | OP_PCLID_BLOB | in inline_cnstr_jobdesc_blob_dek()
175 void inline_cnstr_jobdesc_hash(uint32_t *desc, in inline_cnstr_jobdesc_hash() argument
187 init_job_desc(desc, 0); in inline_cnstr_jobdesc_hash()
188 append_operation(desc, OP_TYPE_CLASS2_ALG | in inline_cnstr_jobdesc_hash()
197 append_fifo_load(desc, dma_addr_in, 0, options); in inline_cnstr_jobdesc_hash()
198 append_cmd(desc, msgsz); in inline_cnstr_jobdesc_hash()
200 append_fifo_load(desc, dma_addr_in, msgsz, options); in inline_cnstr_jobdesc_hash()
203 append_store(desc, dma_addr_out, storelen, in inline_cnstr_jobdesc_hash()
207 void inline_cnstr_jobdesc_blob_encap(uint32_t *desc, uint8_t *key_idnfr, in inline_cnstr_jobdesc_blob_encap() argument
221 init_job_desc(desc, 0); in inline_cnstr_jobdesc_blob_encap()
223 append_key(desc, dma_addr_key_idnfr, key_sz, CLASS_2); in inline_cnstr_jobdesc_blob_encap()
225 append_seq_in_ptr(desc, dma_addr_in, in_sz, 0); in inline_cnstr_jobdesc_blob_encap()
227 append_seq_out_ptr(desc, dma_addr_out, out_sz, 0); in inline_cnstr_jobdesc_blob_encap()
229 append_operation(desc, OP_TYPE_ENCAP_PROTOCOL | OP_PCLID_BLOB); in inline_cnstr_jobdesc_blob_encap()
232 void inline_cnstr_jobdesc_blob_decap(uint32_t *desc, uint8_t *key_idnfr, in inline_cnstr_jobdesc_blob_decap() argument
244 init_job_desc(desc, 0); in inline_cnstr_jobdesc_blob_decap()
246 append_key(desc, dma_addr_key_idnfr, key_sz, CLASS_2); in inline_cnstr_jobdesc_blob_decap()
248 append_seq_in_ptr(desc, dma_addr_in, in_sz, 0); in inline_cnstr_jobdesc_blob_decap()
250 append_seq_out_ptr(desc, dma_addr_out, out_sz, 0); in inline_cnstr_jobdesc_blob_decap()
252 append_operation(desc, OP_TYPE_DECAP_PROTOCOL | OP_PCLID_BLOB); in inline_cnstr_jobdesc_blob_decap()
259 void inline_cnstr_jobdesc_rng_instantiation(uint32_t *desc, int handle) in inline_cnstr_jobdesc_rng_instantiation() argument
263 init_job_desc(desc, 0); in inline_cnstr_jobdesc_rng_instantiation()
266 append_operation(desc, OP_TYPE_CLASS1_ALG | OP_ALG_ALGSEL_RNG | in inline_cnstr_jobdesc_rng_instantiation()
272 jump_cmd = append_jump(desc, JUMP_CLASS_CLASS1); in inline_cnstr_jobdesc_rng_instantiation()
273 set_jump_tgt_here(desc, jump_cmd); in inline_cnstr_jobdesc_rng_instantiation()
279 append_load_imm_u32(desc, 1, LDST_SRCDST_WORD_CLRW); in inline_cnstr_jobdesc_rng_instantiation()
282 append_operation(desc, OP_TYPE_CLASS1_ALG | OP_ALG_ALGSEL_RNG | in inline_cnstr_jobdesc_rng_instantiation()
288 void inline_cnstr_jobdesc_pkha_rsaexp(uint32_t *desc, in inline_cnstr_jobdesc_pkha_rsaexp() argument
299 init_job_desc(desc, 0); in inline_cnstr_jobdesc_pkha_rsaexp()
300 append_key(desc, dma_addr_e, pkin->e_siz, KEY_DEST_PKHA_E | CLASS_1); in inline_cnstr_jobdesc_pkha_rsaexp()
302 append_fifo_load(desc, dma_addr_a, in inline_cnstr_jobdesc_pkha_rsaexp()
305 append_fifo_load(desc, dma_addr_n, in inline_cnstr_jobdesc_pkha_rsaexp()
308 append_operation(desc, OP_TYPE_PK | OP_ALG_PK | OP_ALG_PKMODE_MOD_EXPO); in inline_cnstr_jobdesc_pkha_rsaexp()
310 append_fifo_store(desc, dma_addr_out, out_siz, in inline_cnstr_jobdesc_pkha_rsaexp()