pub struct V1;Trait Implementations§
Source§impl PieWrapVersion for V1
impl PieWrapVersion for V1
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 V1
impl PkeSealingVersion for V1
Source§impl PkeUnsealingVersion for V1
impl PkeUnsealingVersion for V1
Source§fn unseal_key(
unsealing_key: &PkeSecretKey,
key_data: Box<[u8]>,
) -> Result<LocalKey, PasetoError>
fn unseal_key( unsealing_key: &PkeSecretKey, key_data: Box<[u8]>, ) -> Result<LocalKey, PasetoError>
Unseal the key using the secret key
Source§impl PwWrapVersion for V1
impl PwWrapVersion for V1
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 V1
Available on crate feature encrypting only.
impl SealingVersion<Local> for V1
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 V1
Available on crate feature signing only.
impl SealingVersion<Public> for V1
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 V1
Available on crate feature decrypting only.
impl UnsealingVersion<Local> for V1
Available on crate feature
decrypting only.Source§impl UnsealingVersion<Public> for V1
impl UnsealingVersion<Public> for V1
Auto Trait Implementations§
impl Freeze for V1
impl RefUnwindSafe for V1
impl Send for V1
impl Sync for V1
impl Unpin for V1
impl UnwindSafe for V1
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