mirror of
https://github.com/openssl/openssl.git
synced 2024-12-21 06:09:35 +08:00
0499de5add
The CPACF instruction KMAC provides support for accelerating the HMAC algorithm on newer machines for HMAC with SHA-224, SHA-256, SHA-384, and SHA-512. Preliminary measurements showed performance improvements of up to a factor of 2, dependent on the message size, whether chunking is used and the size of the chunks. Signed-off-by: Ingo Franzki <ifranzki@linux.ibm.com> Reviewed-by: Paul Dale <ppzgs1@gmail.com> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/25161)
24 lines
636 B
Plaintext
24 lines
636 B
Plaintext
LIBS=../../libcrypto
|
|
|
|
$COMMON=hmac.c
|
|
|
|
IF[{- !$disabled{asm} -}]
|
|
IF[{- ($target{perlasm_scheme} // '') ne '31' -}]
|
|
$HMACASM_s390x=hmac_s390x.c
|
|
$HMACDEF_s390x=OPENSSL_HMAC_S390X
|
|
ENDIF
|
|
|
|
# Now that we have defined all the arch specific variables, use the
|
|
# appropriate ones, and define the appropriate macros
|
|
IF[$HMACASM_{- $target{asm_arch} -}]
|
|
$HMACASM=$HMACASM_{- $target{asm_arch} -}
|
|
$HMACDEF=$HMACDEF_{- $target{asm_arch} -}
|
|
ENDIF
|
|
ENDIF
|
|
|
|
DEFINE[../../libcrypto]=$HMACDEF
|
|
DEFINE[../../providers/libfips.a]=$HMACDEF
|
|
|
|
SOURCE[../../libcrypto]=$COMMON $HMACASM
|
|
SOURCE[../../providers/libfips.a]=$COMMON $HMACASM
|