authorgravatar for 124872+jedisct1@users.noreply.github.comFrank Denis <124872+jedisct1@users.noreply.github.com> 2026-09-30 17:16:56+02:00
committergravatar for 124872+jedisct1@users.noreply.github.comFrank Denis <124872+jedisct1@users.noreply.github.com> 2026-10-04 14:03:54+02:00
loge67cb2c7c9b9802bccb44be2ead04aebf771030d
tree746a57cc3d91941c5deb51a30201f1eebd95efc8
parent8b0f9360cfa60e4711d909e599643ab948c403f8

Export the state alignment


1 files changed, 2 insertions(+), 0 deletions(-)

lib/std/crypto/aegis/bitsliced.zig+2
...@@ -183,6 +183,7 @@ pub fn State128X(comptime degree: u7) type {...@@ -183,6 +183,7 @@ pub fn State128X(comptime degree: u7) type {
183183
184 const aes_block_length = V.block_length;184 const aes_block_length = V.block_length;
185 pub const rate = aes_block_length * 2;185 pub const rate = aes_block_length * 2;
186 pub const alignment = @alignOf(Word);
186187
187 const context_mask = V.contextMask(.{ 3, 7 });188 const context_mask = V.contextMask(.{ 3, 7 });
188189
...@@ -324,6 +325,7 @@ pub fn State256X(comptime degree: u7) type {...@@ -324,6 +325,7 @@ pub fn State256X(comptime degree: u7) type {
324 words: Aes.Bitsliced,325 words: Aes.Bitsliced,
325326
326 pub const rate = V.block_length;327 pub const rate = V.block_length;
328 pub const alignment = @alignOf(Word);
327329
328 const context_mask = V.contextMask(.{ 3, 5 });330 const context_mask = V.contextMask(.{ 3, 5 });
329331