Skip to content

Commit

Permalink
sha1_mb: Add missing ISAL_ prefixes to base aliases
Browse files Browse the repository at this point in the history
Commit 0106da9 somehow
missed updating the base aliases, which broke build
on architectures for which SHA1 routines were not
specifically optimized, e.g. loongarch64.

This commit addresses that.

Fixes: 0106da9
  • Loading branch information
iv-m committed Jul 31, 2024
1 parent 9b7a2b8 commit 15ca2f0
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions sha1_mb/sha1_ctx_base_aliases.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,28 +32,28 @@
#include "memcpy_inline.h"

extern void
_sha1_ctx_mgr_init_base(SHA1_HASH_CTX_MGR *mgr);
extern SHA1_HASH_CTX *
_sha1_ctx_mgr_submit_base(SHA1_HASH_CTX_MGR *mgr, SHA1_HASH_CTX *ctx, const void *buffer,
_sha1_ctx_mgr_init_base(ISAL_SHA1_HASH_CTX_MGR *mgr);
extern ISAL_SHA1_HASH_CTX *
_sha1_ctx_mgr_submit_base(ISAL_SHA1_HASH_CTX_MGR *mgr, ISAL_SHA1_HASH_CTX *ctx, const void *buffer,
uint32_t len, ISAL_HASH_CTX_FLAG flags);
extern SHA1_HASH_CTX *
_sha1_ctx_mgr_flush_base(SHA1_HASH_CTX_MGR *mgr);
extern ISAL_SHA1_HASH_CTX *
_sha1_ctx_mgr_flush_base(ISAL_SHA1_HASH_CTX_MGR *mgr);

void
_sha1_ctx_mgr_init(SHA1_HASH_CTX_MGR *mgr)
_sha1_ctx_mgr_init(ISAL_SHA1_HASH_CTX_MGR *mgr)
{
return _sha1_ctx_mgr_init_base(mgr);
}

SHA1_HASH_CTX *
_sha1_ctx_mgr_submit(SHA1_HASH_CTX_MGR *mgr, SHA1_HASH_CTX *ctx, const void *buffer, uint32_t len,
ISAL_SHA1_HASH_CTX *
_sha1_ctx_mgr_submit(ISAL_SHA1_HASH_CTX_MGR *mgr, ISAL_SHA1_HASH_CTX *ctx, const void *buffer, uint32_t len,
ISAL_HASH_CTX_FLAG flags)
{
return _sha1_ctx_mgr_submit_base(mgr, ctx, buffer, len, flags);
}

SHA1_HASH_CTX *
_sha1_ctx_mgr_flush(SHA1_HASH_CTX_MGR *mgr)
ISAL_SHA1_HASH_CTX *
_sha1_ctx_mgr_flush(ISAL_SHA1_HASH_CTX_MGR *mgr)
{
return _sha1_ctx_mgr_flush_base(mgr);
}

0 comments on commit 15ca2f0

Please sign in to comment.