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

Name

Description

ctx

Cipher context previously set up for encryption.

out

Output buffer for encrypted bytes (may equal in for in‐place encryption when block‐aligned).

outl

Receives the number of bytes written to out.

in

Plaintext input bytes.

inl

Number of bytes at in.

Created with MrDocs