I want to use EVP_DigestSign() for ECDSA signing because it works for OpenSSL 1.1.1 and OpenSSL 3.x and it can be used for RSA and other.
I have it working, but the output I get is the DER-encoded ECDSA signature. I just want the r and s values without the DER wrapping. (I am implementing COSE, RFC 9052, and it doesn't use DER).
I can get this with ECDSA_do_sign() but this function is to be deprecated.
How to I control the output format of EVP_DigestSign()?