[−][src]Trait pqcrypto::prelude::_
The ciphertext to be sent to the other party to decapsulate.
Required methods
fn as_bytes(&self) -> &[u8]
fn from_bytes(bytes: &[u8]) -> Result<Self, Error> where
Self: Clone + Copy,
Self: Clone + Copy,
Implementors
impl Ciphertext for pqcrypto::kem::babybear::Ciphertext
[src]
fn as_bytes(&self) -> &[u8]
[src]
Get this object as a byte slice
fn from_bytes(bytes: &[u8]) -> Result<Ciphertext, Error>
[src]
Construct this object from a byte slice
impl Ciphertext for pqcrypto::kem::firesaber::Ciphertext
[src]
fn as_bytes(&self) -> &[u8]
[src]
Get this object as a byte slice
fn from_bytes(bytes: &[u8]) -> Result<Ciphertext, Error>
[src]
Construct this object from a byte slice
impl Ciphertext for pqcrypto::kem::frodokem1344aes::Ciphertext
[src]
fn as_bytes(&self) -> &[u8]
[src]
Get this object as a byte slice
fn from_bytes(bytes: &[u8]) -> Result<Ciphertext, Error>
[src]
Construct this object from a byte slice
impl Ciphertext for pqcrypto::kem::frodokem1344shake::Ciphertext
[src]
fn as_bytes(&self) -> &[u8]
[src]
Get this object as a byte slice
fn from_bytes(bytes: &[u8]) -> Result<Ciphertext, Error>
[src]
Construct this object from a byte slice
impl Ciphertext for pqcrypto::kem::frodokem640aes::Ciphertext
[src]
fn as_bytes(&self) -> &[u8]
[src]
Get this object as a byte slice
fn from_bytes(bytes: &[u8]) -> Result<Ciphertext, Error>
[src]
Construct this object from a byte slice
impl Ciphertext for pqcrypto::kem::frodokem640shake::Ciphertext
[src]
fn as_bytes(&self) -> &[u8]
[src]
Get this object as a byte slice
fn from_bytes(bytes: &[u8]) -> Result<Ciphertext, Error>
[src]
Construct this object from a byte slice
impl Ciphertext for pqcrypto::kem::frodokem976aes::Ciphertext
[src]
fn as_bytes(&self) -> &[u8]
[src]
Get this object as a byte slice
fn from_bytes(bytes: &[u8]) -> Result<Ciphertext, Error>
[src]
Construct this object from a byte slice
impl Ciphertext for pqcrypto::kem::frodokem976shake::Ciphertext
[src]
fn as_bytes(&self) -> &[u8]
[src]
Get this object as a byte slice
fn from_bytes(bytes: &[u8]) -> Result<Ciphertext, Error>
[src]
Construct this object from a byte slice
impl Ciphertext for pqcrypto::kem::kyber1024::Ciphertext
[src]
fn as_bytes(&self) -> &[u8]
[src]
Get this object as a byte slice
fn from_bytes(bytes: &[u8]) -> Result<Ciphertext, Error>
[src]
Construct this object from a byte slice
impl Ciphertext for pqcrypto::kem::kyber102490s::Ciphertext
[src]
fn as_bytes(&self) -> &[u8]
[src]
Get this object as a byte slice
fn from_bytes(bytes: &[u8]) -> Result<Ciphertext, Error>
[src]
Construct this object from a byte slice
impl Ciphertext for pqcrypto::kem::kyber512::Ciphertext
[src]
fn as_bytes(&self) -> &[u8]
[src]
Get this object as a byte slice
fn from_bytes(bytes: &[u8]) -> Result<Ciphertext, Error>
[src]
Construct this object from a byte slice
impl Ciphertext for pqcrypto::kem::kyber51290s::Ciphertext
[src]
fn as_bytes(&self) -> &[u8]
[src]
Get this object as a byte slice
fn from_bytes(bytes: &[u8]) -> Result<Ciphertext, Error>
[src]
Construct this object from a byte slice
impl Ciphertext for pqcrypto::kem::kyber768::Ciphertext
[src]
fn as_bytes(&self) -> &[u8]
[src]
Get this object as a byte slice
fn from_bytes(bytes: &[u8]) -> Result<Ciphertext, Error>
[src]
Construct this object from a byte slice
impl Ciphertext for pqcrypto::kem::kyber76890s::Ciphertext
[src]
fn as_bytes(&self) -> &[u8]
[src]
Get this object as a byte slice
fn from_bytes(bytes: &[u8]) -> Result<Ciphertext, Error>
[src]
Construct this object from a byte slice
impl Ciphertext for pqcrypto::kem::ledakemlt12::Ciphertext
[src]
fn as_bytes(&self) -> &[u8]
[src]
Get this object as a byte slice
fn from_bytes(bytes: &[u8]) -> Result<Ciphertext, Error>
[src]
Construct this object from a byte slice
impl Ciphertext for pqcrypto::kem::ledakemlt32::Ciphertext
[src]
fn as_bytes(&self) -> &[u8]
[src]
Get this object as a byte slice
fn from_bytes(bytes: &[u8]) -> Result<Ciphertext, Error>
[src]
Construct this object from a byte slice
impl Ciphertext for pqcrypto::kem::ledakemlt52::Ciphertext
[src]
fn as_bytes(&self) -> &[u8]
[src]
Get this object as a byte slice
fn from_bytes(bytes: &[u8]) -> Result<Ciphertext, Error>
[src]
Construct this object from a byte slice
impl Ciphertext for pqcrypto::kem::lightsaber::Ciphertext
[src]
fn as_bytes(&self) -> &[u8]
[src]
Get this object as a byte slice
fn from_bytes(bytes: &[u8]) -> Result<Ciphertext, Error>
[src]
Construct this object from a byte slice
impl Ciphertext for pqcrypto::kem::mamabear::Ciphertext
[src]
fn as_bytes(&self) -> &[u8]
[src]
Get this object as a byte slice
fn from_bytes(bytes: &[u8]) -> Result<Ciphertext, Error>
[src]
Construct this object from a byte slice
impl Ciphertext for pqcrypto::kem::newhope1024cca::Ciphertext
[src]
fn as_bytes(&self) -> &[u8]
[src]
Get this object as a byte slice
fn from_bytes(bytes: &[u8]) -> Result<Ciphertext, Error>
[src]
Construct this object from a byte slice
impl Ciphertext for pqcrypto::kem::newhope1024cpa::Ciphertext
[src]
fn as_bytes(&self) -> &[u8]
[src]
Get this object as a byte slice
fn from_bytes(bytes: &[u8]) -> Result<Ciphertext, Error>
[src]
Construct this object from a byte slice
impl Ciphertext for pqcrypto::kem::newhope512cca::Ciphertext
[src]
fn as_bytes(&self) -> &[u8]
[src]
Get this object as a byte slice
fn from_bytes(bytes: &[u8]) -> Result<Ciphertext, Error>
[src]
Construct this object from a byte slice
impl Ciphertext for pqcrypto::kem::newhope512cpa::Ciphertext
[src]
fn as_bytes(&self) -> &[u8]
[src]
Get this object as a byte slice
fn from_bytes(bytes: &[u8]) -> Result<Ciphertext, Error>
[src]
Construct this object from a byte slice
impl Ciphertext for pqcrypto::kem::ntruhps2048509::Ciphertext
[src]
fn as_bytes(&self) -> &[u8]
[src]
Get this object as a byte slice
fn from_bytes(bytes: &[u8]) -> Result<Ciphertext, Error>
[src]
Construct this object from a byte slice
impl Ciphertext for pqcrypto::kem::ntruhps2048677::Ciphertext
[src]
fn as_bytes(&self) -> &[u8]
[src]
Get this object as a byte slice
fn from_bytes(bytes: &[u8]) -> Result<Ciphertext, Error>
[src]
Construct this object from a byte slice
impl Ciphertext for pqcrypto::kem::ntruhps4096821::Ciphertext
[src]
fn as_bytes(&self) -> &[u8]
[src]
Get this object as a byte slice
fn from_bytes(bytes: &[u8]) -> Result<Ciphertext, Error>
[src]
Construct this object from a byte slice
impl Ciphertext for pqcrypto::kem::ntruhrss701::Ciphertext
[src]
fn as_bytes(&self) -> &[u8]
[src]
Get this object as a byte slice
fn from_bytes(bytes: &[u8]) -> Result<Ciphertext, Error>
[src]
Construct this object from a byte slice
impl Ciphertext for pqcrypto::kem::papabear::Ciphertext
[src]
fn as_bytes(&self) -> &[u8]
[src]
Get this object as a byte slice
fn from_bytes(bytes: &[u8]) -> Result<Ciphertext, Error>
[src]
Construct this object from a byte slice