OpenCoverage

LibreSSL Portable Test Coverage

Functions

Page:<>1
Condition %: 100.000% (4/4)
...10
Condition %: 100.000% (4/4)
...17
Condition %:  57.895% (22/38)
18
Condition %:  53.846% (7/13)
19
Condition %:  50.000% (2/4)
20
Condition %:  50.000% (2/4)
2122
Condition %:  45.000% (9/20)
23
Condition %:  42.857% (3/7)
24
Condition %:  40.000% (6/15)
25
Condition %:  35.714% (5/14)
...30
Condition %:  0.000% (0/19)
...40
Condition %:  0.000% (0/1)
...50
Condition %:  0.000% (0/1)
...60
Condition %:  0.000% (0/6)
FunctionCondition %▾eLOC - Effective Lines of CodeMcCabe - Cyclomatic Complexity
BN_mod_sqr
Name: BN_mod_sqr
Prototype: int BN_mod_sqr(BIGNUM *r, const BIGNUM *a, const BIGNUM *m, BN_CTX *ctx)
Coverage:  50.000% (2/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/bn/bn_mod.c
Lines: 209-216
 50.000% (2/4)
72
BN_mod_add
Name: BN_mod_add
Prototype: int BN_mod_add(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, const BIGNUM *m, BN_CTX *ctx)
Coverage:  50.000% (2/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/bn/bn_mod.c
Lines: 135-142
 50.000% (2/4)
32
BN_kronecker
Name: BN_kronecker
Prototype: int BN_kronecker(const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx)
Coverage:  50.000% (43/86)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/bn/bn_kron.c
Lines: 62-185
 50.000% (43/86)
6221
BN_gcd_ct
Name: BN_gcd_ct
Prototype: int BN_gcd_ct(BIGNUM *r, const BIGNUM *in_a, const BIGNUM *in_b, BN_CTX *ctx)
Coverage:  50.000% (2/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/bn/bn_gcd.c
Lines: 161-167
 50.000% (2/4)
52
BN_add_word
Name: BN_add_word
Prototype: int BN_add_word(BIGNUM *a, unsigned long w)
Coverage:  50.000% (15/30)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/bn/bn_word.c
Lines: 141-176
 50.000% (15/30)
248
BN_RECP_CTX_set
Name: BN_RECP_CTX_set
Prototype: int BN_RECP_CTX_set(BN_RECP_CTX *recp, const BIGNUM *d, BN_CTX *ctx)
Coverage:  50.000% (2/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/bn/bn_recp.c
Lines: 99-108
 50.000% (2/4)
62
BN_MONT_CTX_new
Name: BN_MONT_CTX_new
Prototype: BN_MONT_CTX * BN_MONT_CTX_new(void)
Coverage:  50.000% (2/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/bn/bn_mont.c
Lines: 323-334
 50.000% (2/4)
122
BN_GF2m_mod_sqrt
Name: BN_GF2m_mod_sqrt
Prototype: int BN_GF2m_mod_sqrt(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx)
Coverage:  50.000% (5/10)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/bn/bn_gf2m.c
Lines: 1105-1126
 50.000% (5/10)
224
BN_GF2m_mod_sqr
Name: BN_GF2m_mod_sqr
Prototype: int BN_GF2m_mod_sqr(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx)
Coverage:  50.000% (5/10)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/bn/bn_gf2m.c
Lines: 605-627
 50.000% (5/10)
224
BN_GF2m_mod_solve_quad
Name: BN_GF2m_mod_solve_quad
Prototype: int BN_GF2m_mod_solve_quad(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx)
Coverage:  50.000% (5/10)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/bn/bn_gf2m.c
Lines: 1240-1262
 50.000% (5/10)
224
BN_GF2m_mod_mul
Name: BN_GF2m_mod_mul
Prototype: int BN_GF2m_mod_mul(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, const BIGNUM *p, BN_CTX *ctx)
Coverage:  50.000% (5/10)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/bn/bn_gf2m.c
Lines: 541-565
 50.000% (5/10)
224
BN_GF2m_mod_exp
Name: BN_GF2m_mod_exp
Prototype: int BN_GF2m_mod_exp(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, const BIGNUM *p, BN_CTX *ctx)
Coverage:  50.000% (5/10)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/bn/bn_gf2m.c
Lines: 1040-1064
 50.000% (5/10)
224
BN_GF2m_mod
Name: BN_GF2m_mod
Prototype: int BN_GF2m_mod(BIGNUM *r, const BIGNUM *a, const BIGNUM *p)
Coverage:  50.000% (3/6)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/bn/bn_gf2m.c
Lines: 463-479
 50.000% (3/6)
82
BN_GENCB_free
Name: BN_GENCB_free
Prototype: void BN_GENCB_free(BN_GENCB *cb)
Coverage:  50.000% (2/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/bn/bn_lib.c
Lines: 956-962
 50.000% (2/4)
52
BN_CTX_new
Name: BN_CTX_new
Prototype: BN_CTX * BN_CTX_new(void)
Coverage:  50.000% (2/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/bn/bn_ctx.c
Lines: 223-239
 50.000% (2/4)
142
BN_BLINDING_invert_ex
Name: BN_BLINDING_invert_ex
Prototype: int BN_BLINDING_invert_ex(BIGNUM *n, const BIGNUM *r, BN_BLINDING *b, BN_CTX *ctx)
Coverage:  50.000% (4/8)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/bn/bn_blind.c
Lines: 265-284
 50.000% (4/8)
123
BIO_sock_should_retry
Name: BIO_sock_should_retry
Prototype: int BIO_sock_should_retry(int i)
Coverage:  50.000% (3/6)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/bio/bss_sock.c
Lines: 212-222
 50.000% (3/6)
92
BIO_sock_init
Name: BIO_sock_init
Prototype: int BIO_sock_init(void)
Coverage:  50.000% (2/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/bio/b_posix.c
Lines: 68-74
 50.000% (2/4)
72
BIO_push
Name: BIO_push
Prototype: BIO * BIO_push(BIO *b, BIO *bio)
Coverage:  50.000% (5/10)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/bio/bio_lib.c
Lines: 480-496
 50.000% (5/10)
174
BIO_pop
Name: BIO_pop
Prototype: BIO * BIO_pop(BIO *b)
Coverage:  50.000% (5/10)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/bio/bio_lib.c
Lines: 499-518
 50.000% (5/10)
304
BIO_new_fp
Name: BIO_new_fp
Prototype: BIO * BIO_new_fp(FILE *stream, int close_flag)
Coverage:  50.000% (2/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/bio/bss_file.c
Lines: 139-149
 50.000% (2/4)
112
BIO_indent
Name: BIO_indent
Prototype: int BIO_indent(BIO *b, int indent, int max)
Coverage:  50.000% (6/12)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/bio/bio_lib.c
Lines: 375-386
 50.000% (6/12)
85
ASN1_tag2bit
Name: ASN1_tag2bit
Prototype: unsigned long ASN1_tag2bit(int tag)
Coverage:  50.000% (3/6)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/asn1/tasn_dec.c
Lines: 107-113
 50.000% (3/6)
32
ASN1_item_unpack
Name: ASN1_item_unpack
Prototype: void * ASN1_item_unpack(const ASN1_STRING *oct, const ASN1_ITEM *it)
Coverage:  50.000% (2/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/asn1/asn_pack.c
Lines: 205-215
 50.000% (2/4)
102
ASN1_item_new
Name: ASN1_item_new
Prototype: ASN1_VALUE * ASN1_item_new(const ASN1_ITEM *it)
Coverage:  50.000% (2/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/asn1/tasn_new.c
Lines: 73-80
 50.000% (2/4)
122
ASN1_TYPE_get_octetstring
Name: ASN1_TYPE_get_octetstring
Prototype: int ASN1_TYPE_get_octetstring(const ASN1_TYPE *a, unsigned char *data, int max_len)
Coverage:  50.000% (5/10)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/asn1/evp_asn1.c
Lines: 81-100
 50.000% (5/10)
173
ASN1_TIME_set_string_internal
Name: ASN1_TIME_set_string_internal
Prototype: static int ASN1_TIME_set_string_internal(ASN1_TIME *s, const char *str, int mode)
Coverage:  50.000% (12/24)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/asn1/a_time_tm.c
Lines: 232-254
 50.000% (12/24)
556
ASN1_STRING_type_new
Name: ASN1_STRING_type_new
Prototype: ASN1_STRING * ASN1_STRING_type_new(int type)
Coverage:  50.000% (2/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/asn1/asn1_lib.c
Lines: 415-430
 50.000% (2/4)
202
ASN1_OBJECT_new
Name: ASN1_OBJECT_new
Prototype: ASN1_OBJECT * ASN1_OBJECT_new(void)
Coverage:  50.000% (2/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/asn1/a_object.c
Lines: 349-366
 50.000% (2/4)
302
SSL_SESSION_encode
Name: SSL_SESSION_encode
Prototype: static int SSL_SESSION_encode(SSL_SESSION *s, unsigned char **out, size_t *out_len, int ticket_encoding)
Coverage:  49.618% (65/131)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/ssl/ssl_asn1.c
Lines: 47-192
 49.618% (65/131)
10545
PKCS7_dataInit
Name: PKCS7_dataInit
Prototype: BIO * PKCS7_dataInit(PKCS7 *p7, BIO *bio)
Coverage:  49.524% (52/105)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/pkcs7/pk7_doit.c
Lines: 247-402
 49.524% (52/105)
21636
ec_GFp_simple_cmp
Name: ec_GFp_simple_cmp
Prototype: int ec_GFp_simple_cmp(const EC_GROUP * group, const EC_POINT * a, const EC_POINT * b, BN_CTX * ctx)
Coverage:  49.398% (41/83)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/ec/ecp_smpl.c
Lines: 1088-1187
 49.398% (41/83)
7925
dtls1_get_message_fragment
Name: dtls1_get_message_fragment
Prototype: static long dtls1_get_message_fragment(SSL *s, int st1, int stn, long max, int *ok)
Coverage:  49.180% (30/61)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/ssl/d1_both.c
Lines: 765-889
 49.180% (30/61)
6416
do_sigver_init
Name: do_sigver_init
Prototype: static int do_sigver_init(EVP_MD_CTX *ctx, EVP_PKEY_CTX **pctx, const EVP_MD *type, ENGINE *e, EVP_PKEY *pkey, int ver)
Coverage:  48.936% (23/47)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/evp/m_sigver.c
Lines: 68-111
 48.936% (23/47)
4016
ec_GFp_simple_point2oct
Name: ec_GFp_simple_point2oct
Prototype: size_t ec_GFp_simple_point2oct(const EC_GROUP * group, const EC_POINT * point, point_conversion_form_t form, unsigned char *buf, size_t len, BN_CTX * ctx)
Coverage:  48.750% (39/80)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/ec/ecp_oct.c
Lines: 200-302
 48.750% (39/80)
8823
probable_prime_dh
Name: probable_prime_dh
Prototype: static int probable_prime_dh(BIGNUM *rnd, int bits, const BIGNUM *add, const BIGNUM *rem, BN_CTX *ctx)
Coverage:  48.649% (18/37)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/bn/bn_prime.c
Lines: 430-478
 48.649% (18/37)
3514
by_mem_ctrl
Name: by_mem_ctrl
Prototype: static int by_mem_ctrl(X509_LOOKUP *lu, int cmd, const char *buf, long type, char **ret)
Coverage:  48.649% (18/37)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/x509/by_mem.c
Lines: 92-138
 48.649% (18/37)
6013
EVP_DecryptUpdate
Name: EVP_DecryptUpdate
Prototype: int EVP_DecryptUpdate(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl, const unsigned char *in, int inl)
Coverage:  48.485% (16/33)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/evp/evp_enc.c
Lines: 416-471
 48.485% (16/33)
3310
CRYPTO_gcm128_aad
Name: CRYPTO_gcm128_aad
Prototype: int CRYPTO_gcm128_aad(GCM128_CONTEXT *ctx,const unsigned char *aad,size_t len)
Coverage:  48.387% (15/31)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/modes/gcm128.c
Lines: 830-885
 48.387% (15/31)
299
ssl3_get_server_key_exchange
Name: ssl3_get_server_key_exchange
Prototype: int ssl3_get_server_key_exchange(SSL *s)
Coverage:  48.352% (44/91)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/ssl/ssl_clnt.c
Lines: 1423-1589
 48.352% (44/91)
13732
EC_GROUP_set_generator
Name: EC_GROUP_set_generator
Prototype: int EC_GROUP_set_generator(EC_GROUP *group, const EC_POINT *generator, const BIGNUM *order, const BIGNUM *cofactor)
Coverage:  48.148% (13/27)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/ec/ec_lib.c
Lines: 256-285
 48.148% (13/27)
289
BN_to_ASN1_INTEGER
Name: BN_to_ASN1_INTEGER
Prototype: ASN1_INTEGER * BN_to_ASN1_INTEGER(const BIGNUM *bn, ASN1_INTEGER *ai)
Coverage:  48.148% (13/27)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/asn1/a_int.c
Lines: 408-449
 48.148% (13/27)
359
x509_name_encode
Name: x509_name_encode
Prototype: static int x509_name_encode(X509_NAME *a)
Coverage:  48.000% (12/25)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/asn1/x_name.c
Lines: 381-429
 48.000% (12/25)
519
cbs_find_indefinite
Name: cbs_find_indefinite
Prototype: static int cbs_find_indefinite(const CBS *orig_in, char *indefinite_found, unsigned int depth)
Coverage:  48.000% (12/25)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/ssl/bs_ber.c
Lines: 46-82
 48.000% (12/25)
227
i2c_ASN1_INTEGER
Name: i2c_ASN1_INTEGER
Prototype: int i2c_ASN1_INTEGER(ASN1_INTEGER *a, unsigned char **pp)
Coverage:  47.826% (22/46)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/asn1/a_int.c
Lines: 120-186
 47.826% (22/46)
4815
dsa_sig_print
Name: dsa_sig_print
Prototype: static int dsa_sig_print(BIO *bp, const X509_ALGOR *sigalg, const ASN1_STRING *sig, int indent, ASN1_PCTX *pctx)
Coverage:  47.826% (11/23)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/dsa/dsa_ameth.c
Lines: 540-582
 47.826% (11/23)
399
X509_check_issued
Name: X509_check_issued
Prototype: int X509_check_issued(X509 *issuer, X509 *subject)
Coverage:  47.826% (11/23)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/x509v3/v3_purp.c
Lines: 833-854
 47.826% (11/23)
157
RSA_sign
Name: RSA_sign
Prototype: int RSA_sign(int type, const unsigned char *m, unsigned int m_len, unsigned char *sigret, unsigned int *siglen, RSA *rsa)
Coverage:  47.826% (11/23)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/rsa/rsa_sign.c
Lines: 123-166
 47.826% (11/23)
348
ecdh_compute_key
Name: ecdh_compute_key
Prototype: static int ecdh_compute_key(void *out, size_t outlen, const EC_POINT *pub_key, EC_KEY *ecdh, void *(*KDF)(const void *in, size_t inlen, void *out, size_t *outlen))
Coverage:  47.619% (30/63)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/ecdh/ech_key.c
Lines: 93-205
 47.619% (30/63)
11221
ec_GFp_simple_add
Name: ec_GFp_simple_add
Prototype: int ec_GFp_simple_add(const EC_GROUP * group, EC_POINT * r, const EC_POINT * a, const EC_POINT * b, BN_CTX * ctx)
Coverage:  47.368% (81/171)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/ec/ecp_smpl.c
Lines: 636-822
 47.368% (81/171)
14856
asn1_primitive_clear
Name: asn1_primitive_clear
Prototype: static void asn1_primitive_clear(ASN1_VALUE **pval, const ASN1_ITEM *it)
Coverage:  47.368% (9/19)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/asn1/tasn_new.c
Lines: 354-374
 47.368% (9/19)
215
BIO_find_type
Name: BIO_find_type
Prototype: BIO * BIO_find_type(BIO *bio, int type)
Coverage:  47.368% (9/19)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/bio/bio_lib.c
Lines: 545-565
 47.368% (9/19)
267
ec_wNAF_mul
Name: ec_wNAF_mul
Prototype: int ec_wNAF_mul(const EC_GROUP * group, EC_POINT * r, const BIGNUM * scalar, size_t num, const EC_POINT * points[], const BIGNUM * scalars[], BN_CTX * ctx)
Coverage:  47.137% (107/227)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/ec/ec_mult.c
Lines: 334-702
 47.137% (107/227)
34869
tls_get_peer_cert_info
Name: tls_get_peer_cert_info
Prototype: static int tls_get_peer_cert_info(struct tls *ctx)
Coverage:  47.059% (8/17)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/tls/tls_conninfo.c
Lines: 139-159
 47.059% (8/17)
157
ssl3_put_cipher_by_char
Name: ssl3_put_cipher_by_char
Prototype: int ssl3_put_cipher_by_char(const SSL_CIPHER *c, unsigned char *p)
Coverage:  47.059% (8/17)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/ssl/s3_lib.c
Lines: 2254-2280
 47.059% (8/17)
257
EVP_DigestVerifyFinal
Name: EVP_DigestVerifyFinal
Prototype: int EVP_DigestVerifyFinal(EVP_MD_CTX *ctx, const unsigned char *sig, size_t siglen)
Coverage:  47.059% (8/17)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/evp/m_sigver.c
Lines: 168-193
 47.059% (8/17)
195
BIO_ctrl
Name: BIO_ctrl
Prototype: long BIO_ctrl(BIO *b, int cmd, long larg, void *parg)
Coverage:  47.059% (8/17)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/bio/bio_lib.c
Lines: 408-433
 47.059% (8/17)
315
ssl3_check_cert_and_algorithm
Name: ssl3_check_cert_and_algorithm
Prototype: int ssl3_check_cert_and_algorithm(SSL *s)
Coverage:  46.875% (15/32)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/ssl/ssl_clnt.c
Lines: 2587-2647
 46.875% (15/32)
4710
ecdsa_do_verify
Name: ecdsa_do_verify
Prototype: static int ecdsa_do_verify(const unsigned char *dgst, int dgst_len, const ECDSA_SIG *sig, EC_KEY *eckey)
Coverage:  46.875% (30/64)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/ecdsa/ecs_ossl.c
Lines: 387-489
 46.875% (30/64)
9917
tls_connect_fds
Name: tls_connect_fds
Prototype: int tls_connect_fds(struct tls *ctx, int fd_read, int fd_write, const char *servername)
Coverage:  46.667% (7/15)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/tls/tls_client.c
Lines: 378-401
 46.667% (7/15)
125
ssl_set_pkey
Name: ssl_set_pkey
Prototype: static int ssl_set_pkey(CERT *c, EVP_PKEY *pkey)
Coverage:  46.667% (7/15)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/ssl/ssl_rsa.c
Lines: 174-214
 46.667% (7/15)
335
asn1_template_ex_d2i
Name: asn1_template_ex_d2i
Prototype: static int asn1_template_ex_d2i(ASN1_VALUE **val, const unsigned char **in, long inlen, const ASN1_TEMPLATE *tt, char opt, ASN1_TLC *ctx, int depth)
Coverage:  46.667% (14/30)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/asn1/tasn_dec.c
Lines: 473-541
 46.667% (14/30)
4911
X509_PUBKEY_get0
Name: X509_PUBKEY_get0
Prototype: EVP_PKEY * X509_PUBKEY_get0(X509_PUBKEY *key)
Coverage:  46.429% (13/28)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/asn1/x_pubkey.c
Lines: 177-227
 46.429% (13/28)
4510
ssl3_send_server_key_exchange
Name: ssl3_send_server_key_exchange
Prototype: int ssl3_send_server_key_exchange(SSL *s)
Coverage:  46.154% (36/78)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/ssl/ssl_srvr.c
Lines: 1500-1624
 46.154% (36/78)
10527
ec_GFp_simple_points_make_affine
Name: ec_GFp_simple_points_make_affine
Prototype: int ec_GFp_simple_points_make_affine(const EC_GROUP * group, size_t num, EC_POINT * points[], BN_CTX * ctx)
Coverage:  46.154% (60/130)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/ec/ecp_smpl.c
Lines: 1228-1400
 46.154% (60/130)
13943
bio_nread0
Name: bio_nread0
Prototype: static ssize_t bio_nread0(BIO *bio, char **buf)
Coverage:  46.154% (6/13)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/bio/bss_bio.c
Lines: 259-295
 46.154% (6/13)
345
X509_NAME_get_index_by_OBJ
Name: X509_NAME_get_index_by_OBJ
Prototype: int X509_NAME_get_index_by_OBJ(const X509_NAME *name, const ASN1_OBJECT *obj, int lastpos)
Coverage:  46.154% (6/13)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/x509/x509name.c
Lines: 121-141
 46.154% (6/13)
165
DSA_verify
Name: DSA_verify
Prototype: int DSA_verify(int type, const unsigned char *dgst, int dgst_len, const unsigned char *sigbuf, int siglen, DSA *dsa)
Coverage:  46.154% (6/13)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/dsa/dsa_asn1.c
Lines: 456-480
 46.154% (6/13)
255
ssl3_read_n
Name: ssl3_read_n
Prototype: static int ssl3_read_n(SSL *s, int n, int max, int extend)
Coverage:  46.053% (35/76)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/ssl/ssl_pkt.c
Lines: 149-284
 46.053% (35/76)
7623
EVP_DigestInit_ex
Name: EVP_DigestInit_ex
Prototype: int EVP_DigestInit_ex(EVP_MD_CTX *ctx, const EVP_MD *type, ENGINE *impl)
Coverage:  46.032% (29/63)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/evp/digest.c
Lines: 132-211
 46.032% (29/63)
6616
ssl3_get_client_key_exchange
Name: ssl3_get_client_key_exchange
Prototype: int ssl3_get_client_key_exchange(SSL *s)
Coverage:  45.946% (17/37)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/ssl/ssl_srvr.c
Lines: 2050-2101
 45.946% (17/37)
3414
X509_STORE_load_locations
Name: X509_STORE_load_locations
Prototype: int X509_STORE_load_locations(X509_STORE *ctx, const char *file, const char *path)
Coverage:  45.833% (11/24)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/x509/x509_d2.c
Lines: 87-109
 45.833% (11/24)
408
PEM_read_bio_Parameters
Name: PEM_read_bio_Parameters
Prototype: EVP_PKEY * PEM_read_bio_Parameters(BIO *bp, EVP_PKEY **x)
Coverage:  45.833% (11/24)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/pem/pem_pkey.c
Lines: 166-204
 45.833% (11/24)
588
EVP_VerifyFinal
Name: EVP_VerifyFinal
Prototype: int EVP_VerifyFinal(EVP_MD_CTX *ctx, const unsigned char *sigbuf, unsigned int siglen, EVP_PKEY *pkey)
Coverage:  45.714% (16/35)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/evp/p_verify.c
Lines: 66-118
 45.714% (16/35)
4813
BN_GF2m_mod_exp_arr
Name: BN_GF2m_mod_exp_arr
Prototype: int BN_GF2m_mod_exp_arr(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, const int p[], BN_CTX *ctx)
Coverage:  45.714% (16/35)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/bn/bn_gf2m.c
Lines: 991-1031
 45.714% (16/35)
2911
X509_NAME_oneline
Name: X509_NAME_oneline
Prototype: char * X509_NAME_oneline(const X509_NAME *a, char *buf, int len)
Coverage:  45.679% (37/81)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/x509/x509_obj.c
Lines: 68-179
 45.679% (37/81)
11025
tls_cert_pubkey_hash
Name: tls_cert_pubkey_hash
Prototype: int tls_cert_pubkey_hash(X509 *cert, char **hash)
Coverage:  45.455% (5/11)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/tls/tls.c
Lines: 299-325
 45.455% (5/11)
305
tls_cert_hash
Name: tls_cert_hash
Prototype: int tls_cert_hash(X509 *cert, char **hash)
Coverage:  45.455% (5/11)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/tls/tls.c
Lines: 272-297
 45.455% (5/11)
305
ssl3_send_server_done
Name: ssl3_send_server_done
Prototype: int ssl3_send_server_done(SSL *s)
Coverage:  45.455% (5/11)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/ssl/ssl_srvr.c
Lines: 1247-1271
 45.455% (5/11)
125
mem_write
Name: mem_write
Prototype: static int mem_write(BIO *b, const char *in, int inl)
Coverage:  45.455% (5/11)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/bio/bss_mem.c
Lines: 177-203
 45.455% (5/11)
195
ecdh_check
Name: ecdh_check
Prototype: ECDH_DATA * ecdh_check(EC_KEY *key)
Coverage:  45.455% (5/11)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/ecdh/ech_lib.c
Lines: 185-208
 45.455% (5/11)
244
do_dsa_print
Name: do_dsa_print
Prototype: static int do_dsa_print(BIO *bp, const DSA *x, int off, int ptype)
Coverage:  45.455% (20/44)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/dsa/dsa_ameth.c
Lines: 376-436
 45.455% (20/44)
6215
check_purpose_smime_sign
Name: check_purpose_smime_sign
Prototype: static int check_purpose_smime_sign(const X509_PURPOSE *xp, const X509 *x, int ca)
Coverage:  45.455% (5/11)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/x509v3/v3_purp.c
Lines: 725-736
 45.455% (5/11)
73
bio_nwrite
Name: bio_nwrite
Prototype: static ssize_t bio_nwrite(BIO *bio, char **buf, size_t num_)
Coverage:  45.455% (5/11)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/bio/bss_bio.c
Lines: 456-478
 45.455% (5/11)
194
SSL_CTX_check_private_key
Name: SSL_CTX_check_private_key
Prototype: int SSL_CTX_check_private_key(const SSL_CTX *ctx)
Coverage:  45.455% (5/11)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/ssl/ssl_lib.c
Lines: 884-898
 45.455% (5/11)
233
EVP_PKEY_verify
Name: EVP_PKEY_verify
Prototype: int EVP_PKEY_verify(EVP_PKEY_CTX *ctx, const unsigned char *sig, size_t siglen, const unsigned char *tbs, size_t tbslen)
Coverage:  45.455% (5/11)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/evp/pmeth_fn.c
Lines: 136-149
 45.455% (5/11)
73
EC_POINT_add
Name: EC_POINT_add
Prototype: int EC_POINT_add(const EC_GROUP *group, EC_POINT *r, const EC_POINT *a, const EC_POINT *b, BN_CTX *ctx)
Coverage:  45.455% (5/11)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/ec/ec_lib.c
Lines: 902-915
 45.455% (5/11)
73
BN_reciprocal
Name: BN_reciprocal
Prototype: int BN_reciprocal(BIGNUM *r, const BIGNUM *m, int len, BN_CTX *ctx)
Coverage:  45.455% (5/11)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/bn/bn_recp.c
Lines: 241-263
 45.455% (5/11)
185
BN_GF2m_mod_sqrt_arr
Name: BN_GF2m_mod_sqrt_arr
Prototype: int BN_GF2m_mod_sqrt_arr(BIGNUM *r, const BIGNUM *a, const int p[], BN_CTX *ctx)
Coverage:  45.455% (5/11)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/bn/bn_gf2m.c
Lines: 1070-1096
 45.455% (5/11)
155
BN_GF2m_mod_div
Name: BN_GF2m_mod_div
Prototype: int BN_GF2m_mod_div(BIGNUM *r, const BIGNUM *y, const BIGNUM *x, const BIGNUM *p, BN_CTX *ctx)
Coverage:  45.455% (5/11)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/bn/bn_gf2m.c
Lines: 837-862
 45.455% (5/11)
185
BIO_read
Name: BIO_read
Prototype: int BIO_read(BIO *b, void *out, int outl)
Coverage:  45.455% (10/22)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/bio/bio_lib.c
Lines: 247-277
 45.455% (10/22)
376
dsa_builtin_paramgen
Name: dsa_builtin_paramgen
Prototype: int dsa_builtin_paramgen(DSA *ret, size_t bits, size_t qbits, const EVP_MD *evpmd, const unsigned char *seed_in, size_t seed_len, unsigned char *seed_out, int *counter_ret, unsigned long *h_ret, BN_GENCB *cb)
Coverage:  45.413% (99/218)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/dsa/dsa_gen.c
Lines: 98-357
 45.413% (99/218)
27071
bn_sub_part_words
Name: bn_sub_part_words
Prototype: unsigned long bn_sub_part_words(unsigned long *r, const unsigned long *a, const unsigned long *b, int cl, int dl)
Coverage:  45.361% (44/97)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/bn/bn_mul.c
Lines: 83-228
 45.361% (44/97)
9835
X509_verify_cert
Name: X509_verify_cert
Prototype: int X509_verify_cert(X509_STORE_CTX *ctx)
Coverage:  45.223% (71/157)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/x509/x509_vfy.c
Lines: 224-559
 45.223% (71/157)
21648
asn1_d2i_ex_primitive
Name: asn1_d2i_ex_primitive
Prototype: static int asn1_d2i_ex_primitive(ASN1_VALUE **pval, const unsigned char **in, long inlen, const ASN1_ITEM *it, int tag, int aclass, char opt, ASN1_TLC *ctx)
Coverage:  45.205% (33/73)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/asn1/tasn_dec.c
Lines: 660-785
 45.205% (33/73)
11323
tlsext_ec_clienthello_parse
Name: tlsext_ec_clienthello_parse
Prototype: int tlsext_ec_clienthello_parse(SSL *s, CBS *cbs, int *alert)
Coverage:  45.161% (14/31)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/ssl/ssl_tlsext.c
Lines: 203-253
 45.161% (14/31)
3911
probable_prime_dh_safe
Name: probable_prime_dh_safe
Prototype: static int probable_prime_dh_safe(BIGNUM *p, int bits, const BIGNUM *padd, const BIGNUM *rem, BN_CTX *ctx)
Coverage:  45.161% (28/62)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/bn/bn_prime.c
Lines: 480-546
 45.161% (28/62)
5521
compute_key
Name: compute_key
Prototype: static int compute_key(unsigned char *key, const BIGNUM *pub_key, DH *dh)
Coverage:  45.161% (14/31)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/dh/dh_key.c
Lines: 183-237
 45.161% (14/31)
5111
RSA_eay_private_decrypt
Name: RSA_eay_private_decrypt
Prototype: static int RSA_eay_private_decrypt(int flen, const unsigned char *from, unsigned char *to, RSA *rsa, int padding)
Coverage:  45.122% (37/82)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/rsa/rsa_eay.c
Lines: 468-589
 45.122% (37/82)
12725
PKCS7_simple_smimecap
Name: PKCS7_simple_smimecap
Prototype: int PKCS7_simple_smimecap(struct stack_st_X509_ALGOR *sk, int nid, int arg)
Coverage:  45.000% (9/20)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/pkcs7/pk7_attr.c
Lines: 99-132
 45.000% (9/20)
238
Page:<>1
Condition %: 100.000% (4/4)
...10
Condition %: 100.000% (4/4)
...17
Condition %:  57.895% (22/38)
18
Condition %:  53.846% (7/13)
19
Condition %:  50.000% (2/4)
20
Condition %:  50.000% (2/4)
2122
Condition %:  45.000% (9/20)
23
Condition %:  42.857% (3/7)
24
Condition %:  40.000% (6/15)
25
Condition %:  35.714% (5/14)
...30
Condition %:  0.000% (0/19)
...40
Condition %:  0.000% (0/1)
...50
Condition %:  0.000% (0/1)
...60
Condition %:  0.000% (0/6)

Generated by Squish Coco 4.2.2