From aa83760418f5ed5ce35a9add6517b2ca98ccb5bd Mon Sep 17 00:00:00 2001 From: Toni Uhlig Date: Wed, 22 Mar 2023 16:44:03 +0100 Subject: Add crypto sources for future use. * the goal is to support AES-CBC-HMAC-SHA as AEAD cipher Signed-off-by: Toni Uhlig --- crypto/update.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 crypto/update.sh (limited to 'crypto/update.sh') diff --git a/crypto/update.sh b/crypto/update.sh new file mode 100755 index 0000000..c9cd37a --- /dev/null +++ b/crypto/update.sh @@ -0,0 +1,14 @@ +#!/usr/bin/env sh + +set -e +set -x + +MYDIR="$(dirname ${0})" +wget 'https://raw.githubusercontent.com/kokke/tiny-AES-c/master/aes.c' -O "${MYDIR}/aes.c" +wget 'https://raw.githubusercontent.com/kokke/tiny-AES-c/master/aes.h' -O "${MYDIR}/aes.h" +wget 'https://raw.githubusercontent.com/kokke/tiny-HMAC-c/main/src/hmac.c' -O "${MYDIR}/hmac.c" +wget 'https://raw.githubusercontent.com/kokke/tiny-HMAC-c/main/src/hmac.h' -O "${MYDIR}/hmac.h" +wget 'https://raw.githubusercontent.com/kokke/tiny-HMAC-c/main/src/sha1.c' -O "${MYDIR}/sha1.c" +wget 'https://raw.githubusercontent.com/kokke/tiny-HMAC-c/main/src/sha1.h' -O "${MYDIR}/sha1.h" +wget 'https://raw.githubusercontent.com/bonybrown/tiny-AES128-C/master/pkcs7_padding.c' -O "${MYDIR}/pkcs7_padding.c" +wget 'https://raw.githubusercontent.com/bonybrown/tiny-AES128-C/master/pkcs7_padding.h' -O "${MYDIR}/pkcs7_padding.h" -- cgit v1.2.3