Closed dtitov closed 4 years ago
That's correct. OpenSSL format is way to complicated for what it needs to be. Instead, I followed the SSH key format: Here is the key format supported by this utility
I'm actually surprised the code went that far into the parsing!
Test case:
openssl genpkey -algorithm x25519 -out writer.sec.pem
openssl pkey -in writer.sec.pem -pubout -out writer.pub.pem
openssl genpkey -algorithm x25519 -out reader.sec.pem
openssl pkey -in reader.sec.pem -pubout -out reader.pub.pem
crypt4gh encrypt --sk writer.sec.pem --recipient_pk reader.pub.pem < file > file.c4gh
Expected result: the file is encrypted.
Actual result: