Module self_test

Source
Expand description

MbedTLS self tests.

Calling MbedTLS self test functions before they’re enabled using the enable() function here will result in a panic.

Using this module in multithreaded or async environment will fail. The self test functions rely on global variables to track operations and anything non-self-test related operations will clobber these variables, resulting in self test failures. Make sure no other code uses MbedTLS while running the self tests. Multiple self test operations done simultaneously may also return failures.

Functions§

aes
Safety
arc4
Safety
aria
Safety
base64
Safety
camellia
Safety
ccm
Safety
cmac
Safety
ctr_drbg
Safety
des
Safety
dhm
Safety
disable
Safety
ecjpake
Safety
ecp
Safety
enable
Set callback functions to enable the MbedTLS self tests.
entropy
Safety
gcm
Safety
hmac_drbg
Safety
md2
Safety
md4
Safety
md5
Safety
mpi
Safety
nist_kw
Safety
pkcs5
Safety
ripemd160
Safety
rsa
Safety
sha1
Safety
sha256
Safety
sha512
Safety
x509
Safety
xtea
Safety