summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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)