CryppoEx v0.1.4 Cryppo.EncryptedData View Source
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.
Link to this section Summary
Types
Struct Cryppo.EncryptedData
Functions
Initialize a struct with the module of an encryption strategy, a binary with encrypted data, and encryption_artefacts.
Link to this section Types
Specs
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
Link to this section Functions
Specs
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.