jose_jwk_kty_rsa (JOSE v1.11.12)

View Source

Summary

Types

key/0

-type key() ::
          #'RSAPrivateKey'{version :: term(),
                           modulus :: term(),
                           publicExponent :: term(),
                           privateExponent :: term(),
                           prime1 :: term(),
                           prime2 :: term(),
                           exponent1 :: term(),
                           exponent2 :: term(),
                           coefficient :: term(),
                           otherPrimeInfos :: term()} |
          #'RSAPublicKey'{modulus :: term(), publicExponent :: term()}.

Functions

block_encryptor(KTY, Fields)

decrypt_private(CipherText, Options, RSAPrivateKey)

encrypt_public(PlainText, Options, RSAPublicKey)

from_der(DERBinary)

from_der(Password, PEMBinary)

from_key(RSAPrivateKey)

from_map(F)

from_pem(PEMBinary)

from_pem(Password, PEMBinary)

generate_key(_)

generate_key(KTY, Fields)

key_encryptor(KTY, Fields, Key)

sign(Message, JWSALG, RSAPrivateKey)

signer(_, Fields)

to_der(RSAPrivateKey)

to_der(Password, RSAPrivateKey)

to_key(RSAPrivateKey)

to_map(RSAPrivateKey, F)

to_pem(RSAPrivateKey)

to_pem(Password, RSAPrivateKey)

to_public_map(K, F)

to_thumbprint_map(K, F)

verifier(KTY, Fields)

verify(Message, JWSALG, Signature, RSAPublicKey)