SSL_CIPHER_get_bits

Return the number of secret bits used by a cipher suite.

Synopsis

Declared in <openssl/ssl.h>

int
SSL_CIPHER_get_bits(
    SSL_CIPHER const* c,
    int* alg_bits);

Return Value

Number of secret bits, or 0 if c is NULL.

Parameters

NameDescription
cCipher suite to query; NULL yields 0.
alg_bitsOptional; when non-NULL, receives the algorithm bit strength.