From e7eafba3b568c9f31dce079e7095ef3f965abf99 Mon Sep 17 00:00:00 2001 From: tb <> Date: Mon, 4 May 2026 19:11:01 +0000 Subject: wycheproof: go fmt --- src/regress/lib/libcrypto/wycheproof/wycheproof.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/regress/lib/libcrypto/wycheproof/wycheproof.go b/src/regress/lib/libcrypto/wycheproof/wycheproof.go index d36cd18de4..780babfe80 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.202 2026/04/21 20:55:21 tb Exp $ */ +/* $OpenBSD: wycheproof.go,v 1.203 2026/05/04 19:11:01 tb Exp $ */ /* * Copyright (c) 2018,2023 Joel Sing * Copyright (c) 2018,2019,2022-2025 Theo Buehler @@ -2393,7 +2393,7 @@ func runMLKEMTestGroup(rank C.int, wt *wycheproofTestMLKEM) bool { if C.MLKEM_private_key_from_seed(privKey, (*C.uchar)(unsafe.Pointer(&seed[0])), C.size_t(seedLen)) != 1 { if wt.Result != "invalid" { fmt.Printf("%s - MLKEM_private_key_from_seed failed\n", wt) - return false; + return false } return true } @@ -2453,7 +2453,7 @@ func runMLKEMEncapsTestGroup(rank C.int, wt *wycheproofTestMLKEM) bool { if C.MLKEM_parse_public_key(pubKey, (*C.uchar)(unsafe.Pointer(&ek[0])), (C.size_t)(ekLen)) != 1 { if wt.Result != "invalid" { fmt.Printf("FAIL: %s: MLKEM_parse_public_key failed !!!\n", wt) - return false; + return false } return true } @@ -2544,9 +2544,9 @@ func runMLKEMKeyGenTest(rank C.int, wt *wycheproofTestMLKEM) bool { dK, _ := mustDecodeHexString(wt.Dk, "dK") eK, _ := mustDecodeHexString(wt.Ek, "eK") - + if (bytes.Equal(dK, gotDk) && bytes.Equal(eK, gotEk)) != (wt.Result != "invalid") { - fmt.Printf("FAIL: %s - encoded keys differ", wt); + fmt.Printf("FAIL: %s - encoded keys differ", wt) return false } -- cgit v1.2.3-55-g6feb