diff options
| author | tb <> | 2023-11-07 21:22:34 +0000 |
|---|---|---|
| committer | tb <> | 2023-11-07 21:22:34 +0000 |
| commit | c339bfcabdec8fe8597df421214343b20e79d6ff (patch) | |
| tree | 6513d1e3cfcd3d30ba55b7bb32ed9f066bf43be9 /src | |
| parent | f491cd023ba7e4e5285d28170b0d30be4b88775a (diff) | |
| download | openbsd-c339bfcabdec8fe8597df421214343b20e79d6ff.tar.gz openbsd-c339bfcabdec8fe8597df421214343b20e79d6ff.tar.bz2 openbsd-c339bfcabdec8fe8597df421214343b20e79d6ff.zip | |
Fix an error message left out in the mustDecodeHexString() conversion
Diffstat (limited to 'src')
| -rw-r--r-- | src/regress/lib/libcrypto/wycheproof/wycheproof.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/regress/lib/libcrypto/wycheproof/wycheproof.go b/src/regress/lib/libcrypto/wycheproof/wycheproof.go index afbcc941c2..b158c142aa 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.158 2023/11/07 21:20:48 tb Exp $ */ | 1 | /* $OpenBSD: wycheproof.go,v 1.159 2023/11/07 21:22:34 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,2023 Theo Buehler <tb@openbsd.org> | 4 | * Copyright (c) 2018,2019,2022,2023 Theo Buehler <tb@openbsd.org> |
| @@ -2204,7 +2204,7 @@ func runRsaesPkcs1Test(rsa *C.RSA, wt *wycheproofTestRsaes) bool { | |||
| 2204 | 2204 | ||
| 2205 | if int(ret) != msgLen { | 2205 | if int(ret) != msgLen { |
| 2206 | success = false | 2206 | success = false |
| 2207 | fmt.Printf("FAIL: %s - got %d, want %d\n", wt, ret, len(msg)) | 2207 | fmt.Printf("FAIL: %s - got %d, want %d.\n", wt, ret, msgLen) |
| 2208 | } else if !bytes.Equal(msg[:msgLen], decrypted[:msgLen]) { | 2208 | } else if !bytes.Equal(msg[:msgLen], decrypted[:msgLen]) { |
| 2209 | success = false | 2209 | success = false |
| 2210 | fmt.Printf("FAIL: %s - expected and calculated message differ.\n", wt) | 2210 | fmt.Printf("FAIL: %s - expected and calculated message differ.\n", wt) |
