| ... | @@ -174,7 +174,7 @@ pub const Aegis128L = struct { | ... | @@ -174,7 +174,7 @@ pub const Aegis128L = struct { |
| 174 | acc |= (computed_tag[j] ^ tag[j]); | 174 | acc |= (computed_tag[j] ^ tag[j]); |
| 175 | } | 175 | } |
| 176 | if (acc != 0) { | 176 | if (acc != 0) { |
| 177 | mem.set(u8, m, 0xaa); | 177 | @memset(m.ptr, undefined, m.len); |
| 178 | return error.AuthenticationFailed; | 178 | return error.AuthenticationFailed; |
| 179 | } | 179 | } |
| 180 | } | 180 | } |
| ... | @@ -343,7 +343,7 @@ pub const Aegis256 = struct { | ... | @@ -343,7 +343,7 @@ pub const Aegis256 = struct { |
| 343 | acc |= (computed_tag[j] ^ tag[j]); | 343 | acc |= (computed_tag[j] ^ tag[j]); |
| 344 | } | 344 | } |
| 345 | if (acc != 0) { | 345 | if (acc != 0) { |
| 346 | mem.set(u8, m, 0xaa); | 346 | @memset(m.ptr, undefined, m.len); |
| 347 | return error.AuthenticationFailed; | 347 | return error.AuthenticationFailed; |
| 348 | } | 348 | } |
| 349 | } | 349 | } |