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 Padding
pub fn from_raw(value: c_int) -> Padding
[src]
pub fn from_raw(value: c_int) -> Padding
Creates a Padding
from an integer representation.
pub fn as_raw(&self) -> c_int
[src]
pub fn as_raw(&self) -> c_int
Returns 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 Padding
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Copy for Padding
[src]
impl Copy for Padding
impl Clone for Padding
[src]
impl Clone for Padding
fn clone(&self) -> Padding
[src]
fn clone(&self) -> Padding
Returns 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 Padding
fn eq(&self, other: &Padding) -> bool
[src]
fn eq(&self, other: &Padding) -> bool
This 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) -> bool
This method tests for !=
.
impl Eq for Padding
[src]
impl Eq for Padding