Namespace: eme

crypto/pkcs1~eme

Methods

(static) decode(EM) → {String}

Decode a EME-PKCS1-v1_5 padded message

Parameters:
Name Type Description
EM String

encoded message, an octet string

Source:
See:
Returns:

message, an octet string

Type
String

(async, static) encode(M, k) → {Promise.<String>}

Create a EME-PKCS1-v1_5 padded message

Parameters:
Name Type Description
M String

message to be encoded

k Integer

the length in octets of the key modulus

Source:
See:
Returns:

EME-PKCS1 padded message

Type
Promise.<String>