[S390x] Optimize scalar multiply of Curve25519 and Curve448 defined in RFC-7748
This patch implements scalar multiply of Curve25519 and Curve448 defined in RFC-7748 (also support group functions) on S390x architecture using hardware-accelerated instruction pcc
.
testsuite passes all tests of this patch.
Benchmark on z15
Function | C | This patch |
---|---|---|
curve25519_mul | 366 (us) | 17 (us) |
curve25519_mul_g | 129 (us) | 17 (us) |
curve448_mul | 1748 (us) | 35 (us) |
curve448_mul_g | 624 (us) | 35 (us) |
Edited by Maamoun TK