Searched refs:cryptodev_fd (Results 1 – 6 of 6) sorted by relevance
| /dflybsd-src/lib/libtcplay/ |
| H A D | crypto-dev.c | 100 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 D | aes_xts.c | 46 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 D | aesctr.c | 139 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 D | aestest.c | 52 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 D | twofish_test.c | 51 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 D | serpent_test.c | 51 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()
|