Skip to content

Module rsa_pss.erl

Distributed under the Mozilla Public License v2.0.

Copyright (c) 2014-2015, Andrew Bennett

Authors: Andrew Bennett (andrew@pixid.com).

Description

Original available at: https://github.com/potatosalad/erlang-crypto_rsassa_pss

Data Types

rsa_digest_type()


rsa_digest_type() = md5 | sha | sha224 | sha256 | sha384 | sha512

rsa_private_key()


rsa_private_key() = #RSAPrivateKey{}

rsa_public_key()


rsa_public_key() = #RSAPublicKey{}

Function Index

dp/2*
ep/2*
int_to_bit_size/1*
int_to_bit_size/2*
int_to_byte_size/1*
int_to_byte_size/2*
mgf1/3*
mgf1/5*
normalize_to_key_size/2*
pad_to_key_size/2*
sign/3
sign/4
verify/4
verify_legacy/4

Function Details

dp/2 *

dp(B, X2) -> any()

ep/2 *

ep(B, X2) -> any()

int_to_bit_size/1 *

int_to_bit_size(I) -> any()

int_to_bit_size/2 *

int_to_bit_size(I, B) -> any()

int_to_byte_size/1 *

int_to_byte_size(I) -> any()

int_to_byte_size/2 *

int_to_byte_size(I, B) -> any()

mgf1/3 *

mgf1(DigestType, Seed, Len) -> any()

mgf1/5 *

mgf1(DigestType, Seed, Len, T, Counter) -> any()

normalize_to_key_size/2 *

normalize_to_key_size(Bits, A) -> any()

pad_to_key_size/2 *

pad_to_key_size(Bytes, Data) -> any()

sign/3


sign(Message, DigestType, PrivateKey) -> Signature

sign/4


sign(Message, DigestType, Salt, PrivateKey) -> Signature

verify/4


verify(Message, DigestType, Signature, PublicKey) -> boolean()

verify_legacy/4

verify_legacy(Message, DigestType, Signature, PublicKey) -> any()