Lines Matching defs:cdata

211 				  struct alginfo * const cdata,
216 unsigned int enckeylen = cdata->keylen;
246 if (cdata->key_inline)
247 append_key_as_imm(desc, cdata->key_virt, enckeylen,
250 append_key(desc, cdata->key_dma, enckeylen, CLASS_1 |
272 * @cdata: pointer to block cipher transform definitions
288 void cnstr_shdsc_aead_encap(u32 * const desc, struct alginfo *cdata,
295 init_sh_desc_key_aead(desc, cdata, adata, is_rfc3686, nonce, era);
344 append_operation(desc, cdata->algtype | OP_ALG_AS_INITFINAL |
366 * @cdata: pointer to block cipher transform definitions
383 void cnstr_shdsc_aead_decap(u32 * const desc, struct alginfo *cdata,
390 init_sh_desc_key_aead(desc, cdata, adata, is_rfc3686, nonce, era);
459 append_operation(desc, cdata->algtype | OP_ALG_AS_INITFINAL |
462 append_dec_op1(desc, cdata->algtype);
484 * @cdata: pointer to block cipher transform definitions
500 void cnstr_shdsc_aead_givencap(u32 * const desc, struct alginfo *cdata,
510 init_sh_desc_key_aead(desc, cdata, adata, is_rfc3686, nonce, era);
591 append_operation(desc, cdata->algtype | OP_ALG_AS_INITFINAL |
628 * @cdata: pointer to block cipher transform definitions
634 void cnstr_shdsc_gcm_encap(u32 * const desc, struct alginfo *cdata,
646 if (cdata->key_inline)
647 append_key_as_imm(desc, cdata->key_virt, cdata->keylen,
648 cdata->keylen, CLASS_1 | KEY_DEST_CLASS_REG);
650 append_key(desc, cdata->key_dma, cdata->keylen, CLASS_1 |
655 append_operation(desc, cdata->algtype | OP_ALG_AS_INITFINAL |
755 * @cdata: pointer to block cipher transform definitions
761 void cnstr_shdsc_gcm_decap(u32 * const desc, struct alginfo *cdata,
772 if (cdata->key_inline)
773 append_key_as_imm(desc, cdata->key_virt, cdata->keylen,
774 cdata->keylen, CLASS_1 | KEY_DEST_CLASS_REG);
776 append_key(desc, cdata->key_dma, cdata->keylen, CLASS_1 |
781 append_operation(desc, cdata->algtype | OP_ALG_AS_INITFINAL |
851 * @cdata: pointer to block cipher transform definitions
861 void cnstr_shdsc_rfc4106_encap(u32 * const desc, struct alginfo *cdata,
871 if (cdata->key_inline)
872 append_key_as_imm(desc, cdata->key_virt, cdata->keylen,
873 cdata->keylen, CLASS_1 | KEY_DEST_CLASS_REG);
875 append_key(desc, cdata->key_dma, cdata->keylen, CLASS_1 |
880 append_operation(desc, cdata->algtype | OP_ALG_AS_INITFINAL |
898 append_fifo_load_as_imm(desc, (void *)(cdata->key_virt +
899 cdata->keylen), 4, FIFOLD_CLASS_CLASS1 |
962 * @cdata: pointer to block cipher transform definitions
968 void cnstr_shdsc_rfc4106_decap(u32 * const desc, struct alginfo *cdata,
979 if (cdata->key_inline)
980 append_key_as_imm(desc, cdata->key_virt, cdata->keylen,
981 cdata->keylen, CLASS_1 |
984 append_key(desc, cdata->key_dma, cdata->keylen, CLASS_1 |
989 append_operation(desc, cdata->algtype | OP_ALG_AS_INITFINAL |
1007 append_fifo_load_as_imm(desc, (void *)(cdata->key_virt +
1008 cdata->keylen), 4, FIFOLD_CLASS_CLASS1 |
1057 * @cdata: pointer to block cipher transform definitions
1063 void cnstr_shdsc_rfc4543_encap(u32 * const desc, struct alginfo *cdata,
1074 if (cdata->key_inline)
1075 append_key_as_imm(desc, cdata->key_virt, cdata->keylen,
1076 cdata->keylen, CLASS_1 | KEY_DEST_CLASS_REG);
1078 append_key(desc, cdata->key_dma, cdata->keylen, CLASS_1 |
1083 append_operation(desc, cdata->algtype | OP_ALG_AS_INITFINAL |
1091 append_fifo_load_as_imm(desc, (void *)(cdata->key_virt +
1092 cdata->keylen), 4, FIFOLD_CLASS_CLASS1 |
1140 * @cdata: pointer to block cipher transform definitions
1146 void cnstr_shdsc_rfc4543_decap(u32 * const desc, struct alginfo *cdata,
1157 if (cdata->key_inline)
1158 append_key_as_imm(desc, cdata->key_virt, cdata->keylen,
1159 cdata->keylen, CLASS_1 | KEY_DEST_CLASS_REG);
1161 append_key(desc, cdata->key_dma, cdata->keylen, CLASS_1 |
1166 append_operation(desc, cdata->algtype | OP_ALG_AS_INITFINAL |
1174 append_fifo_load_as_imm(desc, (void *)(cdata->key_virt +
1175 cdata->keylen), 4, FIFOLD_CLASS_CLASS1 |
1229 * @cdata: pointer to block cipher transform definitions
1240 void cnstr_shdsc_chachapoly(u32 * const desc, struct alginfo *cdata,
1256 append_key_as_imm(desc, cdata->key_virt, cdata->keylen, cdata->keylen,
1261 append_load_as_imm(desc, cdata->key_virt + cdata->keylen, 4,
1271 append_operation(desc, cdata->algtype | OP_ALG_AS_INITFINAL |
1276 append_operation(desc, cdata->algtype | OP_ALG_AS_INITFINAL |
1370 * @cdata: pointer to block cipher transform definitions
1378 void cnstr_shdsc_skcipher_encap(u32 * const desc, struct alginfo *cdata,
1383 u32 options = cdata->algtype | OP_ALG_AS_INIT | OP_ALG_ENCRYPT;
1384 bool is_chacha20 = ((cdata->algtype & OP_ALG_ALGSEL_MASK) ==
1393 append_key_as_imm(desc, cdata->key_virt, cdata->keylen,
1394 cdata->keylen, CLASS_1 | KEY_DEST_CLASS_REG);
1398 const u8 *nonce = cdata->key_virt + cdata->keylen;
1446 * @cdata: pointer to block cipher transform definitions
1454 void cnstr_shdsc_skcipher_decap(u32 * const desc, struct alginfo *cdata,
1459 bool is_chacha20 = ((cdata->algtype & OP_ALG_ALGSEL_MASK) ==
1468 append_key_as_imm(desc, cdata->key_virt, cdata->keylen,
1469 cdata->keylen, CLASS_1 | KEY_DEST_CLASS_REG);
1473 const u8 *nonce = cdata->key_virt + cdata->keylen;
1500 append_operation(desc, cdata->algtype | OP_ALG_AS_INIT |
1503 append_dec_op1(desc, cdata->algtype);
1523 * @cdata: pointer to block cipher transform definitions
1526 void cnstr_shdsc_xts_skcipher_encap(u32 * const desc, struct alginfo *cdata)
1543 append_key_as_imm(desc, cdata->key_virt, cdata->keylen,
1544 cdata->keylen, CLASS_1 | KEY_DEST_CLASS_REG);
1564 append_operation(desc, cdata->algtype | OP_ALG_AS_INITFINAL |
1585 * @cdata: pointer to block cipher transform definitions
1588 void cnstr_shdsc_xts_skcipher_decap(u32 * const desc, struct alginfo *cdata)
1605 append_key_as_imm(desc, cdata->key_virt, cdata->keylen,
1606 cdata->keylen, CLASS_1 | KEY_DEST_CLASS_REG);
1625 append_dec_op1(desc, cdata->algtype);