openssl: stop using deprecated read_RSAPublicKey

Starting with openssl 3, the PEM_read_bio_RSAPublicKey function is
deprecated.  There is an existing API, PEM_read_PUBKEY which gives a
nicer EVP_PKEY object instead.  Switch to use this.

Tested: Unit tests pass, which call 'verify' and use this code path.

Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I45a935173f2d4d29660ef38f8e1ebcfa13c043d1
2 files changed