I want to proof a Wii signature in PHP. I have 60 bytes of the public key as binary data plus 4 additional bytes. And I know that it is ECDSA (most likely B-233). I already implement it in C, but the PHP interpreter is too slow for my implementation. So I call the external C tool to confirm the signature.
But I want to use openssl_verify($data,$sig,$pubkey)
. My problem is the third parameter (public key). So I have to convert ECDSA info plus the public key into an accepted format.
Any ideas?
Progress
I tried more and created keys with different algorithms (e.g. sect233k1, sect233r1). My plan is to inject a so generated public key with my key. Now I get the error message:
error:0906D06C:PEM routines:PEM_read_bio:no start line
The public key looks like this:
-----BEGIN PUBLIC KEY-----
MFIwEAYHKoZIzj0CAQYFK4EEABoDPgAEAS+URvH1x1GXfTw6VZh8tLVPq3bgYwl8
g8OHtCKuADoZ8YayIHkJuYEqTJZBgI8YMX8FtrI8BOlBiBLF
-----END PUBLIC KEY-----