Macfly.Crypto (macfly v0.2.11)

Summary

Types

Link to this type

ciphertext()

@type ciphertext() :: <<_::224, _::_*8>>
@type key() :: <<_::256>>

Functions

@spec rand(integer()) :: binary()
Link to this function

seal(plaintext, key)

@spec seal(binary(), key()) :: binary()
@spec sign(binary(), binary()) :: binary()
Link to this function

unseal(ciphertext, key)

@spec unseal(ciphertext(), key()) :: {:ok, binary()} | {:error, any()}