Lines Matching full:keys
449 struct ble_sm_keys *keys, in ble_sm_fill_store_value() argument
456 if (keys->ediv_rand_valid && keys->ltk_valid) { in ble_sm_fill_store_value()
457 value_sec->key_size = keys->key_size; in ble_sm_fill_store_value()
458 value_sec->ediv = keys->ediv; in ble_sm_fill_store_value()
459 value_sec->rand_num = keys->rand_val; in ble_sm_fill_store_value()
461 memcpy(value_sec->ltk, keys->ltk, sizeof value_sec->ltk); in ble_sm_fill_store_value()
468 if (keys->irk_valid) { in ble_sm_fill_store_value()
469 memcpy(value_sec->irk, keys->irk, sizeof value_sec->irk); in ble_sm_fill_store_value()
473 if (keys->csrk_valid) { in ble_sm_fill_store_value()
474 memcpy(value_sec->csrk, keys->csrk, sizeof value_sec->csrk); in ble_sm_fill_store_value()
935 /* Persist keys if bonding has successfully completed. */ in ble_sm_process_result()
1110 /* We are completing a pairing procedure; keys may need to be in ble_sm_enc_event_rx()
1114 /* If the responder has any keys to send, it sends them in ble_sm_enc_event_rx()
1126 /* Failure or no keys to exchange; procedure is complete. */ in ble_sm_enc_event_rx()
1136 * procedure. Keys were exchanged during pairing; they don't in ble_sm_enc_event_rx()
1169 /* Unless keys need to be exchanged, notify the application of the security in ble_sm_enc_event_rx()
1593 /* In legacy mode, bonding requires the exchange of keys. If no key in ble_sm_pair_cfg()
2166 /* The peer is done sending keys. If we are the initiator, we need to in ble_sm_key_rxed()