/optee_os-3.20.0/lib/libmbedtls/mbedtls/include/mbedtls/ |
A D | platform_util.h | 59 #define MBEDTLS_PARAM_FAILED( cond ) assert( cond ) 63 #define MBEDTLS_PARAM_FAILED( cond ) \ 64 mbedtls_param_failed( #cond, __FILE__, __LINE__ ) 87 #define MBEDTLS_INTERNAL_VALIDATE_RET( cond, ret ) \ argument 89 if( !(cond) ) \ 91 MBEDTLS_PARAM_FAILED( cond ); \ 97 #define MBEDTLS_INTERNAL_VALIDATE( cond ) \ argument 99 if( !(cond) ) \ 101 MBEDTLS_PARAM_FAILED( cond ); \ 109 #define MBEDTLS_INTERNAL_VALIDATE_RET( cond, ret ) do { } while( 0 ) [all …]
|
/optee_os-3.20.0/lib/libmbedtls/mbedtls/library/ |
A D | constant_time.c | 231 mbedtls_mpi_uint cond; in mbedtls_ct_mpi_uint_lt() local 236 cond = ( x ^ y ); in mbedtls_ct_mpi_uint_lt() 241 ret = ( x - y ) & ~cond; in mbedtls_ct_mpi_uint_lt() 247 ret |= y & cond; in mbedtls_ct_mpi_uint_lt() 626 unsigned cond, done, X_is_negative, Y_is_negative; in mbedtls_mpi_lt_mpi_ct() local 647 cond = ( X_is_negative ^ Y_is_negative ); in mbedtls_mpi_lt_mpi_ct() 648 *ret = cond & X_is_negative; in mbedtls_mpi_lt_mpi_ct() 654 done = cond; in mbedtls_mpi_lt_mpi_ct() 666 *ret |= cond & ( 1 - done ) & X_is_negative; in mbedtls_mpi_lt_mpi_ct() 667 done |= cond; in mbedtls_mpi_lt_mpi_ct() [all …]
|
A D | chacha20.c | 52 #define CHACHA20_VALIDATE_RET( cond ) \ argument 53 MBEDTLS_INTERNAL_VALIDATE_RET( cond, MBEDTLS_ERR_CHACHA20_BAD_INPUT_DATA ) 54 #define CHACHA20_VALIDATE( cond ) \ argument 55 MBEDTLS_INTERNAL_VALIDATE( cond ) 510 #define ASSERT( cond, args ) \ argument 513 if( ! ( cond ) ) \
|
A D | chachapoly.c | 43 #define CHACHAPOLY_VALIDATE_RET( cond ) \ argument 44 MBEDTLS_INTERNAL_VALIDATE_RET( cond, MBEDTLS_ERR_POLY1305_BAD_INPUT_DATA ) 45 #define CHACHAPOLY_VALIDATE( cond ) \ argument 46 MBEDTLS_INTERNAL_VALIDATE( cond ) 462 #define ASSERT( cond, args ) \ argument 465 if( ! ( cond ) ) \
|
A D | poly1305.c | 48 #define POLY1305_VALIDATE_RET( cond ) \ argument 49 MBEDTLS_INTERNAL_VALIDATE_RET( cond, MBEDTLS_ERR_POLY1305_BAD_INPUT_DATA ) 50 #define POLY1305_VALIDATE( cond ) \ argument 51 MBEDTLS_INTERNAL_VALIDATE( cond ) 494 #define ASSERT( cond, args ) \ argument 497 if( ! ( cond ) ) \
|
A D | blowfish.c | 38 #define BLOWFISH_VALIDATE_RET( cond ) \ argument 39 MBEDTLS_INTERNAL_VALIDATE_RET( cond, MBEDTLS_ERR_BLOWFISH_BAD_INPUT_DATA ) 40 #define BLOWFISH_VALIDATE( cond ) \ argument 41 MBEDTLS_INTERNAL_VALIDATE( cond )
|
A D | ccm.c | 50 #define CCM_VALIDATE_RET( cond ) \ argument 51 MBEDTLS_INTERNAL_VALIDATE_RET( cond, MBEDTLS_ERR_CCM_BAD_INPUT ) 52 #define CCM_VALIDATE( cond ) \ argument 53 MBEDTLS_INTERNAL_VALIDATE( cond )
|
A D | pkwrite.c | 60 #define PK_VALIDATE_RET( cond ) \ argument 61 MBEDTLS_INTERNAL_VALIDATE_RET( cond, MBEDTLS_ERR_PK_BAD_INPUT_DATA ) 62 #define PK_VALIDATE( cond ) \ argument 63 MBEDTLS_INTERNAL_VALIDATE( cond )
|
A D | pk.c | 47 #define PK_VALIDATE_RET( cond ) \ argument 48 MBEDTLS_INTERNAL_VALIDATE_RET( cond, MBEDTLS_ERR_PK_BAD_INPUT_DATA ) 49 #define PK_VALIDATE( cond ) \ argument 50 MBEDTLS_INTERNAL_VALIDATE( cond )
|
A D | dhm.c | 58 #define DHM_VALIDATE_RET( cond ) \ argument 59 MBEDTLS_INTERNAL_VALIDATE_RET( cond, MBEDTLS_ERR_DHM_BAD_INPUT_DATA ) 60 #define DHM_VALIDATE( cond ) \ argument 61 MBEDTLS_INTERNAL_VALIDATE( cond )
|
A D | sha512.c | 53 #define SHA512_VALIDATE_RET(cond) \ argument 54 MBEDTLS_INTERNAL_VALIDATE_RET( cond, MBEDTLS_ERR_SHA512_BAD_INPUT_DATA ) 55 #define SHA512_VALIDATE(cond) MBEDTLS_INTERNAL_VALIDATE( cond ) argument
|
A D | ecdh.c | 38 #define ECDH_VALIDATE_RET( cond ) \ argument 39 MBEDTLS_INTERNAL_VALIDATE_RET( cond, MBEDTLS_ERR_ECP_BAD_INPUT_DATA ) 40 #define ECDH_VALIDATE( cond ) \ argument 41 MBEDTLS_INTERNAL_VALIDATE( cond )
|
A D | sha256.c | 47 #define SHA256_VALIDATE_RET(cond) \ argument 48 MBEDTLS_INTERNAL_VALIDATE_RET( cond, MBEDTLS_ERR_SHA256_BAD_INPUT_DATA ) 49 #define SHA256_VALIDATE(cond) MBEDTLS_INTERNAL_VALIDATE( cond ) argument
|
A D | camellia.c | 47 #define CAMELLIA_VALIDATE_RET( cond ) \ argument 48 MBEDTLS_INTERNAL_VALIDATE_RET( cond, MBEDTLS_ERR_CAMELLIA_BAD_INPUT_DATA ) 49 #define CAMELLIA_VALIDATE( cond ) \ argument 50 MBEDTLS_INTERNAL_VALIDATE( cond )
|
A D | gcm.c | 56 #define GCM_VALIDATE_RET( cond ) \ argument 57 MBEDTLS_INTERNAL_VALIDATE_RET( cond, MBEDTLS_ERR_GCM_BAD_INPUT ) 58 #define GCM_VALIDATE( cond ) \ argument 59 MBEDTLS_INTERNAL_VALIDATE( cond )
|
A D | aria.c | 53 #define ARIA_VALIDATE_RET( cond ) \ argument 54 MBEDTLS_INTERNAL_VALIDATE_RET( cond, MBEDTLS_ERR_ARIA_BAD_INPUT_DATA ) 55 #define ARIA_VALIDATE( cond ) \ argument 56 MBEDTLS_INTERNAL_VALIDATE( cond )
|
A D | ecdsa.c | 51 #define ECDSA_VALIDATE_RET( cond ) \ argument 52 MBEDTLS_INTERNAL_VALIDATE_RET( cond, MBEDTLS_ERR_ECP_BAD_INPUT_DATA ) 53 #define ECDSA_VALIDATE( cond ) \ argument 54 MBEDTLS_INTERNAL_VALIDATE( cond )
|
A D | ecjpake.c | 38 #define ECJPAKE_VALIDATE_RET( cond ) \ argument 39 MBEDTLS_INTERNAL_VALIDATE_RET( cond, MBEDTLS_ERR_ECP_BAD_INPUT_DATA ) 40 #define ECJPAKE_VALIDATE( cond ) \ argument 41 MBEDTLS_INTERNAL_VALIDATE( cond )
|
A D | sha1.c | 44 #define SHA1_VALIDATE_RET(cond) \ argument 45 MBEDTLS_INTERNAL_VALIDATE_RET( cond, MBEDTLS_ERR_SHA1_BAD_INPUT_DATA ) 47 #define SHA1_VALIDATE(cond) MBEDTLS_INTERNAL_VALIDATE( cond ) argument
|
A D | pkparse.c | 60 #define PK_VALIDATE_RET( cond ) \ argument 61 MBEDTLS_INTERNAL_VALIDATE_RET( cond, MBEDTLS_ERR_PK_BAD_INPUT_DATA ) 62 #define PK_VALIDATE( cond ) \ argument 63 MBEDTLS_INTERNAL_VALIDATE( cond )
|
A D | ecp_curves.c | 36 #define ECP_VALIDATE_RET( cond ) \ argument 37 MBEDTLS_INTERNAL_VALIDATE_RET( cond, MBEDTLS_ERR_ECP_BAD_INPUT_DATA ) 38 #define ECP_VALIDATE( cond ) \ argument 39 MBEDTLS_INTERNAL_VALIDATE( cond )
|
A D | cipher.c | 73 #define CIPHER_VALIDATE_RET( cond ) \ argument 74 MBEDTLS_INTERNAL_VALIDATE_RET( cond, MBEDTLS_ERR_CIPHER_BAD_INPUT_DATA ) 75 #define CIPHER_VALIDATE( cond ) \ argument 76 MBEDTLS_INTERNAL_VALIDATE( cond )
|
/optee_os-3.20.0/core/drivers/crypto/caam/include/ |
A D | caam_desc_helper.h | 82 #define JUMP_LOCAL(cla, test, cond, offset) \ argument 84 JUMP_TST_TYPE(test) | (cond) | JMP_LOCAL_OFFSET(offset)) 90 #define JUMP_CNO_LOCAL(test, cond, offset) \ argument 91 JUMP_LOCAL(CLASS_NO, test, cond, offset) 97 #define JUMP_C1_LOCAL(test, cond, offset) \ argument 98 JUMP_LOCAL(CLASS_1, test, cond, offset) 105 #define JUMP_CNO_LOCAL_DEC(test, src, cond, offset) \ argument 107 JUMP_TST_TYPE(test) | JMP_SRC(src) | (cond) | \ 114 (JUMP_LOCAL(CLASS_NO, test, JMP_COND(cond), 1) | JMP_JSL) 122 JUMP_TST_TYPE(test) | (cond)) [all …]
|
A D | caam_desc_defines.h | 455 #define JMP_COND(cond) SHIFT_U32((JMP_COND_##cond) & 0xFF, 8) argument 456 #define JMP_COND_MATH(cond) SHIFT_U32((JMP_COND_MATH_##cond) & 0xF, 8) argument
|
/optee_os-3.20.0/core/lib/zlib/ |
A D | zutil.h | 245 # define Assert(cond,msg) {if(!(cond)) z_error(msg);} argument 252 # define Assert(cond,msg) argument
|