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

Add test vectors for AES-GCM-SIV #9930

Merged
merged 1 commit into from
Dec 1, 2023

Conversation

facutuesca
Copy link
Contributor

@facutuesca facutuesca commented Nov 27, 2023

This PR adds test vectors for AES-GCM-SIV, as part of #9795.

The openssl.txt file contains test vectors lifted from the OpenSSL repo (source), which in turn are based on the vectors defined in RFC 8452.

However, these vectors only test key lengths of 128 and 256 bits. In order to test 192-bit keys, we generate test vectors using OpenSSL (through cryptography) and verify them using Rust. The new vectors are based on the existing openssl.txt vectors, except that the keys have been either extended with 0s or truncated in order to make them 192-bit (and the other dependent fields have been updated accordingly).

@reaperhulk reaperhulk merged commit 6359dc0 into pyca:main Dec 1, 2023
56 checks passed
@facutuesca facutuesca deleted the aes-gcm-siv-vectors branch February 26, 2024 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants