OpenCoverage

LibreSSL Portable Test Coverage

Function Tree

Page:<>1
Condition %: 100.000% (4/4)
...8
Condition %: 100.000% (1/1)
9
Condition %: 100.000% (1/1)
10
Condition %: 100.000% (4/4)
11
Condition %: 100.000% (1/1)
1213
Condition %:  80.000% (8/10)
14
Condition %:  73.333% (22/30)
15
Condition %:  68.000% (17/25)
16
Condition %:  63.265% (31/49)
...20
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
GOST2814789IMIT_Update [md32_common.h #4]
Name: GOST2814789IMIT_Update [md32_common.h #4]
Prototype: int GOST2814789IMIT_Update(GOST2814789IMIT_CTX *c, const void *data_, size_t len)
Coverage:  90.476% (19/21)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/md32_common.h #4
Lines: 215-267
 90.476% (19/21)
367
CAST_set_key
Name: CAST_set_key
Prototype: void CAST_set_key(CAST_KEY *key, int len, const unsigned char *data)
Coverage:  90.476% (19/21)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/cast/c_skey.c
Lines: 75-165
 90.476% (19/21)
728
BN_rshift
Name: BN_rshift
Prototype: int BN_rshift(BIGNUM *r, const BIGNUM *a, int n)
Coverage:  90.323% (28/31)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/bn/bn_shift.c
Lines: 171-218
 90.323% (28/31)
339
strip_eol
Name: strip_eol
Prototype: static int strip_eol(char *linebuf, int *plen)
Coverage:  90.000% (9/10)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/asn1/asn_mime.c
Lines: 995-1011
 90.000% (9/10)
114
bn_mul_words
Name: bn_mul_words
Prototype: unsigned long bn_mul_words(unsigned long *rp, const unsigned long *ap, int num, unsigned long w)
Coverage:  90.000% (18/20)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/bn/bn_asm.c
Lines: 103-130
 90.000% (18/20)
204
bn_expand2
Name: bn_expand2
Prototype: BIGNUM * bn_expand2(BIGNUM *b, int words)
Coverage:  90.000% (9/10)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/bn/bn_lib.c
Lines: 385-423
 90.000% (9/10)
134
RSA_free
Name: RSA_free
Prototype: void RSA_free(RSA *r)
Coverage:  90.000% (9/10)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/rsa/rsa_lib.c
Lines: 195-226
 90.000% (9/10)
234
RC2_ofb64_encrypt
Name: RC2_ofb64_encrypt
Prototype: void RC2_ofb64_encrypt(const unsigned char *in, unsigned char *out, long length, RC2_KEY *schedule, unsigned char *ivec, int *num)
Coverage:  90.000% (9/10)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/rc2/rc2ofb64.c
Lines: 66-110
 90.000% (9/10)
334
DSA_free
Name: DSA_free
Prototype: void DSA_free(DSA *r)
Coverage:  90.000% (9/10)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/dsa/dsa_lib.c
Lines: 181-209
 90.000% (9/10)
204
CAST_ofb64_encrypt
Name: CAST_ofb64_encrypt
Prototype: void CAST_ofb64_encrypt(const unsigned char *in, unsigned char *out, long length, const CAST_KEY *schedule, unsigned char *ivec, int *num)
Coverage:  90.000% (9/10)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/cast/c_ofb64.c
Lines: 66-110
 90.000% (9/10)
334
BN_POOL_get
Name: BN_POOL_get
Prototype: static BIGNUM * BN_POOL_get(BN_POOL *p)
Coverage:  90.000% (18/20)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/bn/bn_ctx.c
Lines: 429-462
 90.000% (18/20)
327
BF_ofb64_encrypt
Name: BF_ofb64_encrypt
Prototype: void BF_ofb64_encrypt(const unsigned char *in, unsigned char *out, long length, const BF_KEY *schedule, unsigned char *ivec, int *num)
Coverage:  90.000% (9/10)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/bf/bf_ofb64.c
Lines: 66-109
 90.000% (9/10)
334
tls1_change_cipher_state
Name: tls1_change_cipher_state
Prototype: int tls1_change_cipher_state(SSL *s, int which)
Coverage:  89.655% (26/29)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/ssl/t1_enc.c
Lines: 534-631
 89.655% (26/29)
618
chacha_encrypt_bytes
Name: chacha_encrypt_bytes
Prototype: static inline void chacha_encrypt_bytes(chacha_ctx *x, const u8 *m, u8 *c, u32 bytes)
Coverage:  89.655% (26/29)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/chacha/chacha-merged.c
Lines: 121-279
 89.655% (26/29)
14011
BN_bin2bn
Name: BN_bin2bn
Prototype: BIGNUM * BN_bin2bn(const unsigned char *s, int len, BIGNUM *ret)
Coverage:  89.655% (26/29)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/bn/bn_lib.c
Lines: 573-612
 89.655% (26/29)
4610
strlcpy
Name: strlcpy
Prototype: size_t strlcpy(char *dst, const char *src, size_t dsize)
Coverage:  89.474% (17/19)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/compat/strlcpy.c
Lines: 27-50
 89.474% (17/19)
117
sk_pop_free
Name: sk_pop_free
Prototype: void sk_pop_free(_STACK *st, void (*func)(void *))
Coverage:  88.889% (8/9)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/stack/stack.c
Lines: 272-283
 88.889% (8/9)
114
int_cleanup_check
Name: int_cleanup_check
Prototype: static int int_cleanup_check(int create)
Coverage:  88.889% (8/9)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/engine/eng_lib.c
Lines: 153-162
 88.889% (8/9)
63
X509_LOOKUP_free
Name: X509_LOOKUP_free
Prototype: void X509_LOOKUP_free(X509_LOOKUP *ctx)
Coverage:  88.889% (8/9)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/x509/x509_lu.c
Lines: 90-98
 88.889% (8/9)
153
ERR_clear_error
Name: ERR_clear_error
Prototype: void ERR_clear_error(void)
Coverage:  88.889% (8/9)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/err/err.c
Lines: 747-759
 88.889% (8/9)
183
ChaCha
Name: ChaCha
Prototype: void ChaCha(ChaCha_ctx *ctx, unsigned char *out, const unsigned char *in, size_t len)
Coverage:  88.889% (8/9)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/chacha/chacha.c
Lines: 39-56
 88.889% (8/9)
103
BN_copy
Name: BN_copy
Prototype: BIGNUM * BN_copy(BIGNUM *a, const BIGNUM *b)
Coverage:  88.889% (16/18)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/bn/bn_lib.c
Lines: 445-489
 88.889% (16/18)
327
ASN1_STRING_free
Name: ASN1_STRING_free
Prototype: void ASN1_STRING_free(ASN1_STRING *a)
Coverage:  88.889% (8/9)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/asn1/asn1_lib.c
Lines: 432-440
 88.889% (8/9)
113
EVP_DecodeUpdate
Name: EVP_DecodeUpdate
Prototype: int EVP_DecodeUpdate(EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl, const unsigned char *in, int inl)
Coverage:  88.298% (83/94)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/evp/encode.c
Lines: 232-368
 88.298% (83/94)
7624
ssl_clamp_version_range
Name: ssl_clamp_version_range
Prototype: static int ssl_clamp_version_range(uint16_t *min_ver, uint16_t *max_ver, uint16_t clamp_min, uint16_t clamp_max)
Coverage:  88.235% (15/17)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/ssl/ssl_versions.c
Lines: 20-35
 88.235% (15/17)
95
fe_invert
Name: fe_invert
Prototype: static void fe_invert(fe out, const fe z)
Coverage:  88.235% (30/34)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/curve25519/curve25519.c
Lines: 638-700
 88.235% (30/34)
4912
expand
Name: expand
Prototype: static void expand(_LHASH *lh)
Coverage:  88.235% (15/17)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/lhash/lhash.c
Lines: 308-357
 88.235% (15/17)
456
file_gets
Name: file_gets
Prototype: static int file_gets(BIO *bp, char *buf, int size)
Coverage:  87.500% (7/8)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/bio/bss_file.c
Lines: 295-307
 87.500% (7/8)
74
CRYPTO_nistcts128_decrypt_block
Name: CRYPTO_nistcts128_decrypt_block
Prototype: size_t CRYPTO_nistcts128_decrypt_block(const unsigned char *in, unsigned char *out, size_t len, const void *key, unsigned char ivec[16], block128_f block)
Coverage:  87.500% (14/16)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/modes/cts128.c
Lines: 167-206
 87.500% (14/16)
236
CRYPTO_cts128_decrypt_block
Name: CRYPTO_cts128_decrypt_block
Prototype: size_t CRYPTO_cts128_decrypt_block(const unsigned char *in, unsigned char *out, size_t len, const void *key, unsigned char ivec[16], block128_f block)
Coverage:  87.500% (14/16)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/modes/cts128.c
Lines: 132-165
 87.500% (14/16)
196
ssl_enabled_version_range
Name: ssl_enabled_version_range
Prototype: int ssl_enabled_version_range(SSL *s, uint16_t *min_ver, uint16_t *max_ver)
Coverage:  87.179% (34/39)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/ssl/ssl_versions.c
Lines: 83-128
 87.179% (34/39)
2911
bn_i2c
Name: bn_i2c
Prototype: static int bn_i2c(ASN1_VALUE **pval, unsigned char *cont, int *putype, const ASN1_ITEM *it)
Coverage:  86.667% (13/15)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/asn1/x_bignum.c
Lines: 128-149
 86.667% (13/15)
165
asn1_set_seq_out
Name: asn1_set_seq_out
Prototype: static int asn1_set_seq_out(struct stack_st_ASN1_VALUE *sk, unsigned char **out, int skcontlen, const ASN1_ITEM *item, int do_sort, int iclass)
Coverage:  86.667% (26/30)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/asn1/tasn_enc.c
Lines: 411-470
 86.667% (26/30)
5310
MOD_EXP_CTIME_COPY_FROM_PREBUF
Name: MOD_EXP_CTIME_COPY_FROM_PREBUF
Prototype: static int MOD_EXP_CTIME_COPY_FROM_PREBUF(BIGNUM *b, int top, unsigned char *buf, int idx, int window)
Coverage:  86.667% (26/30)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/bn/bn_exp.c
Lines: 584-635
 86.667% (26/30)
3410
BN_lshift
Name: BN_lshift
Prototype: int BN_lshift(BIGNUM *r, const BIGNUM *a, int n)
Coverage:  86.364% (19/22)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/bn/bn_shift.c
Lines: 134-169
 86.364% (19/22)
258
tlsext_alpn_clienthello_parse
Name: tlsext_alpn_clienthello_parse
Prototype: int tlsext_alpn_clienthello_parse(SSL *s, CBS *cbs, int *alert)
Coverage:  86.207% (25/29)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/ssl/ssl_tlsext.c
Lines: 56-102
 86.207% (25/29)
3611
pkey_cb
Name: pkey_cb
Prototype: static int pkey_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it, void *exarg)
Coverage:  85.714% (6/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/asn1/p8_pkey.c
Lines: 66-76
 85.714% (6/7)
73
is_primitive_type
Name: is_primitive_type
Prototype: static char is_primitive_type(unsigned int tag)
Coverage:  85.714% (6/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/ssl/bs_ber.c
Lines: 90-96
 85.714% (6/7)
31
inverse
Name: inverse
Prototype: static unsigned int inverse(unsigned int xin)
Coverage:  85.714% (12/14)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/idea/i_skey.c
Lines: 128-157
 85.714% (12/14)
185
idea_set_encrypt_key
Name: idea_set_encrypt_key
Prototype: void idea_set_encrypt_key(const unsigned char *key, IDEA_KEY_SCHEDULE *ks)
Coverage:  85.714% (6/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/idea/i_skey.c
Lines: 64-96
 85.714% (6/7)
263
idea_set_decrypt_key
Name: idea_set_decrypt_key
Prototype: void idea_set_decrypt_key(IDEA_KEY_SCHEDULE *ek, IDEA_KEY_SCHEDULE *dk)
Coverage:  85.714% (6/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/idea/i_skey.c
Lines: 98-125
 85.714% (6/7)
203
err_fns_check
Name: err_fns_check
Prototype: static void err_fns_check(void)
Coverage:  85.714% (6/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/err/err.c
Lines: 290-300
 85.714% (6/7)
63
engine_free_util
Name: engine_free_util
Prototype: int engine_free_util(ENGINE *e, int locked)
Coverage:  85.714% (12/14)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/engine/eng_lib.c
Lines: 113-138
 85.714% (12/14)
175
dtls1_get_cipher
Name: dtls1_get_cipher
Prototype: const SSL_CIPHER * dtls1_get_cipher(unsigned int u)
Coverage:  85.714% (6/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/ssl/d1_lib.c
Lines: 278-289
 85.714% (6/7)
113
bn_mul_normal
Name: bn_mul_normal
Prototype: void bn_mul_normal(unsigned long *r, unsigned long *a, int na, unsigned long *b, int nb)
Coverage:  85.714% (18/21)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/bn/bn_mul.c
Lines: 1100-1145
 85.714% (18/21)
318
asn1_do_lock
Name: asn1_do_lock
Prototype: int asn1_do_lock(ASN1_VALUE **pval, int op, const ASN1_ITEM *it)
Coverage:  85.714% (12/14)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/asn1/tasn_utl.c
Lines: 102-121
 85.714% (12/14)
144
added_obj_hash
Name: added_obj_hash
Prototype: static unsigned long added_obj_hash(const ADDED_OBJ *ca)
Coverage:  85.714% (12/14)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/objects/obj_dat.c
Lines: 141-173
 85.714% (12/14)
217
OBJ_bsearch_ex_
Name: OBJ_bsearch_ex_
Prototype: const void * OBJ_bsearch_ex_(const void *key, const void *base_, int num, int size, int (*cmp)(const void *, const void *), int flags)
Coverage:  85.714% (24/28)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/objects/obj_dat.c
Lines: 707-738
 85.714% (24/28)
358
EC_POINT_free
Name: EC_POINT_free
Prototype: void EC_POINT_free(EC_POINT * point)
Coverage:  85.714% (6/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/ec/ec_lib.c
Lines: 720-729
 85.714% (6/7)
53
EC_GROUP_free
Name: EC_GROUP_free
Prototype: void EC_GROUP_free(EC_GROUP * group)
Coverage:  85.714% (6/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/ec/ec_lib.c
Lines: 116-134
 85.714% (6/7)
103
BN_mod_exp_internal
Name: BN_mod_exp_internal
Prototype: static int BN_mod_exp_internal(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, const BIGNUM *m, BN_CTX *ctx, int ct)
Coverage:  85.714% (12/14)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/bn/bn_exp.c
Lines: 175-227
 85.714% (12/14)
163
BN_MONT_CTX_free
Name: BN_MONT_CTX_free
Prototype: void BN_MONT_CTX_free(BN_MONT_CTX *mont)
Coverage:  85.714% (6/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/bn/bn_mont.c
Lines: 347-358
 85.714% (6/7)
93
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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_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
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
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
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
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
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
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
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_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
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
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
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_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
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
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
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
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
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
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
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
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
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
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
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
Page:<>1
Condition %: 100.000% (4/4)
...8
Condition %: 100.000% (1/1)
9
Condition %: 100.000% (1/1)
10
Condition %: 100.000% (4/4)
11
Condition %: 100.000% (1/1)
1213
Condition %:  80.000% (8/10)
14
Condition %:  73.333% (22/30)
15
Condition %:  68.000% (17/25)
16
Condition %:  63.265% (31/49)
...20
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