summaryrefslogtreecommitdiff
path: root/sys/dev/random/hash.h
diff options
context:
space:
mode:
authorMark Murray <markm@FreeBSD.org>2013-08-26 18:29:51 +0000
committerMark Murray <markm@FreeBSD.org>2013-08-26 18:29:51 +0000
commitf8530155dafede6db6a8385c1e6eb86bec124fc3 (patch)
treec6b9fa1a072b3a044fc794152e9ae4ec68733c7d /sys/dev/random/hash.h
parenta8343c86d28a3948e603dd17557e1f244c5732b0 (diff)
Notes
Diffstat (limited to 'sys/dev/random/hash.h')
-rw-r--r--sys/dev/random/hash.h19
1 files changed, 10 insertions, 9 deletions
diff --git a/sys/dev/random/hash.h b/sys/dev/random/hash.h
index 8580d145d683..62f116daa00d 100644
--- a/sys/dev/random/hash.h
+++ b/sys/dev/random/hash.h
@@ -1,5 +1,5 @@
/*-
- * Copyright (c) 2000-2004 Mark R V Murray
+ * Copyright (c) 2000-2013 Mark R V Murray
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -26,19 +26,20 @@
* $FreeBSD$
*/
-#define KEYSIZE 32 /* (in bytes) 32 bytes == 256 bits */
+#define KEYSIZE 32 /* (in bytes) == 256 bits */
+#define BLOCKSIZE 16 /* (in bytes) == 128 bits */
-struct yarrowhash { /* Big! Make static! */
+struct randomdev_hash { /* Big! Make static! */
SHA256_CTX sha;
};
-struct yarrowkey { /* Big! Make static! */
+struct randomdev_key { /* Big! Make static! */
keyInstance key; /* Key schedule */
cipherInstance cipher; /* Rijndael internal */
};
-void yarrow_hash_init(struct yarrowhash *);
-void yarrow_hash_iterate(struct yarrowhash *, void *, size_t);
-void yarrow_hash_finish(struct yarrowhash *, void *);
-void yarrow_encrypt_init(struct yarrowkey *, void *);
-void yarrow_encrypt(struct yarrowkey *context, void *, void *);
+void randomdev_hash_init(struct randomdev_hash *);
+void randomdev_hash_iterate(struct randomdev_hash *, void *, size_t);
+void randomdev_hash_finish(struct randomdev_hash *, void *);
+void randomdev_encrypt_init(struct randomdev_key *, void *);
+void randomdev_encrypt(struct randomdev_key *context, void *, void *, unsigned);