7086 - MachXO3D: How to convert PEM file format to Public Key format and vice-versa.
Lattice "Pubkey Program" command is expecting to receive 64 bytes of raw Public Key.
To get the raw Public Key from PEM file or vice versa, user can go to programmer tool -> advanced security key programming, load the desired Key format file, and the raw Public Key will appear in the GUI.
Alternately, user may use OpenSSL command to retrieve the raw Public Key from either private_key.pem or public_key.pem.
- openssl ec -in .pem -text -noout
- openssl pkey -pubin -in .pem -text -noout