aboutsummaryrefslogtreecommitdiffstats
path: root/test/crypto/ref/hmac_ref.bat
diff options
context:
space:
mode:
authorareviu <areviu.info@gmail.com>2018-05-19 13:15:06 +0000
committerareviu <areviu.info@gmail.com>2018-05-19 13:15:06 +0000
commit7454fa6ad5597582688495252c801c8daeeaf07e (patch)
tree48d89549877a21be7d22fe922d45ff70a2c65df4 /test/crypto/ref/hmac_ref.bat
parente9399566d7eaa76ca6114d108d1b7bf34fca157b (diff)
downloadChibiOS-7454fa6ad5597582688495252c801c8daeeaf07e.tar.gz
ChibiOS-7454fa6ad5597582688495252c801c8daeeaf07e.tar.bz2
ChibiOS-7454fa6ad5597582688495252c801c8daeeaf07e.zip
added SAMA HMAC + fixed TRNG 128 bit generation
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12042 110e8d01-0319-4d1e-a829-52ad28d1bb01
Diffstat (limited to 'test/crypto/ref/hmac_ref.bat')
-rw-r--r--test/crypto/ref/hmac_ref.bat13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/crypto/ref/hmac_ref.bat b/test/crypto/ref/hmac_ref.bat
new file mode 100644
index 000000000..78eb88b00
--- /dev/null
+++ b/test/crypto/ref/hmac_ref.bat
@@ -0,0 +1,13 @@
+
+
+call %OPENSSL%\openssl dgst -sha256 -hmac " " -c -binary -out hmac_hmac256_1 plaintext_6
+ren hmac_hmac256_1 hmac_hmac256_1.enc
+
+call %OPENSSL%\openssl dgst -sha256 -hmac "Jefe" -c -binary -out hmac_hmac256_2 plaintext_7
+ren hmac_hmac256_2 hmac_hmac256_2.enc
+
+call %OPENSSL%\openssl dgst -sha512 -hmac " " -c -binary -out hmac_hmac512_1 plaintext_6
+ren hmac_hmac512_1 hmac_hmac512_1.enc
+
+call %OPENSSL%\openssl dgst -sha512 -hmac "Jefe" -c -binary -out hmac_hmac512_2 plaintext_7
+ren hmac_hmac512_2 hmac_hmac512_2.enc