OpenCoverage

LibreSSL Portable Test Coverage

Functions

Page:<>1
Condition %: 100.000% (4/4)
...10
Condition %: 100.000% (4/4)
...13
Condition %:  80.000% (8/10)
14
Condition %:  73.333% (22/30)
15
Condition %:  68.000% (17/25)
16
Condition %:  63.265% (31/49)
1718
Condition %:  53.846% (7/13)
19
Condition %:  50.000% (2/4)
20
Condition %:  50.000% (2/4)
21
Condition %:  50.000% (2/4)
...30
Condition %:  0.000% (0/19)
...40
Condition %:  0.000% (0/1)
...60
Condition %:  0.000% (0/6)
FunctionCondition %▾eLOC - Effective Lines of CodeMcCabe - Cyclomatic Complexity
ASN1_TIME_adj_internal
Name: ASN1_TIME_adj_internal
Prototype: static ASN1_TIME * ASN1_TIME_adj_internal(ASN1_TIME *s, time_t t, int offset_day, long offset_sec, int mode)
Coverage:  57.895% (22/38)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/asn1/a_time_tm.c
Lines: 256-315
 57.895% (22/38)
7015
enc_read
Name: enc_read
Prototype: static int enc_read(BIO *b, char *out, int outl)
Coverage:  57.778% (26/45)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/evp/bio_enc.c
Lines: 145-229
 57.778% (26/45)
6213
EVP_EncryptFinal_ex
Name: EVP_EncryptFinal_ex
Prototype: int EVP_EncryptFinal_ex(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl)
Coverage:  57.692% (15/26)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/evp/evp_enc.c
Lines: 370-414
 57.692% (15/26)
339
HKDF_expand
Name: HKDF_expand
Prototype: int HKDF_expand(uint8_t *out_key, size_t out_len, const EVP_MD *digest, const uint8_t *prk, size_t prk_len, const uint8_t *info, size_t info_len)
Coverage:  57.576% (19/33)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/hkdf/hkdf.c
Lines: 66-117
 57.576% (19/33)
