check libsodium sha256 checksum

This commit is contained in:
lucretius
2024-01-19 15:13:13 +01:00
parent 063303413c
commit 156b1a6def
4 changed files with 12 additions and 0 deletions

Binary file not shown.

Binary file not shown.

View File

@@ -29,6 +29,18 @@ if [ ! -f libsodium-1.0.18.tar.gz ]; then
exit 1
fi
# Sha256 checksum for ibsodium-1.0.18.tar.gz
EXPECTED_CHECKSUM="6f504490b342a4f8a4c4a02fc9b866cbef8622d5df4e5452b46be121e46636c1"
# Check if the checksum matchs
echo "Checking SHA256 Checksum for libsodium $VERSION"
ACTUAL_CHECKSUM=$(sha256sum libsodium-1.0.18.tar.gz | awk '{ print $1 }')
if [ "$EXPECTED_CHECKSUM" != "$ACTUAL_CHECKSUM" ]; then
echo "Error: The checksum of libsodium does not match the expected checksum. "
exit 1
fi
if [ ! -d libsodium-1.0.18 ]; then
echo "Unpacking libsodium $VERSION"
tar xf libsodium-1.0.18.tar.gz

Binary file not shown.