Home
last modified time | relevance | path

Searched refs:TC_CRYPTO_FAIL (Results 1 – 20 of 20) sorted by relevance

/AliOS-Things-master/components/ble_host/bt_crypto/
A Dbt_crypto.c67 if (ret == TC_CRYPTO_FAIL) { in prng_reseed()
96 if (ret == TC_CRYPTO_FAIL) { in prng_init()
138 if (tc_aes128_set_encrypt_key(&s, tmp) == TC_CRYPTO_FAIL) { in bt_crypto_encrypt_le()
144 if (tc_aes_encrypt(enc_data, tmp, &s) == TC_CRYPTO_FAIL) { in bt_crypto_encrypt_le()
162 if (tc_aes128_set_encrypt_key(&s, key) == TC_CRYPTO_FAIL) { in bt_crypto_encrypt_be()
166 if (tc_aes_encrypt(enc_data, plaintext, &s) == TC_CRYPTO_FAIL) { in bt_crypto_encrypt_be()
180 if (tc_aes128_set_decrypt_key(&s, key) == TC_CRYPTO_FAIL) { in bt_crypto_decrypt_be()
184 if (tc_aes_decrypt(dec_data, enc_data, &s) == TC_CRYPTO_FAIL) { in bt_crypto_decrypt_be()
419 if (tc_cmac_setup(&state, key, &sched) == TC_CRYPTO_FAIL) { in bt_crypto_aes_cmac()
425 sg->len) == TC_CRYPTO_FAIL) { in bt_crypto_aes_cmac()
[all …]
/AliOS-Things-master/components/ble_host/bt_crypto/tinycrypt/source/
A Dcmac_mode.c103 return TC_CRYPTO_FAIL; in tc_cmac_setup()
128 return TC_CRYPTO_FAIL; in tc_cmac_erase()
141 return TC_CRYPTO_FAIL; in tc_cmac_init()
163 return TC_CRYPTO_FAIL; in tc_cmac_update()
169 return TC_CRYPTO_FAIL; in tc_cmac_update()
173 return TC_CRYPTO_FAIL; in tc_cmac_update()
230 return TC_CRYPTO_FAIL; in tc_cmac_final()
A Dccm_mode.c47 return TC_CRYPTO_FAIL; in tc_ccm_config()
49 return TC_CRYPTO_FAIL; /* The allowed nonce size is: 13. See documentation.*/ in tc_ccm_config()
51 return TC_CRYPTO_FAIL; /* The allowed mac sizes are: 4, 6, 8, 10, 12, 14, 16.*/ in tc_ccm_config()
110 return TC_CRYPTO_FAIL; in ccm_ctr_mode()
124 return TC_CRYPTO_FAIL; in ccm_ctr_mode()
151 return TC_CRYPTO_FAIL; in tc_ccm_generation_encryption()
213 return TC_CRYPTO_FAIL; in tc_ccm_decryption_verification()
265 return TC_CRYPTO_FAIL; in tc_ccm_decryption_verification()
A Dhmac.c60 return TC_CRYPTO_FAIL; in tc_hmac_set_key()
101 return TC_CRYPTO_FAIL; in tc_hmac_init()
117 return TC_CRYPTO_FAIL; in tc_hmac_update()
132 return TC_CRYPTO_FAIL; in tc_hmac_final()
A Daes_encrypt.c80 return TC_CRYPTO_FAIL; in tc_aes128_set_encrypt_key()
82 return TC_CRYPTO_FAIL; in tc_aes128_set_encrypt_key()
164 return TC_CRYPTO_FAIL; in tc_aes_encrypt()
166 return TC_CRYPTO_FAIL; in tc_aes_encrypt()
168 return TC_CRYPTO_FAIL; in tc_aes_encrypt()
A Dhmac_prng.c121 return TC_CRYPTO_FAIL; in tc_hmac_prng_init()
150 return TC_CRYPTO_FAIL; in tc_hmac_prng_reseed()
160 return TC_CRYPTO_FAIL; in tc_hmac_prng_reseed()
186 return TC_CRYPTO_FAIL; in tc_hmac_prng_generate()
A Dctr_mode.c54 return TC_CRYPTO_FAIL; in tc_ctr_mode()
73 return TC_CRYPTO_FAIL; in tc_ctr_mode()
A Dcbc_mode.c54 return TC_CRYPTO_FAIL; in tc_cbc_mode_encrypt()
95 return TC_CRYPTO_FAIL; in tc_cbc_mode_decrypt()
A Daes_decrypt.c135 return TC_CRYPTO_FAIL; in tc_aes_decrypt()
137 return TC_CRYPTO_FAIL; in tc_aes_decrypt()
139 return TC_CRYPTO_FAIL; in tc_aes_decrypt()
A Dctr_prng.c123 int result = TC_CRYPTO_FAIL; in tc_ctr_prng_init()
171 int result = TC_CRYPTO_FAIL; in tc_ctr_prng_reseed()
217 unsigned int result = TC_CRYPTO_FAIL; in tc_ctr_prng_generate()
A Dsha256.c43 return TC_CRYPTO_FAIL; in tc_sha256_init()
70 return TC_CRYPTO_FAIL; in tc_sha256_update()
94 return TC_CRYPTO_FAIL; in tc_sha256_final()
A Dutils.c47 return TC_CRYPTO_FAIL; in _copy()
/AliOS-Things-master/components/amp/engine/quickjs_engine/addons/utils/crypto/
A Daes_encrypt.c80 return TC_CRYPTO_FAIL; in tc_aes128_set_encrypt_key()
82 return TC_CRYPTO_FAIL; in tc_aes128_set_encrypt_key()
164 return TC_CRYPTO_FAIL; in tc_aes_encrypt()
166 return TC_CRYPTO_FAIL; in tc_aes_encrypt()
168 return TC_CRYPTO_FAIL; in tc_aes_encrypt()
A Dcbc_mode.c54 return TC_CRYPTO_FAIL; in utils_tc_cbc_mode_encrypt()
95 return TC_CRYPTO_FAIL; in utils_tc_cbc_mode_decrypt()
A Daes_decrypt.c135 return TC_CRYPTO_FAIL; in tc_aes_decrypt()
137 return TC_CRYPTO_FAIL; in tc_aes_decrypt()
139 return TC_CRYPTO_FAIL; in tc_aes_decrypt()
/AliOS-Things-master/components/ble_host/bt_crypto/tinycrypt/include/tinycrypt/
A Dconstants.h53 #define TC_CRYPTO_FAIL 0 macro
/AliOS-Things-master/components/amp/engine/quickjs_engine/addons/utils/crypto/tinycrypt/
A Dconstants.h53 #define TC_CRYPTO_FAIL 0 macro
/AliOS-Things-master/components/ble_host/bt_host/host/
A Dhci_ecc.c118 if (rc == TC_CRYPTO_FAIL) { in generate_keys()
183 ret = TC_CRYPTO_FAIL; in emulate_le_generate_dhkey()
A Dgatt.c594 sizeof(attr->handle)) == TC_CRYPTO_FAIL) { in gen_hash_m()
601 sizeof(u16->val)) == TC_CRYPTO_FAIL) { in gen_hash_m()
613 TC_CRYPTO_FAIL) { in gen_hash_m()
627 sizeof(attr->handle)) == TC_CRYPTO_FAIL) { in gen_hash_m()
634 sizeof(u16->val)) == TC_CRYPTO_FAIL) { in gen_hash_m()
671 if (tc_cmac_setup(&state.state, key, &sched) == TC_CRYPTO_FAIL) { in db_hash_gen()
678 if (tc_cmac_final(db_hash, &state.state) == TC_CRYPTO_FAIL) { in db_hash_gen()
A Dsmp.c503 if (tc_cmac_setup(&state, key, &sched) == TC_CRYPTO_FAIL) { in bt_smp_aes_cmac()
507 if (tc_cmac_update(&state, in, len) == TC_CRYPTO_FAIL) { in bt_smp_aes_cmac()
511 if (tc_cmac_final(out, &state) == TC_CRYPTO_FAIL) { in bt_smp_aes_cmac()

Completed in 39 milliseconds