Skip to content
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

crypto_box: test ChaChaBox against libsodium-generated test vectors #3

Open
tarcieri opened this issue May 3, 2021 · 0 comments
Open

Comments

@tarcieri
Copy link
Member

tarcieri commented May 3, 2021

In RustCrypto/AEADs#295, the ChaChaBox construction was changed to the following (prior versions did not apply HChaCha20):

shared_key = hchacha20(x25519(alice_sk, bob_pk), [0u8; 16]))

In theory, this should be compatible with what libsodium implements:

https://github.com/jedisct1/libsodium/blob/e1fa9cc/src/libsodium/crypto_box/curve25519xchacha20poly1305/box_curve25519xchacha20poly1305.c#L45-L51

We should add test vectors generated by libsodium to ensure this is the case.

@newpavlov newpavlov transferred this issue from RustCrypto/AEADs Jul 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@tarcieri and others