OpenCoverage

OpenSSH Test Coverage

Function Tree

Page:<>1
Condition %: 100.000% (1/1)
23
Condition %:  80.000% (8/10)
4
Condition %:  56.522% (13/23)
5
Condition %:  45.455% (5/11)
6
Condition %:  26.374% (24/91)
...10
Condition %:  0.000% (0/9)
...20
Condition %:  0.000% (0/19)
21
Condition %:  0.000% (0/1)
FunctionCondition %▾eLOC - Effective Lines of CodeMcCabe - Cyclomatic Complexity
equal
Name: equal
Prototype: static unsigned char equal(signed char b,signed char c)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ge25519.c
Lines: 152-161
100.000% (1/1)
71
dh_new_group18
Name: dh_new_group18
Prototype: DH * dh_new_group18(void)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/dh.c
Lines: 406-455
100.000% (1/1)
11
dh_new_group14
Name: dh_new_group14
Prototype: DH * dh_new_group14(void)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/dh.c
Lines: 355-372
100.000% (1/1)
11
dh_new_group1
Name: dh_new_group1
Prototype: DH * dh_new_group1(void)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/dh.c
Lines: 340-352
100.000% (1/1)
11
debug3
Name: debug3
Prototype: void debug3(const char *fmt,...)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/log.c
Lines: 242-250
100.000% (1/1)
201
debug2
Name: debug2
Prototype: void debug2(const char *fmt,...)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/log.c
Lines: 232-240
100.000% (1/1)
201
debug
Name: debug
Prototype: void debug(const char *fmt,...)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/log.c
Lines: 222-230
100.000% (1/1)
201
dbl_p1p1
Name: dbl_p1p1
Prototype: static void dbl_p1p1(ge25519_p1p1 *r, const ge25519_p2 *p)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ge25519.c
Lines: 127-143
100.000% (1/1)
131
crypto_verify_32
Name: crypto_verify_32
Prototype: int crypto_verify_32(const unsigned char *x,const unsigned char *y)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/verify.c
Lines: 12-49
100.000% (1/1)
341
crypto_sign_ed25519_ref_unpackneg_vartime
Name: crypto_sign_ed25519_ref_unpackneg_vartime
Prototype: int crypto_sign_ed25519_ref_unpackneg_vartime(crypto_sign_ed25519_ref_ge25519 *r, const unsigned char p[32])
Coverage: 100.000% (10/10)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ge25519.c
Lines: 196-241
100.000% (10/10)
314
crypto_sign_ed25519_ref_scalarmult_base
Name: crypto_sign_ed25519_ref_scalarmult_base
Prototype: void crypto_sign_ed25519_ref_scalarmult_base(crypto_sign_ed25519_ref_ge25519 *r, const crypto_sign_ed25519_ref_sc25519 *s)
Coverage: 100.000% (4/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ge25519.c
Lines: 306-321
100.000% (4/4)
102
crypto_sign_ed25519_ref_sc25519_window3
Name: crypto_sign_ed25519_ref_sc25519_window3
Prototype: void crypto_sign_ed25519_ref_sc25519_window3(signed char r[85], const crypto_sign_ed25519_ref_sc25519 *s)
Coverage: 100.000% (7/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sc25519.c
Lines: 221-256
100.000% (7/7)
273
crypto_sign_ed25519_ref_sc25519_to32bytes
Name: crypto_sign_ed25519_ref_sc25519_to32bytes
Prototype: void crypto_sign_ed25519_ref_sc25519_to32bytes(unsigned char r[32], const crypto_sign_ed25519_ref_sc25519 *x)
Coverage: 100.000% (4/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sc25519.c
Lines: 134-138
100.000% (4/4)
22
crypto_sign_ed25519_ref_sc25519_mul
Name: crypto_sign_ed25519_ref_sc25519_mul
Prototype: void crypto_sign_ed25519_ref_sc25519_mul(crypto_sign_ed25519_ref_sc25519 *r, const crypto_sign_ed25519_ref_sc25519 *x, const crypto_sign_ed25519_ref_sc25519 *y)
Coverage: 100.000% (12/12)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sc25519.c
Lines: 193-212
100.000% (12/12)
115
crypto_sign_ed25519_ref_sc25519_from64bytes
Name: crypto_sign_ed25519_ref_sc25519_from64bytes
Prototype: void crypto_sign_ed25519_ref_sc25519_from64bytes(crypto_sign_ed25519_ref_sc25519 *r, const unsigned char x[64])
Coverage: 100.000% (4/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sc25519.c
Lines: 117-123
100.000% (4/4)
42
crypto_sign_ed25519_ref_sc25519_from32bytes
Name: crypto_sign_ed25519_ref_sc25519_from32bytes
Prototype: void crypto_sign_ed25519_ref_sc25519_from32bytes(crypto_sign_ed25519_ref_sc25519 *r, const unsigned char x[32])
Coverage: 100.000% (7/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sc25519.c
Lines: 102-109
100.000% (7/7)
53
crypto_sign_ed25519_ref_sc25519_add
Name: crypto_sign_ed25519_ref_sc25519_add
Prototype: void crypto_sign_ed25519_ref_sc25519_add(crypto_sign_ed25519_ref_sc25519 *r, const crypto_sign_ed25519_ref_sc25519 *x, const crypto_sign_ed25519_ref_sc25519 *y)
Coverage: 100.000% (7/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sc25519.c
Lines: 167-178
100.000% (7/7)
73
crypto_sign_ed25519_ref_sc25519_2interleave2
Name: crypto_sign_ed25519_ref_sc25519_2interleave2
Prototype: void crypto_sign_ed25519_ref_sc25519_2interleave2(unsigned char r[127], const crypto_sign_ed25519_ref_sc25519 *s1, const crypto_sign_ed25519_ref_sc25519 *s2)
Coverage: 100.000% (4/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sc25519.c
Lines: 295-308
100.000% (4/4)
92
crypto_sign_ed25519_ref_pack
Name: crypto_sign_ed25519_ref_pack
Prototype: void crypto_sign_ed25519_ref_pack(unsigned char r[32], const crypto_sign_ed25519_ref_ge25519 *p)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ge25519.c
Lines: 243-251
100.000% (1/1)
61
crypto_sign_ed25519_ref_fe25519_unpack
Name: crypto_sign_ed25519_ref_fe25519_unpack
Prototype: void crypto_sign_ed25519_ref_fe25519_unpack(crypto_sign_ed25519_ref_fe25519 *r, const unsigned char x[32])
Coverage: 100.000% (4/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/fe25519.c
Lines: 100-105
100.000% (4/4)
32
crypto_sign_ed25519_ref_fe25519_sub
Name: crypto_sign_ed25519_ref_fe25519_sub
Prototype: void crypto_sign_ed25519_ref_fe25519_sub(crypto_sign_ed25519_ref_fe25519 *r, const crypto_sign_ed25519_ref_fe25519 *x, const crypto_sign_ed25519_ref_fe25519 *y)
Coverage: 100.000% (7/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/fe25519.c
Lines: 185-194
100.000% (7/7)
73
crypto_sign_ed25519_ref_fe25519_square
Name: crypto_sign_ed25519_ref_fe25519_square
Prototype: void crypto_sign_ed25519_ref_fe25519_square(crypto_sign_ed25519_ref_fe25519 *r, const crypto_sign_ed25519_ref_fe25519 *x)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/fe25519.c
Lines: 213-216
100.000% (1/1)
11
crypto_sign_ed25519_ref_fe25519_setzero
Name: crypto_sign_ed25519_ref_fe25519_setzero
Prototype: void crypto_sign_ed25519_ref_fe25519_setzero(crypto_sign_ed25519_ref_fe25519 *r)
Coverage: 100.000% (4/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/fe25519.c
Lines: 163-167
100.000% (4/4)
22
crypto_sign_ed25519_ref_fe25519_setone
Name: crypto_sign_ed25519_ref_fe25519_setone
Prototype: void crypto_sign_ed25519_ref_fe25519_setone(crypto_sign_ed25519_ref_fe25519 *r)
Coverage: 100.000% (4/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/fe25519.c
Lines: 156-161
100.000% (4/4)
32
crypto_sign_ed25519_ref_fe25519_pow2523
Name: crypto_sign_ed25519_ref_fe25519_pow2523
Prototype: void crypto_sign_ed25519_ref_fe25519_pow2523(crypto_sign_ed25519_ref_fe25519 *r, const crypto_sign_ed25519_ref_fe25519 *x)
Coverage: 100.000% (22/22)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/fe25519.c
Lines: 285-337
100.000% (22/22)
418
crypto_sign_ed25519_ref_fe25519_pack
Name: crypto_sign_ed25519_ref_fe25519_pack
Prototype: void crypto_sign_ed25519_ref_fe25519_pack(unsigned char r[32], const crypto_sign_ed25519_ref_fe25519 *x)
Coverage: 100.000% (4/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/fe25519.c
Lines: 108-115
100.000% (4/4)
52
crypto_sign_ed25519_ref_fe25519_neg
Name: crypto_sign_ed25519_ref_fe25519_neg
Prototype: void crypto_sign_ed25519_ref_fe25519_neg(crypto_sign_ed25519_ref_fe25519 *r, const crypto_sign_ed25519_ref_fe25519 *x)
Coverage: 100.000% (4/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/fe25519.c
Lines: 169-176
100.000% (4/4)
52
crypto_sign_ed25519_ref_fe25519_mul
Name: crypto_sign_ed25519_ref_fe25519_mul
Prototype: void crypto_sign_ed25519_ref_fe25519_mul(crypto_sign_ed25519_ref_fe25519 *r, const crypto_sign_ed25519_ref_fe25519 *x, const crypto_sign_ed25519_ref_fe25519 *y)
Coverage: 100.000% (12/12)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/fe25519.c
Lines: 196-211
100.000% (12/12)
105
crypto_sign_ed25519_ref_fe25519_iseq_vartime
Name: crypto_sign_ed25519_ref_fe25519_iseq_vartime
Prototype: int crypto_sign_ed25519_ref_fe25519_iseq_vartime(const crypto_sign_ed25519_ref_fe25519 *x, const crypto_sign_ed25519_ref_fe25519 *y)
Coverage: 100.000% (6/6)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/fe25519.c
Lines: 129-139
100.000% (6/6)
83
crypto_sign_ed25519_ref_fe25519_invert
Name: crypto_sign_ed25519_ref_fe25519_invert
Prototype: void crypto_sign_ed25519_ref_fe25519_invert(crypto_sign_ed25519_ref_fe25519 *r, const crypto_sign_ed25519_ref_fe25519 *x)
Coverage: 100.000% (19/19)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/fe25519.c
Lines: 218-283
100.000% (19/19)
547
crypto_sign_ed25519_ref_fe25519_getparity
Name: crypto_sign_ed25519_ref_fe25519_getparity
Prototype: unsigned char crypto_sign_ed25519_ref_fe25519_getparity(const crypto_sign_ed25519_ref_fe25519 *x)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/fe25519.c
Lines: 149-154
100.000% (1/1)
31
crypto_sign_ed25519_ref_fe25519_freeze
Name: crypto_sign_ed25519_ref_fe25519_freeze
Prototype: void crypto_sign_ed25519_ref_fe25519_freeze(crypto_sign_ed25519_ref_fe25519 *r)
Coverage: 100.000% (7/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/fe25519.c
Lines: 84-98
100.000% (7/7)
103
crypto_sign_ed25519_ref_fe25519_cmov
Name: crypto_sign_ed25519_ref_fe25519_cmov
Prototype: void crypto_sign_ed25519_ref_fe25519_cmov(crypto_sign_ed25519_ref_fe25519 *r, const crypto_sign_ed25519_ref_fe25519 *x, unsigned char b)
Coverage: 100.000% (4/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/fe25519.c
Lines: 141-147
100.000% (4/4)
42
crypto_sign_ed25519_ref_fe25519_add
Name: crypto_sign_ed25519_ref_fe25519_add
Prototype: void crypto_sign_ed25519_ref_fe25519_add(crypto_sign_ed25519_ref_fe25519 *r, const crypto_sign_ed25519_ref_fe25519 *x, const crypto_sign_ed25519_ref_fe25519 *y)
Coverage: 100.000% (4/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/fe25519.c
Lines: 178-183
100.000% (4/4)
32
crypto_sign_ed25519_ref_double_scalarmult_vartime
Name: crypto_sign_ed25519_ref_double_scalarmult_vartime
Prototype: void crypto_sign_ed25519_ref_double_scalarmult_vartime(crypto_sign_ed25519_ref_ge25519 *r, const crypto_sign_ed25519_ref_ge25519 *p1, const crypto_sign_ed25519_ref_sc25519 *s1, const crypto_sign_ed25519_ref_ge25519 *p2, const crypto_sign_ed25519_ref_sc25519 *s2)
Coverage: 100.000% (10/10)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ge25519.c
Lines: 262-304
100.000% (10/10)
314
crypto_sign_ed25519_keypair
Name: crypto_sign_ed25519_keypair
Prototype: int crypto_sign_ed25519_keypair( unsigned char *pk, unsigned char *sk )
Coverage: 100.000% (4/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ed25519.c
Lines: 26-49
100.000% (4/4)
152
crypto_sign_ed25519
Name: crypto_sign_ed25519
Prototype: int crypto_sign_ed25519( unsigned char *sm,unsigned long long *smlen, const unsigned char *m,unsigned long long mlen, const unsigned char *sk )
Coverage: 100.000% (13/13)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ed25519.c
Lines: 51-101
100.000% (13/13)
325
crypto_scalarmult_curve25519
Name: crypto_scalarmult_curve25519
Prototype: int crypto_scalarmult_curve25519(unsigned char *q, const unsigned char *n, const unsigned char *p)
Coverage: 100.000% (10/10)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/smult_curve25519_ref.c
Lines: 247-265
100.000% (10/10)
144
cmov_aff
Name: cmov_aff
Prototype: static void cmov_aff(ge25519_aff *r, const ge25519_aff *p, unsigned char b)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ge25519.c
Lines: 146-150
100.000% (1/1)
21
clear_libcrypto_errors
Name: clear_libcrypto_errors
Prototype: static void clear_libcrypto_errors(void)
Coverage: 100.000% (4/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c
Lines: 3892-3897
100.000% (4/4)
12
cipher_keylen
Name: cipher_keylen
Prototype: u_int cipher_keylen(const struct sshcipher *c)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/cipher.c
Lines: 149-153
100.000% (1/1)
11
cipher_ctx_is_plaintext
Name: cipher_ctx_is_plaintext
Prototype: u_int cipher_ctx_is_plaintext(struct sshcipher_ctx *cc)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/cipher.c
Lines: 186-190
100.000% (1/1)
11
cipher_blocksize
Name: cipher_blocksize
Prototype: u_int cipher_blocksize(const struct sshcipher *c)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/cipher.c
Lines: 143-147
100.000% (1/1)
11
cipher_authlen
Name: cipher_authlen
Prototype: u_int cipher_authlen(const struct sshcipher *c)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/cipher.c
Lines: 163-167
100.000% (1/1)
11
choose_t
Name: choose_t
Prototype: static void choose_t(ge25519_aff *t, unsigned long long pos, signed char b)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ge25519.c
Lines: 170-181
100.000% (1/1)
81
check_rsa_length
Name: check_rsa_length
Prototype: static int check_rsa_length(const RSA *rsa)
Coverage: 100.000% (4/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c
Lines: 2004-2013
100.000% (4/4)
132
chachapoly_get_length
Name: chachapoly_get_length
Prototype: int chachapoly_get_length(struct chachapoly_ctx *ctx, u_int *plenp, u_int seqnr, const u_char *cp, u_int len)
Coverage: 100.000% (4/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/cipher-chachapoly.c
Lines: 106-119
100.000% (4/4)
122
chacha_ivsetup
Name: chacha_ivsetup
Prototype: void chacha_ivsetup(chacha_ctx *x, const u8 *iv, const u8 *counter)
Coverage: 100.000% (5/5)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/chacha.c
Lines: 80-87
100.000% (5/5)
121
chacha_ivsetup
Name: chacha_ivsetup
Prototype: static void chacha_ivsetup(chacha_ctx *x,const u8 *iv)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/openbsd-compat/chacha_private.h
Lines: 79-86
100.000% (1/1)
41
cert_free
Name: cert_free
Prototype: static void cert_free(struct sshkey_cert *cert)
Coverage: 100.000% (7/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c
Lines: 454-471
100.000% (7/7)
153
blf_enc
Name: blf_enc
Prototype: void blf_enc(blf_ctx *c, u_int32_t *data, u_int16_t blocks)
Coverage: 100.000% (4/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/openbsd-compat/blowfish.c
Lines: 514-525
100.000% (4/4)
62
bitmap_zero
Name: bitmap_zero
Prototype: void bitmap_zero(struct bitmap *b)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/bitmap.c
Lines: 64-69
100.000% (1/1)
21
bitmap_nbytes
Name: bitmap_nbytes
Prototype: size_t bitmap_nbytes(struct bitmap *b)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/bitmap.c
Lines: 161-165
100.000% (1/1)
11
bcrypt_hash
Name: bcrypt_hash
Prototype: static void bcrypt_hash(u_int8_t *sha2pass, u_int8_t *sha2salt, u_int8_t *out)
Coverage: 100.000% (13/13)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/openbsd-compat/bcrypt_pbkdf.c
Lines: 69-108
100.000% (13/13)
265
barrett_reduce
Name: barrett_reduce
Prototype: static void barrett_reduce(crypto_sign_ed25519_ref_sc25519 *r, const crypto_uint32 x[64])
Coverage: 100.000% (30/30)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sc25519.c
Lines: 51-100
100.000% (30/30)
3212
atomicio
Name: atomicio
Prototype: size_t atomicio(ssize_t (*f) (int, void *, size_t), int fd, void *_s, size_t n)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/atomicio.c
Lines: 91-95
100.000% (1/1)
91
arc4random_buf
Name: arc4random_buf
Prototype: void arc4random_buf(void *buf, size_t n)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/openbsd-compat/arc4random.c
Lines: 251-257
100.000% (1/1)
11
arc4random
Name: arc4random
Prototype: u_int32_t arc4random(void)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/openbsd-compat/arc4random.c
Lines: 235-244
100.000% (1/1)
31
add_p1p1
Name: add_p1p1
Prototype: static void add_p1p1(ge25519_p1p1 *r, const crypto_sign_ed25519_ref_ge25519 *p, const crypto_sign_ed25519_ref_ge25519 *q)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ge25519.c
Lines: 106-124
100.000% (1/1)
151
add
Name: add
Prototype: static void add(unsigned int out[32],const unsigned int a[32],const unsigned int b[32])
Coverage: 100.000% (4/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/smult_curve25519_ref.c
Lines: 11-18
100.000% (4/4)
52
_ssh_host_key_sign
Name: _ssh_host_key_sign
Prototype: int _ssh_host_key_sign(struct sshkey *privkey, struct sshkey *pubkey, u_char **signature, size_t *slen, const u_char *data, size_t dlen, const char *alg, u_int compat)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh_api.c
Lines: 534-540
100.000% (1/1)
11
_rs_random_u32
Name: _rs_random_u32
Prototype: static __inline void _rs_random_u32(u_int32_t *val)
Coverage: 100.000% (4/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/openbsd-compat/arc4random.c
Lines: 198-208
100.000% (4/4)
112
_rs_random_buf
Name: _rs_random_buf
Prototype: static __inline void _rs_random_buf(void *_buf, size_t n)
Coverage: 100.000% (12/12)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/openbsd-compat/arc4random.c
Lines: 177-196
100.000% (12/12)
374
RSA_get0_key
Name: RSA_get0_key
Prototype: void RSA_get0_key(const RSA *r, const BIGNUM **n, const BIGNUM **e, const BIGNUM **d)
Coverage: 100.000% (10/10)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/openbsd-compat/libressl-api-compat.c
Lines: 228-237
100.000% (10/10)
124
RSA_get0_factors
Name: RSA_get0_factors
Prototype: void RSA_get0_factors(const RSA *r, const BIGNUM **p, const BIGNUM **q)
Coverage: 100.000% (7/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/openbsd-compat/libressl-api-compat.c
Lines: 305-312
100.000% (7/7)
83
EVP_MD_CTX_new
Name: EVP_MD_CTX_new
Prototype: EVP_MD_CTX * EVP_MD_CTX_new(void)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/openbsd-compat/libressl-api-compat.c
Lines: 616-620
100.000% (1/1)
11
DSA_get0_pqg
Name: DSA_get0_pqg
Prototype: void DSA_get0_pqg(const DSA *d, const BIGNUM **p, const BIGNUM **q, const BIGNUM **g)
Coverage: 100.000% (10/10)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/openbsd-compat/libressl-api-compat.c
Lines: 159-168
100.000% (10/10)
124
DSA_get0_key
Name: DSA_get0_key
Prototype: void DSA_get0_key(const DSA *d, const BIGNUM **pub_key, const BIGNUM **priv_key)
Coverage: 100.000% (7/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/openbsd-compat/libressl-api-compat.c
Lines: 197-204
100.000% (7/7)
83
Blowfish_stream2word
Name: Blowfish_stream2word
Prototype: u_int32_t Blowfish_stream2word(const u_int8_t *data, u_int16_t databytes, u_int16_t *current)
Coverage: 100.000% (7/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/openbsd-compat/blowfish.c
Lines: 402-421
100.000% (7/7)
113
Blowfish_initstate
Name: Blowfish_initstate
Prototype: void Blowfish_initstate(blf_ctx *c)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/openbsd-compat/blowfish.c
Lines: 123-400
100.000% (1/1)
11
Blowfish_expandstate
Name: Blowfish_expandstate
Prototype: void Blowfish_expandstate(blf_ctx *c, const u_int8_t *data, u_int16_t databytes, const u_int8_t *key, u_int16_t keybytes)
Coverage: 100.000% (13/13)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/openbsd-compat/blowfish.c
Lines: 461-502
100.000% (13/13)
265
Blowfish_expand0state
Name: Blowfish_expand0state
Prototype: void Blowfish_expand0state(blf_ctx *c, const u_int8_t *key, u_int16_t keybytes)
Coverage: 100.000% (13/13)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/openbsd-compat/blowfish.c
Lines: 423-458
100.000% (13/13)
225
Blowfish_encipher
Name: Blowfish_encipher
Prototype: void Blowfish_encipher(blf_ctx *c, u_int32_t *xl, u_int32_t *xr)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/openbsd-compat/blowfish.c
Lines: 73-96
100.000% (1/1)
171
BSDgetopt
Name: BSDgetopt
Prototype: int BSDgetopt(int nargc, char * const *nargv, const char *options)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/openbsd-compat/getopt_long.c
Lines: 489-502
100.000% (1/1)
91
sshbuf_dump_data
Name: sshbuf_dump_data
Prototype: void sshbuf_dump_data(const void *s, size_t len, FILE *f)
Coverage:  95.238% (20/21)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf-misc.c
Lines: 38-63
 95.238% (20/21)
277
peek_type_nid
Name: peek_type_nid
Prototype: static int peek_type_nid(const char *s, size_t l, int *nid)
Coverage:  94.118% (16/17)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c
Lines: 1208-1224
 94.118% (16/17)
145
sshkey_free
Name: sshkey_free
Prototype: void sshkey_free(struct sshkey *k)
Coverage:  91.304% (21/23)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c
Lines: 560-614
 91.304% (21/23)
4413
sshbuf_get_string
Name: sshbuf_get_string
Prototype: int sshbuf_get_string(struct sshbuf *buf, u_char **valp, size_t *lenp)
Coverage:  90.909% (20/22)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf-getput-basic.c
Lines: 96-121
 90.909% (20/22)
328
sshbuf_get_string_direct
Name: sshbuf_get_string_direct
Prototype: int sshbuf_get_string_direct(struct sshbuf *buf, const u_char **valp, size_t *lenp)
Coverage:  89.474% (17/19)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf-getput-basic.c
Lines: 123-147
 89.474% (17/19)
287
sshbuf_get
Name: sshbuf_get
Prototype: int sshbuf_get(struct sshbuf *buf, void *v, size_t len)
Coverage:  88.889% (8/9)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf-getput-basic.c
Lines: 31-42
 88.889% (8/9)
113
_rs_rekey
Name: _rs_rekey
Prototype: static __inline void _rs_rekey(u_char *dat, size_t datlen)
Coverage:  88.889% (8/9)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/openbsd-compat/arc4random.c
Lines: 155-175
 88.889% (8/9)
293
crypto_sign_ed25519_open
Name: crypto_sign_ed25519_open
Prototype: int crypto_sign_ed25519_open( unsigned char *m,unsigned long long *mlen, const unsigned char *sm,unsigned long long smlen, const unsigned char *pk )
Coverage:  88.235% (15/17)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ed25519.c
Lines: 103-144
 88.235% (15/17)
226
sshbuf_mutable_ptr
Name: sshbuf_mutable_ptr
Prototype: u_char * sshbuf_mutable_ptr(const struct sshbuf *buf)
Coverage:  87.500% (7/8)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf.c
Lines: 276-282
 87.500% (7/8)
72
match_pattern
Name: match_pattern
Prototype: int match_pattern(const char *s, const char *pattern)
Coverage:  86.111% (31/36)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/match.c
Lines: 56-112
 86.111% (31/36)
2312
sshbuf_get_u64
Name: sshbuf_get_u64
Prototype: int sshbuf_get_u64(struct sshbuf *buf, u_int64_t *valp)
Coverage:  85.714% (6/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf-getput-basic.c
Lines: 44-55
 85.714% (6/7)
93
sshbuf_get_u16
Name: sshbuf_get_u16
Prototype: int sshbuf_get_u16(struct sshbuf *buf, u_int16_t *valp)
Coverage:  85.714% (6/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf-getput-basic.c
Lines: 70-81
 85.714% (6/7)
93
ssh_packet_is_rekeying
Name: ssh_packet_is_rekeying
Prototype: int ssh_packet_is_rekeying(struct ssh *ssh)
Coverage:  85.714% (6/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/packet.c
Lines: 272-277
 85.714% (6/7)
61
rsa_hash_alg_ident
Name: rsa_hash_alg_ident
Prototype: static const char * rsa_hash_alg_ident(int hash_alg)
Coverage:  85.714% (6/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh-rsa.c
Lines: 42-54
 85.714% (6/7)
94
get_ec
Name: get_ec
Prototype: static int get_ec(const u_char *d, size_t len, EC_POINT *v, const EC_GROUP *g)
Coverage:  85.714% (12/14)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf-getput-crypto.c
Lines: 75-87
 85.714% (12/14)
154
sshbuf_free
Name: sshbuf_free
Prototype: void sshbuf_free(struct sshbuf *buf)
Coverage:  84.615% (11/13)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf.c
Lines: 133-166
 84.615% (11/13)
205
sshbuf_consume
Name: sshbuf_consume
Prototype: int sshbuf_consume(struct sshbuf *buf, size_t len)
Coverage:  84.615% (11/13)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf.c
Lines: 363-381
 84.615% (11/13)
115
kex_free_newkeys
Name: kex_free_newkeys
Prototype: void kex_free_newkeys(struct newkeys *newkeys)
Coverage:  84.615% (11/13)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/kex.c
Lines: 607-636
 84.615% (11/13)
375
fingerprint_randomart
Name: fingerprint_randomart
Prototype: static char * fingerprint_randomart(const char *alg, u_char *dgst_raw, size_t dgst_raw_len, const struct sshkey *k)
Coverage:  84.615% (44/52)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c
Lines: 1066-1161
 84.615% (44/52)
6512
sshkey_type_plain
Name: sshkey_type_plain
Prototype: int sshkey_type_plain(int type)
Coverage:  83.333% (10/12)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c
Lines: 349-366
 83.333% (10/12)
77
sshkey_ssh_name_from_type_nid
Name: sshkey_ssh_name_from_type_nid
Prototype: static const char * sshkey_ssh_name_from_type_nid(int type, int nid)
Coverage:  81.818% (9/11)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c
Lines: 161-171
 81.818% (9/11)
53
sshbuf_put_bignum2_bytes
Name: sshbuf_put_bignum2_bytes
Prototype: int sshbuf_put_bignum2_bytes(struct sshbuf *buf, const void *v, size_t len)
Coverage:  81.818% (18/22)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf-getput-basic.c
Lines: 401-428
 81.818% (18/22)
156
sshbuf_get_cstring
Name: sshbuf_get_cstring
Prototype: int sshbuf_get_cstring(struct sshbuf *buf, char **valp, size_t *lenp)
Coverage:  81.250% (26/32)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf-getput-basic.c
Lines: 180-213
 81.250% (26/32)
4910
chacha_encrypt_bytes
Name: chacha_encrypt_bytes
Prototype: void chacha_encrypt_bytes(chacha_ctx *x,const u8 *m,u8 *c,u32 bytes)
Coverage:  80.769% (21/26)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/chacha.c
Lines: 89-219
 80.769% (21/26)
11710
strlcat
Name: strlcat
Prototype: size_t strlcat(char *dst, const char *src, size_t siz)
Coverage:  80.000% (12/15)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/openbsd-compat/strlcat.c
Lines: 34-60
 80.000% (12/15)
175
sshbuf_maybe_pack
Name: sshbuf_maybe_pack
Prototype: static void sshbuf_maybe_pack(struct sshbuf *buf, int force)
Coverage:  80.000% (12/15)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf.c
Lines: 52-66
 80.000% (12/15)
73
Page:<>1
Condition %: 100.000% (1/1)
23
Condition %:  80.000% (8/10)
4
Condition %:  56.522% (13/23)
5
Condition %:  45.455% (5/11)
6
Condition %:  26.374% (24/91)
...10
Condition %:  0.000% (0/9)
...20
Condition %:  0.000% (0/19)
21
Condition %:  0.000% (0/1)

Generated by Squish Coco 4.2.2