diff options
author | Tycho Andersen <[email protected]> | 2018-04-24 14:26:37 -0600 |
---|---|---|
committer | James Morris <[email protected]> | 2018-05-11 13:07:45 -0700 |
commit | a964f395614af195cf5c5caa84a9c487b86d5ba5 (patch) | |
tree | 4f816e0c843c2aa721e58ae9f9693054dc1b5396 /lib/test_overflow.c | |
parent | 5859cdf55063943192f316b3d6c673fd6fcbee46 (diff) |
big key: get rid of stack array allocation
We're interested in getting rid of all of the stack allocated arrays in the
kernel [1]. This patch simply hardcodes the iv length to match that of the
hardcoded cipher.
[1]: https://lkml.org/lkml/2018/3/7/621
v2: hardcode the length of the nonce to be the GCM AES IV length, and do a
sanity check in init(), Eric Biggers
v3: * remember to free big_key_aead when sanity check fails
* define a constant for big key IV size so it can be changed along side
the algorithm in the code
Signed-off-by: Tycho Andersen <[email protected]>
Reviewed-by: Kees Cook <[email protected]>
CC: David Howells <[email protected]>
CC: James Morris <[email protected]>
CC: "Serge E. Hallyn" <[email protected]>
CC: Jason A. Donenfeld <[email protected]>
CC: Eric Biggers <[email protected]>
Signed-off-by: James Morris <[email protected]>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions