#[non_exhaustive]pub enum Padding {
None,
Buckets {
floor: usize,
step: usize,
},
}Available on crate feature
cose only.Expand description
How many zero bytes a sender appends to the signed envelope inside the encryption, so the ciphertext’s length shows little about the message.
Receivers strip any number of zeros, so the policy is the sender’s alone and can change without them.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
None
No padding: the plaintext is the signed envelope alone.
Buckets
Zeros after the signed envelope, up to the smallest size that fits.
Sizes start at floor, and each next one is the previous one plus
1/step of it, rounded up.
Trait Implementations§
impl Eq for Padding
impl StructuralPartialEq for Padding
Auto Trait Implementations§
impl Freeze for Padding
impl RefUnwindSafe for Padding
impl Send for Padding
impl Sync for Padding
impl Unpin for Padding
impl UnsafeUnpin for Padding
impl UnwindSafe for Padding
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