Prevent calling decryption in an encryption context and vice versa
authorRichard Levitte <levitte@openssl.org>
Sun, 9 Dec 2018 13:18:50 +0000 (14:18 +0100)
committerRichard Levitte <levitte@openssl.org>
Mon, 10 Dec 2018 09:08:32 +0000 (10:08 +0100)
commitfa75ee1aecda0da96216440aa4ea91d4a17e8244
tree199fbc99ea41d06ce1daae03c3ac4c5f76d03caf
parent3c1b8562360cff9b2abf954554208565c08176a1
Prevent calling decryption in an encryption context and vice versa

Reviewed-by: Kurt Roeckx <kurt@roeckx.be>
Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/7852)

(cherry picked from commit a8bf2f8f24bda57c860e4356f31264fff63fe8b9)
crypto/evp/evp_enc.c