|
|
|
@ -43,6 +43,12 @@ impl AesBody
|
|
|
|
|
{
|
|
|
|
|
Self { key, garbage: new_padding() }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// Create a new body with a random key
|
|
|
|
|
pub fn new_random() -> Self
|
|
|
|
|
{
|
|
|
|
|
Self::new_key(AesKey::generate().expect("Not enough entropy"))
|
|
|
|
|
}
|
|
|
|
|
/// Create an empty, keyless body
|
|
|
|
|
///
|
|
|
|
|
/// # Important
|
|
|
|
|