Method Nettle.rsa_unpad()
- Method
rsa_unpad
int(0..)
rsa_unpad(string(8bit)
data
,int(1..2)
type
)- Description
Unpads a message that has been padded according to RSAES-PKCS1-V1_5-ENCODE(message) in PKCS#1 v2.2, but without the null byte prefix. The padding method used on the original message must be provided in the
type
parameter. All content dependent processing is done in constant time for the same padding type anddata
length.- Returns
Returns the position in the string where the first non-padding character is, or 0.