Struct recrypt::api::Plaintext [−]
pub struct Plaintext { /* fields omitted */ }
Not hashed, not encrypted Fp12Elem See DecryptedSymmetricKey and EncryptedMessage
Methods
impl Plaintext
impl Plaintext
pub fn new(bytes: [u8; 384]) -> Plaintext
pub fn new(bytes: [u8; 384]) -> Plaintext
Construct a Plaintext from raw bytes
pub fn new_from_slice(bytes: &[u8]) -> Result<Plaintext, ApiErr>
pub fn new_from_slice(bytes: &[u8]) -> Result<Plaintext, ApiErr>
construct $t from byte slice. Input slice must be exactly the correct length for the type.
Returns
Ok($t) or Err($ApiError::InputWrongSize]
pub fn bytes(&self) -> &[u8; 384]
pub fn bytes(&self) -> &[u8; 384]
Trait Implementations
impl Debug for Plaintext
impl Debug for Plaintext
fn fmt(&self, formatter: &mut Formatter) -> Result
fn fmt(&self, formatter: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for Plaintext
impl PartialEq for Plaintext
fn eq(&self, other: &Plaintext) -> bool
fn eq(&self, other: &Plaintext) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]This method tests for !=
.
impl Default for Plaintext
impl Default for Plaintext
impl Drop for Plaintext
impl Drop for Plaintext