1
mirror of https://github.com/jedisct1/libsodium.git synced 2024-12-19 10:05:05 -07:00

Revert "Leverage aegis*_absorb() when no message is desired"

This reverts commit 2c56be1d77.
This commit is contained in:
Frank Denis 2023-06-15 17:15:51 +02:00
parent 2c56be1d77
commit c524c7a14b
6 changed files with 6 additions and 6 deletions

View File

@ -229,7 +229,7 @@ aegis128l_decrypt_detached(unsigned char *m, unsigned char *nsec, const unsigned
}
} else {
for (i = 0ULL; i + 32ULL <= mlen; i += 32ULL) {
aegis128l_absorb(c + i, state);
aegis128l_dec(dst, c + i, state);
}
}
if (mlen & 0x1f) {

View File

@ -219,7 +219,7 @@ aegis128l_decrypt_detached(unsigned char *m, unsigned char *nsec, const unsigned
}
} else {
for (i = 0ULL; i + 32ULL <= mlen; i += 32ULL) {
aegis128l_absorb(c + i, state);
aegis128l_dec(dst, c + i, state);
}
}
if (mlen & 0x1f) {

View File

@ -222,7 +222,7 @@ aegis128l_decrypt_detached(unsigned char *m, unsigned char *nsec, const unsigned
}
} else {
for (i = 0ULL; i + 32ULL <= mlen; i += 32ULL) {
aegis128l_absorb(c + i, state);
aegis128l_dec(dst, c + i, state);
}
}
if (mlen & 0x1f) {

View File

@ -219,7 +219,7 @@ aegis256_decrypt_detached(unsigned char *m, unsigned char *nsec, const unsigned
}
} else {
for (i = 0ULL; i + 16ULL <= mlen; i += 16ULL) {
aegis256_absorb(c + i, state);
aegis256_dec(dst, c + i, state);
}
}
if (mlen & 0xf) {

View File

@ -214,7 +214,7 @@ aegis256_decrypt_detached(unsigned char *m, unsigned char *nsec, const unsigned
}
} else {
for (i = 0ULL; i + 16ULL <= mlen; i += 16ULL) {
aegis256_absorb(c + i, state);
aegis256_dec(dst, c + i, state);
}
}
if (mlen & 0xf) {

View File

@ -211,7 +211,7 @@ aegis256_decrypt_detached(unsigned char *m, unsigned char *nsec, const unsigned
}
} else {
for (i = 0ULL; i + 16ULL <= mlen; i += 16ULL) {
aegis256_absorb(c + i, state);
aegis256_dec(dst, c + i, state);
}
}
if (mlen & 0xf) {