Direct-BT
2.3.1
Direct-BT - Direct Bluetooth Programming.
|
SMP Signature Resolving Key Info, used for platform agnostic persistence. More...
Classes | |
class | Properties |
SMPSignatureResolvingKeyInfo PropertyType Bit Mask More... | |
enum | PropertyType |
SMPSignatureResolvingKeyInfo Property Bits More... | |
Public Member Functions | |
SMPSignatureResolvingKeyInfo (final byte source[], final int pos) | |
Construct instance via given source byte array. More... | |
SMPSignatureResolvingKeyInfo () | |
Construct emoty unset instance. More... | |
void | putStream (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 void | getStream (final byte[] sink, int pos) |
Method transfers all bytes representing this instance into the given destination array at the given position. More... | |
final boolean | isResponder () |
String | toString () |
Public Attributes | |
Properties | properties |
Properties bit mask. More... | |
byte | csrk [] |
Connection Signature Resolving Key (CSRK) More... | |
Static Public Attributes | |
static final int | byte_size = 1+16 |
Size of the byte stream representation in bytes. More... | |
SMP Signature Resolving Key Info, 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::SMPSignatureResolvingKey
Definition at line 39 of file SMPSignatureResolvingKeyInfo.java.
org.direct_bt.SMPSignatureResolvingKeyInfo.SMPSignatureResolvingKeyInfo | ( | final byte | source[], |
final int | pos | ||
) |
Construct instance via given source byte array.
Definition at line 129 of file SMPSignatureResolvingKeyInfo.java.
org.direct_bt.SMPSignatureResolvingKeyInfo.SMPSignatureResolvingKeyInfo | ( | ) |
Construct emoty unset instance.
Definition at line 138 of file SMPSignatureResolvingKeyInfo.java.
final void org.direct_bt.SMPSignatureResolvingKeyInfo.getStream | ( | 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 172 of file SMPSignatureResolvingKeyInfo.java.
final boolean org.direct_bt.SMPSignatureResolvingKeyInfo.isResponder | ( | ) |
Definition at line 180 of file SMPSignatureResolvingKeyInfo.java.
void org.direct_bt.SMPSignatureResolvingKeyInfo.putStream | ( | 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 getStream(byte[], int).
source | the source array |
pos | starting position in the source array |
Definition at line 153 of file SMPSignatureResolvingKeyInfo.java.
String org.direct_bt.SMPSignatureResolvingKeyInfo.toString | ( | ) |
Definition at line 183 of file SMPSignatureResolvingKeyInfo.java.
|
static |
Size of the byte stream representation in bytes.
Definition at line 126 of file SMPSignatureResolvingKeyInfo.java.
byte org.direct_bt.SMPSignatureResolvingKeyInfo.csrk[] |
Connection Signature Resolving Key (CSRK)
Definition at line 120 of file SMPSignatureResolvingKeyInfo.java.
Properties org.direct_bt.SMPSignatureResolvingKeyInfo.properties |
Properties bit mask.
1 octet or 8 bits.
Definition at line 117 of file SMPSignatureResolvingKeyInfo.java.