|
Direct-BT v3.3.0-1-gc2d430c
Direct-BT - Direct Bluetooth Programming.
|
SMP Long Term Key, used for platform agnostic persistence. More...
Classes | |
| class | Properties |
SMPLongTermKey PropertyType Bit Mask More... | |
| enum | PropertyType |
SMPLongTermKey Property Bits More... | |
Public Member Functions | |
| SMPLongTermKey () | |
| Construct emoty unset instance. More... | |
| SMPLongTermKey (final byte source[], final int pos) | |
| Construct instance via given source byte array. More... | |
| void | get (final byte[] source, int pos) |
| Method transfers all bytes representing a SMPLongTermKeyInfo from the given source array at the given position into this instance. More... | |
| final boolean | isResponder () |
| final boolean | isValid () |
| final void | put (final byte[] sink, int pos) |
| Method transfers all bytes representing this instance into the given destination array at the given position. More... | |
| String | toString () |
Public Attributes | |
| byte | ediv [] |
| Encryption Diversifier, 2 octets or 16 bits. More... | |
| byte | enc_size |
| Encryption Size, 1 octets or 8 bits. More... | |
| byte | ltk [] |
| Long Term Key (LTK), 16 octets or 128 bits. More... | |
| Properties | properties |
Properties bit mask. More... | |
| byte | rand [] |
| Random Number, 8 octets or 64 bits. More... | |
Static Public Attributes | |
| static final int | byte_size = 1+1+2+8+16 |
| Size of the byte stream representation in bytes (28) More... | |
SMP Long Term Key, used for platform agnostic persistence.
Notable: No endian wise conversion shall occur on this data, since the encryption values are interpreted as a byte stream.
Byte layout must be synchronized with native direct_bt::SMPLongTermKeyInfo
Definition at line 41 of file SMPLongTermKey.java.
| org.direct_bt.SMPLongTermKey.SMPLongTermKey | ( | final byte | source[], |
| final int | pos | ||
| ) |
Construct instance via given source byte array.
Definition at line 144 of file SMPLongTermKey.java.
| org.direct_bt.SMPLongTermKey.SMPLongTermKey | ( | ) |
Construct emoty unset instance.
Definition at line 152 of file SMPLongTermKey.java.
| void org.direct_bt.SMPLongTermKey.get | ( | final byte[] | source, |
| int | pos | ||
| ) |
Method transfers all bytes representing a SMPLongTermKeyInfo from the given source array at the given position into this instance.
Implementation is consistent with put(byte[], int).
| source | the source array |
| pos | starting position in the source array |
Definition at line 170 of file SMPLongTermKey.java.
| final void org.direct_bt.SMPLongTermKey.put | ( | final byte[] | sink, |
| int | pos | ||
| ) |
Method transfers all bytes representing this instance into the given destination array at the given position.
Implementation is consistent with SMPLongTermKeyInfo(byte[], int).
| sink | the destination array |
| pos | starting position in the destination array |
Definition at line 193 of file SMPLongTermKey.java.
| final boolean org.direct_bt.SMPLongTermKey.isValid | ( | ) |
| final boolean org.direct_bt.SMPLongTermKey.isResponder | ( | ) |
Definition at line 207 of file SMPLongTermKey.java.
| String org.direct_bt.SMPLongTermKey.toString | ( | ) |
| Properties org.direct_bt.SMPLongTermKey.properties |
| byte org.direct_bt.SMPLongTermKey.enc_size |
Encryption Size, 1 octets or 8 bits.
Is zero if key is invalid.
Definition at line 129 of file SMPLongTermKey.java.
| byte org.direct_bt.SMPLongTermKey.ediv[] |
Encryption Diversifier, 2 octets or 16 bits.
Definition at line 131 of file SMPLongTermKey.java.
| byte org.direct_bt.SMPLongTermKey.rand[] |
Random Number, 8 octets or 64 bits.
Definition at line 133 of file SMPLongTermKey.java.
| byte org.direct_bt.SMPLongTermKey.ltk[] |
Long Term Key (LTK), 16 octets or 128 bits.
Definition at line 135 of file SMPLongTermKey.java.
|
static |
Size of the byte stream representation in bytes (28)
Definition at line 141 of file SMPLongTermKey.java.