commit | 252824cdbca1dc71e5bf1cd59af36552628c049a | [log] [tgz] |
---|---|---|
author | Christopher Collins <ccollins@apache.org> | Thu Jul 30 11:09:02 2020 -0700 |
committer | ccollins476ad <ccollins476ad@gmail.com> | Wed Aug 12 14:34:37 2020 -0700 |
tree | 9ec0f609239f5d4ef8cadcb5f8c56c3c8e42beea | |
parent | 56b9e1661ceb3dd059b145cc47b4302c2456ee68 [diff] |
Encrypt AES: Don't assume nonce is 8 bytes For AES encryption, the client can optionally pass a nonce to use as the beginning of the IV. The code assumed the nonce was exactly eight bytes, so it would always append eight zeros to form the 16-byte nonce. The fix is to only append as many zeros are necessary for a 16-byte IV.