2 * Demo on how to use /dev/crypto device for ciphering.
4 * Placed under public domain.
11 #include <sys/ioctl.h>
12 #include <crypto/cryptodev.h>
13 #include "threshold.h"
19 ret
= get_sha1_threshold();
21 printf("SHA1 in kernel outperforms user-space after %d input bytes\n", ret
);
23 ret
= get_aes_sha1_threshold();
25 printf("AES-SHA1 in kernel outperforms user-space after %d input bytes\n", ret
);