Home | History | Annotate | Download | only in opencrypto

Lines Matching defs:txform

111 	const struct enc_xform *txform;
466 if (cse->txform) {
467 if (cop->len < cse->txform->blocksize
468 + (cop->iv ? 0 : cse->txform->ivsize) ||
469 (cop->len - (cop->iv ? 0 : cse->txform->ivsize))
470 % cse->txform->blocksize != 0)
474 if (cse->tcomp == NULL && cse->txform == NULL && cse->thash == NULL)
505 crp = crypto_getreq((cse->tcomp != NULL) + (cse->txform != NULL) + (cse->thash != NULL));
512 /* crds are always ordered tcomp, thash, then txform */
525 if (cse->txform && crda)
528 if (cse->txform) {
621 if (cse->txform->ivsize == 0) {
626 cse->txform->ivsize)))
628 (void)memcpy(crde->crd_iv, cse->tmp_iv, cse->txform->ivsize);
632 if (cse->txform->ivsize == 0) {
637 crde->crd_skip = cse->txform->ivsize;
638 crde->crd_len -= cse->txform->ivsize;
966 u_int32_t comp_alg, const struct enc_xform *txform,
982 cse->txform = txform;
1101 if (cse->txform) {
1102 if (cnop[req].len < cse->txform->blocksize -
1103 (cnop[req].iv ? 0 : cse->txform->ivsize) ||
1105 (cnop[req].iv ? 0 : cse->txform->ivsize))
1106 % cse->txform->blocksize) {
1112 if (cse->txform == NULL &&
1125 crp = crypto_getreq((cse->txform != NULL) +
1161 if (cse->txform && crda)
1164 if (cse->txform) {
1265 cse->txform->ivsize))) {
1270 cse->txform->ivsize);
1279 crde->crd_skip = cse->txform->ivsize;
1280 crde->crd_len -= cse->txform->ivsize;
1460 const struct enc_xform *txform = NULL;
1474 txform = &enc_xform_des;
1477 txform = &enc_xform_3des;
1480 txform = &enc_xform_blf;
1483 txform = &enc_xform_cast5;
1486 txform = &enc_xform_skipjack;
1489 txform = &enc_xform_aes;
1492 txform = &enc_xform_camellia;
1495 txform = &enc_xform_aes_ctr;
1498 txform = &enc_xform_aes_gcm;
1501 txform = &enc_xform_aes_gmac;
1504 txform = &enc_xform_null;
1507 txform = &enc_xform_arc4;
1605 if (txform) {
1612 if (txform) {
1613 crie.cri_alg = txform->type;
1615 if (sop->keylen > txform->maxkey ||
1616 sop->keylen < txform->minkey) {
1618 sop->keylen, txform->minkey, txform->maxkey);
1659 cria.cri_key, cria.cri_klen, (txform ? sop->cipher : 0), sop->mac,
1660 (tcomp ? sop->comp_alg : 0), txform, thash, tcomp);