EVP_CIPHER_CTX_set_padding

Enable or disable standard block-cipher padding on a cipher context.

Synopsis

Declared in <openssl/evp.h>

int
EVP_CIPHER_CTX_set_padding(
    EVP_CIPHER_CTX* c,
    int pad);

Return Value

1 on success.

Parameters

NameDescription
cCipher context to update.
padNonzero to enable PKCS-style padding; zero to disable.