OpenCoverage

LibreSSL Portable Test Coverage

Function Tree

Page:<>1
Condition %:  0.000% (0/1)
...10
Condition %:  0.000% (0/68)
...20
Condition %:  0.000% (0/30)
...30
Condition %:  0.000% (0/1)
...40
Condition %:  47.368% (9/19)
...44
Condition %:  56.250% (45/80)
45
Condition %:  60.000% (6/10)
46
Condition %:  66.667% (2/3)
47
Condition %:  71.429% (5/7)
4849
Condition %:  85.714% (6/7)
50
Condition %: 100.000% (1/1)
51
Condition %: 100.000% (4/4)
52
Condition %: 100.000% (1/1)
...60
Condition %: 100.000% (4/4)
FunctionCondition %▴eLOC - Effective Lines of CodeMcCabe - Cyclomatic Complexity
asn1_item_combine_free
Name: asn1_item_combine_free
Prototype: static void asn1_item_combine_free(ASN1_VALUE **pval, const ASN1_ITEM *it, int combine)
Coverage:  75.000% (54/72)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/asn1/tasn_fre.c
Lines: 82-171
 75.000% (54/72)
10124
by_dir_entry_free
Name: by_dir_entry_free
Prototype: static void by_dir_entry_free(BY_DIR_ENTRY *ent)
Coverage:  75.000% (3/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/x509/by_dir.c
Lines: 178-185
 75.000% (3/4)
42
cbs_get_u
Name: cbs_get_u
Prototype: static int cbs_get_u(CBS *cbs, uint32_t *out, size_t len)
Coverage:  75.000% (9/12)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/ssl/bs_cbs.c
Lines: 135-154
 75.000% (9/12)
124
chacha_init
Name: chacha_init
Prototype: static int chacha_init(EVP_CIPHER_CTX *ctx, const unsigned char *key, const unsigned char *iv, int enc)
Coverage:  75.000% (3/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/evp/e_chacha.c
Lines: 50-59
 75.000% (3/4)
112
def_load
Name: def_load
Prototype: static int def_load(CONF *conf, const char *name, long *line)
Coverage:  75.000% (6/8)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/conf/conf_def.c
Lines: 189-208
 75.000% (6/8)
173
file_free
Name: file_free
Prototype: static int file_free(BIO *a)
Coverage:  75.000% (9/12)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/bio/bss_file.c
Lines: 167-181
 75.000% (9/12)
194
impl_check
Name: impl_check
Prototype: static void impl_check(void)
Coverage:  75.000% (3/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/ex_data.c
Lines: 201-208
 75.000% (3/4)
42
int
Name: int
Prototype: int (*sk_set_cmp_func(_STACK *sk, int (*c)(const void *, const void *)))( const void *, const void *)
Coverage:  75.000% (3/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/stack/stack.c
Lines: 70-81
 75.000% (3/4)
52
int_err_del
Name: int_err_del
Prototype: static void int_err_del(void)
Coverage:  75.000% (3/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/err/err.c
Lines: 371-380
 75.000% (3/4)
92
pkey_rsa_cleanup
Name: pkey_rsa_cleanup
Prototype: static void pkey_rsa_cleanup(EVP_PKEY_CTX *ctx)
Coverage:  75.000% (3/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/rsa/rsa_pmeth.c
Lines: 151-161
 75.000% (3/4)
52
ssl3_setup_read_buffer
Name: ssl3_setup_read_buffer
Prototype: int ssl3_setup_read_buffer(SSL *s)
Coverage:  75.000% (9/12)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/ssl/ssl_both.c
Lines: 690-718
 75.000% (9/12)
215
ssl3_take_mac
Name: ssl3_take_mac
Prototype: static void ssl3_take_mac(SSL *s)
Coverage:  75.000% (6/8)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/ssl/ssl_both.c
Lines: 217-241
 75.000% (6/8)
143
tls1_cbc_remove_padding
Name: tls1_cbc_remove_padding
Prototype: int tls1_cbc_remove_padding(const SSL* s, SSL3_RECORD *rec, unsigned block_size, unsigned mac_size)
Coverage:  75.000% (12/16)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/ssl/s3_cbc.c
Lines: 115-175
 75.000% (12/16)
286
tls_handshake_server
Name: tls_handshake_server
Prototype: int tls_handshake_server(struct tls *ctx)
Coverage:  75.000% (6/8)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/tls/tls_server.c
Lines: 428-452
 75.000% (6/8)
134
ssl3_choose_cipher
Name: ssl3_choose_cipher
Prototype: SSL_CIPHER * ssl3_choose_cipher(SSL *s, struct stack_st_SSL_CIPHER *clnt, struct stack_st_SSL_CIPHER *srvr)
Coverage:  75.676% (28/37)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/ssl/s3_lib.c
Lines: 2282-2350
 75.676% (28/37)
378
BN_from_montgomery_word
Name: BN_from_montgomery_word
Prototype: static int BN_from_montgomery_word(BIGNUM *ret, BIGNUM *r, BN_MONT_CTX *mont)
Coverage:  76.190% (32/42)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/bn/bn_mont.c
Lines: 179-272
 76.190% (32/42)
5814
EVP_EncodeUpdate
Name: EVP_EncodeUpdate
Prototype: int EVP_EncodeUpdate(EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl, const unsigned char *in, int inl)
Coverage:  76.190% (16/21)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/evp/encode.c
Lines: 123-171
 76.190% (16/21)
377
tls1_enc
Name: tls1_enc
Prototype: int tls1_enc(SSL *s, int send)
Coverage:  76.429% (107/140)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/ssl/t1_enc.c
Lines: 720-966
 76.429% (107/140)
17938
get_attribute
Name: get_attribute
Prototype: static ASN1_TYPE * get_attribute(struct stack_st_X509_ATTRIBUTE *sk, int nid)
Coverage:  76.471% (13/17)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/pkcs7/pk7_doit.c
Lines: 1116-1136
 76.471% (13/17)
255
pqueue_insert
Name: pqueue_insert
Prototype: pitem * pqueue_insert(pqueue_s *pq, pitem *item)
Coverage:  76.471% (13/17)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/ssl/pqueue.c
Lines: 104-137
 76.471% (13/17)
376
tls_config_parse_protocols
Name: tls_config_parse_protocols
Prototype: int tls_config_parse_protocols(uint32_t *protocols, const char *protostr)
Coverage:  76.667% (46/60)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/tls/tls_config.c
Lines: 199-260
 76.667% (46/60)
14816
bnrand
Name: bnrand
Prototype: static int bnrand(int pseudorand, BIGNUM *rnd, int bits, int top, int bottom)
Coverage:  76.744% (33/43)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/bn/bn_rand.c
Lines: 121-192
 76.744% (33/43)
5215
BN_print
Name: BN_print
Prototype: int BN_print(BIO *bp, const BIGNUM *a)
Coverage:  76.923% (20/26)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/bn/bn_print.c
Lines: 366-391
 76.923% (20/26)
158
CBS_get_optional_asn1_uint64
Name: CBS_get_optional_asn1_uint64
Prototype: int CBS_get_optional_asn1_uint64(CBS *cbs, uint64_t *out, unsigned int tag, uint64_t default_value)
Coverage:  76.923% (10/13)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/ssl/bs_cbs.c
Lines: 462-480
 76.923% (10/13)
104
Gost2814789_set_sbox
Name: Gost2814789_set_sbox
Prototype: int Gost2814789_set_sbox(GOST2814789_KEY *key, int nid)
Coverage:  76.923% (10/13)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/gost/gost89_params.c
Lines: 182-213
 76.923% (10/13)
275
SSL_CTX_free
Name: SSL_CTX_free
Prototype: void SSL_CTX_free(SSL_CTX *ctx)
Coverage:  76.923% (10/13)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/ssl/ssl_lib.c
Lines: 1935-1988
 76.923% (10/13)
295
by_file_ctrl
Name: by_file_ctrl
Prototype: static int by_file_ctrl(X509_LOOKUP *ctx, int cmd, const char *argp, long argl, char **ret)
Coverage:  76.923% (10/13)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/x509/by_file.c
Lines: 92-118
 76.923% (10/13)
155
ssl_get_handshake_evp_md
Name: ssl_get_handshake_evp_md
Prototype: int ssl_get_handshake_evp_md(SSL *s, const EVP_MD **md)
Coverage:  76.923% (10/13)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/ssl/ssl_ciph.c
Lines: 649-675
 76.923% (10/13)
187
tls1_mac
Name: tls1_mac
Prototype: int tls1_mac(SSL *ssl, unsigned char *md, int send)
Coverage:  77.143% (27/35)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/ssl/t1_enc.c
Lines: 988-1068
 77.143% (27/35)
549
SHA512_Update
Name: SHA512_Update
Prototype: int SHA512_Update (SHA512_CTX *c, const void *_data, size_t len)
Coverage:  77.273% (17/22)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/sha/sha512.c
Lines: 178-227
 77.273% (17/22)
238
b64_read
Name: b64_read
Prototype: static int b64_read(BIO *b, char *out, int outl)
Coverage:  77.500% (93/120)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/evp/bio_b64.c
Lines: 148-348
 77.500% (93/120)
13535
BN_mul
Name: BN_mul
Prototype: int BN_mul(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx)
Coverage:  77.528% (69/89)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/bn/bn_mul.c
Lines: 939-1098
 77.528% (69/89)
8424
EVP_PKEY_CTX_free
Name: EVP_PKEY_CTX_free
Prototype: void EVP_PKEY_CTX_free(EVP_PKEY_CTX *ctx)
Coverage:  77.778% (7/9)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/evp/pmeth_lib.c
Lines: 386-399
 77.778% (7/9)
103
SSL_get_peer_cert_chain
Name: SSL_get_peer_cert_chain
Prototype: struct stack_st_X509 * SSL_get_peer_cert_chain(const SSL *s)
Coverage:  77.778% (7/9)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/ssl/ssl_lib.c
Lines: 829-846
 77.778% (7/9)
222
bio_write
Name: bio_write
Prototype: static int bio_write(BIO *bio, const char *buf, int num_)
Coverage:  77.778% (21/27)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/bio/bss_bio.c
Lines: 330-400
 77.778% (21/27)
568
DES_cfb_encrypt
Name: DES_cfb_encrypt
Prototype: void DES_cfb_encrypt(const unsigned char *in, unsigned char *out, int numbits, long length, DES_key_schedule *schedule, DES_cblock *ivec, int enc)
Coverage:  78.095% (82/105)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/des/cfb_enc.c
Lines: 70-188
 78.095% (82/105)
6045
bn_cmp_words
Name: bn_cmp_words
Prototype: int bn_cmp_words(const unsigned long *a, const unsigned long *b, int n)
Coverage:  78.571% (11/14)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/bn/bn_lib.c
Lines: 790-807
 78.571% (11/14)
124
SHA512_Final
Name: SHA512_Final
Prototype: int SHA512_Final (unsigned char *md, SHA512_CTX *c)
Coverage:  78.947% (15/19)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/sha/sha512.c
Lines: 97-173
 78.947% (15/19)
518
bn_cmp_part_words
Name: bn_cmp_part_words
Prototype: int bn_cmp_part_words(const unsigned long *a, const unsigned long *b, int cl, int dl)
Coverage:  78.947% (15/19)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/bn/bn_lib.c
Lines: 816-836
 78.947% (15/19)
117
BN_div_internal
Name: BN_div_internal
Prototype: static int BN_div_internal(BIGNUM *dv, BIGNUM *rm, const BIGNUM *num, const BIGNUM *divisor, BN_CTX *ctx, int ct)
Coverage:  79.856% (111/139)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/bn/bn_div.c
Lines: 119-379
 79.856% (111/139)
14440
BN_GF2m_mod_mul_arr
Name: BN_GF2m_mod_mul_arr
Prototype: int BN_GF2m_mod_mul_arr(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, const int p[], BN_CTX *ctx)
Coverage:  80.000% (32/40)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/bn/bn_gf2m.c
Lines: 485-532
 80.000% (32/40)
3013
BN_nnmod
Name: BN_nnmod
Prototype: int BN_nnmod(BIGNUM *r, const BIGNUM *m, const BIGNUM *d, BN_CTX *ctx)
Coverage:  80.000% (8/10)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/bn/bn_mod.c
Lines: 118-133
 80.000% (8/10)
114
CRYPTO_cts128_decrypt
Name: CRYPTO_cts128_decrypt
Prototype: size_t CRYPTO_cts128_decrypt(const unsigned char *in, unsigned char *out, size_t len, const void *key, unsigned char ivec[16], cbc128_f cbc)
Coverage:  80.000% (8/10)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/modes/cts128.c
Lines: 208-234
 80.000% (8/10)
144
CRYPTO_cts128_encrypt_block
Name: CRYPTO_cts128_encrypt_block
Prototype: size_t CRYPTO_cts128_encrypt_block(const unsigned char *in, unsigned char *out, size_t len, const void *key, unsigned char ivec[16], block128_f block)
Coverage:  80.000% (8/10)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/modes/cts128.c
Lines: 32-55
 80.000% (8/10)
134
CRYPTO_nistcts128_decrypt
Name: CRYPTO_nistcts128_decrypt
Prototype: size_t CRYPTO_nistcts128_decrypt(const unsigned char *in, unsigned char *out, size_t len, const void *key, unsigned char ivec[16], cbc128_f cbc)
Coverage:  80.000% (8/10)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/modes/cts128.c
Lines: 236-267
 80.000% (8/10)
174
CRYPTO_nistcts128_encrypt_block
Name: CRYPTO_nistcts128_encrypt_block
Prototype: size_t CRYPTO_nistcts128_encrypt_block(const unsigned char *in, unsigned char *out, size_t len, const void *key, unsigned char ivec[16], block128_f block)
Coverage:  80.000% (8/10)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/modes/cts128.c
Lines: 57-81
 80.000% (8/10)
134
EVP_PKEY_free
Name: EVP_PKEY_free
Prototype: void EVP_PKEY_free(EVP_PKEY *x)
Coverage:  80.000% (8/10)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/evp/p_lib.c
Lines: 443-459
 80.000% (8/10)
124
RSA_padding_add_PKCS1_type_2
Name: RSA_padding_add_PKCS1_type_2
Prototype: int RSA_padding_add_PKCS1_type_2(unsigned char *to, int tlen, const unsigned char *from, int flen)
Coverage:  80.000% (8/10)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/rsa/rsa_pk1.c
Lines: 143-174
 80.000% (8/10)
174
X509_STORE_free
Name: X509_STORE_free
Prototype: void X509_STORE_free(X509_STORE *vfy)
Coverage:  80.000% (8/10)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/x509/x509_lu.c
Lines: 242-268
 80.000% (8/10)
204
X509_check_purpose
Name: X509_check_purpose
Prototype: int X509_check_purpose(X509 *x, int id, int ca)
Coverage:  80.000% (8/10)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/x509v3/v3_purp.c
Lines: 125-143
 80.000% (8/10)
134
asn1_i2d_ex_primitive
Name: asn1_i2d_ex_primitive
Prototype: static int asn1_i2d_ex_primitive(ASN1_VALUE **pval, unsigned char **out, const ASN1_ITEM *it, int tag, int aclass)
Coverage:  80.000% (24/30)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/asn1/tasn_enc.c
Lines: 472-529
 80.000% (24/30)
319
bn_sqr_words
Name: bn_sqr_words
Prototype: void bn_sqr_words(unsigned long *r, const unsigned long *a, int n)
Coverage:  80.000% (8/10)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/bn/bn_asm.c
Lines: 132-156
 80.000% (8/10)
184
dtls1_clear
Name: dtls1_clear
Prototype: void dtls1_clear(SSL *s)
Coverage:  80.000% (8/10)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/ssl/d1_lib.c
Lines: 200-244
 80.000% (8/10)
344
find_issuer
Name: find_issuer
Prototype: static X509 * find_issuer(X509_STORE_CTX *ctx, struct stack_st_X509 *sk, X509 *x)
Coverage:  80.000% (8/10)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/x509/x509_vfy.c
Lines: 564-579
 80.000% (8/10)
134
gost2814789_md_ctrl
Name: gost2814789_md_ctrl
Prototype: static int gost2814789_md_ctrl(EVP_MD_CTX *ctx, int cmd, int p1, void *p2)
Coverage:  80.000% (4/5)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/evp/m_gost2814789.c
Lines: 78-90
 80.000% (4/5)
53
is_eoc
Name: is_eoc
Prototype: static char is_eoc(size_t header_len, CBS *contents)
Coverage:  80.000% (4/5)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/ssl/bs_ber.c
Lines: 103-109
 80.000% (4/5)
21
lh_delete
Name: lh_delete
Prototype: void * lh_delete(_LHASH *lh, const void *data)
Coverage:  80.000% (8/10)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/lhash/lhash.c
Lines: 218-245
 80.000% (8/10)
243
sock_read
Name: sock_read
Prototype: static int sock_read(BIO *b, char *out, int outl)
Coverage:  80.000% (8/10)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/bio/bss_sock.c
Lines: 131-146
 80.000% (8/10)
134
ssl3_packet_extend
Name: ssl3_packet_extend
Prototype: int ssl3_packet_extend(SSL *s, int plen)
Coverage:  80.000% (8/10)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/ssl/ssl_pkt.c
Lines: 300-316
 80.000% (8/10)
104
ssl_has_ecc_ciphers
Name: ssl_has_ecc_ciphers
Prototype: int ssl_has_ecc_ciphers(SSL *s)
Coverage:  80.000% (12/15)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/ssl/ssl_lib.c
Lines: 1285-1309
 80.000% (12/15)
175
ssl_sess_cert_free
Name: ssl_sess_cert_free
Prototype: void ssl_sess_cert_free(SESS_CERT *sc)
Coverage:  80.000% (8/10)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/ssl/ssl_cert.c
Lines: 378-399
 80.000% (8/10)
154
tls1_get_client_method
Name: tls1_get_client_method
Prototype: const SSL_METHOD * tls1_get_client_method(int ver)
Coverage:  80.000% (8/10)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/ssl/t1_clnt.c
Lines: 183-193
 80.000% (8/10)
114
tls1_get_server_method
Name: tls1_get_server_method
Prototype: const SSL_METHOD * tls1_get_server_method(int ver)
Coverage:  80.000% (8/10)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/ssl/t1_srvr.c
Lines: 184-194
 80.000% (8/10)
114
tlsext_alpn_clienthello_needs
Name: tlsext_alpn_clienthello_needs
Prototype: int tlsext_alpn_clienthello_needs(SSL *s)
Coverage:  80.000% (4/5)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/ssl/ssl_tlsext.c
Lines: 30-36
 80.000% (4/5)
61
tlsext_ocsp_clienthello_needs
Name: tlsext_ocsp_clienthello_needs
Prototype: int tlsext_ocsp_clienthello_needs(SSL *s)
Coverage:  80.000% (4/5)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/ssl/ssl_tlsext.c
Lines: 715-720
 80.000% (4/5)
21
tlsext_sessionticket_serverhello_needs
Name: tlsext_sessionticket_serverhello_needs
Prototype: int tlsext_sessionticket_serverhello_needs(SSL *s)
Coverage:  80.000% (4/5)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/ssl/ssl_tlsext.c
Lines: 952-957
 80.000% (4/5)
61
bio_read
Name: bio_read
Prototype: static int bio_read(BIO *bio, char *buf, int size_)
Coverage:  80.556% (29/36)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/bio/bss_bio.c
Lines: 171-249
 80.556% (29/36)
6811
BN_sqr
Name: BN_sqr
Prototype: int BN_sqr(BIGNUM *r, const BIGNUM *a, BN_CTX *ctx)
Coverage:  80.851% (38/47)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/bn/bn_sqr.c
Lines: 66-153
 80.851% (38/47)
5513
CBS_get_optional_asn1_octet_string
Name: CBS_get_optional_asn1_octet_string
Prototype: int CBS_get_optional_asn1_octet_string(CBS *cbs, CBS *out, int *out_present, unsigned int tag)
Coverage:  81.250% (13/16)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/ssl/bs_cbs.c
Lines: 439-460
 81.250% (13/16)
165
BN_GF2m_poly2arr
Name: BN_GF2m_poly2arr
Prototype: int BN_GF2m_poly2arr(const BIGNUM *a, int p[], int max)
Coverage:  81.818% (18/22)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/bn/bn_gf2m.c
Lines: 1270-1300
 81.818% (18/22)
188
BN_rshift1
Name: BN_rshift1
Prototype: int BN_rshift1(BIGNUM *r, const BIGNUM *a)
Coverage:  81.818% (18/22)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/bn/bn_shift.c
Lines: 98-132
 81.818% (18/22)
256
CRYPTO_gcm128_finish
Name: CRYPTO_gcm128_finish
Prototype: int CRYPTO_gcm128_finish(GCM128_CONTEXT *ctx,const unsigned char *tag, size_t len)
Coverage:  81.818% (9/11)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/modes/gcm128.c
Lines: 1501-1541
 81.818% (9/11)
153
EC_get_builtin_curves
Name: EC_get_builtin_curves
Prototype: size_t EC_get_builtin_curves(EC_builtin_curve * r, size_t nitems)
Coverage:  81.818% (9/11)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/ec/ec_curve.c
Lines: 3277-3293
 81.818% (9/11)
123
RC2_set_key
Name: RC2_set_key
Prototype: void RC2_set_key(RC2_KEY *key, int len, const unsigned char *data, int bits)
Coverage:  81.818% (18/22)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/rc2/rc2_skey.c
Lines: 94-138
 81.818% (18/22)
278
SSL_free
Name: SSL_free
Prototype: void SSL_free(SSL *s)
Coverage:  81.818% (18/22)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/ssl/ssl_lib.c
Lines: 494-565
 81.818% (18/22)
528
bn_expand_internal
Name: bn_expand_internal
Prototype: static unsigned long * bn_expand_internal(const BIGNUM *b, int words)
Coverage:  81.818% (18/22)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/bn/bn_lib.c
Lines: 264-326
 81.818% (18/22)
549
lh_insert
Name: lh_insert
Prototype: void * lh_insert(_LHASH *lh, void *data)
Coverage:  81.818% (9/11)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/lhash/lhash.c
Lines: 181-216
 81.818% (9/11)
384
BN_lshift1
Name: BN_lshift1
Prototype: int BN_lshift1(BIGNUM *r, const BIGNUM *a)
Coverage:  82.609% (19/23)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/bn/bn_shift.c
Lines: 64-96
 82.609% (19/23)
246
ssl_cipher_strength_sort
Name: ssl_cipher_strength_sort
Prototype: static int ssl_cipher_strength_sort(CIPHER_ORDER **head_p, CIPHER_ORDER **tail_p)
Coverage:  82.609% (19/23)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/ssl/ssl_ciph.c
Lines: 989-1034
 82.609% (19/23)
278
ASN1_primitive_free
Name: ASN1_primitive_free
Prototype: void ASN1_primitive_free(ASN1_VALUE **pval, const ASN1_ITEM *it)
Coverage:  82.927% (34/41)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/asn1/tasn_fre.c
Lines: 192-246
 82.927% (34/41)
4214
BN_uadd
Name: BN_uadd
Prototype: int BN_uadd(BIGNUM *r, const BIGNUM *a, const BIGNUM *b)
Coverage:  83.333% (10/12)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/bn/bn_add.c
Lines: 97-144
 83.333% (10/12)
324
CBB_add_space
Name: CBB_add_space
Prototype: int CBB_add_space(CBB *cbb, uint8_t **out_data, size_t len)
Coverage:  83.333% (5/6)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/ssl/bs_cbb.c
Lines: 372-379
 83.333% (5/6)
32
EVP_PKEY_missing_parameters
Name: EVP_PKEY_missing_parameters
Prototype: int EVP_PKEY_missing_parameters(const EVP_PKEY *pkey)
Coverage:  83.333% (5/6)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/evp/p_lib.c
Lines: 146-152
 83.333% (5/6)
32
Gost2814789_encrypt_mesh
Name: Gost2814789_encrypt_mesh
Prototype: static inline void Gost2814789_encrypt_mesh(unsigned char *iv, GOST2814789_KEY *key)
Coverage:  83.333% (5/6)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/gost/gost2814789.c
Lines: 183-193
 83.333% (5/6)
62
Gost2814789_mac_mesh
Name: Gost2814789_mac_mesh
Prototype: static inline void Gost2814789_mac_mesh(const unsigned char *data, unsigned char *mac, GOST2814789_KEY *key)
Coverage:  83.333% (5/6)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/gost/gost2814789.c
Lines: 195-205
 83.333% (5/6)
52
dtls1_start_timer
Name: dtls1_start_timer
Prototype: void dtls1_start_timer(SSL *s)
Coverage:  83.333% (5/6)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/ssl/d1_lib.c
Lines: 291-307
 83.333% (5/6)
102
eat_ws
Name: eat_ws
Prototype: static char * eat_ws(CONF *conf, char *p)
Coverage:  83.333% (5/6)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/conf/conf_def.c
Lines: 599-605
 83.333% (5/6)
32
lh_strhash
Name: lh_strhash
Prototype: unsigned long lh_strhash(const char *c)
Coverage:  83.333% (10/12)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/lhash/lhash.c
Lines: 430-451
 83.333% (10/12)
194
pqueue_next
Name: pqueue_next
Prototype: pitem * pqueue_next(pitem **item)
Coverage:  83.333% (5/6)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/ssl/pqueue.c
Lines: 175-188
 83.333% (5/6)
162
sk_sort
Name: sk_sort
Prototype: void sk_sort(_STACK *st)
Coverage:  83.333% (5/6)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/stack/stack.c
Lines: 319-334
 83.333% (5/6)
52
ssl3_get_cipher_by_id
Name: ssl3_get_cipher_by_id
Prototype: const SSL_CIPHER * ssl3_get_cipher_by_id(unsigned int id)
Coverage:  83.333% (5/6)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/ssl/s3_lib.c
Lines: 1357-1369
 83.333% (5/6)
152
tlsext_sessionticket_clienthello_needs
Name: tlsext_sessionticket_clienthello_needs
Prototype: int tlsext_sessionticket_clienthello_needs(SSL *s)
Coverage:  83.333% (10/12)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/ssl/ssl_tlsext.c
Lines: 867-886
 83.333% (10/12)
184
BN_GF2m_mod_arr
Name: BN_GF2m_mod_arr
Prototype: int BN_GF2m_mod_arr(BIGNUM *r, const BIGNUM *a, const int p[])
Coverage:  83.929% (47/56)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/bn/bn_gf2m.c
Lines: 364-455
 83.929% (47/56)
5418
BN_usub
Name: BN_usub
Prototype: int BN_usub(BIGNUM *r, const BIGNUM *a, const BIGNUM *b)
Coverage:  84.000% (21/25)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/bn/bn_add.c
Lines: 146-191
 84.000% (21/25)
318
mem_read
Name: mem_read
Prototype: static int mem_read(BIO *b, char *out, int outl)
Coverage:  84.211% (16/19)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/bio/bss_mem.c
Lines: 152-175
 84.211% (16/19)
205
EVP_DecodeBlock
Name: EVP_DecodeBlock
Prototype: int EVP_DecodeBlock(unsigned char *t, const unsigned char *f, int n)
Coverage:  84.615% (22/26)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/evp/encode.c
Lines: 370-408
 84.615% (22/26)
266
tls1_get_shared_curve
Name: tls1_get_shared_curve
Prototype: int tls1_get_shared_curve(SSL *s)
Coverage:  84.615% (11/13)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/ssl/t1_lib.c
Lines: 476-499
 84.615% (11/13)
135
cfbr_encrypt_block
Name: cfbr_encrypt_block
Prototype: static void cfbr_encrypt_block(const unsigned char *in,unsigned char *out, int nbits,const void *key, unsigned char ivec[16],int enc, block128_f block)
Coverage:  85.000% (17/20)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/modes/cfb128.c
Lines: 173-204
 85.000% (17/20)
177
dtls1_enc
Name: dtls1_enc
Prototype: int dtls1_enc(SSL *s, int send)
Coverage:  85.455% (47/55)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/ssl/d1_enc.c
Lines: 132-211
 85.455% (47/55)
7015
ASN1_template_new
Name: ASN1_template_new
Prototype: int ASN1_template_new(ASN1_VALUE **pval, const ASN1_TEMPLATE *tt)
Coverage:  85.714% (12/14)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/asn1/tasn_new.c
Lines: 244-285
 85.714% (12/14)
246
Page:<>1
Condition %:  0.000% (0/1)
...10
Condition %:  0.000% (0/68)
...20
Condition %:  0.000% (0/30)
...30
Condition %:  0.000% (0/1)
...40
Condition %:  47.368% (9/19)
...44
Condition %:  56.250% (45/80)
45
Condition %:  60.000% (6/10)
46
Condition %:  66.667% (2/3)
47
Condition %:  71.429% (5/7)
4849
Condition %:  85.714% (6/7)
50
Condition %: 100.000% (1/1)
51
Condition %: 100.000% (4/4)
52
Condition %: 100.000% (1/1)
...60
Condition %: 100.000% (4/4)

Generated by Squish Coco 4.2.2