Lines Matching refs:tmp
151 uint8_t tmp[16]; in bt_mesh_k3() local
155 err = bt_mesh_s1_str("smk3", tmp); in bt_mesh_k3()
160 err = bt_mesh_aes_cmac_one_raw_key(tmp, n, 16, t); in bt_mesh_k3()
165 err = bt_mesh_aes_cmac_one_raw_key(t, id64, sizeof(id64), tmp); in bt_mesh_k3()
170 memcpy(out, tmp + 8, 8); in bt_mesh_k3()
178 uint8_t tmp[16]; in bt_mesh_k4() local
182 err = bt_mesh_s1_str("smk4", tmp); in bt_mesh_k4()
187 err = bt_mesh_aes_cmac_one_raw_key(tmp, n, 16, t); in bt_mesh_k4()
192 err = bt_mesh_aes_cmac_one_raw_key(t, id6, sizeof(id6), tmp); in bt_mesh_k4()
197 out[0] = tmp[15] & BIT_MASK(6); in bt_mesh_k4()
249 uint8_t tmp[16]; in bt_mesh_prov_nonce() local
252 err = bt_mesh_k1(dhkey, 32, prov_salt, "prsn", tmp); in bt_mesh_prov_nonce()
254 memcpy(nonce, tmp + 3, 13); in bt_mesh_prov_nonce()
356 uint8_t tmp[16]; in bt_mesh_net_obfuscate() local
367 err = bt_mesh_encrypt(privacy_key, priv_rand, tmp); in bt_mesh_net_obfuscate()
373 pdu[1 + i] ^= tmp[i]; in bt_mesh_net_obfuscate()
575 uint8_t tmp[16]; in bt_mesh_virtual_addr() local
583 err = bt_mesh_aes_cmac_one_raw_key(salt, virtual_label, 16, tmp); in bt_mesh_virtual_addr()
588 *addr = (sys_get_be16(&tmp[14]) & 0x3fff) | 0x8000; in bt_mesh_virtual_addr()
694 uint8_t msg[13], tmp[16]; in bt_mesh_beacon_auth() local
707 err = bt_mesh_aes_cmac_one_mesh_key(beacon_key, msg, sizeof(msg), tmp); in bt_mesh_beacon_auth()
709 memcpy(auth, tmp, 8); in bt_mesh_beacon_auth()
744 uint8_t salt[16], tmp[16]; in private_beacon_auth() local
753 err = bt_mesh_encrypt(pbk, salt, tmp); in private_beacon_auth()
761 tmp[i] ^= beacon_data[i]; in private_beacon_auth()
764 err = bt_mesh_encrypt(pbk, tmp, tmp); in private_beacon_auth()
774 memcpy(auth, tmp, 8); in private_beacon_auth()
776 err = bt_mesh_encrypt(pbk, salt, tmp); in private_beacon_auth()
783 auth[i] ^= tmp[i]; in private_beacon_auth()