Trait IntoSecretBox

Source
pub trait IntoSecretBox {
    // Required method
    fn into_secret_box(self) -> SecretBox<[u8]>;
}
Expand description

Helper trait to convert various secret types into SecretBox<[u8]>. This allows functions to accept both SecretBox<[u8]> and non-boxed types like &[u8] or Vec<u8>.

Required Methods§

Implementations on Foreign Types§

Source§

impl IntoSecretBox for &SecretBox<[u8]>

Source§

impl IntoSecretBox for &Vec<u8>

Source§

impl IntoSecretBox for &[u8]

Source§

impl IntoSecretBox for SecretBox<[u8]>

Source§

impl IntoSecretBox for Vec<u8>

Source§

impl<const N: usize> IntoSecretBox for &[u8; N]

Implementors§