Skip to content

Commit

Permalink
add ECDH key validations for OpenSSL 3
Browse files Browse the repository at this point in the history
  • Loading branch information
qmuntal committed Nov 25, 2024
1 parent b4c3e90 commit 06f2a49
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
15 changes: 14 additions & 1 deletion ecdh.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,20 @@ func newECDHPkey3(nid C.int, bytes []byte, isPrivate bool) (C.GO_EVP_PKEY_PTR, e
return nil, err
}
defer C.go_openssl_OSSL_PARAM_free(params)
return newEvpFromParams(C.GO_EVP_PKEY_EC, selection, params)
pkey, err := newEvpFromParams(C.GO_EVP_PKEY_EC, selection, params)
if err != nil {
return nil, err
}
if isPrivate {
if C.go_openssl_EVP_PKEY_private_check(pkey) != 1 {

Check failure on line 213 in ecdh.go

View workflow job for this annotation

GitHub Actions / wintest (1.23.x, libcrypto-3-x64.dll)

cannot use _cgo0 (variable of type _Ctype_GO_EVP_PKEY_PTR) as _Ctype_GO_EVP_PKEY_CTX_PTR value in argument to _Cfunc_go_openssl_EVP_PKEY_private_check

Check failure on line 213 in ecdh.go

View workflow job for this annotation

GitHub Actions / test (1.23.x, 3.0.1)

cannot use _cgo0 (variable of type _Ctype_GO_EVP_PKEY_PTR) as _Ctype_GO_EVP_PKEY_CTX_PTR value in argument to _Cfunc_go_openssl_EVP_PKEY_private_check

Check failure on line 213 in ecdh.go

View workflow job for this annotation

GitHub Actions / test (1.22.x, 3.0.1)

cannot use _cgo0 (variable of type _Ctype_GO_EVP_PKEY_PTR) as _Ctype_GO_EVP_PKEY_CTX_PTR value in argument to _Cfunc_go_openssl_EVP_PKEY_private_check

Check failure on line 213 in ecdh.go

View workflow job for this annotation

GitHub Actions / test (1.23.x, 3.0.13)

cannot use _cgo0 (variable of type _Ctype_GO_EVP_PKEY_PTR) as _Ctype_GO_EVP_PKEY_CTX_PTR value in argument to _Cfunc_go_openssl_EVP_PKEY_private_check

Check failure on line 213 in ecdh.go

View workflow job for this annotation

GitHub Actions / test (1.22.x, 3.1.5)

cannot use _cgo0 (variable of type _Ctype_GO_EVP_PKEY_PTR) as _Ctype_GO_EVP_PKEY_CTX_PTR value in argument to _Cfunc_go_openssl_EVP_PKEY_private_check

Check failure on line 213 in ecdh.go

View workflow job for this annotation

GitHub Actions / test (1.22.x, 3.0.13)

cannot use _cgo0 (variable of type _Ctype_GO_EVP_PKEY_PTR) as _Ctype_GO_EVP_PKEY_CTX_PTR value in argument to _Cfunc_go_openssl_EVP_PKEY_private_check

Check failure on line 213 in ecdh.go

View workflow job for this annotation

GitHub Actions / wintest (1.22.x, libcrypto-1_1-x64.dll)

cannot use _cgo0 (variable of type _Ctype_GO_EVP_PKEY_PTR) as _Ctype_GO_EVP_PKEY_CTX_PTR value in argument to _Cfunc_go_openssl_EVP_PKEY_private_check

Check failure on line 213 in ecdh.go

View workflow job for this annotation

GitHub Actions / test (1.23.x, 3.1.5)

cannot use _cgo0 (variable of type _Ctype_GO_EVP_PKEY_PTR) as _Ctype_GO_EVP_PKEY_CTX_PTR value in argument to _Cfunc_go_openssl_EVP_PKEY_private_check

Check failure on line 213 in ecdh.go

View workflow job for this annotation

GitHub Actions / wintest (1.23.x, libcrypto-1_1-x64.dll)

cannot use _cgo0 (variable of type _Ctype_GO_EVP_PKEY_PTR) as _Ctype_GO_EVP_PKEY_CTX_PTR value in argument to _Cfunc_go_openssl_EVP_PKEY_private_check

Check failure on line 213 in ecdh.go

View workflow job for this annotation

GitHub Actions / wintest (1.22.x, libcrypto-3-x64.dll)

cannot use _cgo0 (variable of type _Ctype_GO_EVP_PKEY_PTR) as _Ctype_GO_EVP_PKEY_CTX_PTR value in argument to _Cfunc_go_openssl_EVP_PKEY_private_check

Check failure on line 213 in ecdh.go

View workflow job for this annotation

GitHub Actions / test (1.23.x, 3.2.1)

cannot use _cgo0 (variable of type _Ctype_GO_EVP_PKEY_PTR) as _Ctype_GO_EVP_PKEY_CTX_PTR value in argument to _Cfunc_go_openssl_EVP_PKEY_private_check

Check failure on line 213 in ecdh.go

View workflow job for this annotation

GitHub Actions / test (1.22.x, 3.2.1)

cannot use _cgo0 (variable of type _Ctype_GO_EVP_PKEY_PTR) as _Ctype_GO_EVP_PKEY_CTX_PTR value in argument to _Cfunc_go_openssl_EVP_PKEY_private_check

Check failure on line 213 in ecdh.go

View workflow job for this annotation

GitHub Actions / wintest (1.22.x, libcrypto-1_1-x64.dll)

cannot use _cgo0 (variable of type _Ctype_GO_EVP_PKEY_PTR) as _Ctype_GO_EVP_PKEY_CTX_PTR value in argument to _Cfunc_go_openssl_EVP_PKEY_private_check

Check failure on line 213 in ecdh.go

View workflow job for this annotation

GitHub Actions / test (1.22.x, 3.3.0)

cannot use _cgo0 (variable of type _Ctype_GO_EVP_PKEY_PTR) as _Ctype_GO_EVP_PKEY_CTX_PTR value in argument to _Cfunc_go_openssl_EVP_PKEY_private_check

Check failure on line 213 in ecdh.go

View workflow job for this annotation

GitHub Actions / test (1.22.x, 3.3.1)

cannot use _cgo0 (variable of type _Ctype_GO_EVP_PKEY_PTR) as _Ctype_GO_EVP_PKEY_CTX_PTR value in argument to _Cfunc_go_openssl_EVP_PKEY_private_check

Check failure on line 213 in ecdh.go

View workflow job for this annotation

GitHub Actions / test (1.23.x, 3.3.0)

cannot use _cgo0 (variable of type _Ctype_GO_EVP_PKEY_PTR) as _Ctype_GO_EVP_PKEY_CTX_PTR value in argument to _Cfunc_go_openssl_EVP_PKEY_private_check

Check failure on line 213 in ecdh.go

View workflow job for this annotation

GitHub Actions / test (1.23.x, 3.3.1)

cannot use _cgo0 (variable of type _Ctype_GO_EVP_PKEY_PTR) as _Ctype_GO_EVP_PKEY_CTX_PTR value in argument to _Cfunc_go_openssl_EVP_PKEY_private_check

Check failure on line 213 in ecdh.go

View workflow job for this annotation

GitHub Actions / wintest (1.22.x, libcrypto-3-x64.dll)

cannot use _cgo0 (variable of type _Ctype_GO_EVP_PKEY_PTR) as _Ctype_GO_EVP_PKEY_CTX_PTR value in argument to _Cfunc_go_openssl_EVP_PKEY_private_check

Check failure on line 213 in ecdh.go

View workflow job for this annotation

GitHub Actions / test (1.22.x, 3.0.1)

cannot use _cgo0 (variable of type _Ctype_GO_EVP_PKEY_PTR) as _Ctype_GO_EVP_PKEY_CTX_PTR value in argument to _Cfunc_go_openssl_EVP_PKEY_private_check

Check failure on line 213 in ecdh.go

View workflow job for this annotation

GitHub Actions / wintest (1.23.x, libcrypto-3-x64.dll)

cannot use _cgo0 (variable of type _Ctype_GO_EVP_PKEY_PTR) as _Ctype_GO_EVP_PKEY_CTX_PTR value in argument to _Cfunc_go_openssl_EVP_PKEY_private_check

Check failure on line 213 in ecdh.go

View workflow job for this annotation

GitHub Actions / test (1.22.x, 3.0.13)

cannot use _cgo0 (variable of type _Ctype_GO_EVP_PKEY_PTR) as _Ctype_GO_EVP_PKEY_CTX_PTR value in argument to _Cfunc_go_openssl_EVP_PKEY_private_check

Check failure on line 213 in ecdh.go

View workflow job for this annotation

GitHub Actions / test (1.22.x, 3.1.5)

cannot use _cgo0 (variable of type _Ctype_GO_EVP_PKEY_PTR) as _Ctype_GO_EVP_PKEY_CTX_PTR value in argument to _Cfunc_go_openssl_EVP_PKEY_private_check

Check failure on line 213 in ecdh.go

View workflow job for this annotation

GitHub Actions / wintest (1.23.x, libcrypto-1_1-x64.dll)

cannot use _cgo0 (variable of type _Ctype_GO_EVP_PKEY_PTR) as _Ctype_GO_EVP_PKEY_CTX_PTR value in argument to _Cfunc_go_openssl_EVP_PKEY_private_check

Check failure on line 213 in ecdh.go

View workflow job for this annotation

GitHub Actions / test (1.23.x, 3.0.1)

cannot use _cgo0 (variable of type _Ctype_GO_EVP_PKEY_PTR) as _Ctype_GO_EVP_PKEY_CTX_PTR value in argument to _Cfunc_go_openssl_EVP_PKEY_private_check

Check failure on line 213 in ecdh.go

View workflow job for this annotation

GitHub Actions / test (1.22.x, 3.2.1)

cannot use _cgo0 (variable of type _Ctype_GO_EVP_PKEY_PTR) as _Ctype_GO_EVP_PKEY_CTX_PTR value in argument to _Cfunc_go_openssl_EVP_PKEY_private_check

Check failure on line 213 in ecdh.go

View workflow job for this annotation

GitHub Actions / test (1.23.x, 3.0.13)

cannot use _cgo0 (variable of type _Ctype_GO_EVP_PKEY_PTR) as _Ctype_GO_EVP_PKEY_CTX_PTR value in argument to _Cfunc_go_openssl_EVP_PKEY_private_check

Check failure on line 213 in ecdh.go

View workflow job for this annotation

GitHub Actions / test (1.23.x, 3.1.5)

cannot use _cgo0 (variable of type _Ctype_GO_EVP_PKEY_PTR) as _Ctype_GO_EVP_PKEY_CTX_PTR value in argument to _Cfunc_go_openssl_EVP_PKEY_private_check

Check failure on line 213 in ecdh.go

View workflow job for this annotation

GitHub Actions / test (1.22.x, 3.3.1)

cannot use _cgo0 (variable of type _Ctype_GO_EVP_PKEY_PTR) as _Ctype_GO_EVP_PKEY_CTX_PTR value in argument to _Cfunc_go_openssl_EVP_PKEY_private_check

Check failure on line 213 in ecdh.go

View workflow job for this annotation

GitHub Actions / test (1.22.x, 3.3.0)

cannot use _cgo0 (variable of type _Ctype_GO_EVP_PKEY_PTR) as _Ctype_GO_EVP_PKEY_CTX_PTR value in argument to _Cfunc_go_openssl_EVP_PKEY_private_check

Check failure on line 213 in ecdh.go

View workflow job for this annotation

GitHub Actions / test (1.23.x, 3.3.1)

cannot use _cgo0 (variable of type _Ctype_GO_EVP_PKEY_PTR) as _Ctype_GO_EVP_PKEY_CTX_PTR value in argument to _Cfunc_go_openssl_EVP_PKEY_private_check

Check failure on line 213 in ecdh.go

View workflow job for this annotation

GitHub Actions / test (1.23.x, 3.2.1)

cannot use _cgo0 (variable of type _Ctype_GO_EVP_PKEY_PTR) as _Ctype_GO_EVP_PKEY_CTX_PTR value in argument to _Cfunc_go_openssl_EVP_PKEY_private_check

Check failure on line 213 in ecdh.go

View workflow job for this annotation

GitHub Actions / test (1.23.x, 3.3.0)

cannot use _cgo0 (variable of type _Ctype_GO_EVP_PKEY_PTR) as _Ctype_GO_EVP_PKEY_CTX_PTR value in argument to _Cfunc_go_openssl_EVP_PKEY_private_check
return nil, errors.New("crypto/ecdh: invalid private key")
}
} else {
if C.go_openssl_EVP_PKEY_public_check_quick(pkey) != 1 {

Check failure on line 217 in ecdh.go

View workflow job for this annotation

GitHub Actions / wintest (1.23.x, libcrypto-3-x64.dll)

cannot use _cgo0 (variable of type _Ctype_GO_EVP_PKEY_PTR) as _Ctype_GO_EVP_PKEY_CTX_PTR value in argument to _Cfunc_go_openssl_EVP_PKEY_public_check_quick

Check failure on line 217 in ecdh.go

View workflow job for this annotation

GitHub Actions / test (1.23.x, 3.0.1)

cannot use _cgo0 (variable of type _Ctype_GO_EVP_PKEY_PTR) as _Ctype_GO_EVP_PKEY_CTX_PTR value in argument to _Cfunc_go_openssl_EVP_PKEY_public_check_quick

Check failure on line 217 in ecdh.go

View workflow job for this annotation

GitHub Actions / test (1.22.x, 3.0.1)

cannot use _cgo0 (variable of type _Ctype_GO_EVP_PKEY_PTR) as _Ctype_GO_EVP_PKEY_CTX_PTR value in argument to _Cfunc_go_openssl_EVP_PKEY_public_check_quick

Check failure on line 217 in ecdh.go

View workflow job for this annotation

GitHub Actions / test (1.23.x, 3.0.13)

cannot use _cgo0 (variable of type _Ctype_GO_EVP_PKEY_PTR) as _Ctype_GO_EVP_PKEY_CTX_PTR value in argument to _Cfunc_go_openssl_EVP_PKEY_public_check_quick

Check failure on line 217 in ecdh.go

View workflow job for this annotation

GitHub Actions / test (1.22.x, 3.1.5)

cannot use _cgo0 (variable of type _Ctype_GO_EVP_PKEY_PTR) as _Ctype_GO_EVP_PKEY_CTX_PTR value in argument to _Cfunc_go_openssl_EVP_PKEY_public_check_quick

Check failure on line 217 in ecdh.go

View workflow job for this annotation

GitHub Actions / test (1.22.x, 3.0.13)

cannot use _cgo0 (variable of type _Ctype_GO_EVP_PKEY_PTR) as _Ctype_GO_EVP_PKEY_CTX_PTR value in argument to _Cfunc_go_openssl_EVP_PKEY_public_check_quick

Check failure on line 217 in ecdh.go

View workflow job for this annotation

GitHub Actions / wintest (1.22.x, libcrypto-1_1-x64.dll)

cannot use _cgo0 (variable of type _Ctype_GO_EVP_PKEY_PTR) as _Ctype_GO_EVP_PKEY_CTX_PTR value in argument to _Cfunc_go_openssl_EVP_PKEY_public_check_quick

Check failure on line 217 in ecdh.go

View workflow job for this annotation

GitHub Actions / test (1.23.x, 3.1.5)

cannot use _cgo0 (variable of type _Ctype_GO_EVP_PKEY_PTR) as _Ctype_GO_EVP_PKEY_CTX_PTR value in argument to _Cfunc_go_openssl_EVP_PKEY_public_check_quick

Check failure on line 217 in ecdh.go

View workflow job for this annotation

GitHub Actions / wintest (1.23.x, libcrypto-1_1-x64.dll)

cannot use _cgo0 (variable of type _Ctype_GO_EVP_PKEY_PTR) as _Ctype_GO_EVP_PKEY_CTX_PTR value in argument to _Cfunc_go_openssl_EVP_PKEY_public_check_quick

Check failure on line 217 in ecdh.go

View workflow job for this annotation

GitHub Actions / wintest (1.22.x, libcrypto-3-x64.dll)

cannot use _cgo0 (variable of type _Ctype_GO_EVP_PKEY_PTR) as _Ctype_GO_EVP_PKEY_CTX_PTR value in argument to _Cfunc_go_openssl_EVP_PKEY_public_check_quick

Check failure on line 217 in ecdh.go

View workflow job for this annotation

GitHub Actions / test (1.23.x, 3.2.1)

cannot use _cgo0 (variable of type _Ctype_GO_EVP_PKEY_PTR) as _Ctype_GO_EVP_PKEY_CTX_PTR value in argument to _Cfunc_go_openssl_EVP_PKEY_public_check_quick

Check failure on line 217 in ecdh.go

View workflow job for this annotation

GitHub Actions / test (1.22.x, 3.2.1)

cannot use _cgo0 (variable of type _Ctype_GO_EVP_PKEY_PTR) as _Ctype_GO_EVP_PKEY_CTX_PTR value in argument to _Cfunc_go_openssl_EVP_PKEY_public_check_quick

Check failure on line 217 in ecdh.go

View workflow job for this annotation

GitHub Actions / wintest (1.22.x, libcrypto-1_1-x64.dll)

cannot use _cgo0 (variable of type _Ctype_GO_EVP_PKEY_PTR) as _Ctype_GO_EVP_PKEY_CTX_PTR value in argument to _Cfunc_go_openssl_EVP_PKEY_public_check_quick

Check failure on line 217 in ecdh.go

View workflow job for this annotation

GitHub Actions / test (1.22.x, 3.3.0)

cannot use _cgo0 (variable of type _Ctype_GO_EVP_PKEY_PTR) as _Ctype_GO_EVP_PKEY_CTX_PTR value in argument to _Cfunc_go_openssl_EVP_PKEY_public_check_quick

Check failure on line 217 in ecdh.go

View workflow job for this annotation

GitHub Actions / test (1.22.x, 3.3.1)

cannot use _cgo0 (variable of type _Ctype_GO_EVP_PKEY_PTR) as _Ctype_GO_EVP_PKEY_CTX_PTR value in argument to _Cfunc_go_openssl_EVP_PKEY_public_check_quick

Check failure on line 217 in ecdh.go

View workflow job for this annotation

GitHub Actions / test (1.23.x, 3.3.0)

cannot use _cgo0 (variable of type _Ctype_GO_EVP_PKEY_PTR) as _Ctype_GO_EVP_PKEY_CTX_PTR value in argument to _Cfunc_go_openssl_EVP_PKEY_public_check_quick

Check failure on line 217 in ecdh.go

View workflow job for this annotation

GitHub Actions / test (1.23.x, 3.3.1)

cannot use _cgo0 (variable of type _Ctype_GO_EVP_PKEY_PTR) as _Ctype_GO_EVP_PKEY_CTX_PTR value in argument to _Cfunc_go_openssl_EVP_PKEY_public_check_quick

Check failure on line 217 in ecdh.go

View workflow job for this annotation

GitHub Actions / wintest (1.22.x, libcrypto-3-x64.dll)

cannot use _cgo0 (variable of type _Ctype_GO_EVP_PKEY_PTR) as _Ctype_GO_EVP_PKEY_CTX_PTR value in argument to _Cfunc_go_openssl_EVP_PKEY_public_check_quick

Check failure on line 217 in ecdh.go

View workflow job for this annotation

GitHub Actions / test (1.22.x, 3.0.1)

cannot use _cgo0 (variable of type _Ctype_GO_EVP_PKEY_PTR) as _Ctype_GO_EVP_PKEY_CTX_PTR value in argument to _Cfunc_go_openssl_EVP_PKEY_public_check_quick

Check failure on line 217 in ecdh.go

View workflow job for this annotation

GitHub Actions / wintest (1.23.x, libcrypto-3-x64.dll)

cannot use _cgo0 (variable of type _Ctype_GO_EVP_PKEY_PTR) as _Ctype_GO_EVP_PKEY_CTX_PTR value in argument to _Cfunc_go_openssl_EVP_PKEY_public_check_quick

Check failure on line 217 in ecdh.go

View workflow job for this annotation

GitHub Actions / test (1.22.x, 3.0.13)

cannot use _cgo0 (variable of type _Ctype_GO_EVP_PKEY_PTR) as _Ctype_GO_EVP_PKEY_CTX_PTR value in argument to _Cfunc_go_openssl_EVP_PKEY_public_check_quick

Check failure on line 217 in ecdh.go

View workflow job for this annotation

GitHub Actions / test (1.22.x, 3.1.5)

cannot use _cgo0 (variable of type _Ctype_GO_EVP_PKEY_PTR) as _Ctype_GO_EVP_PKEY_CTX_PTR value in argument to _Cfunc_go_openssl_EVP_PKEY_public_check_quick

Check failure on line 217 in ecdh.go

View workflow job for this annotation

GitHub Actions / wintest (1.23.x, libcrypto-1_1-x64.dll)

cannot use _cgo0 (variable of type _Ctype_GO_EVP_PKEY_PTR) as _Ctype_GO_EVP_PKEY_CTX_PTR value in argument to _Cfunc_go_openssl_EVP_PKEY_public_check_quick

Check failure on line 217 in ecdh.go

View workflow job for this annotation

GitHub Actions / test (1.23.x, 3.0.1)

cannot use _cgo0 (variable of type _Ctype_GO_EVP_PKEY_PTR) as _Ctype_GO_EVP_PKEY_CTX_PTR value in argument to _Cfunc_go_openssl_EVP_PKEY_public_check_quick

Check failure on line 217 in ecdh.go

View workflow job for this annotation

GitHub Actions / test (1.22.x, 3.2.1)

cannot use _cgo0 (variable of type _Ctype_GO_EVP_PKEY_PTR) as _Ctype_GO_EVP_PKEY_CTX_PTR value in argument to _Cfunc_go_openssl_EVP_PKEY_public_check_quick

Check failure on line 217 in ecdh.go

View workflow job for this annotation

GitHub Actions / test (1.23.x, 3.0.13)

cannot use _cgo0 (variable of type _Ctype_GO_EVP_PKEY_PTR) as _Ctype_GO_EVP_PKEY_CTX_PTR value in argument to _Cfunc_go_openssl_EVP_PKEY_public_check_quick

Check failure on line 217 in ecdh.go

View workflow job for this annotation

GitHub Actions / test (1.23.x, 3.1.5)

cannot use _cgo0 (variable of type _Ctype_GO_EVP_PKEY_PTR) as _Ctype_GO_EVP_PKEY_CTX_PTR value in argument to _Cfunc_go_openssl_EVP_PKEY_public_check_quick

Check failure on line 217 in ecdh.go

View workflow job for this annotation

GitHub Actions / test (1.22.x, 3.3.1)

cannot use _cgo0 (variable of type _Ctype_GO_EVP_PKEY_PTR) as _Ctype_GO_EVP_PKEY_CTX_PTR value in argument to _Cfunc_go_openssl_EVP_PKEY_public_check_quick

Check failure on line 217 in ecdh.go

View workflow job for this annotation

GitHub Actions / test (1.22.x, 3.3.0)

cannot use _cgo0 (variable of type _Ctype_GO_EVP_PKEY_PTR) as _Ctype_GO_EVP_PKEY_CTX_PTR value in argument to _Cfunc_go_openssl_EVP_PKEY_public_check_quick

Check failure on line 217 in ecdh.go

View workflow job for this annotation

GitHub Actions / test (1.23.x, 3.3.1)

cannot use _cgo0 (variable of type _Ctype_GO_EVP_PKEY_PTR) as _Ctype_GO_EVP_PKEY_CTX_PTR value in argument to _Cfunc_go_openssl_EVP_PKEY_public_check_quick

Check failure on line 217 in ecdh.go

View workflow job for this annotation

GitHub Actions / test (1.23.x, 3.2.1)

cannot use _cgo0 (variable of type _Ctype_GO_EVP_PKEY_PTR) as _Ctype_GO_EVP_PKEY_CTX_PTR value in argument to _Cfunc_go_openssl_EVP_PKEY_public_check_quick

Check failure on line 217 in ecdh.go

View workflow job for this annotation

GitHub Actions / test (1.23.x, 3.3.0)

cannot use _cgo0 (variable of type _Ctype_GO_EVP_PKEY_PTR) as _Ctype_GO_EVP_PKEY_CTX_PTR value in argument to _Cfunc_go_openssl_EVP_PKEY_public_check_quick
return nil, errors.New("crypto/ecdh: invalid public key")
}
}
return pkey, nil
}

