Skip to main content

LongEncryptable

Trait LongEncryptable 

Source
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§

Source

type EncryptedType: LongEncrypted

The encrypted type

Source

type Block: ElGamalEncryptable

The single-block type that makes up this long type

Required Methods§

Source

fn blocks(&self) -> &[Self::Block]

Get the blocks that make up this long type

Source

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".

Implementors§