read iv from chiffre (still not correct but at least less wrong now)

This commit is contained in:
Sebastian Hugentobler 2022-03-22 19:38:52 +01:00
parent 3bc74649ad
commit e04a341fc6
Signed by: shu
GPG key ID: BB32CF3CA052C2F0
3 changed files with 8 additions and 8 deletions

View file

@ -8,11 +8,9 @@ class CTRTest {
@Test
void generateIV() {
var ctr = new CTR(0);
int count = 0;
while(count < Integer.MAX_VALUE) {
int iv = ctr.generateIV();
int iv = CTR.generateIV();
assert (iv < 1 << 16);
count++;
}