From 4ac5499232c0b23deb37e1057964f2cdb7160898 Mon Sep 17 00:00:00 2001 From: tb <> Date: Wed, 27 Nov 2019 21:26:31 +0000 Subject: Only run the test vectors from x25519_test.json for now. --- src/regress/lib/libcrypto/wycheproof/wycheproof.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/regress/lib/libcrypto/wycheproof/wycheproof.go b/src/regress/lib/libcrypto/wycheproof/wycheproof.go index a04540f6f3..eb0088b297 100644 --- a/src/regress/lib/libcrypto/wycheproof/wycheproof.go +++ b/src/regress/lib/libcrypto/wycheproof/wycheproof.go @@ -1,4 +1,4 @@ -/* $OpenBSD: wycheproof.go,v 1.97 2019/11/27 21:20:03 tb Exp $ */ +/* $OpenBSD: wycheproof.go,v 1.98 2019/11/27 21:26:31 tb Exp $ */ /* * Copyright (c) 2018 Joel Sing * Copyright (c) 2018, 2019 Theo Buehler @@ -2324,6 +2324,8 @@ func runTestVectors(path string, webcrypto bool) bool { fallthrough case "RSASig": wtg = &wycheproofTestGroupRSA{} + case "XDH": + fallthrough case "X25519": wtg = &wycheproofTestGroupX25519{} default: @@ -2403,6 +2405,8 @@ func runTestVectors(path string, webcrypto bool) bool { if !runRSATestGroup(wtv.Algorithm, wtg.(*wycheproofTestGroupRSA)) { success = false } + case "XDH": + fallthrough case "X25519": if !runX25519TestGroup(wtv.Algorithm, wtg.(*wycheproofTestGroupX25519)) { success = false @@ -2440,7 +2444,7 @@ func main() { {"ECDSAWebCrypto", "ecdsa_w*_test.json"}, {"KW", "kw_test.json"}, {"RSA", "rsa_*test.json"}, - {"X25519", "x25519_*test.json"}, + {"X25519", "x25519_test.json"}, } success := true -- cgit v1.2.3-55-g6feb