diff options
-rw-r--r-- | src/regress/lib/libcrypto/wycheproof/wycheproof.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/regress/lib/libcrypto/wycheproof/wycheproof.go b/src/regress/lib/libcrypto/wycheproof/wycheproof.go index 649e4e67f1..c003b124a5 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.51 2018/09/15 22:03:28 tb Exp $ */ | 1 | /* $OpenBSD: wycheproof.go,v 1.52 2018/09/15 22:07:52 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 Theo Buehler <tb@openbsd.org> | 4 | * Copyright (c) 2018 Theo Buehler <tb@openbsd.org> |
@@ -568,7 +568,7 @@ func checkAesCcmOrGcm(algorithm string, ctx *C.EVP_CIPHER_CTX, doEncrypt int, ke | |||
568 | return false | 568 | return false |
569 | } | 569 | } |
570 | 570 | ||
571 | // There are no acceptable CCM cases. All acceptable GCM test | 571 | // There are no acceptable CCM cases. All acceptable GCM tests |
572 | // pass. They have len(IV) <= 48. NIST SP 800-38D, 5.2.1.1, p.8, | 572 | // pass. They have len(IV) <= 48. NIST SP 800-38D, 5.2.1.1, p.8, |
573 | // allows 1 <= len(IV) 2^64-1, but notes: | 573 | // allows 1 <= len(IV) 2^64-1, but notes: |
574 | // "For IVs it is recommended that implementations restrict | 574 | // "For IVs it is recommended that implementations restrict |
@@ -1328,7 +1328,7 @@ func runRSASSATest(rsa *C.RSA, h hash.Hash, sha *C.EVP_MD, mgfSha *C.EVP_MD, sLe | |||
1328 | 1328 | ||
1329 | ret = C.RSA_verify_PKCS1_PSS_mgf1(rsa, (*C.uchar)(unsafe.Pointer(&msg[0])), sha, mgfSha, (*C.uchar)(unsafe.Pointer(&sigOut[0])), C.int(sLen)) | 1329 | ret = C.RSA_verify_PKCS1_PSS_mgf1(rsa, (*C.uchar)(unsafe.Pointer(&msg[0])), sha, mgfSha, (*C.uchar)(unsafe.Pointer(&sigOut[0])), C.int(sLen)) |
1330 | 1330 | ||
1331 | // XXX: audit acceptable cases... | 1331 | // XX: audit acceptable cases... |
1332 | success := false | 1332 | success := false |
1333 | if ret == 1 && (wt.Result == "valid" || wt.Result == "acceptable") { | 1333 | if ret == 1 && (wt.Result == "valid" || wt.Result == "acceptable") { |
1334 | success = true | 1334 | success = true |