get Public Key By Type
Returns the public key associated with the given pubkeyType and privateKey
Return
Non-null pointer to the corresponding public key
Parameters
pk
Non-null pointer to the private key
pubkey Type
pubkeyType of the given private key