MCPcopy Create free account
hub / github.com/TheAlgorithms/Java / initialize

Method initialize

src/main/java/com/thealgorithms/ciphers/a5/LFSR.java:19–24  ·  view source on GitHub ↗
(BitSet sessionKey, BitSet frameCounter)

Source from the content-addressed store, hash-verified

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

Callers 3

initializeMethod · 0.95
clockMethod · 0.95
getClockBitMethod · 0.95

Calls 2

clockMethod · 0.95
clearMethod · 0.45

Tested by 3

initializeMethod · 0.76
clockMethod · 0.76
getClockBitMethod · 0.76