summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormiod <>2014-11-18 21:52:43 +0000
committermiod <>2014-11-18 21:52:43 +0000
commit52e66c8c15f94968e91eb8d6a33711acadf20954 (patch)
tree855730155a23b06e2d6f9fecaa2eebcdf856712f
parent0f8384ef9d059bd66f02a757d30507c4017bfbde (diff)
downloadopenbsd-52e66c8c15f94968e91eb8d6a33711acadf20954.tar.gz
openbsd-52e66c8c15f94968e91eb8d6a33711acadf20954.tar.bz2
openbsd-52e66c8c15f94968e91eb8d6a33711acadf20954.zip
GOST regression tests; from Dmitry Eremin-Solenikov
-rw-r--r--src/regress/lib/libcrypto/Makefile3
-rw-r--r--src/regress/lib/libcrypto/evp/evptest.c7
-rw-r--r--src/regress/lib/libcrypto/evp/evptests.txt9
3 files changed, 18 insertions, 1 deletions
diff --git a/src/regress/lib/libcrypto/Makefile b/src/regress/lib/libcrypto/Makefile
index 21530a8b7b..3836a55d98 100644
--- a/src/regress/lib/libcrypto/Makefile
+++ b/src/regress/lib/libcrypto/Makefile
@@ -1,4 +1,4 @@
1# $OpenBSD: Makefile,v 1.16 2014/07/11 20:37:59 miod Exp $ 1# $OpenBSD: Makefile,v 1.17 2014/11/18 21:52:43 miod Exp $
2 2
3SUBDIR= \ 3SUBDIR= \
4 aead \ 4 aead \
@@ -20,6 +20,7 @@ SUBDIR= \
20 evp \ 20 evp \
21 exp \ 21 exp \
22 gcm128 \ 22 gcm128 \
23 gost \
23 hmac \ 24 hmac \
24 idea \ 25 idea \
25 ige \ 26 ige \
diff --git a/src/regress/lib/libcrypto/evp/evptest.c b/src/regress/lib/libcrypto/evp/evptest.c
index f107ad5fb4..a71c1fb55a 100644
--- a/src/regress/lib/libcrypto/evp/evptest.c
+++ b/src/regress/lib/libcrypto/evp/evptest.c
@@ -405,6 +405,13 @@ main(int argc, char **argv)
405 continue; 405 continue;
406 } 406 }
407#endif 407#endif
408#ifdef OPENSSL_NO_GOST
409 if (strstr(cipher, "md_gost") == cipher ||
410 strstr(cipher, "streebog") == cipher) {
411 fprintf(stdout, "Cipher disabled, skipping %s\n", cipher);
412 continue;
413 }
414#endif
408 fprintf(stderr, "Can't find %s\n",cipher); 415 fprintf(stderr, "Can't find %s\n",cipher);
409 exit(3); 416 exit(3);
410 } 417 }
diff --git a/src/regress/lib/libcrypto/evp/evptests.txt b/src/regress/lib/libcrypto/evp/evptests.txt
index bdee5a88f7..69c4485baf 100644
--- a/src/regress/lib/libcrypto/evp/evptests.txt
+++ b/src/regress/lib/libcrypto/evp/evptests.txt
@@ -13,6 +13,15 @@ MD5:::6162636465666768696a6b6c6d6e6f707172737475767778797a:c3fcd3d76192e4007dfb4
13MD5:::4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a30313233343536373839:d174ab98d277d9f5a5611c2c9f419d9f 13MD5:::4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a30313233343536373839:d174ab98d277d9f5a5611c2c9f419d9f
14MD5:::3132333435363738393031323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031323334353637383930:57edf4a22be3c955ac49da2e2107b67a 14MD5:::3132333435363738393031323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031323334353637383930:57edf4a22be3c955ac49da2e2107b67a
15 15
16# GOST R 34.11 tests
17md_gost94::::981e5f3ca30c841487830f84fb433e13ac1101569b9c13584ac483234cd656c0
18streebog512::::8e945da209aa869f0455928529bcae4679e9873ab707b55315f56ceb98bef0a7362f715528356ee83cda5f2aac4c6ad2ba3a715c1bcd81cb8e9f90bf4c1c1a8a
19streebog256::::3f539a213e97c802cc229d474c6aa32a825a360b2a933a949fd925208d9ce1bb
20streebog512:::303132333435363738393031323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132:1b54d01a4af5b9d5cc3d86d68d285462b19abc2475222f35c085122be4ba1ffa00ad30f8767b3a82384c6574f024c311e2a481332b08ef7f41797891c1646f48
21streebog256:::303132333435363738393031323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132:9d151eefd8590b89daa6ba6cb74af9275dd051026bb149a452fd84e5e57b5500
22streebog512:::d1e520e2e5f2f0e82c20d1f2f0e8e1eee6e820e2edf3f6e82c20e2e5fef2fa20f120eceef0ff20f1f2f0e5ebe0ece820ede020f5f0e0e1f0fbff20efebfaeafb20c8e3eef0e5e2fb:1e88e62226bfca6f9994f1f2d51569e0daf8475a3b0fe61a5300eee46d961376035fe83549ada2b8620fcd7c496ce5b33f0cb9dddc2b6460143b03dabac9fb28
23streebog256:::d1e520e2e5f2f0e82c20d1f2f0e8e1eee6e820e2edf3f6e82c20e2e5fef2fa20f120eceef0ff20f1f2f0e5ebe0ece820ede020f5f0e0e1f0fbff20efebfaeafb20c8e3eef0e5e2fb:9dd2fe4e90409e5da87f53976d7405b0c0cac628fc669a741d50063c557e8f50
24
16# AES 128 ECB tests (from FIPS-197 test vectors, encrypt) 25# AES 128 ECB tests (from FIPS-197 test vectors, encrypt)
17 26
18AES-128-ECB:000102030405060708090A0B0C0D0E0F::00112233445566778899AABBCCDDEEFF:69C4E0D86A7B0430D8CDB78070B4C55A:1 27AES-128-ECB:000102030405060708090A0B0C0D0E0F::00112233445566778899AABBCCDDEEFF:69C4E0D86A7B0430D8CDB78070B4C55A:1