Lines Matching refs:csrk
114 struct smp_csrk *csrk; member
756 kfree_sensitive(smp->csrk); in smp_chan_destroy()
1073 if (smp->csrk) { in smp_notify_keys()
1074 smp->csrk->bdaddr_type = hcon->dst_type; in smp_notify_keys()
1075 bacpy(&smp->csrk->bdaddr, &hcon->dst); in smp_notify_keys()
1076 mgmt_new_csrk(hdev, smp->csrk, persistent); in smp_notify_keys()
1332 struct smp_csrk *csrk; in smp_distribute_keys() local
1335 get_random_bytes(sign.csrk, sizeof(sign.csrk)); in smp_distribute_keys()
1337 csrk = kzalloc(sizeof(*csrk), GFP_KERNEL); in smp_distribute_keys()
1338 if (csrk) { in smp_distribute_keys()
1340 csrk->type = MGMT_CSRK_LOCAL_AUTHENTICATED; in smp_distribute_keys()
1342 csrk->type = MGMT_CSRK_LOCAL_UNAUTHENTICATED; in smp_distribute_keys()
1343 memcpy(csrk->val, sign.csrk, sizeof(csrk->val)); in smp_distribute_keys()
1345 smp->slave_csrk = csrk; in smp_distribute_keys()
2649 struct smp_csrk *csrk; in smp_cmd_sign_info() local
2661 csrk = kzalloc(sizeof(*csrk), GFP_KERNEL); in smp_cmd_sign_info()
2662 if (csrk) { in smp_cmd_sign_info()
2664 csrk->type = MGMT_CSRK_REMOTE_AUTHENTICATED; in smp_cmd_sign_info()
2666 csrk->type = MGMT_CSRK_REMOTE_UNAUTHENTICATED; in smp_cmd_sign_info()
2667 memcpy(csrk->val, rp->csrk, sizeof(csrk->val)); in smp_cmd_sign_info()
2669 smp->csrk = csrk; in smp_cmd_sign_info()