Anoma.Crypto.Symmetric (Anoma v0.29.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
Link to this type
xchacha()
@type xchacha() :: {:xchacha, xchacha_key(), xchacha_nonce()}
Link to this type
xchacha_key()
@type xchacha_key() :: <<_::256>>
Link to this type
xchacha_nonce()
@type xchacha_nonce() :: <<_::192>>
Functions
Link to this function
decrypt(binary, sym)
Link to this function
decrypt_raw(binary, arg)
Link to this function
encrypt(message, sym)
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.
Link to this function
encrypt_raw(binary, arg)
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.
Link to this function
random_xchacha()
@spec random_xchacha() :: xchacha()
Link to this function
random_xchacha_key()
@spec random_xchacha_key() :: xchacha_key()
Link to this function
random_xchacha_nonce()
@spec random_xchacha_nonce() :: xchacha_nonce()