Move the AES-XTS mode duplicated key check into the init_key function rather
authorPauli <paul.dale@oracle.com>
Mon, 1 Apr 2019 00:04:57 +0000 (10:04 +1000)
committerPauli <paul.dale@oracle.com>
Fri, 5 Apr 2019 00:55:40 +0000 (10:55 +1000)
commit3538b0f7ad7c4b67788f444827718a89ffb5b08d
treef3214ab779ebe2734a620b4e092c9f7432e8cdcc
parent0be2cc5eb3faa2c79a705fee5977fa49841c1799
Move the AES-XTS mode duplicated key check into the init_key function rather
than the update call.  The means an earlier error return at the cost of some
duplicated code.

Reviewed-by: Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
(Merged from https://github.com/openssl/openssl/pull/8625)
crypto/err/openssl.txt
crypto/evp/e_aes.c
crypto/evp/evp_err.c
include/openssl/evperr.h
test/recipes/30-test_evp_data/evpciph.txt