Home
last modified time | relevance | path

Searched refs:cond (Results 1 – 25 of 29) sorted by relevance

12

/optee_os-3.20.0/lib/libmbedtls/mbedtls/include/mbedtls/
A Dplatform_util.h59 #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 Dconstant_time.c231 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 Dchacha20.c52 #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 Dchachapoly.c43 #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 Dpoly1305.c48 #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 Dblowfish.c38 #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 Dccm.c50 #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 Dpkwrite.c60 #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 Dpk.c47 #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 Ddhm.c58 #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 Dsha512.c53 #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 Decdh.c38 #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 Dsha256.c47 #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 Dcamellia.c47 #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 Dgcm.c56 #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 Daria.c53 #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 Decdsa.c51 #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 Decjpake.c38 #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 Dsha1.c44 #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 Dpkparse.c60 #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 Decp_curves.c36 #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 Dcipher.c73 #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 Dcaam_desc_helper.h82 #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 Dcaam_desc_defines.h455 #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 Dzutil.h245 # define Assert(cond,msg) {if(!(cond)) z_error(msg);} argument
252 # define Assert(cond,msg) argument

Completed in 45 milliseconds

12