diff options
Diffstat (limited to 'src/lib/libcrypto/sha')
| -rw-r--r-- | src/lib/libcrypto/sha/sha.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/lib/libcrypto/sha/sha.h b/src/lib/libcrypto/sha/sha.h index f87203d912..778a9c83ec 100644 --- a/src/lib/libcrypto/sha/sha.h +++ b/src/lib/libcrypto/sha/sha.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: sha.h,v 1.23 2024/06/01 07:36:16 tb Exp $ */ | 1 | /* $OpenBSD: sha.h,v 1.24 2024/06/01 07:44:11 tb Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -102,8 +102,8 @@ int SHA1_Update(SHA_CTX *c, const void *data, size_t len) | |||
| 102 | __attribute__ ((__bounded__(__buffer__, 2, 3))); | 102 | __attribute__ ((__bounded__(__buffer__, 2, 3))); |
| 103 | int SHA1_Final(unsigned char *md, SHA_CTX *c); | 103 | int SHA1_Final(unsigned char *md, SHA_CTX *c); |
| 104 | unsigned char *SHA1(const unsigned char *d, size_t n, unsigned char *md) | 104 | unsigned char *SHA1(const unsigned char *d, size_t n, unsigned char *md) |
| 105 | __attribute__ ((__nonnull__(3))) | 105 | __attribute__ ((__bounded__(__buffer__, 1, 2))) |
| 106 | __attribute__ ((__bounded__(__buffer__, 1, 2))); | 106 | __attribute__ ((__nonnull__(3))); |
| 107 | void SHA1_Transform(SHA_CTX *c, const unsigned char *data); | 107 | void SHA1_Transform(SHA_CTX *c, const unsigned char *data); |
| 108 | #endif | 108 | #endif |
| 109 | 109 | ||
| @@ -133,8 +133,8 @@ int SHA256_Update(SHA256_CTX *c, const void *data, size_t len) | |||
| 133 | __attribute__ ((__bounded__(__buffer__, 2, 3))); | 133 | __attribute__ ((__bounded__(__buffer__, 2, 3))); |
| 134 | int SHA256_Final(unsigned char *md, SHA256_CTX *c); | 134 | int SHA256_Final(unsigned char *md, SHA256_CTX *c); |
| 135 | unsigned char *SHA256(const unsigned char *d, size_t n, unsigned char *md) | 135 | unsigned char *SHA256(const unsigned char *d, size_t n, unsigned char *md) |
| 136 | __attribute__ ((__nonnull__(3))) | 136 | __attribute__ ((__bounded__(__buffer__, 1, 2))) |
| 137 | __attribute__ ((__bounded__(__buffer__, 1, 2))); | 137 | __attribute__ ((__nonnull__(3))); |
| 138 | void SHA256_Transform(SHA256_CTX *c, const unsigned char *data); | 138 | void SHA256_Transform(SHA256_CTX *c, const unsigned char *data); |
| 139 | #endif | 139 | #endif |
| 140 | 140 | ||
| @@ -175,15 +175,15 @@ int SHA384_Update(SHA512_CTX *c, const void *data, size_t len) | |||
| 175 | __attribute__ ((__bounded__(__buffer__, 2, 3))); | 175 | __attribute__ ((__bounded__(__buffer__, 2, 3))); |
| 176 | int SHA384_Final(unsigned char *md, SHA512_CTX *c); | 176 | int SHA384_Final(unsigned char *md, SHA512_CTX *c); |
| 177 | unsigned char *SHA384(const unsigned char *d, size_t n, unsigned char *md) | 177 | unsigned char *SHA384(const unsigned char *d, size_t n, unsigned char *md) |
| 178 | __attribute__ ((__nonnull__(3))) | 178 | __attribute__ ((__bounded__(__buffer__, 1, 2))) |
| 179 | __attribute__ ((__bounded__(__buffer__, 1, 2))); | 179 | __attribute__ ((__nonnull__(3))); |
| 180 | int SHA512_Init(SHA512_CTX *c); | 180 | int SHA512_Init(SHA512_CTX *c); |
| 181 | int SHA512_Update(SHA512_CTX *c, const void *data, size_t len) | 181 | int SHA512_Update(SHA512_CTX *c, const void *data, size_t len) |
| 182 | __attribute__ ((__bounded__(__buffer__, 2, 3))); | 182 | __attribute__ ((__bounded__(__buffer__, 2, 3))); |
| 183 | int SHA512_Final(unsigned char *md, SHA512_CTX *c); | 183 | int SHA512_Final(unsigned char *md, SHA512_CTX *c); |
| 184 | unsigned char *SHA512(const unsigned char *d, size_t n, unsigned char *md) | 184 | unsigned char *SHA512(const unsigned char *d, size_t n, unsigned char *md) |
| 185 | __attribute__ ((__nonnull__(3))) | 185 | __attribute__ ((__bounded__(__buffer__, 1, 2))) |
| 186 | __attribute__ ((__bounded__(__buffer__, 1, 2))); | 186 | __attribute__ ((__nonnull__(3))); |
| 187 | void SHA512_Transform(SHA512_CTX *c, const unsigned char *data); | 187 | void SHA512_Transform(SHA512_CTX *c, const unsigned char *data); |
| 188 | #endif | 188 | #endif |
| 189 | 189 | ||
