pub trait LongEncryptable {
type EncryptedType: LongEncrypted;
type Block: ElGamalEncryptable;
// Required methods
fn blocks(&self) -> &[Self::Block];
fn from_encrypted_blocks(
blocks: Vec<<Self::Block as Encryptable>::EncryptedType>,
) -> Self::EncryptedType;
}Expand description
A marker trait for encryptable types that use multi-block (long) encryption.
Required Associated Types§
Sourcetype EncryptedType: LongEncrypted
type EncryptedType: LongEncrypted
The encrypted type
Sourcetype Block: ElGamalEncryptable
type Block: ElGamalEncryptable
The single-block type that makes up this long type
Required Methods§
Sourcefn from_encrypted_blocks(
blocks: Vec<<Self::Block as Encryptable>::EncryptedType>,
) -> Self::EncryptedType
fn from_encrypted_blocks( blocks: Vec<<Self::Block as Encryptable>::EncryptedType>, ) -> Self::EncryptedType
Create the encrypted long type from encrypted blocks
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".