mirror of
https://github.com/Cateners/tiny_computer.git
synced 2026-05-20 16:35:47 +08:00
Update code to v1.0.14 (10)
This commit is contained in:
21
android/extern/wolfssl/fips-hash.sh
vendored
Normal file
21
android/extern/wolfssl/fips-hash.sh
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
#!/bin/bash
|
||||
|
||||
if test ! -x ./wolfcrypt/test/testwolfcrypt
|
||||
then
|
||||
echo "fips-hash: wolfCrypt test missing"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if test ! -s ./wolfcrypt/src/fips_test.c
|
||||
then
|
||||
echo "fips-hash: fips_test.c missing"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
NEWHASH=$(./wolfcrypt/test/testwolfcrypt | sed -n 's/hash = \(.*\)/\1/p')
|
||||
if test -n "$NEWHASH"
|
||||
then
|
||||
cp wolfcrypt/src/fips_test.c wolfcrypt/src/fips_test.c.bak
|
||||
sed "s/^\".*\";/\"${NEWHASH}\";/" wolfcrypt/src/fips_test.c.bak >wolfcrypt/src/fips_test.c
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user