From: tb Date: Tue, 7 Nov 2023 21:22:34 +0000 (+0000) Subject: Fix an error message left out in the mustDecodeHexString() conversion X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=8169b5270f1f7a9f676f2af3f775020189f70a41;p=openbsd Fix an error message left out in the mustDecodeHexString() conversion --- diff --git a/regress/lib/libcrypto/wycheproof/wycheproof.go b/regress/lib/libcrypto/wycheproof/wycheproof.go index afbcc941c24..b158c142aae 100644 --- a/regress/lib/libcrypto/wycheproof/wycheproof.go +++ b/regress/lib/libcrypto/wycheproof/wycheproof.go @@ -1,4 +1,4 @@ -/* $OpenBSD: wycheproof.go,v 1.158 2023/11/07 21:20:48 tb Exp $ */ +/* $OpenBSD: wycheproof.go,v 1.159 2023/11/07 21:22:34 tb Exp $ */ /* * Copyright (c) 2018,2023 Joel Sing * Copyright (c) 2018,2019,2022,2023 Theo Buehler @@ -2204,7 +2204,7 @@ func runRsaesPkcs1Test(rsa *C.RSA, wt *wycheproofTestRsaes) bool { if int(ret) != msgLen { success = false - fmt.Printf("FAIL: %s - got %d, want %d\n", wt, ret, len(msg)) + fmt.Printf("FAIL: %s - got %d, want %d.\n", wt, ret, msgLen) } else if !bytes.Equal(msg[:msgLen], decrypted[:msgLen]) { success = false fmt.Printf("FAIL: %s - expected and calculated message differ.\n", wt)