Lines Matching refs:enc_size
404 (conn->le.keys->enc_size == BT_SMP_MAX_ENC_KEY_SIZE))) { in smp_keys_check()
631 if (keys->enc_size > get_encryption_key_size(smp)) { in update_keys_check()
1000 keys->enc_size = smp->enc_key_size; in smp_br_derive_ltk()
1783 (!conn->le.keys->enc_size || in smp_pairing_complete()
2051 memcpy(info->ltk, rand.key, keys->enc_size); in legacy_distribute_keys()
2052 if (keys->enc_size < sizeof(info->ltk)) { in legacy_distribute_keys()
2053 (void)memset(info->ltk + keys->enc_size, 0, in legacy_distribute_keys()
2054 sizeof(info->ltk) - keys->enc_size); in legacy_distribute_keys()
2785 uint8_t enc_size; in bt_smp_request_ltk() local
2799 enc_size = get_encryption_key_size(smp); in bt_smp_request_ltk()
2805 memcpy(ltk, smp->tk, enc_size); in bt_smp_request_ltk()
2806 if (enc_size < BT_SMP_MAX_ENC_KEY_SIZE) { in bt_smp_request_ltk()
2807 (void)memset(ltk + enc_size, 0, in bt_smp_request_ltk()
2808 BT_SMP_MAX_ENC_KEY_SIZE - enc_size); in bt_smp_request_ltk()
2826 enc_size = conn->le.keys->enc_size; in bt_smp_request_ltk()
2828 memcpy(ltk, conn->le.keys->ltk.val, enc_size); in bt_smp_request_ltk()
2829 if (enc_size < BT_SMP_MAX_ENC_KEY_SIZE) { in bt_smp_request_ltk()
2830 (void)memset(ltk + enc_size, 0, in bt_smp_request_ltk()
2831 BT_SMP_MAX_ENC_KEY_SIZE - enc_size); in bt_smp_request_ltk()
2842 enc_size = conn->le.keys->enc_size; in bt_smp_request_ltk()
2844 memcpy(ltk, conn->le.keys->periph_ltk.val, enc_size); in bt_smp_request_ltk()
2845 if (enc_size < BT_SMP_MAX_ENC_KEY_SIZE) { in bt_smp_request_ltk()
2846 (void)memset(ltk + enc_size, 0, in bt_smp_request_ltk()
2847 BT_SMP_MAX_ENC_KEY_SIZE - enc_size); in bt_smp_request_ltk()
4163 conn->le.keys->enc_size) < 0) { in smp_security_request()
4417 uint8_t e[16], r[16], enc_size; in smp_dhkey_check() local
4451 enc_size = get_encryption_key_size(smp); in smp_dhkey_check()
4457 smp->tk, enc_size) < 0) { in smp_dhkey_check()
5943 conn->le.keys->enc_size); in bt_smp_start_security()
6018 conn->le.keys->enc_size = get_encryption_key_size(smp); in bt_smp_update_keys()
6039 sys_memcpy_swap(ltk, smp->tk, conn->le.keys->enc_size); in bt_smp_update_keys()
6040 LOG_INF("SC LTK: 0x%s (No bonding)", bt_hex(ltk, conn->le.keys->enc_size)); in bt_smp_update_keys()