Enable FRP256v2 tests
authortb <tb@openbsd.org>
Sat, 25 Mar 2023 09:21:17 +0000 (09:21 +0000)
committertb <tb@openbsd.org>
Sat, 25 Mar 2023 09:21:17 +0000 (09:21 +0000)
This was previously disabled because tb apparently can't grep. Exercise
this curve as well as part of the new test cases in ECDH wycheproof.

regress/lib/libcrypto/wycheproof/wycheproof.go

index 1213f5e..b3c9225 100644 (file)
@@ -1,4 +1,4 @@
-/* $OpenBSD: wycheproof.go,v 1.140 2023/03/25 09:17:14 tb Exp $ */
+/* $OpenBSD: wycheproof.go,v 1.141 2023/03/25 09:21:17 tb Exp $ */
 /*
  * Copyright (c) 2018 Joel Sing <jsing@openbsd.org>
  * Copyright (c) 2018,2019,2022 Theo Buehler <tb@openbsd.org>
@@ -527,6 +527,7 @@ var nids = map[string]int{
        "brainpoolP320t1": C.NID_brainpoolP320t1,
        "brainpoolP384t1": C.NID_brainpoolP384t1,
        "brainpoolP512t1": C.NID_brainpoolP512t1,
+       "FRP256v1":        C.NID_FRP256v1,
        "secp160k1":       C.NID_secp160k1,
        "secp160r1":       C.NID_secp160r1,
        "secp160r2":       C.NID_secp160r2,
@@ -1592,11 +1593,6 @@ func runECDHTest(nid int, variant testVariant, wt *wycheproofTestECDH) bool {
 }
 
 func runECDHTestGroup(algorithm string, variant testVariant, wtg *wycheproofTestGroupECDH) bool {
-       if wtg.Curve == "FRP256v1" {
-               fmt.Printf("INFO: Skipping %v test group %v with curve %v and %v encoding...\n", algorithm, wtg.Type, wtg.Curve, wtg.Encoding)
-               return true
-       }
-
        fmt.Printf("Running %v test group %v with curve %v and %v encoding...\n",
                algorithm, wtg.Type, wtg.Curve, wtg.Encoding)