summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/sha/sha.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/sha/sha.h')
-rw-r--r--src/lib/libcrypto/sha/sha.h18
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)));
103int SHA1_Final(unsigned char *md, SHA_CTX *c); 103int SHA1_Final(unsigned char *md, SHA_CTX *c);
104unsigned char *SHA1(const unsigned char *d, size_t n, unsigned char *md) 104unsigned 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)));
107void SHA1_Transform(SHA_CTX *c, const unsigned char *data); 107void 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)));
134int SHA256_Final(unsigned char *md, SHA256_CTX *c); 134int SHA256_Final(unsigned char *md, SHA256_CTX *c);
135unsigned char *SHA256(const unsigned char *d, size_t n, unsigned char *md) 135unsigned 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)));
138void SHA256_Transform(SHA256_CTX *c, const unsigned char *data); 138void 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)));
176int SHA384_Final(unsigned char *md, SHA512_CTX *c); 176int SHA384_Final(unsigned char *md, SHA512_CTX *c);
177unsigned char *SHA384(const unsigned char *d, size_t n, unsigned char *md) 177unsigned 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)));
180int SHA512_Init(SHA512_CTX *c); 180int SHA512_Init(SHA512_CTX *c);
181int SHA512_Update(SHA512_CTX *c, const void *data, size_t len) 181int SHA512_Update(SHA512_CTX *c, const void *data, size_t len)
182 __attribute__ ((__bounded__(__buffer__, 2, 3))); 182 __attribute__ ((__bounded__(__buffer__, 2, 3)));
183int SHA512_Final(unsigned char *md, SHA512_CTX *c); 183int SHA512_Final(unsigned char *md, SHA512_CTX *c);
184unsigned char *SHA512(const unsigned char *d, size_t n, unsigned char *md) 184unsigned 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)));
187void SHA512_Transform(SHA512_CTX *c, const unsigned char *data); 187void SHA512_Transform(SHA512_CTX *c, const unsigned char *data);
188#endif 188#endif
189 189