summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortb <>2023-04-06 08:41:53 +0000
committertb <>2023-04-06 08:41:53 +0000
commit7d10abfb7e437d58f50e11ba7375355501db947a (patch)
treeac9069eb2e043cea05e73f0751ffbc248ba7a12e
parentb95a82a8db13f8e79ab8027f1fdfee0836bf02ec (diff)
downloadopenbsd-7d10abfb7e437d58f50e11ba7375355501db947a.tar.gz
openbsd-7d10abfb7e437d58f50e11ba7375355501db947a.tar.bz2
openbsd-7d10abfb7e437d58f50e11ba7375355501db947a.zip
wycheproof: fix copy-paste error in previous
-rw-r--r--src/regress/lib/libcrypto/wycheproof/wycheproof.go4
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 0698ac90b7..0f66212fb9 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.142 2023/04/06 08:38:53 tb Exp $ */ 1/* $OpenBSD: wycheproof.go,v 1.143 2023/04/06 08:41:53 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,2022 Theo Buehler <tb@openbsd.org> 4 * Copyright (c) 2018,2019,2022 Theo Buehler <tb@openbsd.org>
@@ -577,7 +577,7 @@ func hashEvpMdFromString(hs string) (*C.EVP_MD, error) {
577 } 577 }
578} 578}
579 579
580func hashEvpDigestMessage(md *C.EVP_MD, msg []byte) ([]byte, C.size, error) { 580func hashEvpDigestMessage(md *C.EVP_MD, msg []byte) ([]byte, int, error) {
581 size := C.EVP_MD_size(md) 581 size := C.EVP_MD_size(md)
582 if size <= 0 || size > C.EVP_MAX_MD_SIZE { 582 if size <= 0 || size > C.EVP_MAX_MD_SIZE {
583 return nil, 0, fmt.Errorf("unexpected MD size %d", size) 583 return nil, 0, fmt.Errorf("unexpected MD size %d", size)