[PATCH 3/7] ecc: Add powerpc64 assembly for ecc_256_redc

2021-11-25 Thread Amitay Isaacs
Signed-off-by: Amitay Isaacs Signed-off-by: Martin Schwenke --- powerpc64/ecc-secp256r1-redc.asm | 144 +++ 1 file changed, 144 insertions(+) create mode 100644 powerpc64/ecc-secp256r1-redc.asm diff --git a/powerpc64/ecc-secp256r1-redc.asm b/powerpc64/ecc-secp256r1-

[PATCH 2/7] ecc: Add powerpc64 assembly for ecc_224_modp

2021-11-25 Thread Amitay Isaacs
Signed-off-by: Amitay Isaacs --- powerpc64/ecc-secp224r1-modp.asm | 123 +++ 1 file changed, 123 insertions(+) create mode 100644 powerpc64/ecc-secp224r1-modp.asm diff --git a/powerpc64/ecc-secp224r1-modp.asm b/powerpc64/ecc-secp224r1-modp.asm new file mode 100644 in

[PATCH 1/7] ecc: Add powerpc64 assembly for ecc_192_modp

2021-11-25 Thread Amitay Isaacs
Signed-off-by: Amitay Isaacs --- powerpc64/ecc-secp192r1-modp.asm | 93 1 file changed, 93 insertions(+) create mode 100644 powerpc64/ecc-secp192r1-modp.asm diff --git a/powerpc64/ecc-secp192r1-modp.asm b/powerpc64/ecc-secp192r1-modp.asm new file mode 100644 ind

[PATCH 4/7] ecc: Add powerpc64 assembly for ecc_384_modp

2021-11-25 Thread Amitay Isaacs
From: Martin Schwenke Signed-off-by: Martin Schwenke Signed-off-by: Amitay Isaacs Signed-off-by: Alastair D'Silva --- powerpc64/ecc-secp384r1-modp.asm | 227 +++ 1 file changed, 227 insertions(+) create mode 100644 powerpc64/ecc-secp384r1-modp.asm diff --git a/po

[PATCH 0/7] Add powerpc64 assembly for elliptic curves

2021-11-25 Thread Amitay Isaacs
Hi, This series of patches add the powerpc64 assembly for modp/redc functions for elliptic curves P192, P224, P256, P384, P521, X25519 and X448. It results in 15-30% performance improvements as measured on POWER9 system using hogweed-benchmark. master -- name size sign/ms verify

[PATCH 5/7] ecc: Add powerpc64 assembly for ecc_521_modp

2021-11-25 Thread Amitay Isaacs
From: Martin Schwenke Signed-off-by: Martin Schwenke Signed-off-by: Alastair D'Silva --- powerpc64/ecc-secp521r1-modp.asm | 166 +++ 1 file changed, 166 insertions(+) create mode 100644 powerpc64/ecc-secp521r1-modp.asm diff --git a/powerpc64/ecc-secp521r1-modp.asm

[PATCH 7/7] ecc: Add powerpc64 assembly for ecc_448_modp

2021-11-25 Thread Amitay Isaacs
From: Martin Schwenke Signed-off-by: Martin Schwenke Signed-off-by: Amitay Isaacs --- powerpc64/ecc-curve448-modp.asm | 174 1 file changed, 174 insertions(+) create mode 100644 powerpc64/ecc-curve448-modp.asm diff --git a/powerpc64/ecc-curve448-modp.asm b/po

[PATCH 6/7] ecc: Add powerpc64 assembly for ecc_25519_modp

2021-11-25 Thread Amitay Isaacs
From: Martin Schwenke Signed-off-by: Martin Schwenke Signed-off-by: Alastair D'Silva --- powerpc64/ecc-curve25519-modp.asm | 103 ++ 1 file changed, 103 insertions(+) create mode 100644 powerpc64/ecc-curve25519-modp.asm diff --git a/powerpc64/ecc-curve25519-modp.a

Re: [PATCH 0/4] Introduce OSCCA SM3 hash algorithm

2021-11-25 Thread Niels Möller
Tianjia Zhang writes: > Add OSCCA SM3 secure hash generic hash algorithm, described > in OSCCA GM/T 0004-2012 SM3. Thanks, I've had a first quick look, and it looks nice. I don't know much about this hash function, though. A few questions: * Is there some reasonably authoritative English refer

Re: [PATCH 0/4] Introduce OSCCA SM3 hash algorithm

2021-11-25 Thread Tianjia Zhang
Hi Niels, SM2/3/4 is a series of algorithms, which are all standards formulated by the China Cryptography Administration. They are widely used in China. At present, they are all ISO international standards. We will also consider supporting SM2 and SM4 algorithms in the future. On 11/26/21 1