Skip to content

AES-GCM - #26

Merged
tarcieri merged 2 commits into
masterfrom
aes-gcm
Oct 6, 2019
Merged

AES-GCM#26
tarcieri merged 2 commits into
masterfrom
aes-gcm

Conversation

@tarcieri

@tarcieritarcieri commented Oct 6, 2019

Copy link
Copy Markdown
Member

Presently failing some of the NIST CAVS vectors for AES-256-GCM (commented out and marked as TODO). (fixed) All of the AES-128-GCM ones I've tried are working, though.

It'd probably be good to extract all of the CAVS vectors for a 16-byte tag length and include them in the tests.

@tarcieri

Copy link
Copy Markdown
MemberAuthor

Looks like I broke mulX_POLYVAL with this change:

https://github.com/RustCrypto/universal-hashes/pull/28/files#diff-6189716e3235b5dfb266bd1c39947b1aR95

I locally reverted it and all of the test vectors are now passing.

tarcieri added a commit to RustCrypto/universal-hashes that referenced this pull request Oct 6, 2019
These changes broke the implementation of `mulX_POLYVAL`:
https://github.com/RustCrypto/universal-hashes/pull/28/files#diff-6189716e3235b5dfb266bd1c39947b1aR95
After reverting it, AES-GCM test vectors which previously failed are now
working:
RustCrypto/AEADs#26
@tarcieritarcieri changed the title [WIP] AES-GCMAES-GCMOct 6, 2019
@tarcieri

Copy link
Copy Markdown
MemberAuthor

With the bug in the ghash crate fixed, it's passing all CAVS test vectors I've tried.

I'd like to get all of them (well, with a 16-byte tag anyway) into the test vectors before merging.

Taken from:
<https://csrc.nist.gov/Projects/cryptographic-algorithm-validation-program/CAVP-TESTING-BLOCK-CIPHER-MODE>
The included test vectors are those with a 96-bit nonce and 128-bit
authentication tag.
@tarcieri

Copy link
Copy Markdown
MemberAuthor

Just pushed the full set of NIST CAVS vectors (for a 96-bit nonce and 128-bit tag) and they're passing locally.

@tarcieri

Copy link
Copy Markdown
MemberAuthor

All NIST CAVS vectors are passing, so I'll call this good for a first pass.

@tarcieri
tarcieri merged commit ee034f4 into masterOct 6, 2019
@tarcieri
tarcieri deleted the aes-gcm branch October 6, 2019 23:12
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@tarcieri