EVP_CIPHER_CTX_set_num

Set the partial-block offset counter stored in a cipher context.

Synopsis

Declared in <openssl/evp.h>

int
EVP_CIPHER_CTX_set_num(
    EVP_CIPHER_CTX* ctx,
    int num);

Return Value

1 on success.

Parameters

NameDescription
ctxCipher context to update.
numNew offset value used by some cipher modes for leftover bytes.