func pointMult(group C.GO_EC_GROUP_PTR, priv C.GO_BIGNUM_PTR) (C.GO_EC_POINT_PTR, error) {
Expand Down
2 changes: 2 additions & 0 deletions shims.h
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,8 @@ DEFINEFUNC(int, EVP_PKEY_sign, (GO_EVP_PKEY_CTX_PTR arg0, unsigned char *arg1, s
DEFINEFUNC(int, EVP_PKEY_derive_init, (GO_EVP_PKEY_CTX_PTR ctx), (ctx)) \
DEFINEFUNC(int, EVP_PKEY_derive_set_peer, (GO_EVP_PKEY_CTX_PTR ctx, GO_EVP_PKEY_PTR peer), (ctx, peer)) \
DEFINEFUNC(int, EVP_PKEY_derive, (GO_EVP_PKEY_CTX_PTR ctx, unsigned char *key, size_t *keylen), (ctx, key, keylen)) \
DEFINEFUNC(int, EVP_PKEY_public_check_quick, (GO_EVP_PKEY_CTX_PTR ctx), (ctx)) \
DEFINEFUNC(int, EVP_PKEY_private_check, (GO_EVP_PKEY_CTX_PTR ctx), (ctx)) \
DEFINEFUNC_LEGACY_1_0(void*, EVP_PKEY_get0, (GO_EVP_PKEY_PTR pkey), (pkey)) \
DEFINEFUNC_LEGACY_1_1(GO_EC_KEY_PTR, EVP_PKEY_get0_EC_KEY, (GO_EVP_PKEY_PTR pkey), (pkey)) \
DEFINEFUNC_LEGACY_1_1(GO_DSA_PTR, EVP_PKEY_get0_DSA, (GO_EVP_PKEY_PTR pkey), (pkey)) \
Expand Down

0 comments on commit 06f2a49

Please sign in to comment.