Add missing flags for EVP_chacha20()
authorKazuki Yamaguchi <k@rhe.jp>
Thu, 29 Dec 2016 15:59:56 +0000 (00:59 +0900)
committerRichard Levitte <levitte@openssl.org>
Tue, 24 Jan 2017 14:22:35 +0000 (15:22 +0100)
commit0de0fb887b464a9f0f20ddcf98e7980ae4b0fd9c
tree0288d42d5f65866f0ed3567b855bae4a70ab356e
parentcee0cdbc618d89f6e9eb14c360be8230b8397095
Add missing flags for EVP_chacha20()

ChaCha20 code uses its own custom cipher_data. Add EVP_CIPH_CUSTOM_IV
and EVP_CIPH_ALWAYS_CALL_INIT so that the key and the iv can be set by
different calls of EVP_CipherInit_ex().

Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2156)
(cherry picked from commit c83680a04aac7a15e6ac48ed732b8322c4c9d49a)
crypto/evp/e_chacha20_poly1305.c