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

Name

Description

c

Cipher suite to query; NULL yields 0.

alg_bits

Optional; when non‐NULL, receives the algorithm bit strength.

Created with MrDocs