Lines Matching refs:cdata
211 struct alginfo * const cdata, in init_sh_desc_key_aead() argument
216 unsigned int enckeylen = cdata->keylen; in init_sh_desc_key_aead()
246 if (cdata->key_inline) in init_sh_desc_key_aead()
247 append_key_as_imm(desc, cdata->key_virt, enckeylen, in init_sh_desc_key_aead()
250 append_key(desc, cdata->key_dma, enckeylen, CLASS_1 | in init_sh_desc_key_aead()
288 void cnstr_shdsc_aead_encap(u32 * const desc, struct alginfo *cdata, in cnstr_shdsc_aead_encap() argument
295 init_sh_desc_key_aead(desc, cdata, adata, is_rfc3686, nonce, era); in cnstr_shdsc_aead_encap()
344 append_operation(desc, cdata->algtype | OP_ALG_AS_INITFINAL | in cnstr_shdsc_aead_encap()
382 void cnstr_shdsc_aead_decap(u32 * const desc, struct alginfo *cdata, in cnstr_shdsc_aead_decap() argument
389 init_sh_desc_key_aead(desc, cdata, adata, is_rfc3686, nonce, era); in cnstr_shdsc_aead_decap()
458 append_operation(desc, cdata->algtype | OP_ALG_AS_INITFINAL | in cnstr_shdsc_aead_decap()
461 append_dec_op1(desc, cdata->algtype); in cnstr_shdsc_aead_decap()
499 void cnstr_shdsc_aead_givencap(u32 * const desc, struct alginfo *cdata, in cnstr_shdsc_aead_givencap() argument
509 init_sh_desc_key_aead(desc, cdata, adata, is_rfc3686, nonce, era); in cnstr_shdsc_aead_givencap()
590 append_operation(desc, cdata->algtype | OP_ALG_AS_INITFINAL | in cnstr_shdsc_aead_givencap()
633 void cnstr_shdsc_gcm_encap(u32 * const desc, struct alginfo *cdata, in cnstr_shdsc_gcm_encap() argument
645 if (cdata->key_inline) in cnstr_shdsc_gcm_encap()
646 append_key_as_imm(desc, cdata->key_virt, cdata->keylen, in cnstr_shdsc_gcm_encap()
647 cdata->keylen, CLASS_1 | KEY_DEST_CLASS_REG); in cnstr_shdsc_gcm_encap()
649 append_key(desc, cdata->key_dma, cdata->keylen, CLASS_1 | in cnstr_shdsc_gcm_encap()
654 append_operation(desc, cdata->algtype | OP_ALG_AS_INITFINAL | in cnstr_shdsc_gcm_encap()
760 void cnstr_shdsc_gcm_decap(u32 * const desc, struct alginfo *cdata, in cnstr_shdsc_gcm_decap() argument
771 if (cdata->key_inline) in cnstr_shdsc_gcm_decap()
772 append_key_as_imm(desc, cdata->key_virt, cdata->keylen, in cnstr_shdsc_gcm_decap()
773 cdata->keylen, CLASS_1 | KEY_DEST_CLASS_REG); in cnstr_shdsc_gcm_decap()
775 append_key(desc, cdata->key_dma, cdata->keylen, CLASS_1 | in cnstr_shdsc_gcm_decap()
780 append_operation(desc, cdata->algtype | OP_ALG_AS_INITFINAL | in cnstr_shdsc_gcm_decap()
860 void cnstr_shdsc_rfc4106_encap(u32 * const desc, struct alginfo *cdata, in cnstr_shdsc_rfc4106_encap() argument
870 if (cdata->key_inline) in cnstr_shdsc_rfc4106_encap()
871 append_key_as_imm(desc, cdata->key_virt, cdata->keylen, in cnstr_shdsc_rfc4106_encap()
872 cdata->keylen, CLASS_1 | KEY_DEST_CLASS_REG); in cnstr_shdsc_rfc4106_encap()
874 append_key(desc, cdata->key_dma, cdata->keylen, CLASS_1 | in cnstr_shdsc_rfc4106_encap()
879 append_operation(desc, cdata->algtype | OP_ALG_AS_INITFINAL | in cnstr_shdsc_rfc4106_encap()
897 append_fifo_load_as_imm(desc, (void *)(cdata->key_virt + in cnstr_shdsc_rfc4106_encap()
898 cdata->keylen), 4, FIFOLD_CLASS_CLASS1 | in cnstr_shdsc_rfc4106_encap()
967 void cnstr_shdsc_rfc4106_decap(u32 * const desc, struct alginfo *cdata, in cnstr_shdsc_rfc4106_decap() argument
978 if (cdata->key_inline) in cnstr_shdsc_rfc4106_decap()
979 append_key_as_imm(desc, cdata->key_virt, cdata->keylen, in cnstr_shdsc_rfc4106_decap()
980 cdata->keylen, CLASS_1 | in cnstr_shdsc_rfc4106_decap()
983 append_key(desc, cdata->key_dma, cdata->keylen, CLASS_1 | in cnstr_shdsc_rfc4106_decap()
988 append_operation(desc, cdata->algtype | OP_ALG_AS_INITFINAL | in cnstr_shdsc_rfc4106_decap()
1006 append_fifo_load_as_imm(desc, (void *)(cdata->key_virt + in cnstr_shdsc_rfc4106_decap()
1007 cdata->keylen), 4, FIFOLD_CLASS_CLASS1 | in cnstr_shdsc_rfc4106_decap()
1062 void cnstr_shdsc_rfc4543_encap(u32 * const desc, struct alginfo *cdata, in cnstr_shdsc_rfc4543_encap() argument
1073 if (cdata->key_inline) in cnstr_shdsc_rfc4543_encap()
1074 append_key_as_imm(desc, cdata->key_virt, cdata->keylen, in cnstr_shdsc_rfc4543_encap()
1075 cdata->keylen, CLASS_1 | KEY_DEST_CLASS_REG); in cnstr_shdsc_rfc4543_encap()
1077 append_key(desc, cdata->key_dma, cdata->keylen, CLASS_1 | in cnstr_shdsc_rfc4543_encap()
1082 append_operation(desc, cdata->algtype | OP_ALG_AS_INITFINAL | in cnstr_shdsc_rfc4543_encap()
1090 append_fifo_load_as_imm(desc, (void *)(cdata->key_virt + in cnstr_shdsc_rfc4543_encap()
1091 cdata->keylen), 4, FIFOLD_CLASS_CLASS1 | in cnstr_shdsc_rfc4543_encap()
1145 void cnstr_shdsc_rfc4543_decap(u32 * const desc, struct alginfo *cdata, in cnstr_shdsc_rfc4543_decap() argument
1156 if (cdata->key_inline) in cnstr_shdsc_rfc4543_decap()
1157 append_key_as_imm(desc, cdata->key_virt, cdata->keylen, in cnstr_shdsc_rfc4543_decap()
1158 cdata->keylen, CLASS_1 | KEY_DEST_CLASS_REG); in cnstr_shdsc_rfc4543_decap()
1160 append_key(desc, cdata->key_dma, cdata->keylen, CLASS_1 | in cnstr_shdsc_rfc4543_decap()
1165 append_operation(desc, cdata->algtype | OP_ALG_AS_INITFINAL | in cnstr_shdsc_rfc4543_decap()
1173 append_fifo_load_as_imm(desc, (void *)(cdata->key_virt + in cnstr_shdsc_rfc4543_decap()
1174 cdata->keylen), 4, FIFOLD_CLASS_CLASS1 | in cnstr_shdsc_rfc4543_decap()
1239 void cnstr_shdsc_chachapoly(u32 * const desc, struct alginfo *cdata, in cnstr_shdsc_chachapoly() argument
1255 append_key_as_imm(desc, cdata->key_virt, cdata->keylen, cdata->keylen, in cnstr_shdsc_chachapoly()
1260 append_load_as_imm(desc, cdata->key_virt + cdata->keylen, 4, in cnstr_shdsc_chachapoly()
1270 append_operation(desc, cdata->algtype | OP_ALG_AS_INITFINAL | in cnstr_shdsc_chachapoly()
1275 append_operation(desc, cdata->algtype | OP_ALG_AS_INITFINAL | in cnstr_shdsc_chachapoly()
1377 void cnstr_shdsc_skcipher_encap(u32 * const desc, struct alginfo *cdata, in cnstr_shdsc_skcipher_encap() argument
1389 append_key_as_imm(desc, cdata->key_virt, cdata->keylen, in cnstr_shdsc_skcipher_encap()
1390 cdata->keylen, CLASS_1 | KEY_DEST_CLASS_REG); in cnstr_shdsc_skcipher_encap()
1394 const u8 *nonce = cdata->key_virt + cdata->keylen; in cnstr_shdsc_skcipher_encap()
1420 append_operation(desc, cdata->algtype | OP_ALG_AS_INIT | in cnstr_shdsc_skcipher_encap()
1449 void cnstr_shdsc_skcipher_decap(u32 * const desc, struct alginfo *cdata, in cnstr_shdsc_skcipher_decap() argument
1461 append_key_as_imm(desc, cdata->key_virt, cdata->keylen, in cnstr_shdsc_skcipher_decap()
1462 cdata->keylen, CLASS_1 | KEY_DEST_CLASS_REG); in cnstr_shdsc_skcipher_decap()
1466 const u8 *nonce = cdata->key_virt + cdata->keylen; in cnstr_shdsc_skcipher_decap()
1493 append_operation(desc, cdata->algtype | OP_ALG_AS_INIT | in cnstr_shdsc_skcipher_decap()
1496 append_dec_op1(desc, cdata->algtype); in cnstr_shdsc_skcipher_decap()
1519 void cnstr_shdsc_xts_skcipher_encap(u32 * const desc, struct alginfo *cdata) in cnstr_shdsc_xts_skcipher_encap() argument
1530 append_key_as_imm(desc, cdata->key_virt, cdata->keylen, in cnstr_shdsc_xts_skcipher_encap()
1531 cdata->keylen, CLASS_1 | KEY_DEST_CLASS_REG); in cnstr_shdsc_xts_skcipher_encap()
1550 append_operation(desc, cdata->algtype | OP_ALG_AS_INITFINAL | in cnstr_shdsc_xts_skcipher_encap()
1572 void cnstr_shdsc_xts_skcipher_decap(u32 * const desc, struct alginfo *cdata) in cnstr_shdsc_xts_skcipher_decap() argument
1583 append_key_as_imm(desc, cdata->key_virt, cdata->keylen, in cnstr_shdsc_xts_skcipher_decap()
1584 cdata->keylen, CLASS_1 | KEY_DEST_CLASS_REG); in cnstr_shdsc_xts_skcipher_decap()
1603 append_dec_op1(desc, cdata->algtype); in cnstr_shdsc_xts_skcipher_decap()