Piazza.Crypto.RSA (piazza_core v0.3.6) View Source

Link to this section Summary

Link to this section Types

Link to this section Functions

Specs

decrypt(binary(), ExPublicKey.RSAPublicKey.t()) :: {:ok, binary()} | :error

Specs

encrypt(binary(), ExPublicKey.RSAPrivateKey.t()) :: {:ok, binary()} | :error

Specs

generate_keypair() :: {:ok, keypair()} | {:error, term()}

Specs

pem_encode(keypair()) :: {:ok, {binary(), binary()}} | {:error, term()}