diff options
author | Niels Möller <nisse@lysator.liu.se> | 2014-08-02 21:28:08 +0200 |
---|---|---|
committer | Niels Möller <nisse@lysator.liu.se> | 2014-08-02 21:28:08 +0200 |
commit | 98333dcd3a154ca5fffae044d594a338749ef96a (patch) | |
tree | cad273d73727810d3e5694ce5d004e6858e06b50 /ecc-internal.h | |
parent | 7fa54ac583030a6a68b0c5bd12d1cdfddd0ee45c (diff) | |
download | nettle-98333dcd3a154ca5fffae044d594a338749ef96a.tar.gz |
Fixed window-based ecc_mul_a_eh.
Diffstat (limited to 'ecc-internal.h')
-rw-r--r-- | ecc-internal.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ecc-internal.h b/ecc-internal.h index e233b64f..2ed15ca7 100644 --- a/ecc-internal.h +++ b/ecc-internal.h @@ -68,11 +68,12 @@ /* Window size for ecc_mul_a. Using 4 bits seems like a good choice, for both Intel x86_64 and ARM Cortex A9. For the larger curves, of - 384 and 521 bits, we could improve seepd by a few percent if we go + 384 and 521 bits, we could improve speed by a few percent if we go up to 5 bits, but I don't think that's worth doubling the storage. */ #define ECC_MUL_A_WBITS 4 -#define ECC_MUL_A_EH_WBITS 0 +/* And for ecc_mul_a_eh */ +#define ECC_MUL_A_EH_WBITS 4 /* Reduces from 2*ecc->size to ecc->size. */ |