a /var/db/bthcid.keys file and provides them as required when Bluetooth connections need to be authenticated.
p These keys are required for connections between remote devices and the specific controller
q not the Operating System and so for multi-boot systems where it may not always be possible to specify the same key across all OS's it can be better to have the Bluetooth controller provide the keys directly from its semi-permanent memory once devices are paired. .Nm will read, write or clear keys in device memory or the key cache as required.
p Note that without the .Xr bthcid 8 daemon running users will be unable to supply PINs, and Link Keys resulting from new pairings will not be stored. If no new pairings are expected and the keys are stored in the controller then .Xr bthcid 8 is not required.
p The options are as follows: l -tag -width ".Fl a Ar address" t Fl a Ar address Specify the remote device address. May be given as a BDADDR or a name. t Fl C Clear key from device. t Fl c Clear key from file. t Fl d Ar device Specify the local device address. May be given as a BDADDR or a name. t Fl k Ar key Supply a Link Key as a string of hexadecimal digits. Up to 32 digits will be processed and the resulting key will be zero padded to 16 octets. t Fl L List keys stored in device. t Fl l List keys stored in file. t Fl R Read key from device. t Fl r Read key from file. t Fl W Write key to device. t Fl w Write key to file. .El
p Super-user privileges are required to read or write link keys. .Sh FILES l -item -compact t
a /var/db/bthcid.keys .El .Sh EXIT STATUS .Ex -std .Sh EXAMPLES Read key for mouse at ubt0 from file and write to device
p .Dl btkey -d ubt0 -a mouse -rW
p Write new key for keyboard at ubt0 to file
p .Dl btkey -d ubt0 -a keyboard -k 92beda6cd8b8f66ebd2af270d55d70ec -w
p Clear key for phone at bt3c0 from file and device
p .Dl btkey -d bt3c0 -a phone -cC .Sh SEE ALSO .Xr btpin 1 , .Xr btconfig 8 , .Xr bthcid 8 .Sh AUTHORS .An Iain Hibbert