diff options
author | Sven Gothel <[email protected]> | 2021-09-28 22:10:48 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2021-09-28 22:10:48 +0200 |
commit | 0c253bfcbfe9d31f39f83c5f3f5c7b5bd148136d (patch) | |
tree | 25fa87fb873ad7b92ca46c52a8b4ba6ff9f4b5ae /java/org/direct_bt/SMPLongTermKeyInfo.java | |
parent | b8421c4024714d11c55535a7ab2f0274c43c8b05 (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.java | 3 |
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]; |