Skip to content

Commit 75ae800

Browse files
committed
counter comment
1 parent be5c174 commit 75ae800

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ECCX08.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -718,10 +718,11 @@ int ECCX08Class::AESGenIV(byte IV[])
718718

719719
// Device only has two 4 byte counters
720720
// instead of 8 byte counter.
721+
// We increment one counter and read the other
722+
// This should be enough for the lifetime of the device
721723
byte counter0[4];
722724
if (!incrementCounter(0, counter0)){
723725
Serial.println("AESGenIV: failed to increment counter");
724-
// TODO: Reset counter0 and increment counter1
725726
return 0;
726727
}
727728
byte counter1[4];

0 commit comments

Comments
 (0)