mbedtls/library
Tero Jääskö ada61f05b3 AES: masked config: remove 176 bytes of zeroing on each AES finalize round
On MBEDTLS_AES_128_BIT_MASKED+FI_COUNTERMEASURES config the rk_mask array
was unconditionally zeroed on each dummy finalization round even though
it will be zeroed after the loop too. Remove the repeated zeroing to increase
overall transfer speed on DTLS session by 17..20% on a Cortex-M4.

Signed-off-by: Tero Jääskö <tero.jaasko@arm.com>
2021-01-19 18:43:02 +02:00
..
.gitignore Split libs with make + general make cleanups 2015-06-25 10:59:56 +02:00
aes.c AES: masked config: remove 176 bytes of zeroing on each AES finalize round 2021-01-19 18:43:02 +02:00
aesni.c Changed every memcpy to SCA equivalent mbedtls_platform_memcpy 2019-10-30 14:07:04 +02:00
arc4.c Changed mbedtls_platform_memcpy back to memcpy for selftest and test functions 2019-10-30 14:07:04 +02:00
aria.c Changed mbedtls_platform_memset/cpy/cmp in selftest functions back to original methods 2019-10-30 14:07:04 +02:00
asn1parse.c Rename mbedtls_platform_memcmp() to mbedtls_platform_memequal() 2020-08-10 12:41:00 +02:00
asn1write.c Rename mbedtls_platform_memcmp() to mbedtls_platform_memequal() 2020-08-10 12:41:00 +02:00
base64.c Changed every memcmp to SCA equivalent mbedtls_platform_memcmp 2019-10-03 13:14:33 +03:00
bignum.c Add new error code PLATFORM_ALLOC_FAILED for mbedtls_platform_memmove() 2020-06-10 13:51:32 +02:00
blowfish.c Changed every memcpy to SCA equivalent mbedtls_platform_memcpy 2019-10-30 14:07:04 +02:00
camellia.c Changed mbedtls_platform_memset/cpy/cmp in selftest functions back to original methods 2019-10-30 14:07:04 +02:00
ccm.c Make CCM shuffling and masking optional 2020-11-26 06:35:04 -05:00
certs.c Fixup certs.c: Remove redundant TinyCrypt guard 2019-09-04 16:19:49 +01:00
chacha20.c Changed every memcpy to SCA equivalent mbedtls_platform_memcpy 2019-10-30 14:07:04 +02:00
chachapoly.c Replace memset() with mbedtls_platform_memset() 2019-10-22 10:03:07 +02:00
cipher.c [baremetal] Avoid narrow loop counters etc 2020-11-06 10:56:16 +02:00
cipher_wrap.c Wrap AES 192 and 256 info structures in !AES_ONLY_128_BIT_KEY_LENGTH 2020-06-30 05:03:19 -04:00
cmac.c Changed every memcpy to SCA equivalent mbedtls_platform_memcpy 2019-10-30 14:07:04 +02:00
CMakeLists.txt Add a CRC module to mbedtls and baremetal config 2020-08-08 02:10:52 -04:00
crc.c Add a CRC module to mbedtls and baremetal config 2020-08-08 02:10:52 -04:00
ctr_drbg.c Catch AES failure in mbedtls_ctr_drbg_random 2020-03-13 15:36:04 +00:00
debug.c Changed every memcpy to SCA equivalent mbedtls_platform_memcpy 2019-10-30 14:07:04 +02:00
des.c Rename mbedtls_platform_memcmp() to mbedtls_platform_memequal() 2020-08-10 12:41:00 +02:00
dhm.c Replace memset() with mbedtls_platform_memset() 2019-10-22 10:03:07 +02:00
ecdh.c Replace memset() with mbedtls_platform_memset() 2019-10-22 10:03:07 +02:00
ecdsa.c hmac_drbg: make no reseeding behaviour explicit 2020-07-19 09:00:18 -04:00
ecjpake.c Changed mbedtls_platform_memset/cpy/cmp in selftest functions back to original methods 2019-10-30 14:07:04 +02:00
ecp.c [baremetal] Avoid narrow loop counters etc 2020-11-06 10:56:16 +02:00
ecp_curves.c Changed every memcpy to SCA equivalent mbedtls_platform_memcpy 2019-10-30 14:07:04 +02:00
entropy.c Checking in critical places if secured memset() and memcpy() was successful 2020-08-12 15:22:20 +02:00
entropy_poll.c Changed every memcpy to SCA equivalent mbedtls_platform_memcpy 2019-10-30 14:07:04 +02:00
error.c Add new error code PLATFORM_ALLOC_FAILED for mbedtls_platform_memmove() 2020-06-10 13:51:32 +02:00
gcm.c Changed every memcpy to SCA equivalent mbedtls_platform_memcpy 2019-10-30 14:07:04 +02:00
havege.c Changed every memcpy to SCA equivalent mbedtls_platform_memcpy 2019-10-30 14:07:04 +02:00
hkdf.c Changed every memcpy to SCA equivalent mbedtls_platform_memcpy 2019-10-30 14:07:04 +02:00
hmac_drbg.c hmac_drbg: make no reseeding behaviour explicit 2020-07-19 09:00:18 -04:00
Makefile Makefile: alphabetically order object files 2020-08-08 19:08:26 -04:00
md.c Include platform.h in hmac_drbg.c and md.c 2019-11-25 17:32:28 +02:00
md2.c Changed every memcpy to SCA equivalent mbedtls_platform_memcpy 2019-10-30 14:07:04 +02:00
md4.c Changed every memcpy to SCA equivalent mbedtls_platform_memcpy 2019-10-30 14:07:04 +02:00
md5.c Changed every memcpy to SCA equivalent mbedtls_platform_memcpy 2019-10-30 14:07:04 +02:00
memory_buffer_alloc.c Replace memset() with mbedtls_platform_memset() 2019-10-22 10:03:07 +02:00
net_sockets.c Changed every memcpy to SCA equivalent mbedtls_platform_memcpy 2019-10-30 14:07:04 +02:00
nist_kw.c Add new error code PLATFORM_ALLOC_FAILED for mbedtls_platform_memmove() 2020-06-10 13:51:32 +02:00
oid.c Rename mbedtls_platform_memcmp() to mbedtls_platform_memequal() 2020-08-10 12:41:00 +02:00
padlock.c Added include platform_util.h to padlock.c to fix compile with all defines variants 2019-10-30 14:07:04 +02:00
pem.c Rename mbedtls_platform_memcmp() to mbedtls_platform_memequal() 2020-08-10 12:41:00 +02:00
pk.c Rename mbedtls_platform_memcmp() to mbedtls_platform_memequal() 2020-08-10 12:41:00 +02:00
pkcs5.c Changed every memcpy to SCA equivalent mbedtls_platform_memcpy 2019-10-30 14:07:04 +02:00
pkcs11.c Changed every memcpy to SCA equivalent mbedtls_platform_memcpy 2019-10-30 14:07:04 +02:00
pkcs12.c Changed every memcpy to SCA equivalent mbedtls_platform_memcpy 2019-10-30 14:07:04 +02:00
pkparse.c Checking in critical places if secured memset() and memcpy() was successful 2020-08-12 15:22:20 +02:00
pkwrite.c Changed every memcpy to SCA equivalent mbedtls_platform_memcpy 2019-10-30 14:07:04 +02:00
platform.c Omit runtime configuration of calloc/free if macro config enabled 2018-10-11 11:04:20 +01:00
platform_util.c fix flow control check 2020-12-14 18:57:52 +02:00
poly1305.c Changed every memcpy to SCA equivalent mbedtls_platform_memcpy 2019-10-30 14:07:04 +02:00
ripemd160.c Changed mbedtls_platform_memset/cpy/cmp in selftest functions back to original methods 2019-10-30 14:07:04 +02:00
rsa.c Checking in critical places if secured memset() and memcpy() was successful 2020-08-12 15:22:20 +02:00
rsa_internal.c Bignum: Deprecate mbedtls_mpi_is_prime() 2018-10-09 16:36:53 +01:00
sha1.c Changed mbedtls_platform_memset/cpy/cmp in selftest functions back to original methods 2019-10-30 14:07:04 +02:00
sha256.c Add random delays to sha256 to protect against fault injection 2020-11-25 06:38:05 -05:00
sha512.c Changed mbedtls_platform_memset/cpy/cmp in selftest functions back to original methods 2019-10-30 14:07:04 +02:00
ssl_cache.c Rename mbedtls_platform_memcmp() to mbedtls_platform_memequal() 2020-08-10 12:41:00 +02:00
ssl_ciphersuites.c Fixup: Add missing TinyCrypt guards 2019-09-04 16:17:45 +01:00
ssl_cli.c Add missing volatile identifiers before fi-related variables 2020-12-31 09:56:42 -05:00
ssl_cookie.c Rename mbedtls_platform_memcmp() to mbedtls_platform_memequal() 2020-08-10 12:41:00 +02:00
ssl_srv.c Add an "SSL" infix to MBEDTLS_IMMEDIATE_TRANSMISSION 2020-12-21 07:56:57 -05:00
ssl_ticket.c Rename mbedtls_platform_memcmp() to mbedtls_platform_memequal() 2020-08-10 12:41:00 +02:00
ssl_tls.c Merge pull request #3979 from AndrzejKurek/coverity-seg-fault-context 2021-01-05 12:47:41 +01:00
threading.c Don't declare and define gmtime()-mutex on Windows platforms 2018-09-06 12:09:56 +01:00
timing.c timing: Remove redundant include file 2019-06-20 16:33:02 +01:00
version.c Changed every memcpy to SCA equivalent mbedtls_platform_memcpy 2019-10-30 14:07:04 +02:00
version_features.c Add an "SSL" infix to MBEDTLS_DELAYED_SERVER_CERT_VERIFICATION 2020-12-21 08:11:36 -05:00
x509.c Rename mbedtls_platform_memcmp() to mbedtls_platform_memequal() 2020-08-10 12:41:00 +02:00
x509_create.c Changed every memcpy to SCA equivalent mbedtls_platform_memcpy 2019-10-30 14:07:04 +02:00
x509_crl.c Rename mbedtls_platform_memcmp() to mbedtls_platform_memequal() 2020-08-10 12:41:00 +02:00
x509_crt.c Add missing volatile identifiers before fi-related variables 2020-12-31 09:56:42 -05:00
x509_csr.c Changed every memcpy to SCA equivalent mbedtls_platform_memcpy 2019-10-30 14:07:04 +02:00
x509write_crt.c Changed every memcpy to SCA equivalent mbedtls_platform_memcpy 2019-10-30 14:07:04 +02:00
x509write_csr.c Add missing return code check on call to mbedtls_md() 2020-03-13 15:36:05 +00:00
xtea.c Changed mbedtls_platform_memcpy back to memcpy for selftest and test functions 2019-10-30 14:07:04 +02:00