Encode cipher parameters (typically including the IV) from c into an ASN1_TYPE.
Synopsis
Declared in <openssl/evp.h>
int
EVP_CIPHER_param_to_asn1(
EVP_CIPHER_CTX* c,
ASN1_TYPE* type);
Return Value
1 on success, or 0/‐1 on failure (for example if the cipher lacks ASN.1 support).
Parameters
Name |
Description |
c |
Cipher context whose AlgorithmIdentifier parameters are written; the IV must already be set. |
type |
Destination ASN.1 type that receives the parameters. |
Created with MrDocs