fix stray pointer problem that only showed in ReleaseSafe
This commit is contained in:
parent
2a0719853e
commit
6693db101d
|
@ -53,6 +53,7 @@ pub fn encryptWithKey(allocator: std.mem.Allocator, key: [key_size]u8, data: []u
|
||||||
|
|
||||||
// deal with final block, PKCS#7 padding
|
// deal with final block, PKCS#7 padding
|
||||||
{
|
{
|
||||||
|
in = @ptrCast(*[block_size]u8, data[(total_blocks * block_size)..]);
|
||||||
const padding: u8 = @intCast(u8, block_size - (data.len % block_size));
|
const padding: u8 = @intCast(u8, block_size - (data.len % block_size));
|
||||||
var inx: u8 = 0;
|
var inx: u8 = 0;
|
||||||
for (data[(total_blocks * block_size)..]) |b| {
|
for (data[(total_blocks * block_size)..]) |b| {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user