aboutsummaryrefslogtreecommitdiffstats
path: root/java/org/direct_bt/SMPLongTermKeyInfo.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2021-09-28 22:10:48 +0200
committerSven Gothel <[email protected]>2021-09-28 22:10:48 +0200
commit0c253bfcbfe9d31f39f83c5f3f5c7b5bd148136d (patch)
tree25fa87fb873ad7b92ca46c52a8b4ba6ff9f4b5ae /java/org/direct_bt/SMPLongTermKeyInfo.java
parentb8421c4024714d11c55535a7ab2f0274c43c8b05 (diff)
SMP SC (non-legacy): Add full Link Key (LK) support (SMP, SMPKeyBin, ..); Respect BTRole in SMP key handling: responder=slave, initiator=master.
Diffstat (limited to 'java/org/direct_bt/SMPLongTermKeyInfo.java')
-rw-r--r--java/org/direct_bt/SMPLongTermKeyInfo.java3
1 files changed, 0 insertions, 3 deletions
diff --git a/java/org/direct_bt/SMPLongTermKeyInfo.java b/java/org/direct_bt/SMPLongTermKeyInfo.java
index b02e59d8..115be853 100644
--- a/java/org/direct_bt/SMPLongTermKeyInfo.java
+++ b/java/org/direct_bt/SMPLongTermKeyInfo.java
@@ -140,9 +140,6 @@ public class SMPLongTermKeyInfo {
/** Construct instance via given source byte array */
public SMPLongTermKeyInfo(final byte source[], final int pos) {
- if( byte_size > ( source.length - pos ) ) {
- throw new IllegalArgumentException("Stream ( "+source.length+" - "+pos+" ) < "+byte_size+" bytes");
- }
ediv = new byte[2];
rand = new byte[8];
ltk = new byte[16];