pub struct V3;Trait Implementations§
Source§impl PieWrapVersion for V3
impl PieWrapVersion for V3
Source§fn pie_wrap_key(
header: &'static str,
wrapping_key: &LocalKey,
key_data: Vec<u8>,
) -> Result<Vec<u8>, PasetoError>
fn pie_wrap_key( header: &'static str, wrapping_key: &LocalKey, key_data: Vec<u8>, ) -> Result<Vec<u8>, PasetoError>
Wrap the key
Source§fn pie_unwrap_key<'key>(
header: &'static str,
wrapping_key: &LocalKey,
key_data: &'key mut [u8],
) -> Result<&'key [u8], PasetoError>
fn pie_unwrap_key<'key>( header: &'static str, wrapping_key: &LocalKey, key_data: &'key mut [u8], ) -> Result<&'key [u8], PasetoError>
Unwrap the key
Source§impl PkeSealingVersion for V3
impl PkeSealingVersion for V3
Source§impl PkeUnsealingVersion for V3
impl PkeUnsealingVersion for V3
Source§fn unseal_key(
unsealing_key: &SecretKey,
key_data: Box<[u8]>,
) -> Result<LocalKey, PasetoError>
fn unseal_key( unsealing_key: &SecretKey, key_data: Box<[u8]>, ) -> Result<LocalKey, PasetoError>
Unseal the key using the secret key
Source§impl PwWrapVersion for V3
impl PwWrapVersion for V3
type Params = Params
Source§fn pw_wrap_key(
header: &'static str,
pass: &[u8],
params: &Params,
key_data: Vec<u8>,
) -> Result<Vec<u8>, PasetoError>
fn pw_wrap_key( header: &'static str, pass: &[u8], params: &Params, key_data: Vec<u8>, ) -> Result<Vec<u8>, PasetoError>
Wrap the key using a password
Source§fn get_params(key_data: &[u8]) -> Result<Self::Params, PasetoError>
fn get_params(key_data: &[u8]) -> Result<Self::Params, PasetoError>
Extract the params from the
Source§fn pw_unwrap_key<'key>(
header: &'static str,
pass: &[u8],
key_data: &'key mut [u8],
) -> Result<&'key [u8], PasetoError>
fn pw_unwrap_key<'key>( header: &'static str, pass: &[u8], key_data: &'key mut [u8], ) -> Result<&'key [u8], PasetoError>
Unwrap the key using a password
Source§impl SealingVersion<Local> for V3
Available on crate feature encrypting only.
impl SealingVersion<Local> for V3
Available on crate feature
encrypting only.Source§fn unsealing_key(key: &LocalKey) -> LocalKey
fn unsealing_key(key: &LocalKey) -> LocalKey
Generate the key that can unseal the tokens this key will seal.
Source§fn dangerous_seal_with_nonce(
key: &LocalKey,
encoding: &'static str,
payload: Vec<u8>,
footer: &[u8],
aad: &[u8],
) -> Result<Vec<u8>, PasetoError>
fn dangerous_seal_with_nonce( key: &LocalKey, encoding: &'static str, payload: Vec<u8>, footer: &[u8], aad: &[u8], ) -> Result<Vec<u8>, PasetoError>
Do not call this method directly. Use
UnsealedToken::seal instead.Source§impl SealingVersion<Public> for V3
Available on crate feature signing only.
impl SealingVersion<Public> for V3
Available on crate feature
signing only.Source§fn unsealing_key(key: &SecretKey) -> PublicKey
fn unsealing_key(key: &SecretKey) -> PublicKey
Generate the key that can unseal the tokens this key will seal.
Source§fn dangerous_seal_with_nonce(
key: &SecretKey,
encoding: &'static str,
payload: Vec<u8>,
footer: &[u8],
aad: &[u8],
) -> Result<Vec<u8>, PasetoError>
fn dangerous_seal_with_nonce( key: &SecretKey, encoding: &'static str, payload: Vec<u8>, footer: &[u8], aad: &[u8], ) -> Result<Vec<u8>, PasetoError>
Do not call this method directly. Use
UnsealedToken::seal instead.Source§impl UnsealingVersion<Local> for V3
Available on crate feature decrypting only.
impl UnsealingVersion<Local> for V3
Available on crate feature
decrypting only.Source§impl UnsealingVersion<Public> for V3
impl UnsealingVersion<Public> for V3
Auto Trait Implementations§
impl Freeze for V3
impl RefUnwindSafe for V3
impl Send for V3
impl Sync for V3
impl Unpin for V3
impl UnwindSafe for V3
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more