pub fn bytes_to_mac(bytes: &[u8], buffer: &mut [u8]) -> usize
Workaround for the lack of heap support.