EVP_EncryptUpdate

Encrypt inl bytes from in and write ciphertext to out.

Synopsis

Declared in <openssl/evp.h>

int
EVP_EncryptUpdate(
    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 previously set up for encryption.
outOutput buffer for encrypted bytes (may equal in for in-place encryption when block-aligned).
outlReceives the number of bytes written to out.
inPlaintext input bytes.
inlNumber of bytes at in.