Home
last modified time | relevance | path

Searched refs:cryptodev_fd (Results 1 – 6 of 6) sorted by relevance

/dflybsd-src/lib/libtcplay/
H A Dcrypto-dev.c100 int cryptodev_fd = -1, fd = -1; in syscrypt() local
109 if ((cryptodev_fd = open("/dev/crypto", O_RDWR, 0)) < 0) { in syscrypt()
113 if (ioctl(cryptodev_fd, CRIOGET, &fd) == -1) { in syscrypt()
143 close(cryptodev_fd); in syscrypt()
149 if (cryptodev_fd != -1) in syscrypt()
150 close(cryptodev_fd); in syscrypt()
/dflybsd-src/test/testcases/crypto/aesxts/
H A Daes_xts.c46 int cryptodev_fd = -1, fd = -1; in syscrypt() local
48 if ((cryptodev_fd = open("/dev/crypto", O_RDWR, 0)) < 0) { in syscrypt()
52 if (ioctl(cryptodev_fd, CRIOGET, &fd) == -1) { in syscrypt()
82 close(cryptodev_fd); in syscrypt()
88 if (cryptodev_fd != -1) in syscrypt()
89 close(cryptodev_fd); in syscrypt()
/dflybsd-src/test/testcases/crypto/aesctr/
H A Daesctr.c139 int cryptodev_fd = -1, fd = -1; in syscrypt() local
141 if ((cryptodev_fd = open("/dev/crypto", O_RDWR, 0)) < 0) { in syscrypt()
145 if (ioctl(cryptodev_fd, CRIOGET, &fd) == -1) { in syscrypt()
175 close(cryptodev_fd); in syscrypt()
181 if (cryptodev_fd != -1) in syscrypt()
182 close(cryptodev_fd); in syscrypt()
/dflybsd-src/test/testcases/crypto/aes/
H A Daestest.c52 int cryptodev_fd = -1, fd = -1; in syscrypt() local
62 if ((cryptodev_fd = open("/dev/crypto", O_RDWR, 0)) < 0) { in syscrypt()
66 if (ioctl(cryptodev_fd, CRIOGET, &fd) == -1) { in syscrypt()
96 close(cryptodev_fd); in syscrypt()
102 if (cryptodev_fd != -1) in syscrypt()
103 close(cryptodev_fd); in syscrypt()
/dflybsd-src/test/testcases/crypto/twofish/
H A Dtwofish_test.c51 int cryptodev_fd = -1, fd = -1; in syscrypt() local
61 if ((cryptodev_fd = open("/dev/crypto", O_RDWR, 0)) < 0) { in syscrypt()
65 if (ioctl(cryptodev_fd, CRIOGET, &fd) == -1) { in syscrypt()
95 close(cryptodev_fd); in syscrypt()
101 if (cryptodev_fd != -1) in syscrypt()
102 close(cryptodev_fd); in syscrypt()
/dflybsd-src/test/testcases/crypto/serpent/
H A Dserpent_test.c51 int cryptodev_fd = -1, fd = -1; in syscrypt() local
61 if ((cryptodev_fd = open("/dev/crypto", O_RDWR, 0)) < 0) { in syscrypt()
65 if (ioctl(cryptodev_fd, CRIOGET, &fd) == -1) { in syscrypt()
95 close(cryptodev_fd); in syscrypt()
101 if (cryptodev_fd != -1) in syscrypt()
102 close(cryptodev_fd); in syscrypt()