(BitSet sessionKey, BitSet frameCounter)
| 17 | } |
| 18 | |
| 19 | @Override |
| 20 | public void initialize(BitSet sessionKey, BitSet frameCounter) { |
| 21 | register.clear(); |
| 22 | clock(sessionKey, SESSION_KEY_LENGTH); |
| 23 | clock(frameCounter, FRAME_COUNTER_LENGTH); |
| 24 | } |
| 25 | |
| 26 | private void clock(BitSet key, int keyLength) { |
| 27 | // We start from reverse because LFSR 0 index is the left most bit |