OpenCoverage

OpenSSH Test Coverage

Function Tree

Page:<>12
Condition %: 100.000% (1/1)
3
Condition %:  80.000% (8/10)
4
Condition %:  56.522% (13/23)
5
Condition %:  45.455% (5/11)
...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
xstrdup
Name: xstrdup
Prototype: char * xstrdup(const char *str)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/xmalloc.c
Lines: 92-102
100.000% (1/1)
61
verbose
Name: verbose
Prototype: void verbose(const char *fmt,...)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/log.c
Lines: 210-218
100.000% (1/1)
201
uuencode
Name: uuencode
Prototype: int uuencode(const u_char *src, u_int srclength, char *target, size_t targsize)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/uuencode.c
Lines: 43-48
100.000% (1/1)
51
timingsafe_bcmp
Name: timingsafe_bcmp
Prototype: int timingsafe_bcmp(const void *b1, const void *b2, size_t n)
Coverage: 100.000% (4/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/openbsd-compat/timingsafe_bcmp.c
Lines: 23-32
100.000% (4/4)
52
times38
Name: times38
Prototype: static crypto_uint32 times38(crypto_uint32 a)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/fe25519.c
Lines: 38-41
100.000% (1/1)
11
times19
Name: times19
Prototype: static crypto_uint32 times19(crypto_uint32 a)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/fe25519.c
Lines: 33-36
100.000% (1/1)
11
sub
Name: sub
Prototype: static void sub(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: 20-32
100.000% (4/4)
92
strdelim
Name: strdelim
Prototype: char * strdelim(char **s)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/misc.c
Lines: 286-290
100.000% (1/1)
11
sshpkt_start
Name: sshpkt_start
Prototype: int sshpkt_start(struct ssh *ssh, u_char type)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/packet.c
Lines: 2573-2583
100.000% (1/1)
51
sshpkt_putb
Name: sshpkt_putb
Prototype: int sshpkt_putb(struct ssh *ssh, const struct sshbuf *b)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/packet.c
Lines: 2429-2433
100.000% (1/1)
11
sshpkt_put_u32
Name: sshpkt_put_u32
Prototype: int sshpkt_put_u32(struct ssh *ssh, u_int32_t val)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/packet.c
Lines: 2441-2445
100.000% (1/1)
11
sshpkt_put_string
Name: sshpkt_put_string
Prototype: int sshpkt_put_string(struct ssh *ssh, const void *v, size_t len)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/packet.c
Lines: 2453-2457
100.000% (1/1)
11
sshpkt_put_ec
Name: sshpkt_put_ec
Prototype: int sshpkt_put_ec(struct ssh *ssh, const EC_POINT *v, const EC_GROUP *g)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/packet.c
Lines: 2473-2477
100.000% (1/1)
11
sshpkt_put_bignum2
Name: sshpkt_put_bignum2
Prototype: int sshpkt_put_bignum2(struct ssh *ssh, const BIGNUM *v)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/packet.c
Lines: 2481-2485
100.000% (1/1)
11
sshpkt_get_u8
Name: sshpkt_get_u8
Prototype: int sshpkt_get_u8(struct ssh *ssh, u_char *valp)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/packet.c
Lines: 2496-2500
100.000% (1/1)
11
sshpkt_get_u32
Name: sshpkt_get_u32
Prototype: int sshpkt_get_u32(struct ssh *ssh, u_int32_t *valp)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/packet.c
Lines: 2502-2506
100.000% (1/1)
11
sshpkt_get_string
Name: sshpkt_get_string
Prototype: int sshpkt_get_string(struct ssh *ssh, u_char **valp, size_t *lenp)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/packet.c
Lines: 2514-2518
100.000% (1/1)
11
sshpkt_get_ec
Name: sshpkt_get_ec
Prototype: int sshpkt_get_ec(struct ssh *ssh, EC_POINT *v, const EC_GROUP *g)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/packet.c
Lines: 2540-2544
100.000% (1/1)
11
sshpkt_get_bignum2
Name: sshpkt_get_bignum2
Prototype: int sshpkt_get_bignum2(struct ssh *ssh, BIGNUM *v)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/packet.c
Lines: 2548-2552
100.000% (1/1)
11
sshkey_type_is_cert
Name: sshkey_type_is_cert
Prototype: int sshkey_type_is_cert(int type)
Coverage: 100.000% (7/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c
Lines: 173-183
100.000% (7/7)
53
sshkey_to_blob
Name: sshkey_to_blob
Prototype: int sshkey_to_blob(const struct sshkey *key, u_char **blobp, size_t *lenp)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c
Lines: 888-892
100.000% (1/1)
11
sshkey_ssh_name_plain
Name: sshkey_ssh_name_plain
Prototype: const char * sshkey_ssh_name_plain(const struct sshkey *k)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c
Lines: 191-196
100.000% (1/1)
21
sshkey_ssh_name
Name: sshkey_ssh_name
Prototype: const char * sshkey_ssh_name(const struct sshkey *k)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c
Lines: 185-189
100.000% (1/1)
11
sshkey_putb_plain
Name: sshkey_putb_plain
Prototype: int sshkey_putb_plain(const struct sshkey *key, struct sshbuf *b)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c
Lines: 850-854
100.000% (1/1)
11
sshkey_putb
Name: sshkey_putb
Prototype: int sshkey_putb(const struct sshkey *key, struct sshbuf *b)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c
Lines: 822-826
100.000% (1/1)
11
sshkey_private_serialize
Name: sshkey_private_serialize
Prototype: int sshkey_private_serialize(const struct sshkey *key, struct sshbuf *b)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c
Lines: 2916-2921
100.000% (1/1)
21
sshkey_fromb
Name: sshkey_fromb
Prototype: int sshkey_fromb(struct sshbuf *b, struct sshkey **keyp)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c
Lines: 2284-2288
100.000% (1/1)
11
sshkey_curve_nid_to_bits
Name: sshkey_curve_nid_to_bits
Prototype: u_int sshkey_curve_nid_to_bits(int nid)
Coverage: 100.000% (8/8)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c
Lines: 385-400
100.000% (8/8)
55
sshkey_certify
Name: sshkey_certify
Prototype: int sshkey_certify(struct sshkey *k, struct sshkey *ca, const char *alg)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c
Lines: 2675-2679
100.000% (1/1)
51
sshbuf_reserve
Name: sshbuf_reserve
Prototype: int sshbuf_reserve(struct sshbuf *buf, size_t len, u_char **dpp)
Coverage: 100.000% (10/10)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf.c
Lines: 343-361
100.000% (10/10)
194
sshbuf_refcount
Name: sshbuf_refcount
Prototype: u_int sshbuf_refcount(const struct sshbuf *buf)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf.c
Lines: 208-212
100.000% (1/1)
11
sshbuf_putf
Name: sshbuf_putf
Prototype: int sshbuf_putf(struct sshbuf *buf, const char *fmt, ...)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf-getput-basic.c
Lines: 254-264
100.000% (1/1)
221
sshbuf_putb
Name: sshbuf_putb
Prototype: int sshbuf_putb(struct sshbuf *buf, const struct sshbuf *v)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf-getput-basic.c
Lines: 248-252
100.000% (1/1)
11
sshbuf_put_u64
Name: sshbuf_put_u64
Prototype: int sshbuf_put_u64(struct sshbuf *buf, u_int64_t val)
Coverage: 100.000% (4/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf-getput-basic.c
Lines: 299-309
100.000% (4/4)
62
sshbuf_put_u32
Name: sshbuf_put_u32
Prototype: int sshbuf_put_u32(struct sshbuf *buf, u_int32_t val)
Coverage: 100.000% (4/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf-getput-basic.c
Lines: 311-321
100.000% (4/4)
62
sshbuf_put_u16
Name: sshbuf_put_u16
Prototype: int sshbuf_put_u16(struct sshbuf *buf, u_int16_t val)
Coverage: 100.000% (4/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf-getput-basic.c
Lines: 323-333
100.000% (4/4)
62
sshbuf_put_stringb
Name: sshbuf_put_stringb
Prototype: int sshbuf_put_stringb(struct sshbuf *buf, const struct sshbuf *v)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf-getput-basic.c
Lines: 371-375
100.000% (1/1)
11
sshbuf_put_string
Name: sshbuf_put_string
Prototype: int sshbuf_put_string(struct sshbuf *buf, const void *v, size_t len)
Coverage: 100.000% (10/10)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf-getput-basic.c
Lines: 347-363
100.000% (10/10)
104
sshbuf_put_eckey
Name: sshbuf_put_eckey
Prototype: int sshbuf_put_eckey(struct sshbuf *buf, const EC_KEY *v)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf-getput-crypto.c
Lines: 217-222
100.000% (1/1)
21
sshbuf_put_cstring
Name: sshbuf_put_cstring
Prototype: int sshbuf_put_cstring(struct sshbuf *buf, const char *v)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf-getput-basic.c
Lines: 365-369
100.000% (1/1)
51
sshbuf_put
Name: sshbuf_put
Prototype: int sshbuf_put(struct sshbuf *buf, const void *v, size_t len)
Coverage: 100.000% (7/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf-getput-basic.c
Lines: 235-246
100.000% (7/7)
73
sshbuf_peek_string_direct
Name: sshbuf_peek_string_direct
Prototype: int sshbuf_peek_string_direct(const struct sshbuf *buf, const u_char **valp, size_t *lenp)
Coverage: 100.000% (22/22)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf-getput-basic.c
Lines: 149-178
100.000% (22/22)
308
sshbuf_parent
Name: sshbuf_parent
Prototype: const struct sshbuf * sshbuf_parent(const struct sshbuf *buf)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf.c
Lines: 202-206
100.000% (1/1)
11
sshbuf_max_size
Name: sshbuf_max_size
Prototype: size_t sshbuf_max_size(const struct sshbuf *buf)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf.c
Lines: 190-194
100.000% (1/1)
11
sshbuf_get_u8
Name: sshbuf_get_u8
Prototype: int sshbuf_get_u8(struct sshbuf *buf, u_char *valp)
Coverage: 100.000% (7/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf-getput-basic.c
Lines: 83-94
100.000% (7/7)
93
sshbuf_get_u32
Name: sshbuf_get_u32
Prototype: int sshbuf_get_u32(struct sshbuf *buf, u_int32_t *valp)
Coverage: 100.000% (7/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf-getput-basic.c
Lines: 57-68
100.000% (7/7)
93
sshbuf_dump
Name: sshbuf_dump
Prototype: void sshbuf_dump(struct sshbuf *buf, FILE *f)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf-misc.c
Lines: 65-70
100.000% (1/1)
21
sshbuf_alloc
Name: sshbuf_alloc
Prototype: size_t sshbuf_alloc(const struct sshbuf *buf)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf.c
Lines: 196-200
100.000% (1/1)
11
ssh_packet_set_server
Name: ssh_packet_set_server
Prototype: void ssh_packet_set_server(struct ssh *ssh)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/packet.c
Lines: 2122-2126
100.000% (1/1)
11
ssh_packet_get_output
Name: ssh_packet_get_output
Prototype: void * ssh_packet_get_output(struct ssh *ssh)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/packet.c
Lines: 2140-2144
100.000% (1/1)
11
ssh_packet_get_input
Name: ssh_packet_get_input
Prototype: void * ssh_packet_get_input(struct ssh *ssh)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/packet.c
Lines: 2134-2138
100.000% (1/1)
11
ssh_packet_close
Name: ssh_packet_close
Prototype: void ssh_packet_close(struct ssh *ssh)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/packet.c
Lines: 646-650
100.000% (1/1)
11
ssh_output_ptr
Name: ssh_output_ptr
Prototype: const u_char * ssh_output_ptr(struct ssh *ssh, size_t *len)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh_api.c
Lines: 286-293
100.000% (1/1)
31
ssh_output_consume
Name: ssh_output_consume
Prototype: int ssh_output_consume(struct ssh *ssh, size_t len)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh_api.c
Lines: 295-299
100.000% (1/1)
11
ssh_input_append
Name: ssh_input_append
Prototype: int ssh_input_append(struct ssh *ssh, const u_char *data, size_t len)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh_api.c
Lines: 221-225
100.000% (1/1)
11
ssh_hmac_update
Name: ssh_hmac_update
Prototype: int ssh_hmac_update(struct ssh_hmac_ctx *ctx, const void *m, size_t mlen)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/hmac.c
Lines: 92-96
100.000% (1/1)
11
ssh_hmac_bytes
Name: ssh_hmac_bytes
Prototype: size_t ssh_hmac_bytes(int alg)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/hmac.c
Lines: 36-40
100.000% (1/1)
11
ssh_dispatch_set
Name: ssh_dispatch_set
Prototype: void ssh_dispatch_set(struct ssh *ssh, int type, dispatch_fn *fn)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/dispatch.c
Lines: 81-85
100.000% (1/1)
11
ssh_digest_update_buffer
Name: ssh_digest_update_buffer
Prototype: int ssh_digest_update_buffer(struct ssh_digest_ctx *ctx, const struct sshbuf *b)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/digest-openssl.c
Lines: 151-155
100.000% (1/1)
11
ssh_digest_free
Name: ssh_digest_free
Prototype: void ssh_digest_free(struct ssh_digest_ctx *ctx)
Coverage: 100.000% (4/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/digest-openssl.c
Lines: 174-181
100.000% (4/4)
62
ssh_digest_buffer
Name: ssh_digest_buffer
Prototype: int ssh_digest_buffer(int alg, const struct sshbuf *b, u_char *d, size_t dlen)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/digest-openssl.c
Lines: 201-205
100.000% (1/1)
11
ssh_digest_blocksize
Name: ssh_digest_blocksize
Prototype: size_t ssh_digest_blocksize(struct ssh_digest_ctx *ctx)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/digest-openssl.c
Lines: 106-110
100.000% (1/1)
91
squeeze
Name: squeeze
Prototype: static void squeeze(unsigned int a[32])
Coverage: 100.000% (7/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/smult_curve25519_ref.c
Lines: 34-44
100.000% (7/7)
83
square
Name: square
Prototype: static void square(unsigned int out[32],const unsigned int a[32])
Coverage: 100.000% (13/13)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/smult_curve25519_ref.c
Lines: 90-108
100.000% (13/13)
135
setneutral
Name: setneutral
Prototype: static void setneutral(crypto_sign_ed25519_ref_ge25519 *r)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ge25519.c
Lines: 183-189
100.000% (1/1)
41
servconf_add_hostkey
Name: servconf_add_hostkey
Prototype: void servconf_add_hostkey(const char *file, const int line, ServerOptions *options, const char *path)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/servconf.c
Lines: 236-245
100.000% (1/1)
41
select
Name: select
Prototype: static void select(unsigned int p[64],unsigned int q[64],const unsigned int r[64],const unsigned int s[64],unsigned int b)
Coverage: 100.000% (4/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/smult_curve25519_ref.c
Lines: 110-122
100.000% (4/4)
82
reduce_mul
Name: reduce_mul
Prototype: static void reduce_mul(crypto_sign_ed25519_ref_fe25519 *r)
Coverage: 100.000% (7/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/fe25519.c
Lines: 63-81
100.000% (7/7)
113
reduce_add_sub
Name: reduce_add_sub
Prototype: static void reduce_add_sub(crypto_sign_ed25519_ref_fe25519 *r)
Coverage: 100.000% (7/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/fe25519.c
Lines: 43-61
100.000% (7/7)
113
reduce_add_sub
Name: reduce_add_sub
Prototype: static void reduce_add_sub(crypto_sign_ed25519_ref_sc25519 *r)
Coverage: 100.000% (7/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sc25519.c
Lines: 30-48
100.000% (7/7)
133
recip
Name: recip
Prototype: static void recip(unsigned int out[32],const unsigned int z[32])
Coverage: 100.000% (19/19)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/smult_curve25519_ref.c
Lines: 180-245
100.000% (19/19)
547
pwcopy
Name: pwcopy
Prototype: struct passwd * pwcopy(struct passwd *pw)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/misc.c
Lines: 301-325
100.000% (1/1)
91
poly1305_auth
Name: poly1305_auth
Prototype: void poly1305_auth(unsigned char out[16], const unsigned char *m, size_t inlen, const unsigned char key[32])
Coverage: 100.000% (20/20)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/poly1305.c
Lines: 33-160
100.000% (20/20)
9510
p1p1_to_p3
Name: p1p1_to_p3
Prototype: static void p1p1_to_p3(crypto_sign_ed25519_ref_ge25519 *r, const ge25519_p1p1 *p)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ge25519.c
Lines: 77-81
100.000% (1/1)
21
p1p1_to_p2
Name: p1p1_to_p2
Prototype: static void p1p1_to_p2(ge25519_p2 *r, const ge25519_p1p1 *p)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ge25519.c
Lines: 70-75
100.000% (1/1)
31
negative
Name: negative
Prototype: static unsigned char negative(signed char b)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ge25519.c
Lines: 163-168
100.000% (1/1)
31
mult121665
Name: mult121665
Prototype: static void mult121665(unsigned int out[32],const unsigned int a[32])
Coverage: 100.000% (7/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/smult_curve25519_ref.c
Lines: 77-88
100.000% (7/7)
83
mult
Name: mult
Prototype: static void mult(unsigned int out[32],const unsigned int a[32],const unsigned int b[32])
Coverage: 100.000% (10/10)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/smult_curve25519_ref.c
Lines: 62-75
100.000% (10/10)
94
mprintf
Name: mprintf
Prototype: int mprintf(const char *fmt, ...)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/utf8.c
Lines: 289-299
100.000% (1/1)
261
monotime
Name: monotime
Prototype: time_t monotime(void)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/misc.c
Lines: 1311-1318
100.000% (1/1)
31
match_hostname
Name: match_hostname
Prototype: int match_hostname(const char *host, const char *pattern)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/match.c
Lines: 179-189
100.000% (1/1)
61
match_filter_blacklist
Name: match_filter_blacklist
Prototype: char * match_filter_blacklist(const char *proposal, const char *filter)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/match.c
Lines: 336-340
100.000% (1/1)
11
mainloop
Name: mainloop
Prototype: static void mainloop(unsigned int work[64],const unsigned char e[32])
Coverage: 100.000% (16/16)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/smult_curve25519_ref.c
Lines: 124-178
100.000% (16/16)
476
lt
Name: lt
Prototype: static crypto_uint32 lt(crypto_uint32 a,crypto_uint32 b)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sc25519.c
Lines: 21-27
100.000% (1/1)
41
logit
Name: logit
Prototype: void logit(const char *fmt,...)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/log.c
Lines: 198-206
100.000% (1/1)
201
kexgex_server
Name: kexgex_server
Prototype: int kexgex_server(struct ssh *ssh)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/kexgexs.c
Lines: 62-69
100.000% (1/1)
41
kexecdh_server
Name: kexecdh_server
Prototype: int kexecdh_server(struct ssh *ssh)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/kexecdhs.c
Lines: 52-58
100.000% (1/1)
31
kexc25519_server
Name: kexc25519_server
Prototype: int kexc25519_server(struct ssh *ssh)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/kexc25519s.c
Lines: 46-52
100.000% (1/1)
31
kexc25519_keygen
Name: kexc25519_keygen
Prototype: void kexc25519_keygen(u_char key[32], u_char pub[32])
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/kexc25519.c
Lines: 53-60
100.000% (1/1)
21
kex_reset_dispatch
Name: kex_reset_dispatch
Prototype: static void kex_reset_dispatch(struct ssh *ssh)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/kex.c
Lines: 391-396
100.000% (1/1)
21
kex_free
Name: kex_free
Prototype: void kex_free(struct kex *kex)
Coverage: 100.000% (4/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/kex.c
Lines: 638-662
100.000% (4/4)
192
initialize_server_options
Name: initialize_server_options
Prototype: void initialize_server_options(ServerOptions *options)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/servconf.c
Lines: 79-183
100.000% (1/1)
2051
hpdelim
Name: hpdelim
Prototype: char * hpdelim(char **cp)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/misc.c
Lines: 525-529
100.000% (1/1)
51
get_hram
Name: get_hram
Prototype: static void get_hram(unsigned char *hram, const unsigned char *sm, const unsigned char *pk, unsigned char *playground, unsigned long long smlen)
Coverage: 100.000% (10/10)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ed25519.c
Lines: 14-23
100.000% (10/10)
54
ge25519_mixadd2
Name: ge25519_mixadd2
Prototype: static void ge25519_mixadd2(crypto_sign_ed25519_ref_ge25519 *r, const ge25519_aff *q)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ge25519.c
Lines: 83-104
100.000% (1/1)
191
ge
Name: ge
Prototype: static crypto_uint32 ge(crypto_uint32 a,crypto_uint32 b)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/fe25519.c
Lines: 24-31
100.000% (1/1)
51
freezero
Name: freezero
Prototype: void freezero(void *ptr, size_t sz)
Coverage: 100.000% (4/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/openbsd-compat/freezero.c
Lines: 24-31
100.000% (4/4)
62
freeze
Name: freeze
Prototype: static void freeze(unsigned int a[32])
Coverage: 100.000% (7/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/smult_curve25519_ref.c
Lines: 50-60
100.000% (7/7)
73
explicit_bzero
Name: explicit_bzero
Prototype: void explicit_bzero(void *p, size_t n)
Coverage: 100.000% (4/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/openbsd-compat/explicit_bzero.c
Lines: 36-53
100.000% (4/4)
32
equal
Name: equal
Prototype: static crypto_uint32 equal(crypto_uint32 a,crypto_uint32 b)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/fe25519.c
Lines: 16-22
100.000% (1/1)
41
Page:<>12
Condition %: 100.000% (1/1)
3
Condition %:  80.000% (8/10)
4
Condition %:  56.522% (13/23)
5
Condition %:  45.455% (5/11)
...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