Method Nettle.BufferedCipher()->Buffer.State()->unpad()
- Method
unpad
string(8bit)unpad(string(8bit)data,void|intmethod)- Description
Decrypt and unpad a block of data. Neither the input or output data is not automatically memory scrubbed, unless String.secure has been called on the data.
This performs the reverse operation of pad(). The padding will be verified to be correct, if possible. If not, zero is returned.
- Parameter
method The type of padding that was applied to the original buffer.
Crypto.PAD_SSLCrypto.PAD_TLSCrypto.PAD_ISO_10126Crypto.PAD_ANSI_X923Crypto.PAD_PKCS7Crypto.PAD_ZERODefaults to Crypto.PAD_SSL for compatibility reasons.
- See also