• Home
  • Raw
  • Download

Lines Matching refs:cryp

367 	struct crypt_op cryp;  in cryptodev_cipher()  local
380 memset(&cryp, 0, sizeof(cryp)); in cryptodev_cipher()
382 cryp.ses = sess->ses; in cryptodev_cipher()
383 cryp.flags = 0; in cryptodev_cipher()
384 cryp.len = inl; in cryptodev_cipher()
385 cryp.src = (caddr_t) in; in cryptodev_cipher()
386 cryp.dst = (caddr_t) out; in cryptodev_cipher()
387 cryp.mac = 0; in cryptodev_cipher()
389 cryp.op = ctx->encrypt ? COP_ENCRYPT : COP_DECRYPT; in cryptodev_cipher()
392 cryp.iv = (caddr_t) ctx->iv; in cryptodev_cipher()
398 cryp.iv = NULL; in cryptodev_cipher()
400 if (ioctl(state->d_fd, CIOCCRYPT, &cryp) == -1) { in cryptodev_cipher()
710 struct crypt_op cryp; in cryptodev_digest_update() local
738 memset(&cryp, 0, sizeof(cryp)); in cryptodev_digest_update()
740 cryp.ses = sess->ses; in cryptodev_digest_update()
741 cryp.flags = 0; in cryptodev_digest_update()
742 cryp.len = count; in cryptodev_digest_update()
743 cryp.src = (caddr_t) data; in cryptodev_digest_update()
744 cryp.dst = NULL; in cryptodev_digest_update()
745 cryp.mac = (caddr_t) state->digest_res; in cryptodev_digest_update()
746 if (ioctl(state->d_fd, CIOCCRYPT, &cryp) < 0) { in cryptodev_digest_update()
756 struct crypt_op cryp; in cryptodev_digest_final() local
769 memset(&cryp, 0, sizeof(cryp)); in cryptodev_digest_final()
770 cryp.ses = sess->ses; in cryptodev_digest_final()
771 cryp.flags = 0; in cryptodev_digest_final()
772 cryp.len = state->mac_len; in cryptodev_digest_final()
773 cryp.src = state->mac_data; in cryptodev_digest_final()
774 cryp.dst = NULL; in cryptodev_digest_final()
775 cryp.mac = (caddr_t)md; in cryptodev_digest_final()
776 if (ioctl(state->d_fd, CIOCCRYPT, &cryp) < 0) { in cryptodev_digest_final()