Extracted from Pike v8.0 release 276 as of 2016-07-30.
   

Method Nettle.rsa_unpad()


Method rsa_unpad

int(0..) rsa_unpad(string(8bit) data, int type)

Description

Unpads a message that has been padded according to RSAES-PKCS1-V1_5-ENCODE(message) in PKCS#1 v2.2. 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 and data length.