diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2010-02-19 15:15:49 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2010-02-19 15:15:49 +0100 |
commit | c75d5221a2b57789916ca85fcbfcac12553d2ee6 (patch) | |
tree | 8fa9e810757301fdaa88cc54f7bc8158c17ee68b /example-hmac.c | |
parent | bc72459a572069ffabd6ac54989add67d2fae0a1 (diff) | |
download | cryptodev-linux-c75d5221a2b57789916ca85fcbfcac12553d2ee6.tar.gz cryptodev-linux-c75d5221a2b57789916ca85fcbfcac12553d2ee6.tar.xz cryptodev-linux-c75d5221a2b57789916ca85fcbfcac12553d2ee6.zip |
Corrected copyright statements and other minir fixes.
Diffstat (limited to 'example-hmac.c')
-rw-r--r-- | example-hmac.c | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/example-hmac.c b/example-hmac.c index d300e47..e652c1e 100644 --- a/example-hmac.c +++ b/example-hmac.c @@ -1,15 +1,8 @@ /* - * Demo on how to use OpenBSD /dev/crypto device. + * Demo on how to use /dev/crypto device for HMAC. * - * Author: Nikos Mavrogiannopoulos <nmav@gnutls.org> + * Placed under public domain. * - * Based originally on code by Michal Ludvig <michal@logix.cz> - * - * Note: by default OpenBSD doesn't allow using - * /dev/crypto if there is no hardware accelerator - * for a given algorithm. To change this you'll have to - * set cryptodevallowsoft=1 in - * /usr/src/sys/crypto/cryptodev.c and rebuild your kernel. */ #include <stdio.h> #include <string.h> @@ -17,8 +10,7 @@ #include <fcntl.h> #include <sys/ioctl.h> -//#include <crypto/cryptodev.h> -#include "cryptodev.h" +#include <crypto/cryptodev.h> #define DATA_SIZE 4096 #define BLOCK_SIZE 16 |