Add RSA DER encoding and decoding functions for public keys

Yes, because we specify BIO_NOCLOSE. This is consistent with other uses.