summaryrefslogtreecommitdiff
path: root/openbsd-compat/sha2.h
diff options
context:
space:
mode:
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]);