Skip to content

Commit 1daaabf

Browse files
authored
Merge pull request #6640 from SparkiDev/sm3_asm_s_protection
SM3 ASM file: protect with check for WOLFSSL_SM3
2 parents 477e65e + 9b2345d commit 1daaabf

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

configure.ac

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2733,6 +2733,7 @@ then
27332733
esac
27342734
fi
27352735
AS_IF([test "x$ENABLED_AESGCM" != "xno"],[AM_CCASFLAGS="$AM_CCASFLAGS -DHAVE_AESGCM"])
2736+
AS_IF([test "x$ENABLED_SM3" != "xno"],[AM_CCASFLAGS="$AM_CCASFLAGS -DWOLFSSL_SM3"])
27362737
fi
27372738

27382739
if test "$ENABLED_INTELASM" = "yes"

wolfcrypt/src/sm3_asm.S

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
11

2+
#ifdef HAVE_CONFIG_H
3+
#include <config.h>
4+
#endif
5+
6+
#include <wolfssl/wolfcrypt/settings.h>
7+
8+
#ifdef WOLFSSL_SM3
9+
210
#error "Contact wolfSSL to get the implementation of this file"
311

12+
#endif
13+

0 commit comments

Comments
 (0)