diff options
author | Andy Polyakov <appro@openssl.org> | 2014-10-23 16:08:44 +0200 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2014-10-23 16:08:44 +0200 |
commit | 3ff08e1dde56747011a702a9a5aae06cfa8ae5fc (patch) | |
tree | e141a2b9454de50db73c2ef5499c819fd6a8539b /crypto/crypto.h | |
parent | b06f7d9ac0752083e7443dddc9e5ac3e198063d4 (diff) | |
download | openssl-3ff08e1dde56747011a702a9a5aae06cfa8ae5fc.tar.gz |
ecp_nistz256 update.
Facilitate switch to custom scatter-gather routines. This modification
does not change algorithms, only makes it possible to implement
alternative. This is achieved by a) moving precompute table to assembly
(perlasm parses ecp_nistz256_table.c and is free to rearrange data to
match gathering algorithm); b) adhering to explicit scatter subroutine
(which for now is simply a memcpy). First implementations that will use
this option are 32-bit assembly implementations, ARMv4 and x86, where
equivalent of current read-whole-table-select-single-value algorithm
is too time-consuming. [On side note, switching to scatter-gather on
x86_64 would allow to improve server-side ECDSA performance by ~5%].
Reviewed-by: Bodo Moeller <bodo@openssl.org>
Diffstat (limited to 'crypto/crypto.h')
-rw-r--r-- | crypto/crypto.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/crypto.h b/crypto/crypto.h index 3eb1c55329..256220ba01 100644 --- a/crypto/crypto.h +++ b/crypto/crypto.h @@ -395,6 +395,7 @@ int CRYPTO_is_mem_check_on(void); #define OPENSSL_malloc_locked(num) \ CRYPTO_malloc_locked((int)num,__FILE__,__LINE__) #define OPENSSL_free_locked(addr) CRYPTO_free_locked(addr) +#define OPENSSL_MALLOC_MAX_NELEMS(type) (((1U<<(sizeof(int)*8-1))-1)/sizeof(type)) const char *SSLeay_version(int type); |