Lines Matching refs:key_bits
435 uint32_t key_bits; in get_certificate_keybits() local
444 key_bits = EVP_PKEY_bits(public_key); in get_certificate_keybits()
445 if (0 == key_bits) in get_certificate_keybits()
447 verb ("V: keybits: %d", key_bits); in get_certificate_keybits()
448 return key_bits; in get_certificate_keybits()
828 uint32_t key_bits; in check_key_length() local
849 key_bits = mpi_msb (&public_key->N); in check_key_length()
850 if (MIN_PUB_KEY_LEN >= key_bits) in check_key_length()
852 die ("Unsafe public key size: %d bits", key_bits); in check_key_length()
861 uint32_t key_bits; in check_key_length() local
877 key_bits = get_certificate_keybits (public_key); in check_key_length()
878 if (MIN_PUB_KEY_LEN >= key_bits && public_key->type != EVP_PKEY_EC) in check_key_length()
880 die ("Unsafe public key size: %d bits", key_bits); in check_key_length()
883 if(key_bits >= MIN_ECC_PUB_KEY_LEN in check_key_length()
884 && key_bits <= MAX_ECC_PUB_KEY_LEN) in check_key_length()
888 die ("Unsafe ECC key size: %d bits", key_bits); in check_key_length()