summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortb <>2025-09-06 17:35:29 +0000
committertb <>2025-09-06 17:35:29 +0000
commit2d6f277d83020c694493c3a7e59f398d16a2288a (patch)
tree5fe511803be9a692a8fe3d79a5ce05c2cf70c376
parent201a639e8893abd78da5bcd170ca7ba6027212ca (diff)
downloadopenbsd-2d6f277d83020c694493c3a7e59f398d16a2288a.tar.gz
openbsd-2d6f277d83020c694493c3a7e59f398d16a2288a.tar.bz2
openbsd-2d6f277d83020c694493c3a7e59f398d16a2288a.zip
wycheproof: go fmt
-rw-r--r--src/regress/lib/libcrypto/wycheproof/wycheproof.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/regress/lib/libcrypto/wycheproof/wycheproof.go b/src/regress/lib/libcrypto/wycheproof/wycheproof.go
index a0ca65d2bf..41e5794fdd 100644
--- a/src/regress/lib/libcrypto/wycheproof/wycheproof.go
+++ b/src/regress/lib/libcrypto/wycheproof/wycheproof.go
@@ -1,4 +1,4 @@
1/* $OpenBSD: wycheproof.go,v 1.182 2025/09/06 03:57:54 tb Exp $ */ 1/* $OpenBSD: wycheproof.go,v 1.183 2025/09/06 17:35:29 tb Exp $ */
2/* 2/*
3 * Copyright (c) 2018,2023 Joel Sing <jsing@openbsd.org> 3 * Copyright (c) 2018,2023 Joel Sing <jsing@openbsd.org>
4 * Copyright (c) 2018,2019,2022-2025 Theo Buehler <tb@openbsd.org> 4 * Copyright (c) 2018,2019,2022-2025 Theo Buehler <tb@openbsd.org>
@@ -1860,9 +1860,9 @@ func runECDSATest(ecKey *C.EC_KEY, md *C.EVP_MD, nid int, variant testVariant, w
1860 var ret C.int 1860 var ret C.int
1861 if variant == Webcrypto || variant == P1363 { 1861 if variant == Webcrypto || variant == P1363 {
1862 order_bytes := int((C.EC_GROUP_order_bits(C.EC_KEY_get0_group(ecKey)) + 7) / 8) 1862 order_bytes := int((C.EC_GROUP_order_bits(C.EC_KEY_get0_group(ecKey)) + 7) / 8)
1863 if len(wt.Sig) / 2 != 2 * order_bytes { 1863 if len(wt.Sig)/2 != 2*order_bytes {
1864 if wt.Result == "valid" { 1864 if wt.Result == "valid" {
1865 fmt.Printf("FAIL: %s - incorrect signature length, %d, %d\n", wt, len(wt.Sig) / 2, 2 * order_bytes) 1865 fmt.Printf("FAIL: %s - incorrect signature length, %d, %d\n", wt, len(wt.Sig)/2, 2*order_bytes)
1866 return false 1866 return false
1867 } 1867 }
1868 return true 1868 return true
@@ -2065,7 +2065,7 @@ func runEcCurveTest(wt *wycheproofTestEcCurve) bool {
2065 fmt.Printf("INFO: %s: %s: no builtin curve for OID %s\n", wt, wt.Name, wt.OID) 2065 fmt.Printf("INFO: %s: %s: no builtin curve for OID %s\n", wt, wt.Name, wt.OID)
2066 return true 2066 return true
2067 } 2067 }
2068 2068
2069 p := mustConvertBigIntToBigNum(wt.P) 2069 p := mustConvertBigIntToBigNum(wt.P)
2070 defer C.BN_free(p) 2070 defer C.BN_free(p)
2071 a := mustConvertBigIntToBigNum(wt.A) 2071 a := mustConvertBigIntToBigNum(wt.A)