| Function | Condition %▾ | eLOC - Effective Lines of Code | McCabe - Cyclomatic Complexity |
to_blob| Name: | to_blob | | Prototype: | static int to_blob(const struct sshkey *key, u_char **blobp, size_t *lenp, int force_plain, enum sshkey_serialize_rep opts) | | Coverage: | 56.522% (13/23) | | Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c | | Lines: | 856-886 |
| | 42 | 9 |
sshkey_sign| Name: | sshkey_sign | | Prototype: | int sshkey_sign(const struct sshkey *key, u_char **sigp, size_t *lenp, const u_char *data, size_t datalen, const char *alg, u_int compat) | | Coverage: | 56.522% (13/23) | | Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c | | Lines: | 2393-2429 |
| | 20 | 13 |
RSA_set0_crt_params| Name: | RSA_set0_crt_params | | Prototype: | int RSA_set0_crt_params(RSA *r, BIGNUM *dmp1, BIGNUM *dmq1, BIGNUM *iqmp) | | Coverage: | 56.522% (13/23) | | Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssh/src/openbsd-compat/libressl-api-compat.c | | Lines: | 279-301 |
| | 44 | 5 |
DSA_set0_pqg| Name: | DSA_set0_pqg | | Prototype: | int DSA_set0_pqg(DSA *d, BIGNUM *p, BIGNUM *q, BIGNUM *g) | | Coverage: | 56.522% (13/23) | | Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssh/src/openbsd-compat/libressl-api-compat.c | | Lines: | 172-193 |
| | 43 | 5 |
ssh_add_hostkey| Name: | ssh_add_hostkey | | Prototype: | int ssh_add_hostkey(struct ssh *ssh, struct sshkey *key) | | Coverage: | 56.250% (9/16) | | Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh_api.c | | Lines: | 175-207 |
| | 54 | 5 |
ecdsa_generate_private_key| Name: | ecdsa_generate_private_key | | Prototype: | static int ecdsa_generate_private_key(u_int bits, int *nid, EC_KEY **ecdsap) | | Coverage: | 56.250% (9/16) | | Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c | | Lines: | 1583-1609 |
| | 39 | 6 |
dsa_generate_private_key| Name: | dsa_generate_private_key | | Prototype: | static int dsa_generate_private_key(u_int bits, DSA **dsap) | | Coverage: | 56.250% (9/16) | | Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c | | Lines: | 1504-1530 |
| | 47 | 6 |
RSA_set0_factors| Name: | RSA_set0_factors | | Prototype: | int RSA_set0_factors(RSA *r, BIGNUM *p, BIGNUM *q) | | Coverage: | 56.250% (9/16) | | Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssh/src/openbsd-compat/libressl-api-compat.c | | Lines: | 316-332 |
| | 29 | 4 |
ssh_remote_ipaddr| Name: | ssh_remote_ipaddr | | Prototype: | const char * ssh_remote_ipaddr(struct ssh *ssh) | | Coverage: | 56.000% (14/25) | | Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssh/src/packet.c | | Lines: | 514-535 |
| | 79 | 5 |
ssh_hmac_init| Name: | ssh_hmac_init | | Prototype: | int ssh_hmac_init(struct ssh_hmac_ctx *ctx, const void *key, size_t klen) | | Coverage: | 56.000% (14/25) | | Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssh/src/hmac.c | | Lines: | 63-90 |
| | 21 | 9 |
sshkey_fingerprint_raw| Name: | sshkey_fingerprint_raw | | Prototype: | int sshkey_fingerprint_raw(const struct sshkey *k, int dgst_alg, u_char **retp, size_t *lenp) | | Coverage: | 55.172% (16/29) | | Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c | | Lines: | 900-941 |
| | 58 | 11 |
sshkey_equal_public| Name: | sshkey_equal_public | | Prototype: | int sshkey_equal_public(const struct sshkey *a, const struct sshkey *b) | | Coverage: | 54.545% (36/66) | | Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c | | Lines: | 635-710 |
| | 103 | 16 |
ssh_packet_type_is_kex| Name: | ssh_packet_type_is_kex | | Prototype: | static int ssh_packet_type_is_kex(u_char type) | | Coverage: | 54.545% (6/11) | | Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssh/src/packet.c | | Lines: | 1185-1194 |
| | 6 | 1 |
_ssh_host_public_key| Name: | _ssh_host_public_key | | Prototype: | struct sshkey * _ssh_host_public_key(int type, int nid, struct ssh *ssh) | | Coverage: | 54.545% (6/11) | | Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh_api.c | | Lines: | 437-450 |
| | 15 | 3 |
_ssh_host_private_key| Name: | _ssh_host_private_key | | Prototype: | struct sshkey * _ssh_host_private_key(int type, int nid, struct ssh *ssh) | | Coverage: | 54.545% (6/11) | | Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh_api.c | | Lines: | 452-465 |
| | 15 | 3 |
sshbuf_b64tod| Name: | sshbuf_b64tod | | Prototype: | int sshbuf_b64tod(struct sshbuf *buf, const char *b64) | | Coverage: | 53.846% (7/13) | | Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf-misc.c | | Lines: | 113-137 |
| | 24 | 5 |
mysignal| Name: | mysignal | | Prototype: | mysig_t mysignal(int sig, mysig_t act) | | Coverage: | 53.846% (7/13) | | Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssh/src/openbsd-compat/bsd-signal.c | | Lines: | 27-51 |
| | 39 | 5 |
to_blob_buf| Name: | to_blob_buf | | Prototype: | static int to_blob_buf(const struct sshkey *key, struct sshbuf *b, int force_plain, enum sshkey_serialize_rep opts) | | Coverage: | 53.333% (40/75) | | Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c | | Lines: | 724-820 |
| | 72 | 23 |
parse_server_config| Name: | parse_server_config | | Prototype: | void parse_server_config(ServerOptions *options, const char *filename, struct sshbuf *conf, struct connection_info *connectinfo) | | Coverage: | 53.333% (8/15) | | Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssh/src/servconf.c | | Lines: | 2359-2382 |
| | 88 | 5 |
fill_default_server_options| Name: | fill_default_server_options | | Prototype: | void fill_default_server_options(ServerOptions *options) | | Coverage: | 53.160% (143/269) | | Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssh/src/servconf.c | | Lines: | 258-460 |
| | 404 | 85 |
sshkey_to_base64| Name: | sshkey_to_base64 | | Prototype: | int sshkey_to_base64(const struct sshkey *key, char **b64p) | | Coverage: | 52.941% (9/17) | | Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c | | Lines: | 1390-1417 |
| | 43 | 7 |
sshkey_load_cert| Name: | sshkey_load_cert | | Prototype: | int sshkey_load_cert(const char *filename, struct sshkey **keyp) | | Coverage: | 52.941% (9/17) | | Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssh/src/authfile.c | | Lines: | 357-385 |
| | 44 | 7 |
sshbuf_froms| Name: | sshbuf_froms | | Prototype: | int sshbuf_froms(struct sshbuf *buf, struct sshbuf **bufp) | | Coverage: | 52.941% (9/17) | | Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf-getput-basic.c | | Lines: | 377-399 |
| | 29 | 5 |
DH_set0_pqg| Name: | DH_set0_pqg | | Prototype: | int DH_set0_pqg(DH *dh, BIGNUM *p, BIGNUM *q, BIGNUM *g) | | Coverage: | 52.632% (10/19) | | Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssh/src/openbsd-compat/libressl-api-compat.c | | Lines: | 460-480 |
| | 34 | 5 |
sshkey_parse_private_pem_fileblob| Name: | sshkey_parse_private_pem_fileblob | | Prototype: | static int sshkey_parse_private_pem_fileblob(struct sshbuf *blob, int type, const char *passphrase, struct sshkey **keyp) | | Coverage: | 52.308% (34/65) | | Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c | | Lines: | 3916-4007 |
| | 125 | 16 |
dh_pub_is_valid| Name: | dh_pub_is_valid | | Prototype: | int dh_pub_is_valid(const DH *dh, const BIGNUM *dh_pub) | | Coverage: | 52.174% (12/23) | | Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssh/src/dh.c | | Lines: | 222-268 |
| | 44 | 8 |
ssh_packet_need_rekeying| Name: | ssh_packet_need_rekeying | | Prototype: | static int ssh_packet_need_rekeying(struct ssh *ssh, u_int outbound_packet_len) | | Coverage: | 51.429% (18/35) | | Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssh/src/packet.c | | Lines: | 924-969 |
| | 26 | 7 |
derive_key| Name: | derive_key | | Prototype: | static int derive_key(struct ssh *ssh, int id, u_int need, u_char *hash, u_int hashlen, const struct sshbuf *shared_secret, u_char **keyp) | | Coverage: | 51.429% (18/35) | | Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssh/src/kex.c | | Lines: | 927-988 |
| | 65 | 7 |
ssh_ed25519_sign| Name: | ssh_ed25519_sign | | Prototype: | int ssh_ed25519_sign(const struct sshkey *key, u_char **sigp, size_t *lenp, const u_char *data, size_t datalen, u_int compat) | | Coverage: | 51.111% (23/45) | | Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh-ed25519.c | | Lines: | 35-92 |
| | 77 | 13 |
xrecallocarray| Name: | xrecallocarray | | Prototype: | void * xrecallocarray(void *ptr, size_t onmemb, size_t nmemb, size_t size) | | Coverage: | 50.000% (2/4) | | Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssh/src/xmalloc.c | | Lines: | 80-90 |
| | 8 | 2 |
xreallocarray| Name: | xreallocarray | | Prototype: | void * xreallocarray(void *ptr, size_t nmemb, size_t size) | | Coverage: | 50.000% (2/4) | | Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssh/src/xmalloc.c | | Lines: | 68-78 |
| | 8 | 2 |
sshpkt_send| Name: | sshpkt_send | | Prototype: | int sshpkt_send(struct ssh *ssh) | | Coverage: | 50.000% (3/6) | | Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssh/src/packet.c | | Lines: | 2648-2654 |
| | 3 | 2 |
sshpkt_get_end| Name: | sshpkt_get_end | | Prototype: | int sshpkt_get_end(struct ssh *ssh) | | Coverage: | 50.000% (2/4) | | Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssh/src/packet.c | | Lines: | 2555-2561 |
| | 3 | 2 |
sshkey_type_is_valid_ca| Name: | sshkey_type_is_valid_ca | | Prototype: | static int sshkey_type_is_valid_ca(int type) | | Coverage: | 50.000% (4/8) | | Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c | | Lines: | 325-338 |
| | 3 | 7 |
sshkey_set_filename| Name: | sshkey_set_filename | | Prototype: | int sshkey_set_filename(struct sshkey *k, const char *filename) | | Coverage: | 50.000% (2/4) | | Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c | | Lines: | 4143-4149 |
| | 5 | 2 |
sshkey_is_cert| Name: | sshkey_is_cert | | Prototype: | int sshkey_is_cert(const struct sshkey *k) | | Coverage: | 50.000% (2/4) | | Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c | | Lines: | 340-346 |
| | 5 | 2 |
sshkey_from_blob| Name: | sshkey_from_blob | | Prototype: | int sshkey_from_blob(const u_char *blob, size_t blen, struct sshkey **keyp) | | Coverage: | 50.000% (2/4) | | Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c | | Lines: | 2271-2282 |
| | 9 | 2 |
sshkey_format_text| Name: | sshkey_format_text | | Prototype: | int sshkey_format_text(const struct sshkey *key, struct sshbuf *b) | | Coverage: | 50.000% (4/8) | | Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c | | Lines: | 1419-1434 |
| | 14 | 4 |
sshkey_equal| Name: | sshkey_equal | | Prototype: | int sshkey_equal(const struct sshkey *a, const struct sshkey *b) | | Coverage: | 50.000% (7/14) | | Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c | | Lines: | 712-722 |
| | 14 | 4 |
sshkey_ecdsa_bits_to_nid| Name: | sshkey_ecdsa_bits_to_nid | | Prototype: | int sshkey_ecdsa_bits_to_nid(int bits) | | Coverage: | 50.000% (4/8) | | Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c | | Lines: | 402-417 |
| | 17 | 5 |
sshbuf_set_parent| Name: | sshbuf_set_parent | | Prototype: | int sshbuf_set_parent(struct sshbuf *child, struct sshbuf *parent) | | Coverage: | 50.000% (3/6) | | Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf.c | | Lines: | 104-115 |
| | 7 | 2 |
sshbuf_put_u8| Name: | sshbuf_put_u8 | | Prototype: | int sshbuf_put_u8(struct sshbuf *buf, u_char val) | | Coverage: | 50.000% (2/4) | | Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf-getput-basic.c | | Lines: | 335-345 |
| | 6 | 2 |
sshbuf_ptr| Name: | sshbuf_ptr | | Prototype: | const u_char * sshbuf_ptr(const struct sshbuf *buf) | | Coverage: | 50.000% (2/4) | | Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf.c | | Lines: | 268-274 |
| | 7 | 2 |
sshbuf_len| Name: | sshbuf_len | | Prototype: | size_t sshbuf_len(const struct sshbuf *buf) | | Coverage: | 50.000% (2/4) | | Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf.c | | Lines: | 252-258 |
| | 3 | 2 |
sshbuf_get_stringb| Name: | sshbuf_get_stringb | | Prototype: | int sshbuf_get_stringb(struct sshbuf *buf, struct sshbuf *v) | | Coverage: | 50.000% (5/10) | | Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf-getput-basic.c | | Lines: | 215-233 |
| | 17 | 2 |
sshbuf_get_eckey| Name: | sshbuf_get_eckey | | Prototype: | int sshbuf_get_eckey(struct sshbuf *buf, EC_KEY *v) | | Coverage: | 50.000% (8/16) | | Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf-getput-crypto.c | | Lines: | 110-143 |
| | 29 | 6 |
sshbuf_from| Name: | sshbuf_from | | Prototype: | struct sshbuf * sshbuf_from(const void *blob, size_t len) | | Coverage: | 50.000% (4/8) | | Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf.c | | Lines: | 87-102 |
| | 29 | 2 |
sshbuf_check_sanity| Name: | sshbuf_check_sanity | | Prototype: | static inline int sshbuf_check_sanity(const struct sshbuf *buf) | | Coverage: | 50.000% (2/4) | | Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf.c | | Lines: | 31-50 |
| | 25 | 2 |
ssh_packet_set_postauth| Name: | ssh_packet_set_postauth | | Prototype: | static int ssh_packet_set_postauth(struct ssh *ssh) | | Coverage: | 50.000% (2/4) | | Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssh/src/packet.c | | Lines: | 2147-2159 |
| | 7 | 2 |
ssh_packet_get_state| Name: | ssh_packet_get_state | | Prototype: | int ssh_packet_get_state(struct ssh *ssh, struct sshbuf *m) | | Coverage: | 50.000% (16/32) | | Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssh/src/packet.c | | Lines: | 2230-2254 |
| | 19 | 2 |
ssh_digest_update| Name: | ssh_digest_update | | Prototype: | int ssh_digest_update(struct ssh_digest_ctx *ctx, const void *m, size_t mlen) | | Coverage: | 50.000% (2/4) | | Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssh/src/digest-openssl.c | | Lines: | 143-149 |
| | 3 | 2 |
ssh_clear_newkeys| Name: | ssh_clear_newkeys | | Prototype: | void ssh_clear_newkeys(struct ssh *ssh, int mode) | | Coverage: | 50.000% (3/6) | | Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssh/src/packet.c | | Lines: | 819-826 |
| | 7 | 2 |
kexc25519_shared_key| Name: | kexc25519_shared_key | | Prototype: | int kexc25519_shared_key(const u_char key[32], const u_char pub[32], struct sshbuf *out) | | Coverage: | 50.000% (2/4) | | Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssh/src/kexc25519.c | | Lines: | 62-82 |
| | 10 | 2 |
kexc25519_client| Name: | kexc25519_client | | Prototype: | int kexc25519_client(struct ssh *ssh) | | Coverage: | 50.000% (4/8) | | Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssh/src/kexc25519c.c | | Lines: | 49-69 |
| | 11 | 2 |
kex_to_blob| Name: | kex_to_blob | | Prototype: | static int kex_to_blob(struct sshbuf *m, struct kex *kex) | | Coverage: | 50.000% (12/24) | | Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssh/src/packet.c | | Lines: | 2164-2183 |
| | 15 | 2 |
kex_buf2prop| Name: | kex_buf2prop | | Prototype: | int kex_buf2prop(struct sshbuf *raw, int *first_kex_follows, char ***propp) | | Coverage: | 50.000% (15/30) | | Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssh/src/kex.c | | Lines: | 324-363 |
| | 54 | 10 |
filter_list| Name: | filter_list | | Prototype: | static char * filter_list(const char *proposal, const char *filter, int blacklist) | | Coverage: | 50.000% (15/30) | | Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssh/src/match.c | | Lines: | 303-330 |
| | 131 | 6 |
do_convert_to_ssh2| Name: | do_convert_to_ssh2 | | Prototype: | static void do_convert_to_ssh2(struct passwd *pw, struct sshkey *k) | | Coverage: | 50.000% (2/4) | | Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh-keygen.c | | Lines: | 328-351 |
| | 33 | 2 |
default_key_sign| Name: | default_key_sign | | Prototype: | static int default_key_sign(const struct sshkey *key, u_char **sigp, size_t *lenp, const u_char *data, size_t datalen, const char *alg, u_int compat, void *ctx) | | Coverage: | 50.000% (2/4) | | Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c | | Lines: | 2665-2673 |
| | 5 | 2 |
crypto_hash_sha512| Name: | crypto_hash_sha512 | | Prototype: | int crypto_hash_sha512(unsigned char *out, const unsigned char *in, unsigned long long inlen) | | Coverage: | 50.000% (2/4) | | Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssh/src/hash.c | | Lines: | 17-27 |
| | 5 | 2 |
convert_libcrypto_error| Name: | convert_libcrypto_error | | Prototype: | static int convert_libcrypto_error(void) | | Coverage: | 50.000% (2/4) | | Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c | | Lines: | 3903-3914 |
| | 4 | 2 |
closefrom| Name: | closefrom | | Prototype: | void closefrom(int lowfd) | | Coverage: | 50.000% (15/30) | | Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssh/src/openbsd-compat/bsd-closefrom.c | | Lines: | 68-107 |
| | 28 | 6 |
cipher_warning_message| Name: | cipher_warning_message | | Prototype: | const char * cipher_warning_message(const struct sshcipher_ctx *cc) | | Coverage: | 50.000% (3/6) | | Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssh/src/cipher.c | | Lines: | 226-233 |
| | 17 | 2 |
chachapoly_init| Name: | chachapoly_init | | Prototype: | int chachapoly_init(struct chachapoly_ctx *ctx, const u_char *key, u_int keylen) | | Coverage: | 50.000% (2/4) | | Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssh/src/cipher-chachapoly.c | | Lines: | 31-40 |
| | 5 | 2 |
array_append| Name: | array_append | | Prototype: | static void array_append(const char *file, const int line, const char *directive, char ***array, u_int *lp, const char *s) | | Coverage: | 50.000% (2/4) | | Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssh/src/servconf.c | | Lines: | 223-234 |
| | 5 | 2 |
arc4random_uniform| Name: | arc4random_uniform | | Prototype: | u_int32_t arc4random_uniform(u_int32_t upper_bound) | | Coverage: | 50.000% (4/8) | | Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssh/src/openbsd-compat/arc4random.c | | Lines: | 291-315 |
| | 9 | 4 |
addr_hostmask| Name: | addr_hostmask | | Prototype: | static int addr_hostmask(int af, u_int l, struct xaddr *n) | | Coverage: | 50.000% (3/6) | | Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssh/src/addrmatch.c | | Lines: | 258-264 |
| | 3 | 2 |
accumulate_host_timing_secret| Name: | accumulate_host_timing_secret | | Prototype: | static void accumulate_host_timing_secret(struct sshbuf *server_cfg, const struct sshkey *key) | | Coverage: | 50.000% (12/24) | | Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshd.c | | Lines: | 1426-1461 |
| | 41 | 8 |
a2port| Name: | a2port | | Prototype: | int a2port(const char *s) | | Coverage: | 50.000% (2/4) | | Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssh/src/misc.c | | Lines: | 332-342 |
| | 8 | 2 |
_rs_init| Name: | _rs_init | | Prototype: | static __inline void _rs_init(u_char *buf, size_t n) | | Coverage: | 50.000% (2/4) | | Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssh/src/openbsd-compat/arc4random.c | | Lines: | 75-82 |
| | 4 | 2 |
RSA_get0_crt_params| Name: | RSA_get0_crt_params | | Prototype: | void RSA_get0_crt_params(const RSA *r, const BIGNUM **dmp1, const BIGNUM **dmq1, const BIGNUM **iqmp) | | Coverage: | 50.000% (5/10) | | Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssh/src/openbsd-compat/libressl-api-compat.c | | Lines: | 265-275 |
| | 12 | 4 |
EVP_MD_CTX_free| Name: | EVP_MD_CTX_free | | Prototype: | void EVP_MD_CTX_free(EVP_MD_CTX *ctx) | | Coverage: | 50.000% (2/4) | | Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssh/src/openbsd-compat/libressl-api-compat.c | | Lines: | 624-633 |
| | 6 | 2 |
ECDSA_SIG_set0| Name: | ECDSA_SIG_set0 | | Prototype: | int ECDSA_SIG_set0(ECDSA_SIG *sig, BIGNUM *r, BIGNUM *s) | | Coverage: | 50.000% (3/6) | | Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssh/src/openbsd-compat/libressl-api-compat.c | | Lines: | 432-443 |
| | 13 | 2 |
DSA_SIG_set0| Name: | DSA_SIG_set0 | | Prototype: | int DSA_SIG_set0(DSA_SIG *sig, BIGNUM *r, BIGNUM *s) | | Coverage: | 50.000% (3/6) | | Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssh/src/openbsd-compat/libressl-api-compat.c | | Lines: | 405-417 |
| | 13 | 2 |
DH_set_length| Name: | DH_set_length | | Prototype: | int DH_set_length(DH *dh, long length) | | Coverage: | 50.000% (3/6) | | Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssh/src/openbsd-compat/libressl-api-compat.c | | Lines: | 512-520 |
| | 4 | 2 |
kex_input_kexinit| Name: | kex_input_kexinit | | Prototype: | int kex_input_kexinit(int type, u_int32_t seq, struct ssh *ssh) | | Coverage: | 48.649% (18/37) | | Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssh/src/kex.c | | Lines: | 528-578 |
| | 58 | 12 |
do_convert_from| Name: | do_convert_from | | Prototype: | static void do_convert_from(struct passwd *pw) | | Coverage: | 48.571% (17/35) | | Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh-keygen.c | | Lines: | 717-774 |
| | 112 | 15 |
ssh_rsa_sign| Name: | ssh_rsa_sign | | Prototype: | int ssh_rsa_sign(const struct sshkey *key, u_char **sigp, size_t *lenp, const u_char *data, size_t datalen, const char *alg_ident) | | Coverage: | 48.485% (32/66) | | Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh-rsa.c | | Lines: | 163-242 |
| | 106 | 19 |
openssh_RSA_verify| Name: | openssh_RSA_verify | | Prototype: | static int openssh_RSA_verify(int hash_alg, u_char *hash, size_t hashlen, u_char *sigbuf, size_t siglen, RSA *rsa) | | Coverage: | 48.485% (16/33) | | Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh-rsa.c | | Lines: | 402-448 |
| | 48 | 9 |
sshkey_read| Name: | sshkey_read | | Prototype: | int sshkey_read(struct sshkey *ret, char **cpp) | | Coverage: | 48.352% (44/91) | | Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c | | Lines: | 1227-1387 |
| | 168 | 34 |
strdelim_internal| Name: | strdelim_internal | | Prototype: | static char * strdelim_internal(char **s, int split_equals) | | Coverage: | 48.000% (12/25) | | Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssh/src/misc.c | | Lines: | 241-280 |
| | 97 | 7 |
ssh_ecdsa_sign| Name: | ssh_ecdsa_sign | | Prototype: | int ssh_ecdsa_sign(const struct sshkey *key, u_char **sigp, size_t *lenp, const u_char *data, size_t datalen, u_int compat) | | Coverage: | 48.000% (24/50) | | Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh-ecdsa.c | | Lines: | 49-110 |
| | 89 | 14 |
ssh_dss_sign| Name: | ssh_dss_sign | | Prototype: | int ssh_dss_sign(const struct sshkey *key, u_char **sigp, size_t *lenp, const u_char *data, size_t datalen, u_int compat) | | Coverage: | 47.826% (22/46) | | Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh-dss.c | | Lines: | 51-117 |
| | 99 | 14 |
sshkey_size| Name: | sshkey_size | | Prototype: | u_int sshkey_size(const struct sshkey *k) | | Coverage: | 47.619% (10/21) | | Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c | | Lines: | 291-323 |
| | 33 | 13 |
sshkey_parse_private_fileblob_type| Name: | sshkey_parse_private_fileblob_type | | Prototype: | int sshkey_parse_private_fileblob_type(struct sshbuf *blob, int type, const char *passphrase, struct sshkey **keyp, char **commentp) | | Coverage: | 47.619% (10/21) | | Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c | | Lines: | 4010-4050 |
| | 29 | 10 |
input_kex_ecdh_reply| Name: | input_kex_ecdh_reply | | Prototype: | static int input_kex_ecdh_reply(int type, u_int32_t seq, struct ssh *ssh) | | Coverage: | 47.541% (29/61) | | Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssh/src/kexecdhc.c | | Lines: | 96-220 |
| | 137 | 17 |
input_kex_dh| Name: | input_kex_dh | | Prototype: | static int input_kex_dh(int type, u_int32_t seq, struct ssh *ssh) | | Coverage: | 47.541% (29/61) | | Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssh/src/kexdhc.c | | Lines: | 107-223 |
| | 130 | 17 |
input_kex_c25519_reply| Name: | input_kex_c25519_reply | | Prototype: | static int input_kex_c25519_reply(int type, u_int32_t seq, struct ssh *ssh) | | Coverage: | 47.059% (24/51) | | Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssh/src/kexc25519c.c | | Lines: | 71-169 |
| | 98 | 15 |
kexgex_hash| Name: | kexgex_hash | | Prototype: | int kexgex_hash( int hash_alg, const char *client_version_string, const char *server_version_string, const u_char *ckexinit, size_t ckexinitlen, const u_char *skexinit, size_t skexinitlen, const u_char *serverhostkeyblob, size_t sbloblen, int min, int wantbits, int max, const BIGNUM *prime, const BIGNUM *gen, const BIGNUM *client_dh_pub, const BIGNUM *server_dh_pub, const BIGNUM *shared_secret, u_char *hash, size_t *hashlen) | | Coverage: | 46.939% (23/49) | | Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssh/src/kexgex.c | | Lines: | 46-103 |
| | 34 | 5 |
input_kex_dh_gex_reply| Name: | input_kex_dh_gex_reply | | Prototype: | static int input_kex_dh_gex_reply(int type, u_int32_t seq, struct ssh *ssh) | | Coverage: | 46.875% (30/64) | | Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssh/src/kexgexc.c | | Lines: | 147-269 |
| | 140 | 18 |
ssh_packet_set_connection| Name: | ssh_packet_set_connection | | Prototype: | struct ssh * ssh_packet_set_connection(struct ssh *ssh, int fd_in, int fd_out) | | Coverage: | 46.667% (7/15) | | Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssh/src/packet.c | | Lines: | 282-317 |
| | 54 | 5 |
kexecdh_client| Name: | kexecdh_client | | Prototype: | int kexecdh_client(struct ssh *ssh) | | Coverage: | 46.667% (7/15) | | Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssh/src/kexecdhc.c | | Lines: | 54-94 |
| | 36 | 5 |
input_kex_dh_gex_request| Name: | input_kex_dh_gex_request | | Prototype: | static int input_kex_dh_gex_request(int type, u_int32_t seq, struct ssh *ssh) | | Coverage: | 46.667% (21/45) | | Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssh/src/kexgexs.c | | Lines: | 71-123 |
| | 45 | 7 |
ssh_hmac_final| Name: | ssh_hmac_final | | Prototype: | int ssh_hmac_final(struct ssh_hmac_ctx *ctx, u_char *d, size_t dlen) | | Coverage: | 46.154% (6/13) | | Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssh/src/hmac.c | | Lines: | 104-119 |
| | 10 | 3 |
input_kex_dh_init| Name: | input_kex_dh_init | | Prototype: | int input_kex_dh_init(int type, u_int32_t seq, struct ssh *ssh) | | Coverage: | 46.032% (29/63) | | Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssh/src/kexdhs.c | | Lines: | 95-221 |
| | 135 | 17 |
input_kex_dh_gex_init| Name: | input_kex_dh_gex_init | | Prototype: | static int input_kex_dh_gex_init(int type, u_int32_t seq, struct ssh *ssh) | | Coverage: | 46.032% (29/63) | | Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssh/src/kexgexs.c | | Lines: | 125-254 |
| | 141 | 17 |
ssh_packet_set_state| Name: | ssh_packet_set_state | | Prototype: | int ssh_packet_set_state(struct ssh *ssh, struct sshbuf *m) | | Coverage: | 45.833% (22/48) | | Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssh/src/packet.c | | Lines: | 2370-2417 |
| | 35 | 6 |
kex_ecdh_hash| Name: | kex_ecdh_hash | | Prototype: | int kex_ecdh_hash( int hash_alg, const EC_GROUP *ec_group, const char *client_version_string, const char *server_version_string, const u_char *ckexinit, size_t ckexinitlen, const u_char *skexinit, size_t skexinitlen, const u_char *serverhostkeyblob, size_t sbloblen, const EC_POINT *client_dh_pub, const EC_POINT *server_dh_pub, const BIGNUM *shared_secret, u_char *hash, size_t *hashlen) | | Coverage: | 45.714% (16/35) | | Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssh/src/kexecdh.c | | Lines: | 49-99 |
| | 29 | 5 |
kex_dh_hash| Name: | kex_dh_hash | | Prototype: | int kex_dh_hash( int hash_alg, const char *client_version_string, const char *server_version_string, const u_char *ckexinit, size_t ckexinitlen, const u_char *skexinit, size_t skexinitlen, const u_char *serverhostkeyblob, size_t sbloblen, const BIGNUM *client_dh_pub, const BIGNUM *server_dh_pub, const BIGNUM *shared_secret, u_char *hash, size_t *hashlen) | | Coverage: | 45.714% (16/35) | | Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssh/src/kexdh.c | | Lines: | 46-95 |
| | 29 | 5 |
kex_c25519_hash| Name: | kex_c25519_hash | | Prototype: | int kex_c25519_hash( int hash_alg, const char *client_version_string, const char *server_version_string, const u_char *ckexinit, size_t ckexinitlen, const u_char *skexinit, size_t skexinitlen, const u_char *serverhostkeyblob, size_t sbloblen, const u_char client_dh_pub[32], const u_char server_dh_pub[32], const u_char *shared_secret, size_t secretlen, u_char *hash, size_t *hashlen) | | Coverage: | 45.714% (16/35) | | Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssh/src/kexc25519.c | | Lines: | 84-133 |
| | 29 | 5 |