piazza_core v0.3.0 Piazza.Crypto.RSA

Link to this section Summary

Link to this section Types

Link to this section Functions

Link to this function

decrypt(str, pub)

decrypt(binary(), ExPublicKey.RSAPublicKey.t()) :: {:ok, binary()} | :error
Link to this function

encrypt(str, priv)

encrypt(binary(), ExPublicKey.RSAPrivateKey.t()) :: {:ok, binary()} | :error
Link to this function

generate_keypair()

generate_keypair() :: {:ok, keypair()} | {:error, term()}
Link to this function

pem_encode(arg)

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