diff options
author | Nick Mathewson <nickm@torproject.org> | 2016-09-16 10:12:30 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2016-09-16 10:12:30 -0400 |
commit | ff116b780896bb735f887a669d87694bb6d8a964 (patch) | |
tree | 39e931311cd87e89bb1d730b0aee7e2295ffb8f3 /src/common/crypto.h | |
parent | 981d0a24b81f27a642946648e49b3cadbd0c28b7 (diff) | |
download | tor-ff116b780896bb735f887a669d87694bb6d8a964.tar.gz tor-ff116b780896bb735f887a669d87694bb6d8a964.zip |
Simplify the crypto_cipher_t interface and structure
Previously, the IV and key were stored in the structure, even though
they mostly weren't needed. The only purpose they had was to
support a seldom-used API where you could pass NULL when creating
a cipher in order to get a random key/IV, and then pull that key/IV
back out.
This saves 32 bytes per AES instance, and makes it easier to support
different key lengths.
Diffstat (limited to 'src/common/crypto.h')
0 files changed, 0 insertions, 0 deletions