EVP_CIPHER_get_asn1_iv

Decode an IV from an ASN.1 OCTET STRING in type into cipher context c.

Synopsis

Declared in <openssl/evp.h>

int
EVP_CIPHER_get_asn1_iv(
    EVP_CIPHER_CTX* c,
    ASN1_TYPE* type);

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
cCipher context whose IV is updated.
typeASN1_TYPE expected to hold an OCTET STRING encoding of the IV.