aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/random/hash.h
diff options
context:
space:
mode:
authorMark Murray <markm@FreeBSD.org>2001-03-10 12:51:55 +0000
committerMark Murray <markm@FreeBSD.org>2001-03-10 12:51:55 +0000
commit02c986ab5491cfc84666b5ce658dd7b3508b6b93 (patch)
treef4e2388a56f25538d6ebad019ec12cfaa1215dbd /sys/dev/random/hash.h
parent81f1ec27ee83a0ec607def5bad13d4a3dfad70c0 (diff)
Notes
Diffstat (limited to 'sys/dev/random/hash.h')
-rw-r--r--sys/dev/random/hash.h18
1 files changed, 10 insertions, 8 deletions
diff --git a/sys/dev/random/hash.h b/sys/dev/random/hash.h
index f210f13854a2..99f0b4849b83 100644
--- a/sys/dev/random/hash.h
+++ b/sys/dev/random/hash.h
@@ -26,21 +26,23 @@
* $FreeBSD$
*/
-#define KEYSIZE 32 /* 32 bytes == 256 bits */
+#define KEYSIZE 32 /* in bytes - 32 bytes == 256 bits */
struct yarrowhash { /* Big! Make static! */
- BF_KEY hashkey; /* Data cycles through here */
- u_char ivec[8]; /* Blowfish Internal */
+ keyInstance hashkey; /* Data cycles through here */
+ cipherInstance cipher; /* Rijndael internal */
u_char hash[KEYSIZE]; /* Repeatedly encrypted */
+ u_char accum[KEYSIZE]; /* Accumulate partial chunks */
+ u_int partial; /* Keep track of < KEYSIZE chunks */
};
struct yarrowkey { /* Big! Make static! */
- BF_KEY key; /* Key schedule */
- u_char ivec[8]; /* Blowfish Internal */
+ keyInstance key; /* Key schedule */
+ cipherInstance cipher; /* Rijndael internal */
};
-void yarrow_hash_init(struct yarrowhash *, void *, size_t);
+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 *, size_t);
-void yarrow_encrypt(struct yarrowkey *context, void *, void *, size_t);
+void yarrow_encrypt_init(struct yarrowkey *, void *);
+void yarrow_encrypt(struct yarrowkey *context, void *, void *);