+2026-01-08 Niels Möller <nisse@lysator.liu.se>
+
+ * ocb.h (struct ocb_ctx): Change types of data_count and
+ message_count to uint32_t and uint64_t, respectively, from size_t.
+ Makes the implementation limits on the size of associated data and
+ cleartext be platform independent.
+
2026-01-02 Niels Möller <nisse@lysator.liu.se>
* sexp.c (sexp_iterator_exit_list): Rewrite to not recurse via
/* Add x^k L[2], where k is the number of trailing zero bits in i. */
static void
update_offset(const struct ocb_key *key,
- union nettle_block16 *offset, size_t i)
+ union nettle_block16 *offset, uint64_t i)
{
if (i & 1)
block16_xor (offset, &key->L[2]);
static void
ocb_fill_n (const struct ocb_key *key,
- union nettle_block16 *offset, size_t count,
+ union nettle_block16 *offset, uint64_t count,
size_t n, union nettle_block16 *o)
{
assert (n > 0);
/* Authentication for the message */
union nettle_block16 checksum;
/* Count of processed blocks. */
- size_t data_count;
- size_t message_count;
+ uint32_t data_count;
+ uint64_t message_count;
};
void