Creates a new instance of RSAESOAEPParams
Configuration options for RSA OAEP parameters
Optional
hashAlgorithm?: AlgorithmIdentifierHash algorithm to use (defaults to SHA-1)
Optional
maskGenAlgorithm?: AlgorithmIdentifierMask generation algorithm to use (defaults to MGF1 with SHA-1)
Optional
pSourceAlgorithm?: AlgorithmIdentifierSource algorithm for encoding parameters (defaults to pSpecified with empty string)
Gets the PEM header name for this object type. Converts the class name to uppercase for use in PEM encoding.
Gets the PKI type name for this object (typically the class name). Used for PEM headers and debugging output.
Compares this PKI object with another for equality. Two objects are considered equal if their DER encodings are identical.
The other PKI object to compare with
true if the objects are equal, false otherwise
Get effective hash algorithm (either specified or default)
Get effective mask generation algorithm (either specified or default)
Get effective P source algorithm (either specified or default)
Parses this object as a different PKI type. Useful for converting between related PKI structures.
The target type to parse as
The target type constructor with parsing capabilities
A new instance of the target type
Converts to ASN.1 structure
Converts this PKI object to DER (Distinguished Encoding Rules) format.
The DER-encoded bytes of this object
Returns a human-readable string representation of this object. By default, returns the same as toString(), but subclasses can override for more user-friendly output.
A human-readable string representation
Converts this PKI object to PEM (Privacy-Enhanced Mail) format.
A PEM-encoded string with appropriate headers
Returns a string representation of this PKI object. Includes the type name and ASN.1 structure.
A string representation for debugging
Static
createCreates a default instance with all parameters set to their defaults
Static
defaultDefault values as specified in RFC 3447
Static
defaultStatic
defaultStatic
from
RSAES-OAEP-params ::= SEQUENCE { hashAlgorithm [0] HashAlgorithm DEFAULT sha1, maskGenAlgorithm [1] MaskGenAlgorithm DEFAULT mgf1SHA1, pSourceAlgorithm [2] PSourceAlgorithm DEFAULT pSpecifiedEmpty }
HashAlgorithm ::= AlgorithmIdentifier
MaskGenAlgorithm ::= AlgorithmIdentifier
PSourceAlgorithm ::= AlgorithmIdentifier
Implementation based on RFC 3447 (PKCS #1 v2.1)