diff options
Diffstat (limited to '')
| -rw-r--r-- | src/regress/lib/libcrypto/wycheproof/wycheproof.go | 8 |
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 5b019cae10..2c83f6b82c 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.92 2019/11/27 17:53:31 tb Exp $ */ | 1 | /* $OpenBSD: wycheproof.go,v 1.93 2019/11/27 18:05:57 tb Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Copyright (c) 2018 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2018 Joel Sing <jsing@openbsd.org> |
| 4 | * Copyright (c) 2018, 2019 Theo Buehler <tb@openbsd.org> | 4 | * Copyright (c) 2018, 2019 Theo Buehler <tb@openbsd.org> |
| @@ -1864,7 +1864,7 @@ func runRSAOAEPTest(rsa *C.RSA, sha *C.EVP_MD, mgfSha *C.EVP_MD, wt *wycheproofT | |||
| 1864 | success = (wt.Result == "invalid") | 1864 | success = (wt.Result == "invalid") |
| 1865 | 1865 | ||
| 1866 | if !success { | 1866 | if !success { |
| 1867 | fmt.Printf("FAIL: TCID: %d, got %d, want %d, expect %v, \"%v\"\n", wt.TCID, ret, rsaSize, wt.Result, wt.Comment) | 1867 | fmt.Printf("FAIL: Test case %d (%q) %v - got %d, want %d. Expected: %v\n", wt.TCID, wt.Comment, wt.Flags, ret, rsaSize, wt.Result) |
| 1868 | } | 1868 | } |
| 1869 | return success | 1869 | return success |
| 1870 | } | 1870 | } |
| @@ -1892,7 +1892,7 @@ func runRSAOAEPTest(rsa *C.RSA, sha *C.EVP_MD, mgfSha *C.EVP_MD, wt *wycheproofT | |||
| 1892 | success = (wt.Result == "invalid") | 1892 | success = (wt.Result == "invalid") |
| 1893 | 1893 | ||
| 1894 | if !success { | 1894 | if !success { |
| 1895 | fmt.Printf("FAIL: TCID: %d, got %d, want %d, expect %v, \"%v\"\n", wt.TCID, ret, msgLen, wt.Result, wt.Comment) | 1895 | fmt.Printf("FAIL: Test case %d (%q) %v - got %d, want %d. Expected: %v\n", wt.TCID, wt.Comment, wt.Flags, ret, rsaSize, wt.Result) |
| 1896 | } | 1896 | } |
| 1897 | return success | 1897 | return success |
| 1898 | } | 1898 | } |
| @@ -1901,7 +1901,7 @@ func runRSAOAEPTest(rsa *C.RSA, sha *C.EVP_MD, mgfSha *C.EVP_MD, wt *wycheproofT | |||
| 1901 | to = to[:msgLen]; | 1901 | to = to[:msgLen]; |
| 1902 | if !bytes.Equal(msg, to) { | 1902 | if !bytes.Equal(msg, to) { |
| 1903 | success = false | 1903 | success = false |
| 1904 | fmt.Printf("FAIL: TCID: %d, expected and calculated message differ. expect %v", wt.Result) | 1904 | fmt.Printf("FAIL: Test case %d (%q) %v - expected and calculated message differ. Expected: %v", wt.TCID, wt.Comment, wt.Flags, wt.Result) |
| 1905 | } | 1905 | } |
| 1906 | 1906 | ||
| 1907 | return success | 1907 | return success |
