Copy the current IV state from a cipher context into a buffer.
Declared in <openssl/evp.h>
int
EVP_CIPHER_CTX_get_updated_iv(
EVP_CIPHER_CTX* ctx,
void* buf,
size_t len);
1 on success, or 0 on failure (including if buf is too small).
| Name | Description |
|---|---|
| ctx | Cipher context whose updated IV is read. |
| buf | Destination buffer that receives the IV bytes. |
| len | Size of buf in bytes; must be at least EVP_CIPHER_CTX_get_iv_length(ctx). |