Skip to content

Commit

Permalink
fix newDSA3
Browse files Browse the repository at this point in the history
  • Loading branch information
qmuntal committed Jan 22, 2024
1 parent eb51754 commit c8ac68f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dsa.go
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,9 @@ func newDSA3(params DSAParameters, X, Y BigInt) (C.GO_EVP_PKEY_PTR, error) {
if C.go_openssl_OSSL_PARAM_BLD_push_BN(bld, paramPubKey, pub) != 1 {
return nil, newOpenSSLError("OSSL_PARAM_BLD_push_BN")
}
selection = C.int(C.GO_EVP_PKEY_PUBLIC_KEY)
if X == nil {
selection = C.int(C.GO_EVP_PKEY_PUBLIC_KEY)
}
}
if X != nil {
priv := bigToBN(X)
Expand Down

0 comments on commit c8ac68f

Please sign in to comment.