View Source Cryppo.EncryptedData (CryppoEx v0.2.3)
A struct for encrypted data and encryption artefacts
An Cryppo.EncryptedData
struct may be marked as belonging to a certain encryption strategy
using field encryption_strategy_module
containing the module of the encryption strategy.
Can also contain encryption artefacts if they are part of the encryption strategy.
Summary
Types
Struct Cryppo.EncryptedData
Functions
Initialize a struct with the module of an encryption strategy, a binary with encrypted data, and encryption_artefacts.
Types
@type t() :: %Cryppo.EncryptedData{ encrypted_data: binary(), encryption_artefacts: Cryppo.EncryptionArtefacts.t(), encryption_strategy_module: Cryppo.encryption_strategy_module() | nil }
Struct Cryppo.EncryptedData
A Cryppo.EncryptedData
struct contains
encrypted_data
: encrypted dataencryption_strategy_module
: module of the encryption strategy to which the key belongsencryption_artefacts
: a map with encryption artefacts
Functions
@spec new( Cryppo.encryption_strategy_module(), binary(), Cryppo.EncryptionArtefacts.t() ) :: t()
Initialize a struct with the module of an encryption strategy, a binary with encrypted data, and encryption_artefacts.