Anoma.Crypto.Symmetric (Anoma v0.34.0)
Summary
Types
I represent the symmetric types available to the system
Functions
I encrypt data given any known schema and a message.
I encrypt data given any known schema and a message.
Types
@type t() :: xchacha()
I represent the symmetric types available to the system
@type xchacha() :: {:xchacha, xchacha_key(), xchacha_nonce()}
@type xchacha_key() :: <<_::256>>
@type xchacha_nonce() :: <<_::192>>
Functions
I encrypt data given any known schema and a message.
The message will be turned into binary via :erlang.term_to_binary, so please do not turn it to binary before hand.
I encrypt data given any known schema and a message.
I am raw in that I do not serialize the data, Only use me if you know what you are doing.
@spec random_xchacha() :: xchacha()
@spec random_xchacha_key() :: xchacha_key()
@spec random_xchacha_nonce() :: xchacha_nonce()