Definition
A resolvable private address (RPA) is a BLE §7.1 (Bluetooth Low Energy) device address that a device replaces at intervals, and that a peer can resolve using the device’s identity resolving key §7.29 (IRK), a 128-bit secret. Its 48 bits are a 24-bit field containing two type bits and 22 random bits and a 24-bit hash of that part computed with the IRK. To an observer without the IRK, successive RPAs look unrelated. A holder recomputes the hash and so maps each RPA to the device’s identity address §7.30, its fixed address.
The idea
A fixed address is a name tag that every listener can read, and a listener who logs it at several places reconstructs the owner’s movements. A device that wants privacy must change the tag, yet a peer it has bonded with must still recognize it, and a receiver that applies rules per device must still find the right rule. An RPA is a disguised tag: a random number with a keyed check value attached. Strangers see noise; a bonded peer that holds the IRK verifies the check value and knows the device. The privacy feature built on RPAs is called LE privacy (LE stands for Low Energy).
The disguise catches access rules out. A rule, a bond or an allowlist entry is stored under the device’s identity address, because that address does not change, but the packet carries the RPA. Until someone resolves the RPA, the receiver holds a value that matches nothing it has stored. Resolution must therefore come before any lookup by address, and only a receiver that already holds the IRK can resolve.
Resolution recognizes an address; it does not authenticate the sender. An RPA is 48 bits in a packet, and anyone who has heard it can send it again.
How it works
Generating. The device picks a 24-bit value
prand: the bits01followed by 22 random bits that are not all zero and not all one. It computes the 24-bithashwith the function : AES (Advanced Encryption Standard) encryption, keyed with the IRK, of a 16-byte block of 13 zero bytes followed by the 3 bytes ofprand;hashis the last 3 bytes of the result. The RPA isprandfollowed byhash, sent with the address type set to random.Rotating. A timer makes the device pick a new
prand, and so a new RPA. The specification recommends a maximum interval of 15 minutes. A controller that makes RPAs itself uses a default period of 900 seconds, which host software can change with an HCI §7.5 (Host Controller Interface) command. The device uses RPAs both when it advertises and when it starts a connection.Handing over the IRK. When peers negotiate identity-key distribution during bonding §7.18, the sender provides its IRK and identity address over the encrypted link. A peer can also receive those values in advance. Until it has the IRK, the receiver cannot use this procedure to recognize the address.
Resolving. The receiver splits a received RPA into
prandandhash, computes ofprandunder each IRK it holds, and looks for a result equal tohash. Host software can do this, or the Bluetooth controller §7.4 can, from its resolving list, a table of identity addresses and IRKs that Bluetooth 4.2 introduced. A controller that resolves an RPA reports the peer to the host by identity address, with an address type that marks it as resolved.Privacy modes. In network privacy mode, the default, a controller accepts packets from a peer in its resolving list only when the peer uses a private address. Device privacy mode also accepts that peer’s identity address.
Order matters wherever a rule is keyed on addresses. The controller’s filter accept list, the list of addresses whose packets it lets through, holds identity addresses. A controller that resolves RPAs resolves first and then filters. If only the host resolves, the controller sees only RPAs, and a filter keyed on identity addresses discards the very packets the host could have resolved.
Worked example
Generating one RPA. The IRK is the sample key that the Bluetooth Core Specification prints for : ec0234a357c8ad05341010a60a397d9b. The device picks prand = 0x4B19E7. In binary 0x4B is 0100 1011: the top bits are 01, and the other 22 bits mix zeros and ones, so the value is allowed. AES under the IRK, applied to 13 zero bytes followed by 4b19e7, gives 99c6f8c87ab9a892ab73c3e2801c30dd, so hash = 0x1C30DD. The RPA is 4B:19:E7:1C:30:DD, sent least significant byte first as DD 30 1C E7 19 4B.
A rule lookup. A gateway keeps one rule per device, keyed by identity address. The device above has the identity address C4:5B:12:7A:90:3E, of random type, and its rule allows it to write configuration. It connects using 4B:19:E7:1C:30:DD.
A gateway that looks up the received address finds no row and applies its rule for unknown devices: if that rule refuses, the legitimate device is refused; if it allows more than the device’s own rule, a restriction is skipped.
A gateway that holds the IRK resolves first. of
0x4B19E7is0x1C30DD, equal to thehashpart, so the address belongs toC4:5B:12:7A:90:3E, and the lookup finds the rule.Fifteen minutes later the device uses
5A:3C:21:A3:B9:22. Under the same IRK,prand0x5A3C21giveshash0xA3B922, so it resolves to the same identity address.A gateway that stored
4B:19:E7:1C:30:DDitself as the key matches the device only until the next rotation.
A replay. An attacker M records 4B:19:E7:1C:30:DD and advertises with it. The gateway resolves it to C4:5B:12:7A:90:3E exactly as before, so a rule granted on resolution alone now applies to M. A gateway that also requires encryption with the long-term key §7.28 (LTK) it stored for that identity stops M, which lacks that key.
Repeats by chance. At one new address every 15 minutes, a device uses addresses a day, which form pairs. With allowed random parts, the birthday bound §5.6 puts the probability that some address repeats within the day at most .
Stated precisely
Let be the 128-bit IRK and the AES encryption of the 128-bit block under . For a 24-bit value whose two most significant bits are 01, where is 104 zero bits, is the bit string followed by the bit string , and keeps the least significant 24 bits. The RPA is . A receiver holding accepts a random address as resolving under when its top two bits are 01 and , where is rounded down.
Resolution establishes one fact: a holder of produced at some time, except that a match is a coincidence with probability per stored key. It does not establish who sent the current packet, or when was produced. For observers without , successive RPAs are unlinkable, meaning that their bits give no evidence that they come from one device, provided that AES behaves as a pseudorandom permutation §15.2, the IRK is uniformly random and secret, and the addresses under comparison contain different random parts. If the same key and random part recur, the whole address repeats.
Limits and common mistakes
Resolution is not authentication §1.6. A replayed RPA resolves exactly as the original does, so a rule that grants permission must also require encryption with the bond’s long-term key, or another check that needs a key.
A receiver that learns the IRK during bonding must handle the initial contact without it. A receiver provisioned with the IRK and identity address can resolve even the first advertisement it hears.
The RPA hides only the address. A constant name, serial number or counter in the advertising data links sightings without the IRK, and so does traffic analysis §5.47, which studies the pattern of transmissions, such as the advertising rhythm and the signal strength, rather than their content. Every changing identifier must change at the same moment as the address, or a field that changes at a different time bridges the old address and the new one.
Any peer that retains the IRK can recognize the device’s addresses even after the owner stops trusting that peer. A device that starts connections with its identity address in place of an RPA reveals that address to every listener.
A design that binds a key or a rule to the address seen on the radio needs that address to stay fixed. It cannot work with RPAs unless every verifier holds the IRK and resolves first; otherwise it must give up privacy and put the identity address on the radio.
Questions answered
Why can an address-based policy fail before identity resolution?
An address-based policy fails before identity resolution because the packet then carries a resolvable private address (RPA), which matches nothing the policy has stored. Policy rows, bonds and allowlist entries are stored under the device’s identity address, its fixed public or static random address, but a device that uses BLE (Bluetooth Low Energy) privacy transmits a random-looking RPA in its place and replaces it at intervals, typically every 15 minutes. A lookup made with the raw RPA finds no row, so the device gets the rule for unknown devices: a legitimate device is refused, or a rule that should restrict it is skipped. A row keyed on an RPA fails too: it matches only until the next rotation, and it matches anyone who replays that RPA.
Resolution fixes the lookup. A receiver that holds the device’s identity resolving key (IRK) recomputes the 24-bit hash inside the RPA and looks up the identity address stored alongside the matching key. Two gaps remain. A receiver that has yet to obtain the IRK cannot identify the peer through this lookup. And resolution must run before the lookup, in the Bluetooth controller from its resolving list or in the host with any controller-side address filter switched off. Even a resolved address is only recognized, not authenticated, so a rule that grants permission should also require encryption with the bond’s long-term key.
Related entries: Identity resolving key (IRK) (§7.29), Public, static random, and private addresses (§7.30), Unlinkability (§5.46), Traffic analysis defenses (§5.47). Further reading: [18, 93, 283].