Method __builtin.Nettle.Hash()->eme_oaep_encode()
- Method
eme_oaep_encode
string(8bit)|zeroeme_oaep_encode(string(8bit)message,int(1..)bytes,string(8bit)seed,string(8bit)|voidlabel,function(string(8bit),int(0..):string(8bit))|voidmgf)- Description
This is the encoding algorithm used in RSAES-OAEP (RFC 3447 section 7.1.1).
- Parameter
message Message to encode.
- Parameter
bytes Number of bytes of destination encoding.
- Parameter
seed A string of random bytes at least digest_size() long.
- Parameter
label An optional encoding label. Defaults to
"".- Parameter
mgf The mask generation function to use. Defaults to mgf1().
- Returns
Returns the encoded string on success and
0(zero) on failure (typically too few bytes to represent the result).- See also