Adjust some provider reason codes
authorRichard Levitte <levitte@openssl.org>
Mon, 12 Aug 2019 11:14:51 +0000 (13:14 +0200)
committerRichard Levitte <levitte@openssl.org>
Thu, 15 Aug 2019 20:12:25 +0000 (22:12 +0200)
commitf73eb733eeeb50df0068d01efaa3221cadb07389
tree9ec914d06af87842b9681b4e7cbfe9bbd46c0697
parent25446a66b69a28c85d178e4454d2caed75d75293
Adjust some provider reason codes

BLAKE2 MACs came with a set of new reason codes.  Those talking about
lengths are consistently called PROV_R_INVALID_FOO_LENGTH, for any
name FOO.  The cipher messages were briefer.  In the interest of
having more humanly readable messages, we adjust the reasons used by
the ciphers (that's just IV length and key length).

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/8877)
crypto/err/openssl.txt
providers/common/ciphers/aes.c
providers/common/ciphers/gcm.c
providers/common/include/internal/providercommonerr.h
providers/common/provider_err.c