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