fn check_sizes_and_alignment(data: &[u8], key: &[u8]) {
    if data.len() % 4 != 0 {
        panic!("Data not multiple of 32 bits");
    }
    if data.as_ptr().align_offset(4) != 0 {
        panic!("Data not aligned to 4 byte boundary");
    }
    if key.len() != 16 {
        panic!("Key size not 128 bits! Expected len 16, got {}", key.len());
    }
    if key.as_ptr().align_offset(4) != 0 {
        panic!("Key not aligned to 4 byte boundary");
    }
}
/// Panics if `data` or `key` do not meet the size or alignment restrictions for this algorithm.
/// If this function returns successfully, then key is guaranteed to be 16 bytes long and aligned to
/// a multiple of 4 bytes, and data is guaranteed to be a multiple 4 bytes and also aligned to a 4
/// byte boundary.
Panics if `data` or `key` do not meet the size or alignment restrictions for this algorithm.
If this function returns successfully, then key is guaranteed to be 16 bytes long and aligned to
a multiple of 4 bytes, and data is guaranteed to be a multiple 4 bytes and also aligned to a 4
byte boundary.
Panics if ` data ` or ` key ` do not meet the size or alignment restrictions for this algorithm . If this function returns successfully then key is guaranteed to be 16 bytes long and aligned to a multiple of 4 bytes and data is guaranteed to be a multiple 4 bytes and also aligned to a 4 byte boundary .
fn check_sizes_and_alignment(data: &[u8], key: &[u8]) {
    if data.len() % 4 != 0 {
        panic!("Data not multiple of 32 bits");
    }
    if data.as_ptr().align_offset(4) != 0 {
        panic!("Data not aligned to 4 byte boundary");
    }
    if key.len() != 16 {
        panic!("Key size not 128 bits! Expected len 16, got {}", key.len());
    }
    if key.as_ptr().align_offset(4) != 0 {
        panic!("Key not aligned to 4 byte boundary");
    }
}
fn check_sizes_and_alignment ( data : & [ u8 ] , key : & [ u8 ] ) { if data . len ( ) % 4 != 0 { panic ! ( " " ) ; } if data . as_ptr ( ) . align_offset ( 4 ) != 0 { panic ! ( " " ) ; } if key . len ( ) != 16 { panic ! ( " " key len ( ) ) ; } if key . as_ptr ( ) . align_offset ( 4 ) != 0 { panic ! ( " " ) ; } }
Panics if `data` or `key` do not meet the size or alignment restrictions for this algorithm.
Panics if ` data ` or ` key ` do not meet the size or alignment restrictions for this algorithm .
data
&[u8]
key
&[u8]
data
&[u8]
key
&[u8]