EVP_CIPHER_CTX_get_nid

Return the NID of the cipher currently bound to a cipher context.

Synopsis

Declared in <openssl/evp.h>

int
EVP_CIPHER_CTX_get_nid(EVP_CIPHER_CTX const* ctx);

Return Value

Algorithm NID, or NID_undef if no cipher is set.

Parameters

NameDescription
ctxCipher context to query.