s390x assembly pack: remove capability double-checking.
authorPatrick Steuer <patrick.steuer@de.ibm.com>
Mon, 30 Jan 2017 11:50:54 +0000 (12:50 +0100)
committerAndy Polyakov <appro@openssl.org>
Tue, 17 Oct 2017 19:55:33 +0000 (21:55 +0200)
commitaf1d638730bdfad85a7fa8c3f157b2828eda7c1d
treefcc8c2ff4da8bea2d5d46990ea3301bf35943c5b
parent4c5100ce7d66ccff48d6435c1761b5e3281de61f
s390x assembly pack: remove capability double-checking.

An instruction's QUERY function is executed at initialization, iff the required
MSA level is installed. Therefore, it is sufficient to check the bits returned
by the QUERY functions. The MSA level does not have to be checked at every
function call.
crypto/aes/asm/aes-s390x.pl: The AES key schedule must be computed if the
required KM or KMC function codes are not available. Formally, the availability
of a KMC function code does not imply the availability of the corresponding KM
function code.

Signed-off-by: Patrick Steuer <patrick.steuer@de.ibm.com>
Reviewed-by: Andy Polyakov <appro@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/4501)
crypto/aes/asm/aes-s390x.pl
crypto/modes/asm/ghash-s390x.pl
crypto/sha/asm/sha1-s390x.pl
crypto/sha/asm/sha512-s390x.pl