Lines Matching refs:cryp
245 struct crypt_op cryp; in cipher_do_cipher() local
253 memset(&cryp, 0, sizeof(cryp)); in cipher_do_cipher()
254 cryp.ses = cipher_ctx->sess.ses; in cipher_do_cipher()
255 cryp.len = inl; in cipher_do_cipher()
256 cryp.src = (void *)in; in cipher_do_cipher()
257 cryp.dst = (void *)out; in cipher_do_cipher()
258 cryp.iv = (void *)iv; in cipher_do_cipher()
259 cryp.op = cipher_ctx->op; in cipher_do_cipher()
261 cryp.flags = 0; in cipher_do_cipher()
281 cryp.flags = COP_FLAG_WRITE_IV; in cipher_do_cipher()
284 if (ioctl(cfd, CIOCCRYPT, &cryp) < 0) { in cipher_do_cipher()
767 struct crypt_op cryp; in digest_op() local
769 memset(&cryp, 0, sizeof(cryp)); in digest_op()
770 cryp.ses = ctx->sess.ses; in digest_op()
771 cryp.len = srclen; in digest_op()
772 cryp.src = (void *)src; in digest_op()
773 cryp.dst = NULL; in digest_op()
774 cryp.mac = res; in digest_op()
775 cryp.flags = flags; in digest_op()
776 return ioctl(cfd, CIOCCRYPT, &cryp); in digest_op()