Key Verification with 3rd party tools #698
Replies: 1 comment 2 replies
-
You didn't include any examples of how you were attempting to use the keys. I'm not aware of OpenSSL having any support for the 32-byte serialization of a compressed Edwards-y point you seem to be trying to use. The main formats OpenSSL understands are PKCS#8 for private keys, and SPKI for public keys, in either their DER or PEM serializations. Due to #627 (lack of support for PKCS#8 v2 in OpenSSL) you may have trouble with PKCS#8 private keys, but SPKI public keys should work. You seem to want a text encoding, so I'd suggest PEM (which for SPKI begins with You can use this impl of the The You'll need to enable You can import the Sorry there aren't better docs for this. Most things just use the raw 32-byte serialization and PKCS#8/SPKI support is relatively new, both in |
Beta Was this translation helpful? Give feedback.
-
Hello everyone,
I have stumbled over this project a few days ago and plan to use it for signing requests to an API.
I quickly implemented the verification logic and got it working without any issues (code provided below).
However, now I am struggling to verify key generated by this create with other implementations of ed25519.
I have tried using openssl (OpenSSL 3.0.13 30 Jan 2024 (Library: OpenSSL 3.0.13 30 Jan 2024) to read generated pem and der files containing signing (private) keys. It fails when trying to read the key.
I have tried several online tools (https://cyphr.me/ed25519_tool/ed.html, https://ed25519.altr.dev/, https://crypto-online.cn/playground/ed25519/signature) to sign and verify the keys and signatures, where all tools work interchangeably.
My Questions:
OR
Here is my code for the verification:
Here is my code for the key generation which fails with openssl and the online tools
Thanks a lot, in advance, for your help!
Beta Was this translation helpful? Give feedback.
All reactions