Direct-BT v3.3.0-1-gc2d430c
Direct-BT - Direct Bluetooth Programming.
Classes | Public Member Functions | Public Attributes | Static Public Attributes | List of all members
org.direct_bt.SMPSignatureResolvingKey Class Reference

SMP Signature Resolving Key, used for platform agnostic persistence. More...

Collaboration diagram for org.direct_bt.SMPSignatureResolvingKey:

Classes

class  Properties
 SMPSignatureResolvingKey PropertyType Bit Mask More...
 
enum  PropertyType
 SMPSignatureResolvingKey Property Bits More...
 

Public Member Functions

 SMPSignatureResolvingKey ()
 Construct emoty unset instance. More...
 
 SMPSignatureResolvingKey (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 SMPSignatureResolvingKeyInfo from the given source array at the given position into this instance. More...
 
final boolean isResponder ()
 
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 csrk []
 Connection Signature Resolving Key (CSRK) More...
 
Properties properties
 Properties bit mask. More...
 

Static Public Attributes

static final int byte_size = 1+16
 Size of the byte stream representation in bytes. More...
 

Detailed Description

SMP Signature Resolving 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::SMPSignatureResolvingKeyInfo

Since
2.2.0

Definition at line 41 of file SMPSignatureResolvingKey.java.

Constructor & Destructor Documentation

◆ SMPSignatureResolvingKey() [1/2]

org.direct_bt.SMPSignatureResolvingKey.SMPSignatureResolvingKey ( final byte  source[],
final int  pos 
)

Construct instance via given source byte array.

Definition at line 131 of file SMPSignatureResolvingKey.java.

◆ SMPSignatureResolvingKey() [2/2]

org.direct_bt.SMPSignatureResolvingKey.SMPSignatureResolvingKey ( )

Construct emoty unset instance.

Definition at line 137 of file SMPSignatureResolvingKey.java.

Member Function Documentation

◆ get()

void org.direct_bt.SMPSignatureResolvingKey.get ( final byte[]  source,
int  pos 
)

Method transfers all bytes representing a SMPSignatureResolvingKeyInfo from the given source array at the given position into this instance.

Implementation is consistent with put(byte[], int).

Parameters
sourcethe source array
posstarting position in the source array
See also
put(byte[], int)

Definition at line 152 of file SMPSignatureResolvingKey.java.

Here is the caller graph for this function:

◆ put()

final void org.direct_bt.SMPSignatureResolvingKey.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 SMPSignatureResolvingKeyInfo(byte[], int).

Parameters
sinkthe destination array
posstarting position in the destination array
See also
#SMPSignatureResolvingKeyInfo(byte[], int)
get(byte[], int)

Definition at line 171 of file SMPSignatureResolvingKey.java.

Here is the caller graph for this function:

◆ isResponder()

final boolean org.direct_bt.SMPSignatureResolvingKey.isResponder ( )

Definition at line 179 of file SMPSignatureResolvingKey.java.

◆ toString()

String org.direct_bt.SMPSignatureResolvingKey.toString ( )

Definition at line 182 of file SMPSignatureResolvingKey.java.

Here is the caller graph for this function:

Member Data Documentation

◆ properties

Properties org.direct_bt.SMPSignatureResolvingKey.properties

Properties bit mask.

1 octet or 8 bits.

Definition at line 119 of file SMPSignatureResolvingKey.java.

◆ csrk

byte org.direct_bt.SMPSignatureResolvingKey.csrk[]

Connection Signature Resolving Key (CSRK)

Definition at line 122 of file SMPSignatureResolvingKey.java.

◆ byte_size

final int org.direct_bt.SMPSignatureResolvingKey.byte_size = 1+16
static

Size of the byte stream representation in bytes.

See also
put(byte[], int)

Definition at line 128 of file SMPSignatureResolvingKey.java.


The documentation for this class was generated from the following file: