Skip to content
  • Nick Mathewson's avatar
    Simplify the crypto_cipher_t interface and structure · ff116b78
    Nick Mathewson authored
    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.