Skip to content

Commit

Permalink
ALIGNMENT -> RATE
Browse files Browse the repository at this point in the history
  • Loading branch information
jedisct1 committed Nov 13, 2024
1 parent a3a38ec commit b3e69d0
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/aegis128l/aegis128l_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ state_encrypt_update(aegis128l_state *st_, uint8_t *c, size_t clen_max, size_t *
return 0;
}
}
if (clen_max < (mlen & ~(size_t) (ALIGNMENT - 1))) {
if (clen_max < (mlen & ~(size_t) (RATE - 1))) {
errno = ERANGE;
return -1;
}
Expand Down
2 changes: 1 addition & 1 deletion src/aegis128x2/aegis128x2_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ state_encrypt_update(aegis128x2_state *st_, uint8_t *c, size_t clen_max, size_t
return 0;
}
}
if (clen_max < (mlen & ~(size_t) (ALIGNMENT - 1))) {
if (clen_max < (mlen & ~(size_t) (RATE - 1))) {
errno = ERANGE;
return -1;
}
Expand Down
2 changes: 1 addition & 1 deletion src/aegis128x4/aegis128x4_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ state_encrypt_update(aegis128x4_state *st_, uint8_t *c, size_t clen_max, size_t
return 0;
}
}
if (clen_max < (mlen & ~(size_t) (ALIGNMENT - 1))) {
if (clen_max < (mlen & ~(size_t) (RATE - 1))) {
errno = ERANGE;
return -1;
}
Expand Down
2 changes: 1 addition & 1 deletion src/aegis256/aegis256_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ state_encrypt_update(aegis256_state *st_, uint8_t *c, size_t clen_max, size_t *w
return 0;
}
}
if (clen_max < (mlen & ~(size_t) (ALIGNMENT - 1))) {
if (clen_max < (mlen & ~(size_t) (RATE - 1))) {
errno = ERANGE;
return -1;
}
Expand Down
2 changes: 1 addition & 1 deletion src/aegis256x2/aegis256x2_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ state_encrypt_update(aegis256x2_state *st_, uint8_t *c, size_t clen_max, size_t
return 0;
}
}
if (clen_max < (mlen & ~(size_t) (ALIGNMENT - 1))) {
if (clen_max < (mlen & ~(size_t) (RATE - 1))) {
errno = ERANGE;
return -1;
}
Expand Down
2 changes: 1 addition & 1 deletion src/aegis256x4/aegis256x4_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ state_encrypt_update(aegis256x4_state *st_, uint8_t *c, size_t clen_max, size_t
return 0;
}
}
if (clen_max < (mlen & ~(size_t) (ALIGNMENT - 1))) {
if (clen_max < (mlen & ~(size_t) (RATE - 1))) {
errno = ERANGE;
return -1;
}
Expand Down

0 comments on commit b3e69d0

Please sign in to comment.