Lines Matching refs:cryp
409 struct crypt_op cryp;
422 memset(&cryp, 0, sizeof(cryp));
424 cryp.ses = sess->ses;
425 cryp.flags = 0;
426 cryp.len = inl;
427 cryp.src = (caddr_t) in;
428 cryp.dst = (caddr_t) out;
429 cryp.mac = 0;
431 cryp.op = ctx->encrypt ? COP_ENCRYPT : COP_DECRYPT;
434 cryp.iv = (caddr_t) ctx->iv;
440 cryp.iv = NULL;
442 if (ioctl(state->d_fd, CIOCCRYPT, &cryp) == -1) {
797 struct crypt_op cryp;
826 memset(&cryp, 0, sizeof(cryp));
828 cryp.ses = sess->ses;
829 cryp.flags = 0;
830 cryp.len = count;
831 cryp.src = (caddr_t) data;
832 cryp.dst = NULL;
833 cryp.mac = (caddr_t) state->digest_res;
834 if (ioctl(state->d_fd, CIOCCRYPT, &cryp) < 0) {
843 struct crypt_op cryp;
856 memset(&cryp, 0, sizeof(cryp));
857 cryp.ses = sess->ses;
858 cryp.flags = 0;
859 cryp.len = state->mac_len;
860 cryp.src = state->mac_data;
861 cryp.dst = NULL;
862 cryp.mac = (caddr_t) md;
863 if (ioctl(state->d_fd, CIOCCRYPT, &cryp) < 0) {