With the full counter, the limit is comfortable enough (2^70)

This commit is contained in:
Frank Denis
2017-02-26 22:04:50 +01:00
parent d155bfd686
commit 8d256f0edd
2 changed files with 0 additions and 6 deletions
@@ -70,9 +70,6 @@ salsa20_encrypt_bytes(salsa_ctx *ctx, const uint8_t *m, uint8_t *c,
if (!bytes) {
return; /* LCOV_EXCL_LINE */
}
if (bytes > 64ULL * (1ULL << 32) - 64ULL) {
abort();
}
#include "u8.h"
#include "u4.h"
@@ -62,9 +62,6 @@ salsa20_encrypt_bytes(salsa_ctx *ctx, const uint8_t *m, uint8_t *c,
if (!bytes) {
return; /* LCOV_EXCL_LINE */
}
if (bytes > 64ULL * (1ULL << 32) - 64ULL) {
abort();
}
#include "u4.h"
#include "u1.h"