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 @@...@@ -19,7 +19,7 @@
19//!19//!
20//! Finally, leaking the state does not leak the key.20//! Finally, leaking the state does not leak the key.
21//!21//!
22//! https://datatracker.ietf.org/doc/draft-irtf-cfrg-aegis-aead/22//! https://www.rfc-editor.org/rfc/rfc10032.html
2323
24const std = @import("std");24const std = @import("std");
25const crypto = std.crypto;25const crypto = std.crypto;
...@@ -270,7 +270,7 @@ fn State128X(comptime degree: u7) type {...@@ -270,7 +270,7 @@ fn State128X(comptime degree: u7) type {
270///270///
271/// The 128 bits variants of AEGIS have a 128 bit key and a 128 bit nonce.271/// The 128 bits variants of AEGIS have a 128 bit key and a 128 bit nonce.
272///272///
273/// https://datatracker.ietf.org/doc/draft-irtf-cfrg-aegis-aead/273/// https://www.rfc-editor.org/rfc/rfc10032.html
274fn Aegis128XGeneric(comptime degree: u7, comptime tag_bits: u9) type {274fn Aegis128XGeneric(comptime degree: u7, comptime tag_bits: u9) type {
275 comptime assert(degree > 0); // degree must be greater than 0275 comptime assert(degree > 0); // degree must be greater than 0
276 comptime assert(tag_bits == 128 or tag_bits == 256); // tag must be 128 or 256 bits276 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 {...@@ -565,7 +565,7 @@ fn State256X(comptime degree: u7) type {
565///565///
566/// The 256 bits variants of AEGIS have a 256 bit key and a 256 bit nonce.566/// The 256 bits variants of AEGIS have a 256 bit key and a 256 bit nonce.
567///567///
568/// https://datatracker.ietf.org/doc/draft-irtf-cfrg-aegis-aead/568/// https://www.rfc-editor.org/rfc/rfc10032.html
569fn Aegis256XGeneric(comptime degree: u7, comptime tag_bits: u9) type {569fn Aegis256XGeneric(comptime degree: u7, comptime tag_bits: u9) type {
570 comptime assert(degree > 0); // degree must be greater than 0570 comptime assert(degree > 0); // degree must be greater than 0
571 comptime assert(tag_bits == 128 or tag_bits == 256); // tag must be 128 or 256 bits571 comptime assert(tag_bits == 128 or tag_bits == 256); // tag must be 128 or 256 bits