539
tls1_record_sequence_increment
Name: tls1_record_sequence_increment
Prototype: void tls1_record_sequence_increment(unsigned char *seq)
Coverage:  57.143% (4/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/ssl/t1_enc.c
Lines: 215-224
 57.143% (4/7)
43
streebog_single_block
Name: streebog_single_block
Prototype: static void streebog_single_block(STREEBOG_CTX *ctx, const unsigned char *in, size_t num)
Coverage:  57.143% (12/21)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/gost/streebog.c
Lines: 1239-1267
 57.143% (12/21)
177
sock_ctrl
Name: sock_ctrl
Prototype: static long sock_ctrl(BIO *b, int cmd, long num, void *ptr)
Coverage:  57.143% (12/21)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/bio/bss_sock.c
Lines: 163-200
 57.143% (12/21)
2610
rc2_ofb_cipher
Name: rc2_ofb_cipher
Prototype: static int rc2_ofb_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, size_t inl)
Coverage:  57.143% (4/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/evp/e_rc2.c
Lines: 87-87
 57.143% (4/7)
13
rc2_cbc_cipher
Name: rc2_cbc_cipher
Prototype: static int rc2_cbc_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, size_t inl)
Coverage:  57.143% (4/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/evp/e_rc2.c
Lines: 87-87
 57.143% (4/7)
13
gost2814789_cnt_cipher
Name: gost2814789_cnt_cipher
Prototype: static int gost2814789_cnt_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, size_t inl)
Coverage:  57.143% (4/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/evp/e_gost2814789.c
Lines: 190-208
 57.143% (4/7)
113
engine_cleanup_add_last
Name: engine_cleanup_add_last
Prototype: void engine_cleanup_add_last(ENGINE_CLEANUP_CB *cb)
Coverage:  57.143% (4/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/engine/eng_lib.c
Lines: 187-197
 57.143% (4/7)
63
desx_cbc_cipher
Name: desx_cbc_cipher
Prototype: static int desx_cbc_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, size_t inl)
Coverage:  57.143% (4/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/evp/e_xcbc_d.c
Lines: 119-136
 57.143% (4/7)
123
des_ofb_cipher
Name: des_ofb_cipher
Prototype: static int des_ofb_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, size_t inl)
Coverage:  57.143% (4/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/evp/e_des.c
Lines: 87-102
 57.143% (4/7)
103
des_ede_ofb_cipher
Name: des_ede_ofb_cipher
Prototype: static int des_ede_ofb_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, size_t inl)
Coverage:  57.143% (4/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/evp/e_des3.c
Lines: 100-118
 57.143% (4/7)
123
des_ede_cfb64_cipher
Name: des_ede_cfb64_cipher
Prototype: static int des_ede_cfb64_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, size_t inl)
Coverage:  57.143% (4/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/evp/e_des3.c
Lines: 139-156
 57.143% (4/7)
123
des_ede_cbc_cipher
Name: des_ede_cbc_cipher
Prototype: static int des_ede_cbc_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, size_t inl)
Coverage:  57.143% (4/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/evp/e_des3.c
Lines: 120-137
 57.143% (4/7)
123
des_cfb8_cipher
Name: des_cfb8_cipher
Prototype: static int des_cfb8_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, size_t inl)
Coverage:  57.143% (4/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/evp/e_des.c
Lines: 169-184
 57.143% (4/7)
103
des_cfb64_cipher
Name: des_cfb64_cipher
Prototype: static int des_cfb64_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, size_t inl)
Coverage:  57.143% (4/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/evp/e_des.c
Lines: 121-136
 57.143% (4/7)
103
des_cbc_cipher
Name: des_cbc_cipher
Prototype: static int des_cbc_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, size_t inl)
Coverage:  57.143% (4/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/evp/e_des.c
Lines: 104-119
 57.143% (4/7)
103
def_get_class
Name: def_get_class
Prototype: static EX_CLASS_ITEM * def_get_class(int class_index)
Coverage:  57.143% (12/21)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/ex_data.c
Lines: 309-339
 57.143% (12/21)
337
cast5_ofb_cipher
Name: cast5_ofb_cipher
Prototype: static int cast5_ofb_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, size_t inl)
Coverage:  57.143% (4/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/evp/e_cast.c
Lines: 80-80
 57.143% (4/7)
13
cast5_cbc_cipher
Name: cast5_cbc_cipher
Prototype: static int cast5_cbc_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, size_t inl)
Coverage:  57.143% (4/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/evp/e_cast.c
Lines: 80-80
 57.143% (4/7)
13
camellia_256_ofb_cipher
Name: camellia_256_ofb_cipher
Prototype: static int camellia_256_ofb_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, size_t inl)
Coverage:  57.143% (4/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/evp/e_camellia.c
Lines: 89-89
 57.143% (4/7)
13
camellia_256_cbc_cipher
Name: camellia_256_cbc_cipher
Prototype: static int camellia_256_cbc_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, size_t inl)
Coverage:  57.143% (4/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/evp/e_camellia.c
Lines: 89-89
 57.143% (4/7)
13
camellia_192_ofb_cipher
Name: camellia_192_ofb_cipher
Prototype: static int camellia_192_ofb_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, size_t inl)
Coverage:  57.143% (4/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/evp/e_camellia.c
Lines: 83-83
 57.143% (4/7)
13
camellia_192_cbc_cipher
Name: camellia_192_cbc_cipher
Prototype: static int camellia_192_cbc_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, size_t inl)
Coverage:  57.143% (4/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/evp/e_camellia.c
Lines: 83-83
 57.143% (4/7)
13
camellia_128_ofb_cipher
Name: camellia_128_ofb_cipher
Prototype: static int camellia_128_ofb_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, size_t inl)
Coverage:  57.143% (4/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/evp/e_camellia.c
Lines: 77-77
 57.143% (4/7)
13
camellia_128_cbc_cipher
Name: camellia_128_cbc_cipher
Prototype: static int camellia_128_cbc_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, size_t inl)
Coverage:  57.143% (4/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/evp/e_camellia.c
Lines: 77-77
 57.143% (4/7)
13
bf_ofb_cipher
Name: bf_ofb_cipher
Prototype: static int bf_ofb_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, size_t inl)
Coverage:  57.143% (4/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/evp/e_bf.c
Lines: 80-80
 57.143% (4/7)
13
bf_cbc_cipher
Name: bf_cbc_cipher
Prototype: static int bf_cbc_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, size_t inl)
Coverage:  57.143% (4/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/evp/e_bf.c
Lines: 80-80
 57.143% (4/7)
13
X509_PUBKEY_set0_param
Name: X509_PUBKEY_set0_param
Prototype: int X509_PUBKEY_set0_param(X509_PUBKEY *pub, ASN1_OBJECT *aobj, int ptype, void *pval, unsigned char *penc, int penclen)
Coverage:  57.143% (4/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/asn1/x_pubkey.c
Lines: 407-422
 57.143% (4/7)
93
X509_ALGOR_get0
Name: X509_ALGOR_get0
Prototype: void X509_ALGOR_get0(const ASN1_OBJECT **paobj, int *pptype, const void **ppval, const X509_ALGOR *algor)
Coverage:  57.143% (8/14)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/asn1/x_algor.c
Lines: 178-193
 57.143% (8/14)
115
PKCS7_add_attrib_content_type
Name: PKCS7_add_attrib_content_type
Prototype: int PKCS7_add_attrib_content_type(PKCS7_SIGNER_INFO *si, ASN1_OBJECT *coid)
Coverage:  57.143% (4/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/pkcs7/pk7_attr.c
Lines: 134-143
 57.143% (4/7)
63
NCONF_new
Name: NCONF_new
Prototype: CONF * NCONF_new(CONF_METHOD *meth)
Coverage:  57.143% (4/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/conf/conf_lib.c
Lines: 222-237
 57.143% (4/7)
163
EVP_Digest
Name: EVP_Digest
Prototype: int EVP_Digest(const void *data, size_t count, unsigned char *md, unsigned int *size, const EVP_MD *type, ENGINE *impl)
Coverage:  57.143% (4/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/evp/digest.c
Lines: 312-327
 57.143% (4/7)
91
EVP_CIPHER_set_asn1_iv
Name: EVP_CIPHER_set_asn1_iv
Prototype: int EVP_CIPHER_set_asn1_iv(EVP_CIPHER_CTX *c, ASN1_TYPE *type)
Coverage:  57.143% (4/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/evp/evp_lib.c
Lines: 115-130
 57.143% (4/7)
113
EC_EX_DATA_free_data
Name: EC_EX_DATA_free_data
Prototype: void EC_EX_DATA_free_data(EC_EXTRA_DATA ** ex_data, void *(*dup_func) (void *), void (*free_func) (void *), void (*clear_free_func) (void *))
Coverage:  57.143% (8/14)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/ec/ec_lib.c
Lines: 594-618
 57.143% (8/14)
174
BN_div_recp
Name: BN_div_recp
Prototype: int BN_div_recp(BIGNUM *dv, BIGNUM *rem, const BIGNUM *m, BN_RECP_CTX *recp, BN_CTX *ctx)
Coverage:  57.143% (36/63)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/bn/bn_recp.c
Lines: 141-234
 57.143% (36/63)
7219
BIO_nwrite
Name: BIO_nwrite
Prototype: int BIO_nwrite(BIO *bio, char **buf, int num)
Coverage:  57.143% (4/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/bio/bss_bio.c
Lines: 869-883
 57.143% (4/7)
83
BIO_nread
Name: BIO_nread
Prototype: int BIO_nread(BIO *bio, char **buf, int num)
Coverage:  57.143% (4/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/bio/bss_bio.c
Lines: 836-850
 57.143% (4/7)
83
ASN1_STRING_set_by_NID
Name: ASN1_STRING_set_by_NID
Prototype: ASN1_STRING * ASN1_STRING_set_by_NID(ASN1_STRING **out, const unsigned char *in, int inlen, int inform, int nid)
Coverage:  57.143% (8/14)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/asn1/a_strnid.c
Lines: 132-155
 57.143% (8/14)
265
compute_wNAF
Name: compute_wNAF
Prototype: static signed char * compute_wNAF(const BIGNUM * scalar, int w, size_t * ret_len)
Coverage:  56.923% (37/65)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/ec/ec_mult.c
Lines: 194-312
 56.923% (37/65)
7818
asn1_item_ex_combine_new
Name: asn1_item_ex_combine_new
Prototype: static int asn1_item_ex_combine_new(ASN1_VALUE **pval, const ASN1_ITEM *it, int combine)
Coverage:  56.818% (50/88)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/asn1/tasn_new.c
Lines: 90-209
 56.818% (50/88)
9831
X509V3_get_d2i
Name: X509V3_get_d2i
Prototype: void * X509V3_get_d2i(const struct stack_st_X509_EXTENSION *x, int nid, int *crit, int *idx)
Coverage:  56.818% (25/44)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/x509v3/v3_lib.c
Lines: 229-277
 56.818% (25/44)
5015
PKCS5_PBKDF2_HMAC
Name: PKCS5_PBKDF2_HMAC
Prototype: int PKCS5_PBKDF2_HMAC(const char *pass, int passlen, const unsigned char *salt, int saltlen, int iter, const EVP_MD *digest, int keylen, unsigned char *out)
Coverage:  56.818% (25/44)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/evp/p5_crpt2.c
Lines: 80-150
 56.818% (25/44)
6513
ASN1_time_tm_cmp
Name: ASN1_time_tm_cmp
Prototype: int ASN1_time_tm_cmp(struct tm *tm1, struct tm *tm2)
Coverage:  56.757% (21/37)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/asn1/a_time_tm.c
Lines: 32-60
 56.757% (21/37)
2513
bn_sqr_recursive
Name: bn_sqr_recursive
Prototype: void bn_sqr_recursive(unsigned long *r, const unsigned long *a, int n2, unsigned long *t)
Coverage:  56.667% (17/30)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/bn/bn_sqr.c
Lines: 203-285
 56.667% (17/30)
3910
ssl3_get_finished
Name: ssl3_get_finished
Prototype: int ssl3_get_finished(SSL *s, int a, int b)
Coverage:  56.522% (13/23)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/ssl/ssl_both.c
Lines: 243-302
 56.522% (13/23)
378
md_write
Name: md_write
Prototype: static int md_write(BIO *b, const char *in, int inl)
Coverage:  56.522% (13/23)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/evp/bio_md.c
Lines: 148-174
 56.522% (13/23)
317
SMIME_crlf_copy
Name: SMIME_crlf_copy
Prototype: int SMIME_crlf_copy(BIO *in, BIO *out, int flags)
Coverage:  56.522% (13/23)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/asn1/asn_mime.c
Lines: 532-566
 56.522% (13/23)
278
ssl3_get_message
Name: ssl3_get_message
Prototype: long ssl3_get_message(SSL *s, int st1, int stn, int mt, long max, int *ok)
Coverage:  56.338% (40/71)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/ssl/ssl_both.c
Lines: 444-578
 56.338% (40/71)
8521
tls_check_subject_altname
Name: tls_check_subject_altname
Prototype: static int tls_check_subject_altname(struct tls *ctx, X509 *cert, const char *name, int *alt_match, int *alt_exists)
Coverage:  56.250% (45/80)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/tls/tls_verify.c
Lines: 87-202
 56.250% (45/80)
25321
dtls1_hm_fragment_new
Name: dtls1_hm_fragment_new
Prototype: static hm_fragment * dtls1_hm_fragment_new(unsigned long frag_len, int reassembly)
Coverage:  56.250% (9/16)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/ssl/d1_both.c
Lines: 169-205
 56.250% (9/16)
516
BN_BLINDING_update
Name: BN_BLINDING_update
Prototype: int BN_BLINDING_update(BN_BLINDING *b, BN_CTX *ctx)
Coverage:  56.250% (18/32)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/bn/bn_blind.c
Lines: 191-222
 56.250% (18/32)
4710
ASN1_object_size
Name: ASN1_object_size
Prototype: int ASN1_object_size(int constructed, int length, int tag)
Coverage:  56.250% (9/16)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/asn1/asn1_lib.c
Lines: 263-286
 56.250% (9/16)
156
idea_encrypt
Name: idea_encrypt
Prototype: void idea_encrypt(unsigned long *d, IDEA_KEY_SCHEDULE *key)
Coverage:  56.204% (77/137)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/idea/i_cbc.c
Lines: 136-168
 56.204% (77/137)
2335
dtls1_reassemble_fragment
Name: dtls1_reassemble_fragment
Prototype: static int dtls1_reassemble_fragment(SSL *s, struct hm_header_st* msg_hdr, int *ok)
Coverage:  55.882% (38/68)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/ssl/d1_both.c
Lines: 578-675
 55.882% (38/68)
10322
tlsext_srtp_clienthello_parse
Name: tlsext_srtp_clienthello_parse
Prototype: int tlsext_srtp_clienthello_parse(SSL *s, CBS *cbs, int *alert)
Coverage:  55.769% (29/52)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/ssl/ssl_tlsext.c
Lines: 1038-1116
 55.769% (29/52)
5718
ASN1_item_sign_ctx
Name: ASN1_item_sign_ctx
Prototype: int ASN1_item_sign_ctx(const ASN1_ITEM *it, X509_ALGOR *algor1, X509_ALGOR *algor2, ASN1_BIT_STRING *signature, void *asn, EVP_MD_CTX *ctx)
Coverage:  55.769% (29/52)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/asn1/a_sign.c
Lines: 141-233
 55.769% (29/52)
8815
ssl_using_ecc_cipher
Name: ssl_using_ecc_cipher
Prototype: int ssl_using_ecc_cipher(SSL *s)
Coverage:  55.556% (5/9)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/ssl/ssl_lib.c
Lines: 2108-2119
 55.556% (5/9)
101
ssl_check_clienthello_tlsext_early
Name: ssl_check_clienthello_tlsext_early
Prototype: int ssl_check_clienthello_tlsext_early(SSL *s)
Coverage:  55.556% (10/18)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/ssl/t1_lib.c
Lines: 664-696
 55.556% (10/18)
237
md_read
Name: md_read
Prototype: static int md_read(BIO *b, char *out, int outl)
Coverage:  55.556% (10/18)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/evp/bio_md.c
Lines: 122-146
 55.556% (10/18)
266
X509_LOOKUP_new
Name: X509_LOOKUP_new
Prototype: X509_LOOKUP * X509_LOOKUP_new(X509_LOOKUP_METHOD *method)
Coverage:  55.556% (5/9)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/x509/x509_lu.c
Lines: 69-88
 55.556% (5/9)
353
Gost2814789_ecb_encrypt
Name: Gost2814789_ecb_encrypt
Prototype: void Gost2814789_ecb_encrypt(const unsigned char *in, unsigned char *out, GOST2814789_KEY *key, const int enc)
Coverage:  55.556% (5/9)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/gost/gost2814789.c
Lines: 168-181
 55.556% (5/9)
63
ERR_put_error
Name: ERR_put_error
Prototype: void ERR_put_error(int lib, int func, int reason, const char *file, int line)
Coverage:  55.556% (5/9)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/err/err.c
Lines: 728-745
 55.556% (5/9)
263
BIO_new_mem_buf
Name: BIO_new_mem_buf
Prototype: BIO * BIO_new_mem_buf(const void *buf, int len)
Coverage:  55.556% (5/9)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/bio/bss_mem.c
Lines: 96-118
 55.556% (5/9)
243
BN_mod_exp_recp
Name: BN_mod_exp_recp
Prototype: int BN_mod_exp_recp(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, const BIGNUM *m, BN_CTX *ctx)
Coverage:  55.238% (58/105)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/bn/bn_exp.c
Lines: 253-385
 55.238% (58/105)
9431
tls1_change_cipher_state_aead
Name: tls1_change_cipher_state_aead
Prototype: static int tls1_change_cipher_state_aead(SSL *s, char is_read, const unsigned char *key, unsigned key_len, const unsigned char *iv, unsigned iv_len)
Coverage:  55.172% (16/29)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/ssl/t1_enc.c
Lines: 392-444
 55.172% (16/29)
409
CRYPTO_ctr128_encrypt_ctr32
Name: CRYPTO_ctr128_encrypt_ctr32
Prototype: void CRYPTO_ctr128_encrypt_ctr32(const unsigned char *in, unsigned char *out, size_t len, const void *key, unsigned char ivec[16], unsigned char ecount_buf[16], unsigned int *num, ctr128_f func)
Coverage:  55.172% (16/29)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/modes/ctr128.c
Lines: 190-251
 55.172% (16/29)
359
CRYPTO_cfb128_encrypt
Name: CRYPTO_cfb128_encrypt
Prototype: void CRYPTO_cfb128_encrypt(const unsigned char *in, unsigned char *out, size_t len, const void *key, unsigned char ivec[16], int *num, int enc, block128_f block)
Coverage:  55.172% (32/58)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/modes/cfb128.c
Lines: 66-169
 55.172% (32/58)
6418
BN_mod_exp_mont_word
Name: BN_mod_exp_mont_word
Prototype: int BN_mod_exp_mont_word(BIGNUM *rr, unsigned long a, const BIGNUM *p, const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *in_mont)
Coverage:  55.118% (70/127)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/bn/bn_exp.c
Lines: 907-1056
 55.118% (70/127)
11634
ec_GFp_simple_mul_ct
Name: ec_GFp_simple_mul_ct
Prototype: static int ec_GFp_simple_mul_ct(const EC_GROUP *group, EC_POINT *r, const BIGNUM *scalar, const EC_POINT *point, BN_CTX *ctx)
Coverage:  55.085% (65/118)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/ec/ecp_smpl.c
Lines: 1453-1634
 55.085% (65/118)
14427
tlsext_ecpf_parse
Name: tlsext_ecpf_parse
Prototype: static int tlsext_ecpf_parse(SSL *s, CBS *cbs, int *alert)
Coverage:  55.000% (11/20)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/ssl/ssl_tlsext.c
Lines: 316-347
 55.000% (11/20)
188
ec_GF2m_simple_point_get_affine_coordinates
Name: ec_GF2m_simple_point_get_affine_coordinates
Prototype: int ec_GF2m_simple_point_get_affine_coordinates(const EC_GROUP *group, const EC_POINT *point, BIGNUM *x, BIGNUM *y, BN_CTX *ctx)
Coverage:  55.000% (11/20)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/ec/ec2_smpl.c
Lines: 405-433
 55.000% (11/20)
218
ec_GF2m_simple_group_get_curve
Name: ec_GF2m_simple_group_get_curve
Prototype: int ec_GF2m_simple_group_get_curve(const EC_GROUP *group, BIGNUM *p, BIGNUM *a, BIGNUM *b, BN_CTX *ctx)
Coverage:  55.000% (11/20)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/ec/ec2_smpl.c
Lines: 239-261
 55.000% (11/20)
188
EVP_PKEY_sign
Name: EVP_PKEY_sign
Prototype: int EVP_PKEY_sign(EVP_PKEY_CTX *ctx, unsigned char *sig, size_t *siglen, const unsigned char *tbs, size_t tbslen)
Coverage:  55.000% (11/20)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/evp/pmeth_fn.c
Lines: 102-116
 55.000% (11/20)
86
EVP_PKEY_encrypt
Name: EVP_PKEY_encrypt
Prototype: int EVP_PKEY_encrypt(EVP_PKEY_CTX *ctx, unsigned char *out, size_t *outlen, const unsigned char *in, size_t inlen)
Coverage:  55.000% (11/20)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/evp/pmeth_fn.c
Lines: 203-217
 55.000% (11/20)
86
EVP_PKEY_decrypt
Name: EVP_PKEY_decrypt
Prototype: int EVP_PKEY_decrypt(EVP_PKEY_CTX *ctx, unsigned char *out, size_t *outlen, const unsigned char *in, size_t inlen)
Coverage:  55.000% (11/20)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/evp/pmeth_fn.c
Lines: 237-251
 55.000% (11/20)
86
EVP_DecryptFinal_ex
Name: EVP_DecryptFinal_ex
Prototype: int EVP_DecryptFinal_ex(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl)
Coverage:  55.000% (22/40)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/evp/evp_enc.c
Lines: 485-537
 55.000% (22/40)
4112
asn1_item_ex_d2i
Name: asn1_item_ex_d2i
Prototype: static int asn1_item_ex_d2i(ASN1_VALUE **pval, const unsigned char **in, long len, const ASN1_ITEM *it, int tag, int aclass, char opt, ASN1_TLC *ctx, int depth)
Coverage:  54.945% (100/182)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/asn1/tasn_dec.c
Lines: 159-460
 54.945% (100/182)
23257
BN_mod_exp_mont_internal
Name: BN_mod_exp_mont_internal
Prototype: static int BN_mod_exp_mont_internal(BIGNUM *rr, const BIGNUM *a, const BIGNUM *p, const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *in_mont, int ct)
Coverage:  54.688% (70/128)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/bn/bn_exp.c
Lines: 387-537
 54.688% (70/128)
12236
tlsext_ri_clienthello_parse
Name: tlsext_ri_clienthello_parse
Prototype: int tlsext_ri_clienthello_parse(SSL *s, CBS *cbs, int *alert)
Coverage:  54.545% (6/11)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/ssl/ssl_tlsext.c
Lines: 413-439
 54.545% (6/11)
165
tls_conninfo_cert_pem
Name: tls_conninfo_cert_pem
Prototype: static int tls_conninfo_cert_pem(struct tls *ctx)
Coverage:  54.545% (12/22)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/tls/tls_conninfo.c
Lines: 181-220
 54.545% (12/22)
398
ssl3_write_bytes
Name: ssl3_write_bytes
Prototype: int ssl3_write_bytes(SSL *s, int type, const void *buf_, int len)
Coverage:  54.545% (18/33)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/ssl/ssl_pkt.c
Lines: 564-620
 54.545% (18/33)
3310
sk_new
Name: sk_new
Prototype: _STACK * sk_new(int (*c)(const void *, const void *))
Coverage:  54.545% (6/11)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/stack/stack.c
Lines: 115-136
 54.545% (6/11)
315
ASN1_INTEGER_get
Name: ASN1_INTEGER_get
Prototype: long ASN1_INTEGER_get(const ASN1_INTEGER *a)
Coverage:  54.545% (12/22)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/asn1/a_int.c
Lines: 378-406
 54.545% (12/22)
238
ssl3_get_record
Name: ssl3_get_record
Prototype: static int ssl3_get_record(SSL *s)
Coverage:  54.455% (55/101)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/ssl/ssl_pkt.c
Lines: 327-559
 54.455% (55/101)
13027
BN_mod_inverse_no_branch
Name: BN_mod_inverse_no_branch
Prototype: static BIGNUM * BN_mod_inverse_no_branch(BIGNUM *in, const BIGNUM *a, const BIGNUM *n, BN_CTX *ctx)
Coverage:  54.444% (49/90)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/bn/bn_gcd.c
Lines: 566-723
 54.444% (49/90)
10926
asn1_ex_i2c
Name: asn1_ex_i2c
Prototype: static int asn1_ex_i2c(ASN1_VALUE **pval, unsigned char *cout, int *putype, const ASN1_ITEM *it)
Coverage:  54.430% (43/79)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/asn1/tasn_enc.c
Lines: 533-652
 54.430% (43/79)
7936
BN_is_prime_fasttest_ex
Name: BN_is_prime_fasttest_ex
Prototype: int BN_is_prime_fasttest_ex(const BIGNUM *a, int checks, BN_CTX *ctx_passed, int do_trial_division, BN_GENCB *cb)
Coverage:  54.331% (69/127)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/bn/bn_prime.c
Lines: 258-366
 54.331% (69/127)
10732
BN_mod_exp2_mont
Name: BN_mod_exp2_mont
Prototype: int BN_mod_exp2_mont(BIGNUM *rr, const BIGNUM *a1, const BIGNUM *p1, const BIGNUM *a2, const BIGNUM *p2, const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *in_mont)
Coverage:  54.070% (93/172)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/bn/bn_exp2.c
Lines: 120-308
 54.070% (93/172)
16447
ssl_bytes_to_cipher_list
Name: ssl_bytes_to_cipher_list
Prototype: struct stack_st_SSL_CIPHER * ssl_bytes_to_cipher_list(SSL *s, CBS *cbs)
Coverage:  53.846% (21/39)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/ssl/ssl_lib.c
Lines: 1450-1522
 53.846% (21/39)
5813
ssl3_do_write
Name: ssl3_do_write
Prototype: int ssl3_do_write(SSL *s, int type)
Coverage:  53.846% (7/13)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/ssl/ssl_both.c
Lines: 134-164
 53.846% (7/13)
175
ll_append_head
Name: ll_append_head
Prototype: static void ll_append_head(CIPHER_ORDER **head, CIPHER_ORDER *curr, CIPHER_ORDER **tail)
Coverage:  53.846% (7/13)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/ssl/ssl_ciph.c
Lines: 698-714
 53.846% (7/13)
205
gcm_init_4bit
Name: gcm_init_4bit
Prototype: static void gcm_init_4bit(u128 Htable[16], u64 H[2])
Coverage:  53.846% (7/13)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/modes/gcm128.c
Lines: 255-324
 53.846% (7/13)
254
aead_chacha20_poly1305_init
Name: aead_chacha20_poly1305_init
Prototype: static int aead_chacha20_poly1305_init(EVP_AEAD_CTX *ctx, const unsigned char *key, size_t key_len, size_t tag_len)
Coverage:  53.846% (7/13)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/evp/e_chacha20poly1305.c
Lines: 45-72
 53.846% (7/13)
175
X509_check_trust
Name: X509_check_trust
Prototype: int X509_check_trust(X509 *x, int id, int flags)
Coverage:  53.846% (7/13)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/x509/x509_trs.c
Lines: 111-140
 53.846% (7/13)
195
X509_INFO_free
Name: X509_INFO_free
Prototype: void X509_INFO_free(X509_INFO *x)
Coverage:  53.846% (7/13)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/asn1/x_info.c
Lines: 88-107
 53.846% (7/13)
195
PKCS8_pkey_set0
Name: PKCS8_pkey_set0
Prototype: int PKCS8_pkey_set0(PKCS8_PRIV_KEY_INFO *priv, ASN1_OBJECT *aobj, int version, int ptype, void *pval, unsigned char *penc, int penclen)
Coverage:  53.846% (7/13)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/asn1/p8_pkey.c
Lines: 141-154
 53.846% (7/13)
105
EVP_CIPHER_get_asn1_iv
Name: EVP_CIPHER_get_asn1_iv
Prototype: int EVP_CIPHER_get_asn1_iv(EVP_CIPHER_CTX *c, ASN1_TYPE *type)
Coverage:  53.846% (7/13)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/evp/evp_lib.c
Lines: 94-113
 53.846% (7/13)
155
Page:<>1
Condition %: 100.000% (4/4)
...10
Condition %: 100.000% (4/4)
...13
Condition %:  80.000% (8/10)
14
Condition %:  73.333% (22/30)
15
Condition %:  68.000% (17/25)
16
Condition %:  63.265% (31/49)
1718
Condition %:  53.846% (7/13)
19
Condition %:  50.000% (2/4)
20
Condition %:  50.000% (2/4)
21
Condition %:  50.000% (2/4)
...30
Condition %:  0.000% (0/19)
...40
Condition %:  0.000% (0/1)
...60
Condition %:  0.000% (0/6)

Generated by Squish Coco 4.2.2