* This processes one or more 64-byte data blocks, but does NOT update
* the bit counters. There're no alignment requirements.
*/
-static const void * ATTR_NOWARN_UNUSED_RESULT
+static const void * ATTR_NOWARN_UNUSED_RESULT ATTR_UNSIGNED_WRAPS
body(struct md4_context *ctx, const void *data, size_t size)
{
const unsigned char *ptr;
* This processes one or more 64-byte data blocks, but does NOT update
* the bit counters. There're no alignment requirements.
*/
-static const void * ATTR_NOWARN_UNUSED_RESULT
+static const void * ATTR_NOWARN_UNUSED_RESULT ATTR_UNSIGNED_WRAPS
body(struct md5_context *ctx, const void *data, size_t size)
{
const unsigned char *ptr;
memset(ctx->block, 0, sizeof(ctx->block));
}
-void md5_update(struct md5_context *ctx, const void *data, size_t size)
+void ATTR_UNSIGNED_WRAPS
+md5_update(struct md5_context *ctx, const void *data, size_t size)
{
/* @UNSAFE */
uint_fast32_t saved_lo;
memcpy(ctx->buffer, data, size);
}
-void md5_final(struct md5_context *ctx, unsigned char result[STATIC_ARRAY MD5_RESULTLEN])
+void ATTR_UNSIGNED_WRAPS
+md5_final(struct md5_context *ctx, unsigned char result[STATIC_ARRAY MD5_RESULTLEN])
{
/* @UNSAFE */
unsigned long used, free;
/* SHA-256 functions */
-static void sha256_transf(struct sha256_ctx *ctx, const unsigned char *data,
- size_t block_nb)
+static void ATTR_UNSIGNED_WRAPS
+sha256_transf(struct sha256_ctx *ctx, const unsigned char *data,
+ size_t block_nb)
{
uint32_t w[64];
uint32_t wv[8];
/* SHA-512 functions */
-static void sha512_transf(struct sha512_ctx *ctx, const unsigned char *data,
- size_t block_nb)
+static void ATTR_UNSIGNED_WRAPS
+sha512_transf(struct sha512_ctx *ctx, const unsigned char *data,
+ size_t block_nb)
{
uint64_t w[80];
uint64_t wv[8];