| ... | @@ -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 |
| 23 | | 23 | |
| 24 | const std = @import("std"); | 24 | const std = @import("std"); |
| 25 | const crypto = std.crypto; | 25 | const 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 |
| 274 | fn Aegis128XGeneric(comptime degree: u7, comptime tag_bits: u9) type { | 274 | fn Aegis128XGeneric(comptime degree: u7, comptime tag_bits: u9) type { |
| 275 | comptime assert(degree > 0); // degree must be greater than 0 | 275 | 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 bits | 276 | 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 |
| 569 | fn Aegis256XGeneric(comptime degree: u7, comptime tag_bits: u9) type { | 569 | fn Aegis256XGeneric(comptime degree: u7, comptime tag_bits: u9) type { |
| 570 | comptime assert(degree > 0); // degree must be greater than 0 | 570 | 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 bits | 571 | comptime assert(tag_bits == 128 or tag_bits == 256); // tag must be 128 or 256 bits |