Lines Matching refs:sop
228 struct session_op *sop;
278 sop = (struct session_op *)data;
279 error = cryptodev_session(fcr, sop);
1455 cryptodev_session(struct fcrypt *fcr, struct session_op *sop)
1467 DPRINTF("cipher=%d, mac=%d\n", sop->cipher, sop->mac);
1470 switch (sop->cipher) {
1510 DPRINTF("Invalid cipher %d\n", sop->cipher);
1514 switch (sop->comp_alg) {
1525 DPRINTF("Invalid compression alg %d\n", sop->comp_alg);
1529 switch (sop->mac) {
1546 if (sop->mackeylen == auth_hash_hmac_sha2_256.keysize) {
1548 } else if (sop->mackeylen == auth_hash_hmac_sha2_384.keysize) {
1550 } else if (sop->mackeylen == auth_hash_hmac_sha2_512.keysize) {
1553 DPRINTF("Invalid mackeylen %d\n", sop->mackeylen);
1591 DPRINTF("Invalid mac %d\n", sop->mac);
1614 crie.cri_klen = sop->keylen * 8;
1615 if (sop->keylen > txform->maxkey ||
1616 sop->keylen < txform->minkey) {
1618 sop->keylen, txform->minkey, txform->maxkey);
1624 if ((error = copyin(sop->key, crie.cri_key, crie.cri_klen / 8)))
1635 cria.cri_klen = sop->mackeylen * 8;
1636 if (sop->mackeylen != thash->keysize) {
1638 sop->mackeylen, thash->keysize);
1645 if ((error = copyin(sop->mackey, cria.cri_key,
1659 cria.cri_key, cria.cri_klen, (txform ? sop->cipher : 0), sop->mac,
1660 (tcomp ? sop->comp_alg : 0), txform, thash, tcomp);
1662 sop->ses = cse->ses;