Skip to content

Optional Key storage #7

Open

Description

@unknownconstant

The developer should not need to implement storage and retrieval of IRK and LTK values for MAC addresses. The library should work out of the box without callbacks being defined for the storage and retrieval functions.

Not storing IRK & LTK means that devices will be paired but not bonded so the pairing Authreq value needs updating to reflect this so that centrals do not store LTK / IRK values and cause reconnection issues.

Activity

  1. added this to the Stable milestone on Jan 4, 2021
  2. linked a pull request that will close this issueSecure random & reject unknown LTK #16on Jan 4, 2021
  3. unknownconstant commented on Jan 4, 2021

    @unknownconstant
    OwnerAuthor

    I tried modifying the authreq / iocap parameters but the behaviour I've seen is that android expects the bonding process to complete regardless.

    You suggested on the orignal thread that it could store IRK/LTK/MACs in ram as a default option - this could be implemented by having default storage/retreival callbacks which are overriden if the developer wants to. The merge above rejects unknown LTKs & will function without storage of keys until a device attempts to reconnect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions