Copy the original IV from a cipher context into buf.
Declared in <openssl/evp.h>
int
EVP_CIPHER_CTX_get_original_iv(
EVP_CIPHER_CTX* ctx,
void* buf,
size_t len);
1 on success, or 0 on failure.
| Name | Description |
|---|---|
| ctx | Cipher context previously initialized with an IV. |
| buf | Destination buffer for the IV bytes. |
| len | Capacity of buf in bytes (must be at least the IV length). |