diff options
author | tb <> | 2023-11-07 21:22:34 +0000 |
---|---|---|
committer | tb <> | 2023-11-07 21:22:34 +0000 |
commit | eb72606d84105bd325072f167dfb5474ce98ad32 (patch) | |
tree | 6513d1e3cfcd3d30ba55b7bb32ed9f066bf43be9 /src/regress/lib | |
parent | cd28f4aded80cc04f535af8d72681b48094aeabd (diff) | |
download | openbsd-eb72606d84105bd325072f167dfb5474ce98ad32.tar.gz openbsd-eb72606d84105bd325072f167dfb5474ce98ad32.tar.bz2 openbsd-eb72606d84105bd325072f167dfb5474ce98ad32.zip |
Fix an error message left out in the mustDecodeHexString() conversion
Diffstat (limited to 'src/regress/lib')
-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) |