| /optee_os/core/tests/ |
| H A D | ftmn_boot_tests.c | 37 struct ftmn ftmn = { }; in simple_call() local 41 FTMN_CALL_FUNC(res, &ftmn, FTMN_INCR0, simple_call_func1); in simple_call() 42 ftmn_expect_state(&ftmn, FTMN_INCR1, FTMN_STEP_COUNT(1), res); in simple_call() 45 FTMN_CALL_FUNC(res, &ftmn, FTMN_INCR0, simple_call_func1); in simple_call() 46 ftmn_expect_state(&ftmn, FTMN_INCR1, FTMN_STEP_COUNT(2, 1), res); in simple_call() 48 FTMN_CALL_FUNC(res, &ftmn, FTMN_INCR0, in simple_call() 50 ftmn_expect_state(&ftmn, FTMN_INCR1, FTMN_STEP_COUNT(3, 2), res); in simple_call() 82 struct ftmn ftmn = { }; in two_level_call_memcmp() local 85 FTMN_PUSH_LINKED_CALL(&ftmn, func_hash); in two_level_call_memcmp() 87 FTMN_SET_CHECK_RES_FROM_CALL(&ftmn, 0, res); in two_level_call_memcmp() [all …]
|
| /optee_os/lib/libutils/ext/include/ |
| H A D | fault_mitigation.h | 104 struct ftmn { struct 284 static inline void __ftmn_push_linked_call(struct ftmn *ftmn, in __ftmn_push_linked_call() argument 291 ftmn->arg_pp = arg_pp; in __ftmn_push_linked_call() 292 ftmn->my_hash = my_hash; in __ftmn_push_linked_call() 293 ftmn->called_hash = called_hash; in __ftmn_push_linked_call() 294 ftmn->saved_arg = *ftmn->arg_pp; in __ftmn_push_linked_call() 295 *ftmn->arg_pp = &ftmn->arg; in __ftmn_push_linked_call() 296 ftmn->arg.hash = my_hash; in __ftmn_push_linked_call() 300 static inline void __ftmn_pop_linked_call(struct ftmn *ftmn) in __ftmn_pop_linked_call() argument 302 if (ftmn->arg_pp) in __ftmn_pop_linked_call() [all …]
|
| /optee_os/core/lib/libtomcrypt/src/pk/rsa/ |
| H A D | rsa_verify_hash.c | 36 struct ftmn ftmn = { }; in rsa_verify_hash_ex() local 45 FTMN_SET_CHECK_RES(&ftmn, FTMN_INCR0, 1); in rsa_verify_hash_ex() 93 FTMN_PUSH_LINKED_CALL(&ftmn, FTMN_FUNC_HASH("pkcs_1_pss_decode")); in rsa_verify_hash_ex() 101 FTMN_SET_CHECK_RES_FROM_CALL(&ftmn, FTMN_INCR1, 0); in rsa_verify_hash_ex() 104 FTMN_POP_LINKED_CALL(&ftmn); in rsa_verify_hash_ex() 169 if (ftmn_set_check_res_memcmp(&ftmn, FTMN_INCR1, XMEMCMP, in rsa_verify_hash_ex() 178 if (ftmn_set_check_res_memcmp(&ftmn, FTMN_INCR1, XMEMCMP, in rsa_verify_hash_ex() 192 FTMN_SET_CHECK_RES_NOT_ZERO(&ftmn, FTMN_INCR1, 1); in rsa_verify_hash_ex() 207 FTMN_CALLEE_DONE_CHECK(&ftmn, FTMN_INCR0, FTMN_STEP_COUNT(1, inc1), !*stat); in rsa_verify_hash_ex()
|
| /optee_os/core/crypto/ |
| H A D | signed_hdr.c | 75 struct ftmn ftmn = { }; in shdr_verify_signature() local 112 FTMN_CALL_FUNC(res, &ftmn, FTMN_INCR0, in shdr_verify_signature() 117 ftmn_checkpoint(&ftmn, FTMN_INCR0); in shdr_verify_signature() 123 FTMN_SET_CHECK_RES_NOT_ZERO(&ftmn, err_incr * FTMN_INCR0, res); in shdr_verify_signature() 125 FTMN_CALLEE_DONE_CHECK(&ftmn, FTMN_INCR0, FTMN_STEP_COUNT(2), res); in shdr_verify_signature() 365 struct ftmn ftmn = { }; in shdr_verify_signature2() local 388 FTMN_CALL_FUNC(res, &ftmn, FTMN_INCR0, in shdr_verify_signature2() 399 ftmn_checkpoint(&ftmn, FTMN_INCR0); in shdr_verify_signature2() 405 FTMN_SET_CHECK_RES_NOT_ZERO(&ftmn, err_incr * FTMN_INCR0, res); in shdr_verify_signature2() 407 FTMN_CALLEE_DONE_CHECK(&ftmn, FTMN_INCR0, FTMN_STEP_COUNT(2), res); in shdr_verify_signature2()
|
| /optee_os/core/kernel/ |
| H A D | ree_fs_ta.c | 258 struct ftmn ftmn = { }; in ree_fs_ta_open() local 278 FTMN_CALL_FUNC(res, &ftmn, FTMN_INCR0, shdr_verify_signature, shdr); in ree_fs_ta_open() 326 FTMN_CALL_FUNC(res, &ftmn, FTMN_INCR0, in ree_fs_ta_open() 487 FTMN_CALLEE_DONE_CHECK(&ftmn, FTMN_INCR1, in ree_fs_ta_open() 500 FTMN_SET_CHECK_RES_NOT_ZERO(&ftmn, FTMN_INCR1, res); in ree_fs_ta_open() 501 FTMN_CALLEE_DONE_CHECK(&ftmn, FTMN_INCR1, in ree_fs_ta_open() 696 struct ftmn ftmn = { }; in buf_ta_open() local 702 FTMN_PUSH_LINKED_CALL(&ftmn, FTMN_FUNC_HASH("ree_fs_ta_open")); in buf_ta_open() 705 FTMN_SET_CHECK_RES_FROM_CALL(&ftmn, FTMN_INCR0, res); in buf_ta_open() 706 FTMN_POP_LINKED_CALL(&ftmn); in buf_ta_open() [all …]
|
| /optee_os/core/lib/libtomcrypt/ |
| H A D | rsa.c | 643 struct ftmn ftmn = { }; in sw_crypto_acipher_rsassa_verify() local 701 FTMN_PUSH_LINKED_CALL(&ftmn, FTMN_FUNC_HASH("rsa_verify_hash_ex")); in sw_crypto_acipher_rsassa_verify() 706 FTMN_SET_CHECK_RES_NOT_ZERO(&ftmn, FTMN_INCR0, res); in sw_crypto_acipher_rsassa_verify() 708 FTMN_SET_CHECK_RES_FROM_CALL(&ftmn, FTMN_INCR0, 0); in sw_crypto_acipher_rsassa_verify() 709 FTMN_POP_LINKED_CALL(&ftmn); in sw_crypto_acipher_rsassa_verify() 710 FTMN_CALLEE_DONE_CHECK(&ftmn, FTMN_INCR0, FTMN_STEP_COUNT(1), res); in sw_crypto_acipher_rsassa_verify()
|
| /optee_os/lib/libmbedtls/core/ |
| H A D | rsa.c | 777 struct ftmn ftmn = { }; in sw_crypto_acipher_rsassa_verify() local 854 FTMN_PUSH_LINKED_CALL(&ftmn, arg_hash); in sw_crypto_acipher_rsassa_verify() 858 FTMN_SET_CHECK_RES_FROM_CALL(&ftmn, FTMN_INCR0, lmd_res); in sw_crypto_acipher_rsassa_verify() 859 FTMN_POP_LINKED_CALL(&ftmn); in sw_crypto_acipher_rsassa_verify() 869 FTMN_SET_CHECK_RES_NOT_ZERO(&ftmn, FTMN_INCR0, res); in sw_crypto_acipher_rsassa_verify() 871 FTMN_CALLEE_DONE_CHECK(&ftmn, FTMN_INCR0, FTMN_STEP_COUNT(1), res); in sw_crypto_acipher_rsassa_verify()
|