diff options
Diffstat (limited to 'openbsd-compat/sha2.h')
-rw-r--r-- | openbsd-compat/sha2.h | 4 |
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 | ||
70 | typedef SHA512_CTX SHA384_CTX; | 71 | typedef SHA512_CTX SHA384_CTX; |
72 | #endif | ||
71 | 73 | ||
72 | void SHA256_Init(SHA256_CTX *); | 74 | void SHA256_Init(SHA256_CTX *); |
73 | void SHA256_Transform(u_int32_t state[8], const u_int8_t [SHA256_BLOCK_LENGTH]); | 75 | void 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 | ||
89 | void SHA384_Init(SHA384_CTX *); | 92 | void SHA384_Init(SHA384_CTX *); |
90 | void SHA384_Transform(u_int64_t state[8], const u_int8_t [SHA384_BLOCK_LENGTH]); | 93 | void SHA384_Transform(u_int64_t state[8], const u_int8_t [SHA384_BLOCK_LENGTH]); |
91 | void SHA384_Update(SHA384_CTX *, const u_int8_t *, size_t) | 94 | void SHA384_Update(SHA384_CTX *, const u_int8_t *, size_t) |
@@ -102,6 +105,7 @@ char *SHA384_FileChunk(const char *, char *, off_t, off_t) | |||
102 | char *SHA384_Data(const u_int8_t *, size_t, char *) | 105 | char *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 | ||
106 | void SHA512_Init(SHA512_CTX *); | 110 | void SHA512_Init(SHA512_CTX *); |
107 | void SHA512_Transform(u_int64_t state[8], const u_int8_t [SHA512_BLOCK_LENGTH]); | 111 | void SHA512_Transform(u_int64_t state[8], const u_int8_t [SHA512_BLOCK_LENGTH]); |