summaryrefslogtreecommitdiffstats
path: root/src/lib/crypto/builtin
diff options
context:
space:
mode:
authorGreg Hudson <ghudson@mit.edu>2011-02-25 15:05:38 +0000
committerGreg Hudson <ghudson@mit.edu>2011-02-25 15:05:38 +0000
commit920ffa13c22ef8c6ac835a293f5d63f944a82859 (patch)
treec729b42bccd0b290f0e290df65052fd2bda461b8 /src/lib/crypto/builtin
parent01319ae77ca14ebca9d019a2194d24a9a836e713 (diff)
downloadkrb5-920ffa13c22ef8c6ac835a293f5d63f944a82859.tar.gz
krb5-920ffa13c22ef8c6ac835a293f5d63f944a82859.tar.xz
krb5-920ffa13c22ef8c6ac835a293f5d63f944a82859.zip
Remove Yarrow PRNG implementation
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24660 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/crypto/builtin')
-rw-r--r--src/lib/crypto/builtin/yhash.h29
1 files changed, 0 insertions, 29 deletions
diff --git a/src/lib/crypto/builtin/yhash.h b/src/lib/crypto/builtin/yhash.h
deleted file mode 100644
index dcb8769fe..000000000
--- a/src/lib/crypto/builtin/yhash.h
+++ /dev/null
@@ -1,29 +0,0 @@
-/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */
-
-#ifndef YHASH_H
-#define YHASH_H
-
-/* hash function interface */
-
-/* default to SHA1 for yarrow 160 */
-
-#include "shs.h"
-
-
-
-#define HASH_CTX SHS_INFO
-#define HASH_Init(x) shsInit(x)
-#define HASH_Update(x, buf, sz) shsUpdate(x, (const void*)buf, sz)
-#define HASH_Final(x, tdigest) do { \
- size_t loopvar; \
- unsigned char *out2 = (void *)(tdigest); \
- HASH_CTX *ctx = (x); \
- shsFinal(ctx); \
- for (loopvar=0; loopvar<(sizeof(ctx->digest)/sizeof(ctx->digest[0])); loopvar++) \
- store_32_be(ctx->digest[loopvar], &out2[loopvar*4]); \
- } while(0)
-
-
-#define HASH_DIGEST_SIZE SHS_DIGESTSIZE
-
-#endif /* YHASH_H */