diff options
author | Patrick Steuer <patrick.steuer@de.ibm.com> | 2018-01-18 10:14:30 +0100 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2018-02-06 19:39:52 +0100 |
commit | 39f5b069ac4b0ccd953f2237b7a6c2018230726d (patch) | |
tree | 085e75d73fca4726958c44f50f1254669fdaeb5f /crypto/s390xcpuid.pl | |
parent | 54f3b7d2f5a313e5c702f75ee030f8a08e6bf6aa (diff) |
s390x assembly pack: add KMAC code path for aes-ccm
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/5230)
Diffstat (limited to 'crypto/s390xcpuid.pl')
-rwxr-xr-x | crypto/s390xcpuid.pl | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/crypto/s390xcpuid.pl b/crypto/s390xcpuid.pl index ea95dd286d..5f6ffc66d6 100755 --- a/crypto/s390xcpuid.pl +++ b/crypto/s390xcpuid.pl @@ -276,6 +276,27 @@ ___ } ################ +# void s390x_kmac(const unsigned char *in, size_t len, unsigned int fc, +# void *param) +{ +my ($in,$len,$fc,$param) = map("%r$_",(2..5)); +$code.=<<___; +.globl s390x_kmac +.type s390x_kmac,\@function +.align 16 +s390x_kmac: + lr %r0,$fc + l${g}r %r1,$param + + .long 0xb91e0002 # kmac %r0,$in + brc 1,.-4 # pay attention to "partial completion" + + br $ra +.size s390x_kmac,.-s390x_kmac +___ +} + +################ # void s390x_kma(const unsigned char *aad, size_t alen, # const unsigned char *in, size_t len, # unsigned char *out, unsigned int fc, void *param) |