Skip to content

Commit

Permalink
Adding test vectors for the AES_CBC_HMAC variant used in JWE.
Browse files Browse the repository at this point in the history
This encryption moded is defined in RFC 7518.
It is based on  McGrew, D., Foley, J., and K. Paterson, "Authenticated
Encryption with AES-CBC and HMAC-SHA",
draft-mcgrew-aead-aes-cbc-hmac-sha2-05, July 2014.
The algorithms are AEAD.
All inputs are byte arrays and hence have the same format as test vectors
for other AEADs. JWE encodes IV, ciphertext and tag using base64. This
encoding is not part of the test and test vectors.

NOKEYCHECK=True
PiperOrigin-RevId: 511430026
  • Loading branch information
bleichen authored and chuckx committed Feb 28, 2023
1 parent bad935f commit b0a22e9
Show file tree
Hide file tree
Showing 3 changed files with 4,071 additions and 0 deletions.
Loading

0 comments on commit b0a22e9

Please sign in to comment.