Method Crypto.RSA.PKCS1_5State()->rsa_pad()
- Method
rsa_pad
Gmp.mpzrsa_pad(string(8bit)message,int(1..2)type,function(int(0..):string(8bit))|voidrandom)- Description
Pads the
messageto the current block size with methodtypeand returns the result as an integer. This is equivalent to OS2IP(RSAES-PKCS1-V1_5-ENCODE(message)) in PKCS#1 v2.2.- Parameter
type 1The message is padded with
0xffbytes.2The message is padded with random data, using the
randomfunction if provided. Otherwise the default random function set in the object will be used.