MOD: removed debug code
This commit is contained in:
parent
c9fd4542d7
commit
919d4bcc95
|
|
@ -103,8 +103,7 @@ fn aes_gcm_256_encrypt(
|
||||||
// alignment so the C code's SIMD operations work correctly on ARM64.
|
// alignment so the C code's SIMD operations work correctly on ARM64.
|
||||||
use std::alloc::{alloc_zeroed, dealloc, Layout};
|
use std::alloc::{alloc_zeroed, dealloc, Layout};
|
||||||
|
|
||||||
// sizeof(Aes) = 288 bytes; alignment = 16.
|
let layout = Layout::from_size_align(std::mem::size_of::<crate::sys::Aes>(), 16)
|
||||||
let layout = Layout::from_size_align(std::mem::size_of::<crate::sys::Aes>().max(288), 16)
|
|
||||||
.expect("layout must be valid");
|
.expect("layout must be valid");
|
||||||
|
|
||||||
let aes_ptr = alloc_zeroed(layout) as *mut crate::sys::Aes;
|
let aes_ptr = alloc_zeroed(layout) as *mut crate::sys::Aes;
|
||||||
|
|
@ -184,7 +183,7 @@ fn aes_gcm_256_decrypt(
|
||||||
// alignment so the C code's SIMD operations work correctly on ARM64.
|
// alignment so the C code's SIMD operations work correctly on ARM64.
|
||||||
use std::alloc::{alloc_zeroed, dealloc, Layout};
|
use std::alloc::{alloc_zeroed, dealloc, Layout};
|
||||||
|
|
||||||
let layout = Layout::from_size_align(std::mem::size_of::<crate::sys::Aes>().max(288), 16)
|
let layout = Layout::from_size_align(std::mem::size_of::<crate::sys::Aes>(), 16)
|
||||||
.expect("layout must be valid");
|
.expect("layout must be valid");
|
||||||
|
|
||||||
let aes_ptr = alloc_zeroed(layout) as *mut crate::sys::Aes;
|
let aes_ptr = alloc_zeroed(layout) as *mut crate::sys::Aes;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue