Topic: how to make decode the public key

how i can decode a public key using  function RsaPublicKeyDecode(const byte* input, word32* inOutIdx, RsaKey* key,word32 inSz)  ?

-----BEGIN RSA PUBLIC KEY-----
MIGJAoGBANA0SPVdEgBMCBo4WMeKl6lEM8swJsu+8Rq0usMkdcq8GxsD445x+EtF
+Dmalx6rSR5M7mNARLdsALd2pr3HVLuSSe4bCC26u1PBsOVeszhEzdr7NWiGy3bI
fW6ddTCt0VMC75PrsVmCB2oavp8GKI09Y0TsegxiM6MN6bj33eJtAgMBAAE=
-----END RSA PUBLIC KEY-----

Share

Re: how to make decode the public key

Hi zhbn,

The RsaPublicKeyDecode() function requires the input buffer (input) to be in DER format, with size specified by "inSz".

Best Regards,
Chris