EVP_CipherUpdate

Encrypt or decrypt a chunk of data using a cipher context already set for either direction.

Synopsis

Declared in <openssl/evp.h>

int
EVP_CipherUpdate(
    EVP_CIPHER_CTX* ctx,
    unsigned char* out,
    int* outl,
    unsigned char const* in,
    int inl);

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
ctxCipher context initialized for encryption or decryption.
outOutput buffer for ciphertext or plaintext.
outlReceives the number of bytes written to out.
inInput bytes to process.
inlNumber of bytes at in.