authorgravatar for 124872+jedisct1@users.noreply.github.comFrank Denis <124872+jedisct1@users.noreply.github.com> 2026-09-22 01:12:07+02:00
committergravatar for 124872+jedisct1@users.noreply.github.comFrank Denis <124872+jedisct1@users.noreply.github.com> 2026-09-22 01:12:07+02:00
log48abf1a34e90acd42501f5296ba6a16c90f60fe9
treef8cb1ae0e7317ea41206837ecbd7a0755da73c5d
parent4f32c51b9de49eced084ebd88ef04f87d6e100f0
parentc1bc70c6c6c2935b5392e7c5ce49ccd12c9c092f

Merge pull request 'std.crypto.aegis: AEGIS specification is now RFC 10032' (#36911) from jedisct1/zig:aegisrfc into master

Reviewed-on: https://codeberg.org/ziglang/zig/pulls/36911

1 files changed, 3 insertions(+), 3 deletions(-)

lib/std/crypto/aegis.zig+3-3
......@@ -19,7 +19,7 @@
1919//!
2020//! Finally, leaking the state does not leak the key.
2121//!
22//! https://datatracker.ietf.org/doc/draft-irtf-cfrg-aegis-aead/
22//! https://www.rfc-editor.org/rfc/rfc10032.html
2323
2424const std = @import("std");
2525const crypto = std.crypto;
......@@ -270,7 +270,7 @@ fn State128X(comptime degree: u7) type {
270270///
271271/// The 128 bits variants of AEGIS have a 128 bit key and a 128 bit nonce.
272272///
273/// https://datatracker.ietf.org/doc/draft-irtf-cfrg-aegis-aead/
273/// https://www.rfc-editor.org/rfc/rfc10032.html
274274fn Aegis128XGeneric(comptime degree: u7, comptime tag_bits: u9) type {
275275 comptime assert(degree > 0); // degree must be greater than 0
276276 comptime assert(tag_bits == 128 or tag_bits == 256); // tag must be 128 or 256 bits
......@@ -565,7 +565,7 @@ fn State256X(comptime degree: u7) type {
565565///
566566/// The 256 bits variants of AEGIS have a 256 bit key and a 256 bit nonce.
567567///
568/// https://datatracker.ietf.org/doc/draft-irtf-cfrg-aegis-aead/
568/// https://www.rfc-editor.org/rfc/rfc10032.html
569569fn Aegis256XGeneric(comptime degree: u7, comptime tag_bits: u9) type {
570570 comptime assert(degree > 0); // degree must be greater than 0
571571 comptime assert(tag_bits == 128 or tag_bits == 256); // tag must be 128 or 256 bits