From bffe4f64ddeff34bbf6b02b23bfc964dda2e5bd4 Mon Sep 17 00:00:00 2001 From: John Safranek Date: Thu, 4 Mar 2021 16:26:19 -0800 Subject: [PATCH] Add option to fips-check script to checkout specific named files from the FIPS tag. --- fips-check.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/fips-check.sh b/fips-check.sh index cf77129df..104792646 100755 --- a/fips-check.sh +++ b/fips-check.sh @@ -278,6 +278,7 @@ linuxv3) FIPS_SRCS=( fips.c fips_test.c wolfcrypt_first.c wolfcrypt_last.c ) FIPS_INCS=( fips.h ) FIPS_OPTION="v4" + COPY_DIRECT=( wolfcrypt/src/aes_asm.S wolfcrypt/src/aes_asm.asm ) ;; *) Usage @@ -327,6 +328,11 @@ then $GIT checkout "my$CRYPT_VERSION" -- "$CRYPT_SRC_PATH/$MOD.c" "$CRYPT_INC_PATH/$MOD.h" done + for MOD in "${COPY_DIRECT[@]}" + do + $GIT checkout "my$CRYPT_VERSION" -- "$MOD" + done + $GIT branch --no-track "myrng$RNG_VERSION" $RNG_VERSION # Checkout the fips versions of the wolfCrypt files from the repo. $GIT checkout "myrng$RNG_VERSION" -- "$CRYPT_SRC_PATH/random.c" "$CRYPT_INC_PATH/random.h"