New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
x/crypto/ed25519: SignatureSize not match libsodium crypto_sign_ed25519 SignatureSize #22774
Comments
Are you guessing this from reading code, or do you have a concrete example where verification doesn't work? |
libsodium's |
I don't understand your bug report. Maybe @agl does. |
I think jedisct1's comment explains it. |
Ah, I missed that @jedisct1 was not the OP. I thought the comment was a continuation of the bug report. Thanks. |
@bradfitz @agl we app use libsodium communicate with go-crypt-server
when use ed25519 verify it fail
when use libsodium verify it success
libsodium code
different sign length maybe occur true/fail @jedisct1 If I'm worng plz correct me |
I make it , thx for ur time |
https://github.com/golang/crypto/blob/9f005a07e0d31d45e6656d241bb5c0f2efd4bc94/ed25519/ed25519.go#L33
SignatureSize is 64 and
https://github.com/jedisct1/libsodium/blob/569778b517496861a3880e0e690973bf08a52e08/src/libsodium/crypto_sign/ed25519/ref10/sign.c#L141
SignatureSize 64 + len(data)
thus data sign by libsodium can't verify by x/crypto/ed25519
and is any plan to support
crypto_sign_ed25519_pk_to_curve25519
andcrypto_sign_ed25519_sk_to_curve25519
?The text was updated successfully, but these errors were encountered: