summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortb <>2019-11-27 18:05:57 +0000
committertb <>2019-11-27 18:05:57 +0000
commit129a3f1f94f711e71e6aeb818a884581ae73c71c (patch)
tree3ef1fd12c52bef04b5b809c4f38f2314d60c899e /src
parent28bf2bf6cfa7c63d12042b3cdadcc9b59437fb47 (diff)
downloadopenbsd-129a3f1f94f711e71e6aeb818a884581ae73c71c.tar.gz
openbsd-129a3f1f94f711e71e6aeb818a884581ae73c71c.tar.bz2
openbsd-129a3f1f94f711e71e6aeb818a884581ae73c71c.zip
Make error messages look like other test cases.
Diffstat (limited to 'src')
-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 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