Skip to content

Commit

Permalink
tests: fix the length of all_key in poly1305_test.v (#20853)
Browse files Browse the repository at this point in the history
  • Loading branch information
smalltalkman committed Feb 17, 2024
1 parent 8b52420 commit fb67553
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vlib/x/crypto/poly1305/poly1305_test.v
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ fn test_incremental_update_ported_from_poly1305donna() ! {
mut all_msg := []u8{len: 256}
for i := 0; i < 256; i++ {
// set key and message to 'i,i,i..'
for x := 0; x < sizeof(all_key); x++ {
for x := 0; x < all_key.len; x++ {
all_key[x] = u8(i)
}
for y := 0; y < i; y++ {
Expand Down

0 comments on commit fb67553

Please sign in to comment.