summaryrefslogtreecommitdiffstats
path: root/example-hmac.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2010-02-19 15:15:49 +0100
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2010-02-19 15:15:49 +0100
commitc75d5221a2b57789916ca85fcbfcac12553d2ee6 (patch)
tree8fa9e810757301fdaa88cc54f7bc8158c17ee68b /example-hmac.c
parentbc72459a572069ffabd6ac54989add67d2fae0a1 (diff)
downloadcryptodev-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.c14
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