Is there a way to resolve a private resolvable address on connection? I have all the bonding information, IRKs etc, from everything which I'm bonded with, I'd like to work out at connection time who's connected to me. With public addresses it's easy, you compare them, with the resolvable ones it's not, you need to compute each of the IRK hashes with the first 24 bits and see if the rest of the address matches.
The AAR would do the job for me but that's blocked when the SD is running and I don't see a user-level function which accesses it for me (unlike for instance the random number generator which is exposed via a sd_ call). I'd prefer not to have to do 128 bit exponentiation mod 2^24 if I can avoid it.
I don't want to whitelist, I want to actually work out whether the private resolvable address I see is someone I've bonded with already, preferably before they start the re-bonding process.