Skip to content

Commit

Permalink
GCM: 0 size IV is not valid #273
Browse files Browse the repository at this point in the history
  • Loading branch information
karel-m committed Aug 28, 2017
1 parent 042df8c commit 105abdd
Show file tree
Hide file tree
Showing 3 changed files with 259 additions and 265 deletions.
2 changes: 1 addition & 1 deletion demos/tv_gen.c
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,7 @@ void gcm_gen(void)
key[z] = (z & 255);
}

for (y1 = 0; y1 <= (int)(cipher_descriptor[x].block_length*2); y1++){
for (y1 = 1; y1 <= (int)(cipher_descriptor[x].block_length*2); y1++){
for (z = 0; z < y1; z++) {
plaintext[z] = (unsigned char)(z & 255);
}
Expand Down
Loading

0 comments on commit 105abdd

Please sign in to comment.