Searched refs:encrypt_data (Results 1 – 3 of 3) sorted by relevance
/AliOS-Things-master/components/amp/engine/quickjs_engine/addons/utils/crypto/ |
A D | crypto_adapter.c | 69 uint8_t *encrypt_data; in crypto_adapter_decrypt_cbc() local 77 encrypt_data = (uint8_t *)aos_malloc(inlen + TC_AES_BLOCK_SIZE); in crypto_adapter_decrypt_cbc() 78 if (encrypt_data == NULL) { in crypto_adapter_decrypt_cbc() 83 memcpy(encrypt_data, aes_iv, TC_AES_BLOCK_SIZE); in crypto_adapter_decrypt_cbc() 84 memcpy(encrypt_data + TC_AES_BLOCK_SIZE, in, inlen); in crypto_adapter_decrypt_cbc() 87 encrypt_data+TC_AES_BLOCK_SIZE, inlen, encrypt_data, &key_sched); in crypto_adapter_decrypt_cbc() 88 aos_free(encrypt_data); in crypto_adapter_decrypt_cbc()
|
/AliOS-Things-master/components/genie_service/core/src/ |
A D | genie_ota.c | 94 uint8_t encrypt_data[GENIE_CRYPTO_UNIT_SIZE]; in genie_ota_status_report() local 105 genie_crypto_encrypt(plaine_data, encrypt_data); in genie_ota_status_report() 106 genie_ais_notify(0, AIS_OTA_STATUS, encrypt_data, GENIE_CRYPTO_UNIT_SIZE); in genie_ota_status_report() 112 uint8_t encrypt_data[GENIE_CRYPTO_UNIT_SIZE]; in genie_ota_handle_version_request() local 124 genie_crypto_encrypt(plaine_data, encrypt_data); in genie_ota_handle_version_request() 125 genie_ais_notify(msg_id, AIS_OTA_VER_RESP, encrypt_data, GENIE_CRYPTO_UNIT_SIZE); in genie_ota_handle_version_request() 141 uint8_t encrypt_data[GENIE_CRYPTO_UNIT_SIZE]; in genie_ota_handle_update_request() local 173 genie_crypto_encrypt(plaine_data, encrypt_data); in genie_ota_handle_update_request() 175 genie_ais_notify(msg_id, AIS_OTA_UPD_RESP, encrypt_data, GENIE_CRYPTO_UNIT_SIZE); in genie_ota_handle_update_request() 261 uint8_t encrypt_data[GENIE_CRYPTO_UNIT_SIZE]; in genie_ota_check_firmware() local [all …]
|
A D | genie_ais.c | 323 uint8_t encrypt_data[GENIE_CRYPTO_UNIT_SIZE]; in _ais_link_ack() local 333 genie_crypto_encrypt(plaine_data, encrypt_data); in _ais_link_ack() 334 _ais_server_indicate(msg_id, AIS_LINK_ACK, encrypt_data, GENIE_CRYPTO_UNIT_SIZE); in _ais_link_ack()
|
Completed in 6 milliseconds