Open jorabin opened 8 months ago
RFC 7468. Check that this is the latest version. 1421 is the older version. We should use the latest version.
The following discusses PEM encoded keys, something similar would help https://www.baeldung.com/java-read-pem-file-keys
Example code such as that URL is great. There should be example code in the cryptography repo, similar to the code at that URL.
In the protobuf, it should be sufficient to say "PEM encoded" and give the RFC. So I think the protobufs are OK, and that the documentation in the cryptography library should be updated with such examples, if it isn't already.
is this just base 64? How should one create a PEM encoded public key? Is the SHA-384 digest a digest of the PEM encoding?
Some code examples would be very helpful. Illustrating how to use KeyPairGenerator for encryption and signature.
Rohit agreed to do this, I can't allocate the issue to him as I don't have permission.