summaryrefslogtreecommitdiff
path: root/openbsd-compat/sha2.h
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2006-03-15 14:36:55 +1100
committerDamien Miller <djm@mindrot.org>2006-03-15 14:36:55 +1100
commit34877d2e1744237569555c73afbed02e338218f2 (patch)
tree6f920c984acc1927b4429cdaa4a734fc9f4b1d2f /openbsd-compat/sha2.h
parent42fb06898ed362df4c58226fc449dbe738d4ea3f (diff)
- (djm) [openbsd-compat/sha2.h openbsd-compat/sha2.c] Comment out
SHA384, which we don't need and doesn't compile without tweaks
Diffstat (limited to 'openbsd-compat/sha2.h')
-rw-r--r--openbsd-compat/sha2.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/openbsd-compat/sha2.h b/openbsd-compat/sha2.h
index 5e2641c4b..1d6aa61e9 100644
--- a/openbsd-compat/sha2.h
+++ b/openbsd-compat/sha2.h
@@ -67,7 +67,9 @@ typedef struct _SHA512_CTX {
67 u_int8_t buffer[SHA512_BLOCK_LENGTH]; 67 u_int8_t buffer[SHA512_BLOCK_LENGTH];
68} SHA512_CTX; 68} SHA512_CTX;
69 69
70#if 0
70typedef SHA512_CTX SHA384_CTX; 71typedef SHA512_CTX SHA384_CTX;
72#endif
71 73
72void SHA256_Init(SHA256_CTX *); 74void SHA256_Init(SHA256_CTX *);
73void SHA256_Transform(u_int32_t state[8], const u_int8_t [SHA256_BLOCK_LENGTH]); 75void SHA256_Transform(u_int32_t state[8], const u_int8_t [SHA256_BLOCK_LENGTH]);
@@ -86,6 +88,7 @@ char *SHA256_Data(const u_int8_t *, size_t, char *)
86 __attribute__((__bounded__(__string__,1,2))) 88 __attribute__((__bounded__(__string__,1,2)))
87 __attribute__((__bounded__(__minbytes__,3,SHA256_DIGEST_STRING_LENGTH))); 89 __attribute__((__bounded__(__minbytes__,3,SHA256_DIGEST_STRING_LENGTH)));
88 90
91#if 0
89void SHA384_Init(SHA384_CTX *); 92void SHA384_Init(SHA384_CTX *);
90void SHA384_Transform(u_int64_t state[8], const u_int8_t [SHA384_BLOCK_LENGTH]); 93void SHA384_Transform(u_int64_t state[8], const u_int8_t [SHA384_BLOCK_LENGTH]);
91void SHA384_Update(SHA384_CTX *, const u_int8_t *, size_t) 94void SHA384_Update(SHA384_CTX *, const u_int8_t *, size_t)
@@ -102,6 +105,7 @@ char *SHA384_FileChunk(const char *, char *, off_t, off_t)
102char *SHA384_Data(const u_int8_t *, size_t, char *) 105char *SHA384_Data(const u_int8_t *, size_t, char *)
103 __attribute__((__bounded__(__string__,1,2))) 106 __attribute__((__bounded__(__string__,1,2)))
104 __attribute__((__bounded__(__minbytes__,3,SHA384_DIGEST_STRING_LENGTH))); 107 __attribute__((__bounded__(__minbytes__,3,SHA384_DIGEST_STRING_LENGTH)));
108#endif /* 0 */
105 109
106void SHA512_Init(SHA512_CTX *); 110void SHA512_Init(SHA512_CTX *);
107void SHA512_Transform(u_int64_t state[8], const u_int8_t [SHA512_BLOCK_LENGTH]); 111void SHA512_Transform(u_int64_t state[8], const u_int8_t [SHA512_BLOCK_LENGTH]);