Struct openssl::rsa::Padding [−][src]
pub struct Padding(_);
Type of encryption padding to use.
Random length padding is primarily used to prevent attackers from predicting or knowing the exact length of a plaintext message that can possibly lead to breaking encryption.
Methods
impl Padding[src]
impl Paddingpub fn from_raw(value: c_int) -> Padding[src]
pub fn from_raw(value: c_int) -> PaddingCreates a Padding from an integer representation.
pub fn as_raw(&self) -> c_int[src]
pub fn as_raw(&self) -> c_intReturns the integer representation of Padding.
pub const NONE: Padding
NONE: Padding = Padding(ffi::RSA_NO_PADDING)
pub const PKCS1: Padding
PKCS1: Padding = Padding(ffi::RSA_PKCS1_PADDING)
pub const PKCS1_OAEP: Padding
PKCS1_OAEP: Padding = Padding(ffi::RSA_PKCS1_OAEP_PADDING)
pub const PKCS1_PSS: Padding
PKCS1_PSS: Padding = Padding(ffi::RSA_PKCS1_PSS_PADDING)
Trait Implementations
impl Debug for Padding[src]
impl Debug for Paddingfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Copy for Padding[src]
impl Copy for Paddingimpl Clone for Padding[src]
impl Clone for Paddingfn clone(&self) -> Padding[src]
fn clone(&self) -> PaddingReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl PartialEq for Padding[src]
impl PartialEq for Paddingfn eq(&self, other: &Padding) -> bool[src]
fn eq(&self, other: &Padding) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Padding) -> bool[src]
fn ne(&self, other: &Padding) -> boolThis method tests for !=.
impl Eq for Padding[src]
impl Eq for Padding