]> granicus.if.org Git - openssl/commit
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:58:43 +0000 (21:58 +0200)
commit8456e4c0af2524be106d55dd58f4bea681d50e48
tree773c3c6fe3cf7aec7ab7eabf1d8aacca5e7a3e38
parent465766c432e3f3af3114199b7b82bc6b41f7cf78
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)

(cherry picked from commit af1d638730bdfad85a7fa8c3f157b2828eda7c1d)
crypto/aes/asm/aes-s390x.pl
crypto/modes/asm/ghash-s390x.pl
crypto/sha/asm/sha1-s390x.pl
crypto/sha/asm/sha512-s390x.pl