| Line | Source | Count |
| 1 | | - |
| 2 | | - |
| 3 | | - |
| 4 | | - |
| 5 | | - |
| 6 | | - |
| 7 | | - |
| 8 | | - |
| 9 | | - |
| 10 | | - |
| 11 | | - |
| 12 | static int openssh_RSA_verify(int, u_char *, size_t, u_char *, size_t, RSA *); | - |
| 13 | | - |
| 14 | static const char * | - |
| 15 | rsa_hash_alg_ident(int hash_alg) | - |
| 16 | { | - |
| 17 | switch (hash_alg) { | - |
| 18 | caseexecuted 68 times by 3 tests: case 1:Executed by:- ssh-keygen
- test_kex
- test_sshkey
1:executed 68 times by 3 tests: case 1:Executed by:- ssh-keygen
- test_kex
- test_sshkey
| 68 |
| 19 | returnexecuted 68 times by 3 tests: return "ssh-rsa";Executed by:- ssh-keygen
- test_kex
- test_sshkey
"ssh-rsa";executed 68 times by 3 tests: return "ssh-rsa";Executed by:- ssh-keygen
- test_kex
- test_sshkey
| 68 |
| 20 | caseexecuted 24 times by 1 test: case 2: 2:executed 24 times by 1 test: case 2: | 24 |
| 21 | returnexecuted 24 times by 1 test: return "rsa-sha2-256"; "rsa-sha2-256";executed 24 times by 1 test: return "rsa-sha2-256"; | 24 |
| 22 | caseexecuted 24 times by 1 test: case 4: 4:executed 24 times by 1 test: case 4: | 24 |
| 23 | returnexecuted 24 times by 1 test: return "rsa-sha2-512"; "rsa-sha2-512";executed 24 times by 1 test: return "rsa-sha2-512"; | 24 |
| 24 | } | - |
| 25 | return never executed: return ((void *)0) ; never executed: return ((void *)0) ; | 0 |
| 26 | ((void *)0) never executed: return ((void *)0) ; | 0 |
| 27 | ; never executed: return ((void *)0) ; | 0 |
| 28 | } | - |
| 29 | | - |
| 30 | | - |
| 31 | | - |
| 32 | | - |
| 33 | | - |
| 34 | static int | - |
| 35 | rsa_hash_id_from_ident(const char *ident) | - |
| 36 | { | - |
| 37 | if ( | - |
| 38 | __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (| TRUE | evaluated 18830 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
| | FALSE | evaluated 46194 times by 1 test |
| 18830-46194 |
| 39 | ident| TRUE | evaluated 18830 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
| | FALSE | evaluated 46194 times by 1 test |
| 18830-46194 |
| 40 | ) && __builtin_constant_p (| TRUE | evaluated 18830 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
| | FALSE | evaluated 46194 times by 1 test |
| 18830-46194 |
| 41 | "ssh-rsa"| TRUE | evaluated 18830 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
| | FALSE | evaluated 46194 times by 1 test |
| 18830-46194 |
| 42 | ) && (__s1_len = __builtin_strlen (| TRUE | evaluated 18830 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
| | FALSE | evaluated 46194 times by 1 test |
| 18830-46194 |
| 43 | ident| TRUE | evaluated 18830 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
| | FALSE | evaluated 46194 times by 1 test |
| 18830-46194 |
| 44 | ), __s2_len = __builtin_strlen (| TRUE | evaluated 18830 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
| | FALSE | evaluated 46194 times by 1 test |
| 18830-46194 |
| 45 | "ssh-rsa"| TRUE | evaluated 18830 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
| | FALSE | evaluated 46194 times by 1 test |
| 18830-46194 |
| 46 | ), (!((size_t)(const void *)((| TRUE | evaluated 18830 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
| | FALSE | evaluated 46194 times by 1 test |
| 18830-46194 |
| 47 | ident| TRUE | evaluated 18830 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
| | FALSE | evaluated 46194 times by 1 test |
| 18830-46194 |
| 48 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 18830 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
| | FALSE | evaluated 46194 times by 1 test |
| 18830-46194 |
| 49 | ident| TRUE | evaluated 18830 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
| | FALSE | evaluated 46194 times by 1 test |
| 18830-46194 |
| 50 | ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((| TRUE | evaluated 18830 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
| | FALSE | evaluated 46194 times by 1 test |
| 18830-46194 |
| 51 | "ssh-rsa"| TRUE | evaluated 18830 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
| | FALSE | evaluated 46194 times by 1 test |
| 18830-46194 |
| 52 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 18830 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
| | FALSE | evaluated 46194 times by 1 test |
| 18830-46194 |
| 53 | "ssh-rsa"| TRUE | evaluated 18830 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
| | FALSE | evaluated 46194 times by 1 test |
| 18830-46194 |
| 54 | ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (| TRUE | evaluated 18830 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
| | FALSE | evaluated 46194 times by 1 test |
| 18830-46194 |
| 55 | ident| TRUE | evaluated 18830 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
| | FALSE | evaluated 46194 times by 1 test |
| 18830-46194 |
| 56 | , | TRUE | evaluated 18830 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
| | FALSE | evaluated 46194 times by 1 test |
| 18830-46194 |
| 57 | "ssh-rsa"| TRUE | evaluated 18830 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
| | FALSE | evaluated 46194 times by 1 test |
| 18830-46194 |
| 58 | ) : (__builtin_constant_p (| TRUE | evaluated 18830 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
| | FALSE | evaluated 46194 times by 1 test |
| 18830-46194 |
| 59 | ident| TRUE | evaluated 18830 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
| | FALSE | evaluated 46194 times by 1 test |
| 18830-46194 |
| 60 | ) && ((size_t)(const void *)((| TRUE | evaluated 18830 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
| | FALSE | evaluated 46194 times by 1 test |
| 18830-46194 |
| 61 | ident| TRUE | evaluated 18830 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
| | FALSE | evaluated 46194 times by 1 test |
| 18830-46194 |
| 62 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 18830 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
| | FALSE | evaluated 46194 times by 1 test |
| 18830-46194 |
| 63 | ident| TRUE | evaluated 18830 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
| | FALSE | evaluated 46194 times by 1 test |
| 18830-46194 |
| 64 | ) == 1) && (__s1_len = __builtin_strlen (| TRUE | evaluated 18830 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
| | FALSE | evaluated 46194 times by 1 test |
| 18830-46194 |
| 65 | ident| TRUE | evaluated 18830 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
| | FALSE | evaluated 46194 times by 1 test |
| 18830-46194 |
| 66 | ), __s1_len < 4) ? (__builtin_constant_p (| TRUE | evaluated 18830 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
| | FALSE | evaluated 46194 times by 1 test |
| 18830-46194 |
| 67 | "ssh-rsa"| TRUE | evaluated 18830 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
| | FALSE | evaluated 46194 times by 1 test |
| 18830-46194 |
| 68 | ) && ((size_t)(const void *)((| TRUE | evaluated 18830 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
| | FALSE | evaluated 46194 times by 1 test |
| 18830-46194 |
| 69 | "ssh-rsa"| TRUE | evaluated 18830 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
| | FALSE | evaluated 46194 times by 1 test |
| 18830-46194 |
| 70 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 18830 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
| | FALSE | evaluated 46194 times by 1 test |
| 18830-46194 |
| 71 | "ssh-rsa"| TRUE | evaluated 18830 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
| | FALSE | evaluated 46194 times by 1 test |
| 18830-46194 |
| 72 | ) == 1) ? __builtin_strcmp (| TRUE | evaluated 18830 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
| | FALSE | evaluated 46194 times by 1 test |
| 18830-46194 |
| 73 | ident| TRUE | evaluated 18830 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
| | FALSE | evaluated 46194 times by 1 test |
| 18830-46194 |
| 74 | , | TRUE | evaluated 18830 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
| | FALSE | evaluated 46194 times by 1 test |
| 18830-46194 |
| 75 | "ssh-rsa"| TRUE | evaluated 18830 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
| | FALSE | evaluated 46194 times by 1 test |
| 18830-46194 |
| 76 | ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (| TRUE | evaluated 18830 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
| | FALSE | evaluated 46194 times by 1 test |
| 18830-46194 |
| 77 | "ssh-rsa"| TRUE | evaluated 18830 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
| | FALSE | evaluated 46194 times by 1 test |
| 18830-46194 |
| 78 | ); int __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 18830 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
| | FALSE | evaluated 46194 times by 1 test |
| 18830-46194 |
| 79 | ident| TRUE | evaluated 18830 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
| | FALSE | evaluated 46194 times by 1 test |
| 18830-46194 |
| 80 | ))[0] - __s2[0]); if (__s1_len > 0| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 18830 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
| | FALSE | evaluated 46194 times by 1 test |
| 0-46194 |
| 81 | ident| TRUE | evaluated 18830 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
| | FALSE | evaluated 46194 times by 1 test |
| 18830-46194 |
| 82 | ))[1] - __s2[1]); if (__s1_len > 1| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 18830 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
| | FALSE | evaluated 46194 times by 1 test |
| 0-46194 |
| 83 | ident| TRUE | evaluated 18830 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
| | FALSE | evaluated 46194 times by 1 test |
| 18830-46194 |
| 84 | ))[2] - __s2[2]); if (__s1_len > 2| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( ident ))[3] - __s2[3]); | TRUE | evaluated 18830 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
| | FALSE | evaluated 46194 times by 1 test |
| 0-46194 |
| 85 | ident| TRUE | evaluated 18830 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
| | FALSE | evaluated 46194 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( ident ))[3] - __s2[3]); | 0-46194 |
| 86 | ))[3] - __s2[3]);| TRUE | evaluated 18830 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
| | FALSE | evaluated 46194 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( ident ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : (__builtin_constant_p (| TRUE | evaluated 18830 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
| | FALSE | evaluated 46194 times by 1 test |
| 0-46194 |
| 87 | "ssh-rsa"| TRUE | evaluated 18830 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
| | FALSE | evaluated 46194 times by 1 test |
| 18830-46194 |
| 88 | ) && ((size_t)(const void *)((| TRUE | evaluated 18830 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
| | FALSE | evaluated 46194 times by 1 test |
| 18830-46194 |
| 89 | "ssh-rsa"| TRUE | evaluated 18830 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
| | FALSE | evaluated 46194 times by 1 test |
| 18830-46194 |
| 90 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 18830 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
| | FALSE | evaluated 46194 times by 1 test |
| 18830-46194 |
| 91 | "ssh-rsa"| TRUE | evaluated 18830 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
| | FALSE | evaluated 46194 times by 1 test |
| 18830-46194 |
| 92 | ) == 1) && (__s2_len = __builtin_strlen (| TRUE | evaluated 18830 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
| | FALSE | evaluated 46194 times by 1 test |
| 18830-46194 |
| 93 | "ssh-rsa"| TRUE | evaluated 18830 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
| | FALSE | evaluated 46194 times by 1 test |
| 18830-46194 |
| 94 | ), __s2_len < 4) ? (__builtin_constant_p (| TRUE | evaluated 18830 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
| | FALSE | evaluated 46194 times by 1 test |
| 18830-46194 |
| 95 | ident| TRUE | evaluated 18830 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
| | FALSE | evaluated 46194 times by 1 test |
| 18830-46194 |
| 96 | ) && ((size_t)(const void *)((| TRUE | evaluated 18830 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
| | FALSE | evaluated 46194 times by 1 test |
| 18830-46194 |
| 97 | ident| TRUE | evaluated 18830 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
| | FALSE | evaluated 46194 times by 1 test |
| 18830-46194 |
| 98 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 18830 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
| | FALSE | evaluated 46194 times by 1 test |
| 18830-46194 |
| 99 | ident| TRUE | evaluated 18830 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
| | FALSE | evaluated 46194 times by 1 test |
| 18830-46194 |
| 100 | ) == 1) ? __builtin_strcmp (| TRUE | evaluated 18830 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
| | FALSE | evaluated 46194 times by 1 test |
| 18830-46194 |
| 101 | ident| TRUE | evaluated 18830 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
| | FALSE | evaluated 46194 times by 1 test |
| 18830-46194 |
| 102 | , | TRUE | evaluated 18830 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
| | FALSE | evaluated 46194 times by 1 test |
| 18830-46194 |
| 103 | "ssh-rsa"| TRUE | evaluated 18830 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
| | FALSE | evaluated 46194 times by 1 test |
| 18830-46194 |
| 104 | ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (| TRUE | evaluated 18830 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
| | FALSE | evaluated 46194 times by 1 test |
| 18830-46194 |
| 105 | ident| TRUE | evaluated 18830 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
| | FALSE | evaluated 46194 times by 1 test |
| 18830-46194 |
| 106 | ); int __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 18830 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
| | FALSE | evaluated 46194 times by 1 test |
| 18830-46194 |
| 107 | "ssh-rsa"| TRUE | evaluated 18830 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
| | FALSE | evaluated 46194 times by 1 test |
| 18830-46194 |
| 108 | ))[0] - __s2[0]); if (__s2_len > 0| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 18830 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
| | FALSE | evaluated 46194 times by 1 test |
| 0-46194 |
| 109 | "ssh-rsa"| TRUE | evaluated 18830 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
| | FALSE | evaluated 46194 times by 1 test |
| 18830-46194 |
| 110 | ))[1] - __s2[1]); if (__s2_len > 1| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 18830 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
| | FALSE | evaluated 46194 times by 1 test |
| 0-46194 |
| 111 | "ssh-rsa"| TRUE | evaluated 18830 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
| | FALSE | evaluated 46194 times by 1 test |
| 18830-46194 |
| 112 | ))[2] - __s2[2]); if (__s2_len > 2| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( "ssh-rsa" ))[3] - __s2[3]); | TRUE | evaluated 18830 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
| | FALSE | evaluated 46194 times by 1 test |
| 0-46194 |
| 113 | "ssh-rsa"| TRUE | evaluated 18830 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
| | FALSE | evaluated 46194 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( "ssh-rsa" ))[3] - __s2[3]); | 0-46194 |
| 114 | ))[3] - __s2[3]);| TRUE | evaluated 18830 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
| | FALSE | evaluated 46194 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( "ssh-rsa" ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : __builtin_strcmp (| TRUE | evaluated 18830 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
| | FALSE | evaluated 46194 times by 1 test |
| 0-46194 |
| 115 | ident| TRUE | evaluated 18830 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
| | FALSE | evaluated 46194 times by 1 test |
| 18830-46194 |
| 116 | , | TRUE | evaluated 18830 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
| | FALSE | evaluated 46194 times by 1 test |
| 18830-46194 |
| 117 | "ssh-rsa"| TRUE | evaluated 18830 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
| | FALSE | evaluated 46194 times by 1 test |
| 18830-46194 |
| 118 | )))); }) | TRUE | evaluated 18830 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
| | FALSE | evaluated 46194 times by 1 test |
| 18830-46194 |
| 119 | == 0| TRUE | evaluated 18830 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
| | FALSE | evaluated 46194 times by 1 test |
) | 18830-46194 |
| 120 | returnexecuted 18830 times by 3 tests: return 1;Executed by:- ssh-keygen
- test_kex
- test_sshkey
1;executed 18830 times by 3 tests: return 1;Executed by:- ssh-keygen
- test_kex
- test_sshkey
| 18830 |
| 121 | if ( | - |
| 122 | __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (| TRUE | evaluated 18707 times by 1 test | | FALSE | evaluated 27487 times by 1 test |
| 18707-27487 |
| 123 | ident| TRUE | evaluated 18707 times by 1 test | | FALSE | evaluated 27487 times by 1 test |
| 18707-27487 |
| 124 | ) && __builtin_constant_p (| TRUE | evaluated 18707 times by 1 test | | FALSE | evaluated 27487 times by 1 test |
| 18707-27487 |
| 125 | "rsa-sha2-256"| TRUE | evaluated 18707 times by 1 test | | FALSE | evaluated 27487 times by 1 test |
| 18707-27487 |
| 126 | ) && (__s1_len = __builtin_strlen (| TRUE | evaluated 18707 times by 1 test | | FALSE | evaluated 27487 times by 1 test |
| 18707-27487 |
| 127 | ident| TRUE | evaluated 18707 times by 1 test | | FALSE | evaluated 27487 times by 1 test |
| 18707-27487 |
| 128 | ), __s2_len = __builtin_strlen (| TRUE | evaluated 18707 times by 1 test | | FALSE | evaluated 27487 times by 1 test |
| 18707-27487 |
| 129 | "rsa-sha2-256"| TRUE | evaluated 18707 times by 1 test | | FALSE | evaluated 27487 times by 1 test |
| 18707-27487 |
| 130 | ), (!((size_t)(const void *)((| TRUE | evaluated 18707 times by 1 test | | FALSE | evaluated 27487 times by 1 test |
| 18707-27487 |
| 131 | ident| TRUE | evaluated 18707 times by 1 test | | FALSE | evaluated 27487 times by 1 test |
| 18707-27487 |
| 132 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 18707 times by 1 test | | FALSE | evaluated 27487 times by 1 test |
| 18707-27487 |
| 133 | ident| TRUE | evaluated 18707 times by 1 test | | FALSE | evaluated 27487 times by 1 test |
| 18707-27487 |
| 134 | ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((| TRUE | evaluated 18707 times by 1 test | | FALSE | evaluated 27487 times by 1 test |
| 18707-27487 |
| 135 | "rsa-sha2-256"| TRUE | evaluated 18707 times by 1 test | | FALSE | evaluated 27487 times by 1 test |
| 18707-27487 |
| 136 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 18707 times by 1 test | | FALSE | evaluated 27487 times by 1 test |
| 18707-27487 |
| 137 | "rsa-sha2-256"| TRUE | evaluated 18707 times by 1 test | | FALSE | evaluated 27487 times by 1 test |
| 18707-27487 |
| 138 | ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (| TRUE | evaluated 18707 times by 1 test | | FALSE | evaluated 27487 times by 1 test |
| 18707-27487 |
| 139 | ident| TRUE | evaluated 18707 times by 1 test | | FALSE | evaluated 27487 times by 1 test |
| 18707-27487 |
| 140 | , | TRUE | evaluated 18707 times by 1 test | | FALSE | evaluated 27487 times by 1 test |
| 18707-27487 |
| 141 | "rsa-sha2-256"| TRUE | evaluated 18707 times by 1 test | | FALSE | evaluated 27487 times by 1 test |
| 18707-27487 |
| 142 | ) : (__builtin_constant_p (| TRUE | evaluated 18707 times by 1 test | | FALSE | evaluated 27487 times by 1 test |
| 18707-27487 |
| 143 | ident| TRUE | evaluated 18707 times by 1 test | | FALSE | evaluated 27487 times by 1 test |
| 18707-27487 |
| 144 | ) && ((size_t)(const void *)((| TRUE | evaluated 18707 times by 1 test | | FALSE | evaluated 27487 times by 1 test |
| 18707-27487 |
| 145 | ident| TRUE | evaluated 18707 times by 1 test | | FALSE | evaluated 27487 times by 1 test |
| 18707-27487 |
| 146 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 18707 times by 1 test | | FALSE | evaluated 27487 times by 1 test |
| 18707-27487 |
| 147 | ident| TRUE | evaluated 18707 times by 1 test | | FALSE | evaluated 27487 times by 1 test |
| 18707-27487 |
| 148 | ) == 1) && (__s1_len = __builtin_strlen (| TRUE | evaluated 18707 times by 1 test | | FALSE | evaluated 27487 times by 1 test |
| 18707-27487 |
| 149 | ident| TRUE | evaluated 18707 times by 1 test | | FALSE | evaluated 27487 times by 1 test |
| 18707-27487 |
| 150 | ), __s1_len < 4) ? (__builtin_constant_p (| TRUE | evaluated 18707 times by 1 test | | FALSE | evaluated 27487 times by 1 test |
| 18707-27487 |
| 151 | "rsa-sha2-256"| TRUE | evaluated 18707 times by 1 test | | FALSE | evaluated 27487 times by 1 test |
| 18707-27487 |
| 152 | ) && ((size_t)(const void *)((| TRUE | evaluated 18707 times by 1 test | | FALSE | evaluated 27487 times by 1 test |
| 18707-27487 |
| 153 | "rsa-sha2-256"| TRUE | evaluated 18707 times by 1 test | | FALSE | evaluated 27487 times by 1 test |
| 18707-27487 |
| 154 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 18707 times by 1 test | | FALSE | evaluated 27487 times by 1 test |
| 18707-27487 |
| 155 | "rsa-sha2-256"| TRUE | evaluated 18707 times by 1 test | | FALSE | evaluated 27487 times by 1 test |
| 18707-27487 |
| 156 | ) == 1) ? __builtin_strcmp (| TRUE | evaluated 18707 times by 1 test | | FALSE | evaluated 27487 times by 1 test |
| 18707-27487 |
| 157 | ident| TRUE | evaluated 18707 times by 1 test | | FALSE | evaluated 27487 times by 1 test |
| 18707-27487 |
| 158 | , | TRUE | evaluated 18707 times by 1 test | | FALSE | evaluated 27487 times by 1 test |
| 18707-27487 |
| 159 | "rsa-sha2-256"| TRUE | evaluated 18707 times by 1 test | | FALSE | evaluated 27487 times by 1 test |
| 18707-27487 |
| 160 | ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (| TRUE | evaluated 18707 times by 1 test | | FALSE | evaluated 27487 times by 1 test |
| 18707-27487 |
| 161 | "rsa-sha2-256"| TRUE | evaluated 18707 times by 1 test | | FALSE | evaluated 27487 times by 1 test |
| 18707-27487 |
| 162 | ); int __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 18707 times by 1 test | | FALSE | evaluated 27487 times by 1 test |
| 18707-27487 |
| 163 | ident| TRUE | evaluated 18707 times by 1 test | | FALSE | evaluated 27487 times by 1 test |
| 18707-27487 |
| 164 | ))[0] - __s2[0]); if (__s1_len > 0| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 18707 times by 1 test | | FALSE | evaluated 27487 times by 1 test |
| 0-27487 |
| 165 | ident| TRUE | evaluated 18707 times by 1 test | | FALSE | evaluated 27487 times by 1 test |
| 18707-27487 |
| 166 | ))[1] - __s2[1]); if (__s1_len > 1| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 18707 times by 1 test | | FALSE | evaluated 27487 times by 1 test |
| 0-27487 |
| 167 | ident| TRUE | evaluated 18707 times by 1 test | | FALSE | evaluated 27487 times by 1 test |
| 18707-27487 |
| 168 | ))[2] - __s2[2]); if (__s1_len > 2| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( ident ))[3] - __s2[3]); | TRUE | evaluated 18707 times by 1 test | | FALSE | evaluated 27487 times by 1 test |
| 0-27487 |
| 169 | ident| TRUE | evaluated 18707 times by 1 test | | FALSE | evaluated 27487 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( ident ))[3] - __s2[3]); | 0-27487 |
| 170 | ))[3] - __s2[3]);| TRUE | evaluated 18707 times by 1 test | | FALSE | evaluated 27487 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( ident ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : (__builtin_constant_p (| TRUE | evaluated 18707 times by 1 test | | FALSE | evaluated 27487 times by 1 test |
| 0-27487 |
| 171 | "rsa-sha2-256"| TRUE | evaluated 18707 times by 1 test | | FALSE | evaluated 27487 times by 1 test |
| 18707-27487 |
| 172 | ) && ((size_t)(const void *)((| TRUE | evaluated 18707 times by 1 test | | FALSE | evaluated 27487 times by 1 test |
| 18707-27487 |
| 173 | "rsa-sha2-256"| TRUE | evaluated 18707 times by 1 test | | FALSE | evaluated 27487 times by 1 test |
| 18707-27487 |
| 174 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 18707 times by 1 test | | FALSE | evaluated 27487 times by 1 test |
| 18707-27487 |
| 175 | "rsa-sha2-256"| TRUE | evaluated 18707 times by 1 test | | FALSE | evaluated 27487 times by 1 test |
| 18707-27487 |
| 176 | ) == 1) && (__s2_len = __builtin_strlen (| TRUE | evaluated 18707 times by 1 test | | FALSE | evaluated 27487 times by 1 test |
| 18707-27487 |
| 177 | "rsa-sha2-256"| TRUE | evaluated 18707 times by 1 test | | FALSE | evaluated 27487 times by 1 test |
| 18707-27487 |
| 178 | ), __s2_len < 4) ? (__builtin_constant_p (| TRUE | evaluated 18707 times by 1 test | | FALSE | evaluated 27487 times by 1 test |
| 18707-27487 |
| 179 | ident| TRUE | evaluated 18707 times by 1 test | | FALSE | evaluated 27487 times by 1 test |
| 18707-27487 |
| 180 | ) && ((size_t)(const void *)((| TRUE | evaluated 18707 times by 1 test | | FALSE | evaluated 27487 times by 1 test |
| 18707-27487 |
| 181 | ident| TRUE | evaluated 18707 times by 1 test | | FALSE | evaluated 27487 times by 1 test |
| 18707-27487 |
| 182 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 18707 times by 1 test | | FALSE | evaluated 27487 times by 1 test |
| 18707-27487 |
| 183 | ident| TRUE | evaluated 18707 times by 1 test | | FALSE | evaluated 27487 times by 1 test |
| 18707-27487 |
| 184 | ) == 1) ? __builtin_strcmp (| TRUE | evaluated 18707 times by 1 test | | FALSE | evaluated 27487 times by 1 test |
| 18707-27487 |
| 185 | ident| TRUE | evaluated 18707 times by 1 test | | FALSE | evaluated 27487 times by 1 test |
| 18707-27487 |
| 186 | , | TRUE | evaluated 18707 times by 1 test | | FALSE | evaluated 27487 times by 1 test |
| 18707-27487 |
| 187 | "rsa-sha2-256"| TRUE | evaluated 18707 times by 1 test | | FALSE | evaluated 27487 times by 1 test |
| 18707-27487 |
| 188 | ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (| TRUE | evaluated 18707 times by 1 test | | FALSE | evaluated 27487 times by 1 test |
| 18707-27487 |
| 189 | ident| TRUE | evaluated 18707 times by 1 test | | FALSE | evaluated 27487 times by 1 test |
| 18707-27487 |
| 190 | ); int __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 18707 times by 1 test | | FALSE | evaluated 27487 times by 1 test |
| 18707-27487 |
| 191 | "rsa-sha2-256"| TRUE | evaluated 18707 times by 1 test | | FALSE | evaluated 27487 times by 1 test |
| 18707-27487 |
| 192 | ))[0] - __s2[0]); if (__s2_len > 0| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 18707 times by 1 test | | FALSE | evaluated 27487 times by 1 test |
| 0-27487 |
| 193 | "rsa-sha2-256"| TRUE | evaluated 18707 times by 1 test | | FALSE | evaluated 27487 times by 1 test |
| 18707-27487 |
| 194 | ))[1] - __s2[1]); if (__s2_len > 1| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 18707 times by 1 test | | FALSE | evaluated 27487 times by 1 test |
| 0-27487 |
| 195 | "rsa-sha2-256"| TRUE | evaluated 18707 times by 1 test | | FALSE | evaluated 27487 times by 1 test |
| 18707-27487 |
| 196 | ))[2] - __s2[2]); if (__s2_len > 2| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( "rsa-sha2-256" ))[3] - __s2[3]); | TRUE | evaluated 18707 times by 1 test | | FALSE | evaluated 27487 times by 1 test |
| 0-27487 |
| 197 | "rsa-sha2-256"| TRUE | evaluated 18707 times by 1 test | | FALSE | evaluated 27487 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( "rsa-sha2-256" ))[3] - __s2[3]); | 0-27487 |
| 198 | ))[3] - __s2[3]);| TRUE | evaluated 18707 times by 1 test | | FALSE | evaluated 27487 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( "rsa-sha2-256" ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : __builtin_strcmp (| TRUE | evaluated 18707 times by 1 test | | FALSE | evaluated 27487 times by 1 test |
| 0-27487 |
| 199 | ident| TRUE | evaluated 18707 times by 1 test | | FALSE | evaluated 27487 times by 1 test |
| 18707-27487 |
| 200 | , | TRUE | evaluated 18707 times by 1 test | | FALSE | evaluated 27487 times by 1 test |
| 18707-27487 |
| 201 | "rsa-sha2-256"| TRUE | evaluated 18707 times by 1 test | | FALSE | evaluated 27487 times by 1 test |
| 18707-27487 |
| 202 | )))); }) | TRUE | evaluated 18707 times by 1 test | | FALSE | evaluated 27487 times by 1 test |
| 18707-27487 |
| 203 | == 0| TRUE | evaluated 18707 times by 1 test | | FALSE | evaluated 27487 times by 1 test |
) | 18707-27487 |
| 204 | returnexecuted 18707 times by 1 test: return 2; 2;executed 18707 times by 1 test: return 2; | 18707 |
| 205 | if ( | - |
| 206 | __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (| TRUE | evaluated 18708 times by 1 test | | FALSE | evaluated 8779 times by 1 test |
| 8779-18708 |
| 207 | ident| TRUE | evaluated 18708 times by 1 test | | FALSE | evaluated 8779 times by 1 test |
| 8779-18708 |
| 208 | ) && __builtin_constant_p (| TRUE | evaluated 18708 times by 1 test | | FALSE | evaluated 8779 times by 1 test |
| 8779-18708 |
| 209 | "rsa-sha2-512"| TRUE | evaluated 18708 times by 1 test | | FALSE | evaluated 8779 times by 1 test |
| 8779-18708 |
| 210 | ) && (__s1_len = __builtin_strlen (| TRUE | evaluated 18708 times by 1 test | | FALSE | evaluated 8779 times by 1 test |
| 8779-18708 |
| 211 | ident| TRUE | evaluated 18708 times by 1 test | | FALSE | evaluated 8779 times by 1 test |
| 8779-18708 |
| 212 | ), __s2_len = __builtin_strlen (| TRUE | evaluated 18708 times by 1 test | | FALSE | evaluated 8779 times by 1 test |
| 8779-18708 |
| 213 | "rsa-sha2-512"| TRUE | evaluated 18708 times by 1 test | | FALSE | evaluated 8779 times by 1 test |
| 8779-18708 |
| 214 | ), (!((size_t)(const void *)((| TRUE | evaluated 18708 times by 1 test | | FALSE | evaluated 8779 times by 1 test |
| 8779-18708 |
| 215 | ident| TRUE | evaluated 18708 times by 1 test | | FALSE | evaluated 8779 times by 1 test |
| 8779-18708 |
| 216 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 18708 times by 1 test | | FALSE | evaluated 8779 times by 1 test |
| 8779-18708 |
| 217 | ident| TRUE | evaluated 18708 times by 1 test | | FALSE | evaluated 8779 times by 1 test |
| 8779-18708 |
| 218 | ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((| TRUE | evaluated 18708 times by 1 test | | FALSE | evaluated 8779 times by 1 test |
| 8779-18708 |
| 219 | "rsa-sha2-512"| TRUE | evaluated 18708 times by 1 test | | FALSE | evaluated 8779 times by 1 test |
| 8779-18708 |
| 220 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 18708 times by 1 test | | FALSE | evaluated 8779 times by 1 test |
| 8779-18708 |
| 221 | "rsa-sha2-512"| TRUE | evaluated 18708 times by 1 test | | FALSE | evaluated 8779 times by 1 test |
| 8779-18708 |
| 222 | ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (| TRUE | evaluated 18708 times by 1 test | | FALSE | evaluated 8779 times by 1 test |
| 8779-18708 |
| 223 | ident| TRUE | evaluated 18708 times by 1 test | | FALSE | evaluated 8779 times by 1 test |
| 8779-18708 |
| 224 | , | TRUE | evaluated 18708 times by 1 test | | FALSE | evaluated 8779 times by 1 test |
| 8779-18708 |
| 225 | "rsa-sha2-512"| TRUE | evaluated 18708 times by 1 test | | FALSE | evaluated 8779 times by 1 test |
| 8779-18708 |
| 226 | ) : (__builtin_constant_p (| TRUE | evaluated 18708 times by 1 test | | FALSE | evaluated 8779 times by 1 test |
| 8779-18708 |
| 227 | ident| TRUE | evaluated 18708 times by 1 test | | FALSE | evaluated 8779 times by 1 test |
| 8779-18708 |
| 228 | ) && ((size_t)(const void *)((| TRUE | evaluated 18708 times by 1 test | | FALSE | evaluated 8779 times by 1 test |
| 8779-18708 |
| 229 | ident| TRUE | evaluated 18708 times by 1 test | | FALSE | evaluated 8779 times by 1 test |
| 8779-18708 |
| 230 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 18708 times by 1 test | | FALSE | evaluated 8779 times by 1 test |
| 8779-18708 |
| 231 | ident| TRUE | evaluated 18708 times by 1 test | | FALSE | evaluated 8779 times by 1 test |
| 8779-18708 |
| 232 | ) == 1) && (__s1_len = __builtin_strlen (| TRUE | evaluated 18708 times by 1 test | | FALSE | evaluated 8779 times by 1 test |
| 8779-18708 |
| 233 | ident| TRUE | evaluated 18708 times by 1 test | | FALSE | evaluated 8779 times by 1 test |
| 8779-18708 |
| 234 | ), __s1_len < 4) ? (__builtin_constant_p (| TRUE | evaluated 18708 times by 1 test | | FALSE | evaluated 8779 times by 1 test |
| 8779-18708 |
| 235 | "rsa-sha2-512"| TRUE | evaluated 18708 times by 1 test | | FALSE | evaluated 8779 times by 1 test |
| 8779-18708 |
| 236 | ) && ((size_t)(const void *)((| TRUE | evaluated 18708 times by 1 test | | FALSE | evaluated 8779 times by 1 test |
| 8779-18708 |
| 237 | "rsa-sha2-512"| TRUE | evaluated 18708 times by 1 test | | FALSE | evaluated 8779 times by 1 test |
| 8779-18708 |
| 238 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 18708 times by 1 test | | FALSE | evaluated 8779 times by 1 test |
| 8779-18708 |
| 239 | "rsa-sha2-512"| TRUE | evaluated 18708 times by 1 test | | FALSE | evaluated 8779 times by 1 test |
| 8779-18708 |
| 240 | ) == 1) ? __builtin_strcmp (| TRUE | evaluated 18708 times by 1 test | | FALSE | evaluated 8779 times by 1 test |
| 8779-18708 |
| 241 | ident| TRUE | evaluated 18708 times by 1 test | | FALSE | evaluated 8779 times by 1 test |
| 8779-18708 |
| 242 | , | TRUE | evaluated 18708 times by 1 test | | FALSE | evaluated 8779 times by 1 test |
| 8779-18708 |
| 243 | "rsa-sha2-512"| TRUE | evaluated 18708 times by 1 test | | FALSE | evaluated 8779 times by 1 test |
| 8779-18708 |
| 244 | ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (| TRUE | evaluated 18708 times by 1 test | | FALSE | evaluated 8779 times by 1 test |
| 8779-18708 |
| 245 | "rsa-sha2-512"| TRUE | evaluated 18708 times by 1 test | | FALSE | evaluated 8779 times by 1 test |
| 8779-18708 |
| 246 | ); int __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 18708 times by 1 test | | FALSE | evaluated 8779 times by 1 test |
| 8779-18708 |
| 247 | ident| TRUE | evaluated 18708 times by 1 test | | FALSE | evaluated 8779 times by 1 test |
| 8779-18708 |
| 248 | ))[0] - __s2[0]); if (__s1_len > 0| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 18708 times by 1 test | | FALSE | evaluated 8779 times by 1 test |
| 0-18708 |
| 249 | ident| TRUE | evaluated 18708 times by 1 test | | FALSE | evaluated 8779 times by 1 test |
| 8779-18708 |
| 250 | ))[1] - __s2[1]); if (__s1_len > 1| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 18708 times by 1 test | | FALSE | evaluated 8779 times by 1 test |
| 0-18708 |
| 251 | ident| TRUE | evaluated 18708 times by 1 test | | FALSE | evaluated 8779 times by 1 test |
| 8779-18708 |
| 252 | ))[2] - __s2[2]); if (__s1_len > 2| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( ident ))[3] - __s2[3]); | TRUE | evaluated 18708 times by 1 test | | FALSE | evaluated 8779 times by 1 test |
| 0-18708 |
| 253 | ident| TRUE | evaluated 18708 times by 1 test | | FALSE | evaluated 8779 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( ident ))[3] - __s2[3]); | 0-18708 |
| 254 | ))[3] - __s2[3]);| TRUE | evaluated 18708 times by 1 test | | FALSE | evaluated 8779 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( ident ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : (__builtin_constant_p (| TRUE | evaluated 18708 times by 1 test | | FALSE | evaluated 8779 times by 1 test |
| 0-18708 |
| 255 | "rsa-sha2-512"| TRUE | evaluated 18708 times by 1 test | | FALSE | evaluated 8779 times by 1 test |
| 8779-18708 |
| 256 | ) && ((size_t)(const void *)((| TRUE | evaluated 18708 times by 1 test | | FALSE | evaluated 8779 times by 1 test |
| 8779-18708 |
| 257 | "rsa-sha2-512"| TRUE | evaluated 18708 times by 1 test | | FALSE | evaluated 8779 times by 1 test |
| 8779-18708 |
| 258 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 18708 times by 1 test | | FALSE | evaluated 8779 times by 1 test |
| 8779-18708 |
| 259 | "rsa-sha2-512"| TRUE | evaluated 18708 times by 1 test | | FALSE | evaluated 8779 times by 1 test |
| 8779-18708 |
| 260 | ) == 1) && (__s2_len = __builtin_strlen (| TRUE | evaluated 18708 times by 1 test | | FALSE | evaluated 8779 times by 1 test |
| 8779-18708 |
| 261 | "rsa-sha2-512"| TRUE | evaluated 18708 times by 1 test | | FALSE | evaluated 8779 times by 1 test |
| 8779-18708 |
| 262 | ), __s2_len < 4) ? (__builtin_constant_p (| TRUE | evaluated 18708 times by 1 test | | FALSE | evaluated 8779 times by 1 test |
| 8779-18708 |
| 263 | ident| TRUE | evaluated 18708 times by 1 test | | FALSE | evaluated 8779 times by 1 test |
| 8779-18708 |
| 264 | ) && ((size_t)(const void *)((| TRUE | evaluated 18708 times by 1 test | | FALSE | evaluated 8779 times by 1 test |
| 8779-18708 |
| 265 | ident| TRUE | evaluated 18708 times by 1 test | | FALSE | evaluated 8779 times by 1 test |
| 8779-18708 |
| 266 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 18708 times by 1 test | | FALSE | evaluated 8779 times by 1 test |
| 8779-18708 |
| 267 | ident| TRUE | evaluated 18708 times by 1 test | | FALSE | evaluated 8779 times by 1 test |
| 8779-18708 |
| 268 | ) == 1) ? __builtin_strcmp (| TRUE | evaluated 18708 times by 1 test | | FALSE | evaluated 8779 times by 1 test |
| 8779-18708 |
| 269 | ident| TRUE | evaluated 18708 times by 1 test | | FALSE | evaluated 8779 times by 1 test |
| 8779-18708 |
| 270 | , | TRUE | evaluated 18708 times by 1 test | | FALSE | evaluated 8779 times by 1 test |
| 8779-18708 |
| 271 | "rsa-sha2-512"| TRUE | evaluated 18708 times by 1 test | | FALSE | evaluated 8779 times by 1 test |
| 8779-18708 |
| 272 | ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (| TRUE | evaluated 18708 times by 1 test | | FALSE | evaluated 8779 times by 1 test |
| 8779-18708 |
| 273 | ident| TRUE | evaluated 18708 times by 1 test | | FALSE | evaluated 8779 times by 1 test |
| 8779-18708 |
| 274 | ); int __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 18708 times by 1 test | | FALSE | evaluated 8779 times by 1 test |
| 8779-18708 |
| 275 | "rsa-sha2-512"| TRUE | evaluated 18708 times by 1 test | | FALSE | evaluated 8779 times by 1 test |
| 8779-18708 |
| 276 | ))[0] - __s2[0]); if (__s2_len > 0| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 18708 times by 1 test | | FALSE | evaluated 8779 times by 1 test |
| 0-18708 |
| 277 | "rsa-sha2-512"| TRUE | evaluated 18708 times by 1 test | | FALSE | evaluated 8779 times by 1 test |
| 8779-18708 |
| 278 | ))[1] - __s2[1]); if (__s2_len > 1| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 18708 times by 1 test | | FALSE | evaluated 8779 times by 1 test |
| 0-18708 |
| 279 | "rsa-sha2-512"| TRUE | evaluated 18708 times by 1 test | | FALSE | evaluated 8779 times by 1 test |
| 8779-18708 |
| 280 | ))[2] - __s2[2]); if (__s2_len > 2| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( "rsa-sha2-512" ))[3] - __s2[3]); | TRUE | evaluated 18708 times by 1 test | | FALSE | evaluated 8779 times by 1 test |
| 0-18708 |
| 281 | "rsa-sha2-512"| TRUE | evaluated 18708 times by 1 test | | FALSE | evaluated 8779 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( "rsa-sha2-512" ))[3] - __s2[3]); | 0-18708 |
| 282 | ))[3] - __s2[3]);| TRUE | evaluated 18708 times by 1 test | | FALSE | evaluated 8779 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( "rsa-sha2-512" ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : __builtin_strcmp (| TRUE | evaluated 18708 times by 1 test | | FALSE | evaluated 8779 times by 1 test |
| 0-18708 |
| 283 | ident| TRUE | evaluated 18708 times by 1 test | | FALSE | evaluated 8779 times by 1 test |
| 8779-18708 |
| 284 | , | TRUE | evaluated 18708 times by 1 test | | FALSE | evaluated 8779 times by 1 test |
| 8779-18708 |
| 285 | "rsa-sha2-512"| TRUE | evaluated 18708 times by 1 test | | FALSE | evaluated 8779 times by 1 test |
| 8779-18708 |
| 286 | )))); }) | TRUE | evaluated 18708 times by 1 test | | FALSE | evaluated 8779 times by 1 test |
| 8779-18708 |
| 287 | == 0| TRUE | evaluated 18708 times by 1 test | | FALSE | evaluated 8779 times by 1 test |
) | 8779-18708 |
| 288 | returnexecuted 18708 times by 1 test: return 4; 4;executed 18708 times by 1 test: return 4; | 18708 |
| 289 | returnexecuted 8779 times by 1 test: return -1; -1;executed 8779 times by 1 test: return -1; | 8779 |
| 290 | } | - |
| 291 | | - |
| 292 | | - |
| 293 | | - |
| 294 | | - |
| 295 | | - |
| 296 | | - |
| 297 | static int | - |
| 298 | rsa_hash_id_from_keyname(const char *alg) | - |
| 299 | { | - |
| 300 | int r; | - |
| 301 | | - |
| 302 | if ((| TRUE | evaluated 152 times by 2 tests | | FALSE | never evaluated |
r = rsa_hash_id_from_ident(alg)) != -1| TRUE | evaluated 152 times by 2 tests | | FALSE | never evaluated |
) | 0-152 |
| 303 | returnexecuted 152 times by 2 tests: return r; r;executed 152 times by 2 tests: return r; | 152 |
| 304 | if ( | - |
| 305 | __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 306 | alg| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 307 | ) && __builtin_constant_p (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 308 | "ssh-rsa-cert-v01@openssh.com"| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 309 | ) && (__s1_len = __builtin_strlen (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 310 | alg| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 311 | ), __s2_len = __builtin_strlen (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 312 | "ssh-rsa-cert-v01@openssh.com"| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 313 | ), (!((size_t)(const void *)((| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 314 | alg| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 315 | ) + 1) - (size_t)(const void *)(| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 316 | alg| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 317 | ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 318 | "ssh-rsa-cert-v01@openssh.com"| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 319 | ) + 1) - (size_t)(const void *)(| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 320 | "ssh-rsa-cert-v01@openssh.com"| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 321 | ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 322 | alg| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 323 | , | TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 324 | "ssh-rsa-cert-v01@openssh.com"| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 325 | ) : (__builtin_constant_p (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 326 | alg| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 327 | ) && ((size_t)(const void *)((| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 328 | alg| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 329 | ) + 1) - (size_t)(const void *)(| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 330 | alg| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 331 | ) == 1) && (__s1_len = __builtin_strlen (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 332 | alg| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 333 | ), __s1_len < 4) ? (__builtin_constant_p (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 334 | "ssh-rsa-cert-v01@openssh.com"| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 335 | ) && ((size_t)(const void *)((| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 336 | "ssh-rsa-cert-v01@openssh.com"| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 337 | ) + 1) - (size_t)(const void *)(| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 338 | "ssh-rsa-cert-v01@openssh.com"| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 339 | ) == 1) ? __builtin_strcmp (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 340 | alg| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 341 | , | TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 342 | "ssh-rsa-cert-v01@openssh.com"| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 343 | ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 344 | "ssh-rsa-cert-v01@openssh.com"| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 345 | ); int __result = (((const unsigned char *) (const char *) (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 346 | alg| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 347 | ))[0] - __s2[0]); if (__s1_len > 0| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 348 | alg| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 349 | ))[1] - __s2[1]); if (__s1_len > 1| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 350 | alg| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 351 | ))[2] - __s2[2]); if (__s1_len > 2| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( alg ))[3] - __s2[3]); | 0 |
| 352 | alg| TRUE | never evaluated | | FALSE | never evaluated |
never executed: __result = (((const unsigned char *) (const char *) ( alg ))[3] - __s2[3]); | 0 |
| 353 | ))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 354 | "ssh-rsa-cert-v01@openssh.com"| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 355 | ) && ((size_t)(const void *)((| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 356 | "ssh-rsa-cert-v01@openssh.com"| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 357 | ) + 1) - (size_t)(const void *)(| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 358 | "ssh-rsa-cert-v01@openssh.com"| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 359 | ) == 1) && (__s2_len = __builtin_strlen (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 360 | "ssh-rsa-cert-v01@openssh.com"| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 361 | ), __s2_len < 4) ? (__builtin_constant_p (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 362 | alg| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 363 | ) && ((size_t)(const void *)((| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 364 | alg| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 365 | ) + 1) - (size_t)(const void *)(| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 366 | alg| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 367 | ) == 1) ? __builtin_strcmp (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 368 | alg| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 369 | , | TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 370 | "ssh-rsa-cert-v01@openssh.com"| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 371 | ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 372 | alg| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 373 | ); int __result = (((const unsigned char *) (const char *) (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 374 | "ssh-rsa-cert-v01@openssh.com"| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 375 | ))[0] - __s2[0]); if (__s2_len > 0| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 376 | "ssh-rsa-cert-v01@openssh.com"| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 377 | ))[1] - __s2[1]); if (__s2_len > 1| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 378 | "ssh-rsa-cert-v01@openssh.com"| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 379 | ))[2] - __s2[2]); if (__s2_len > 2| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( "ssh-rsa-cert-v01@openssh.com" ))[3] - __s2[3]); | 0 |
| 380 | "ssh-rsa-cert-v01@openssh.com"| TRUE | never evaluated | | FALSE | never evaluated |
never executed: __result = (((const unsigned char *) (const char *) ( "ssh-rsa-cert-v01@openssh.com" ))[3] - __s2[3]); | 0 |
| 381 | ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 382 | alg| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 383 | , | TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 384 | "ssh-rsa-cert-v01@openssh.com"| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 385 | )))); }) | TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 386 | == 0| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 387 | return never executed: return 1; 1;never executed: return 1; | 0 |
| 388 | if ( | - |
| 389 | __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 390 | alg| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 391 | ) && __builtin_constant_p (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 392 | "rsa-sha2-256-cert-v01@openssh.com"| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 393 | ) && (__s1_len = __builtin_strlen (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 394 | alg| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 395 | ), __s2_len = __builtin_strlen (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 396 | "rsa-sha2-256-cert-v01@openssh.com"| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 397 | ), (!((size_t)(const void *)((| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 398 | alg| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 399 | ) + 1) - (size_t)(const void *)(| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 400 | alg| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 401 | ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 402 | "rsa-sha2-256-cert-v01@openssh.com"| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 403 | ) + 1) - (size_t)(const void *)(| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 404 | "rsa-sha2-256-cert-v01@openssh.com"| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 405 | ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 406 | alg| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 407 | , | TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 408 | "rsa-sha2-256-cert-v01@openssh.com"| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 409 | ) : (__builtin_constant_p (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 410 | alg| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 411 | ) && ((size_t)(const void *)((| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 412 | alg| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 413 | ) + 1) - (size_t)(const void *)(| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 414 | alg| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 415 | ) == 1) && (__s1_len = __builtin_strlen (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 416 | alg| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 417 | ), __s1_len < 4) ? (__builtin_constant_p (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 418 | "rsa-sha2-256-cert-v01@openssh.com"| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 419 | ) && ((size_t)(const void *)((| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 420 | "rsa-sha2-256-cert-v01@openssh.com"| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 421 | ) + 1) - (size_t)(const void *)(| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 422 | "rsa-sha2-256-cert-v01@openssh.com"| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 423 | ) == 1) ? __builtin_strcmp (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 424 | alg| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 425 | , | TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 426 | "rsa-sha2-256-cert-v01@openssh.com"| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 427 | ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 428 | "rsa-sha2-256-cert-v01@openssh.com"| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 429 | ); int __result = (((const unsigned char *) (const char *) (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 430 | alg| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 431 | ))[0] - __s2[0]); if (__s1_len > 0| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 432 | alg| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 433 | ))[1] - __s2[1]); if (__s1_len > 1| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 434 | alg| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 435 | ))[2] - __s2[2]); if (__s1_len > 2| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( alg ))[3] - __s2[3]); | 0 |
| 436 | alg| TRUE | never evaluated | | FALSE | never evaluated |
never executed: __result = (((const unsigned char *) (const char *) ( alg ))[3] - __s2[3]); | 0 |
| 437 | ))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 438 | "rsa-sha2-256-cert-v01@openssh.com"| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 439 | ) && ((size_t)(const void *)((| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 440 | "rsa-sha2-256-cert-v01@openssh.com"| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 441 | ) + 1) - (size_t)(const void *)(| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 442 | "rsa-sha2-256-cert-v01@openssh.com"| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 443 | ) == 1) && (__s2_len = __builtin_strlen (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 444 | "rsa-sha2-256-cert-v01@openssh.com"| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 445 | ), __s2_len < 4) ? (__builtin_constant_p (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 446 | alg| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 447 | ) && ((size_t)(const void *)((| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 448 | alg| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 449 | ) + 1) - (size_t)(const void *)(| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 450 | alg| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 451 | ) == 1) ? __builtin_strcmp (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 452 | alg| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 453 | , | TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 454 | "rsa-sha2-256-cert-v01@openssh.com"| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 455 | ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 456 | alg| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 457 | ); int __result = (((const unsigned char *) (const char *) (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 458 | "rsa-sha2-256-cert-v01@openssh.com"| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 459 | ))[0] - __s2[0]); if (__s2_len > 0| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 460 | "rsa-sha2-256-cert-v01@openssh.com"| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 461 | ))[1] - __s2[1]); if (__s2_len > 1| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 462 | "rsa-sha2-256-cert-v01@openssh.com"| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 463 | ))[2] - __s2[2]); if (__s2_len > 2| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( "rsa-sha2-256-cert-v01@openssh.com" ))[3] - __s2[3]); | 0 |
| 464 | "rsa-sha2-256-cert-v01@openssh.com"| TRUE | never evaluated | | FALSE | never evaluated |
never executed: __result = (((const unsigned char *) (const char *) ( "rsa-sha2-256-cert-v01@openssh.com" ))[3] - __s2[3]); | 0 |
| 465 | ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 466 | alg| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 467 | , | TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 468 | "rsa-sha2-256-cert-v01@openssh.com"| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 469 | )))); }) | TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 470 | == 0| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 471 | return never executed: return 2; 2;never executed: return 2; | 0 |
| 472 | if ( | - |
| 473 | __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 474 | alg| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 475 | ) && __builtin_constant_p (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 476 | "rsa-sha2-512-cert-v01@openssh.com"| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 477 | ) && (__s1_len = __builtin_strlen (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 478 | alg| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 479 | ), __s2_len = __builtin_strlen (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 480 | "rsa-sha2-512-cert-v01@openssh.com"| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 481 | ), (!((size_t)(const void *)((| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 482 | alg| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 483 | ) + 1) - (size_t)(const void *)(| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 484 | alg| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 485 | ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 486 | "rsa-sha2-512-cert-v01@openssh.com"| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 487 | ) + 1) - (size_t)(const void *)(| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 488 | "rsa-sha2-512-cert-v01@openssh.com"| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 489 | ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 490 | alg| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 491 | , | TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 492 | "rsa-sha2-512-cert-v01@openssh.com"| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 493 | ) : (__builtin_constant_p (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 494 | alg| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 495 | ) && ((size_t)(const void *)((| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 496 | alg| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 497 | ) + 1) - (size_t)(const void *)(| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 498 | alg| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 499 | ) == 1) && (__s1_len = __builtin_strlen (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 500 | alg| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 501 | ), __s1_len < 4) ? (__builtin_constant_p (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 502 | "rsa-sha2-512-cert-v01@openssh.com"| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 503 | ) && ((size_t)(const void *)((| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 504 | "rsa-sha2-512-cert-v01@openssh.com"| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 505 | ) + 1) - (size_t)(const void *)(| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 506 | "rsa-sha2-512-cert-v01@openssh.com"| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 507 | ) == 1) ? __builtin_strcmp (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 508 | alg| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 509 | , | TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 510 | "rsa-sha2-512-cert-v01@openssh.com"| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 511 | ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 512 | "rsa-sha2-512-cert-v01@openssh.com"| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 513 | ); int __result = (((const unsigned char *) (const char *) (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 514 | alg| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 515 | ))[0] - __s2[0]); if (__s1_len > 0| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 516 | alg| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 517 | ))[1] - __s2[1]); if (__s1_len > 1| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 518 | alg| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 519 | ))[2] - __s2[2]); if (__s1_len > 2| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( alg ))[3] - __s2[3]); | 0 |
| 520 | alg| TRUE | never evaluated | | FALSE | never evaluated |
never executed: __result = (((const unsigned char *) (const char *) ( alg ))[3] - __s2[3]); | 0 |
| 521 | ))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 522 | "rsa-sha2-512-cert-v01@openssh.com"| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 523 | ) && ((size_t)(const void *)((| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 524 | "rsa-sha2-512-cert-v01@openssh.com"| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 525 | ) + 1) - (size_t)(const void *)(| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 526 | "rsa-sha2-512-cert-v01@openssh.com"| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 527 | ) == 1) && (__s2_len = __builtin_strlen (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 528 | "rsa-sha2-512-cert-v01@openssh.com"| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 529 | ), __s2_len < 4) ? (__builtin_constant_p (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 530 | alg| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 531 | ) && ((size_t)(const void *)((| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 532 | alg| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 533 | ) + 1) - (size_t)(const void *)(| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 534 | alg| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 535 | ) == 1) ? __builtin_strcmp (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 536 | alg| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 537 | , | TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 538 | "rsa-sha2-512-cert-v01@openssh.com"| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 539 | ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 540 | alg| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 541 | ); int __result = (((const unsigned char *) (const char *) (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 542 | "rsa-sha2-512-cert-v01@openssh.com"| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 543 | ))[0] - __s2[0]); if (__s2_len > 0| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 544 | "rsa-sha2-512-cert-v01@openssh.com"| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 545 | ))[1] - __s2[1]); if (__s2_len > 1| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 546 | "rsa-sha2-512-cert-v01@openssh.com"| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 547 | ))[2] - __s2[2]); if (__s2_len > 2| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( "rsa-sha2-512-cert-v01@openssh.com" ))[3] - __s2[3]); | 0 |
| 548 | "rsa-sha2-512-cert-v01@openssh.com"| TRUE | never evaluated | | FALSE | never evaluated |
never executed: __result = (((const unsigned char *) (const char *) ( "rsa-sha2-512-cert-v01@openssh.com" ))[3] - __s2[3]); | 0 |
| 549 | ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 550 | alg| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 551 | , | TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 552 | "rsa-sha2-512-cert-v01@openssh.com"| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 553 | )))); }) | TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 554 | == 0| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 555 | return never executed: return 4; 4;never executed: return 4; | 0 |
| 556 | return never executed: return -1; -1;never executed: return -1; | 0 |
| 557 | } | - |
| 558 | | - |
| 559 | static int | - |
| 560 | rsa_hash_alg_nid(int type) | - |
| 561 | { | - |
| 562 | switch (type) { | - |
| 563 | caseexecuted 68 times by 3 tests: case 1:Executed by:- ssh-keygen
- test_kex
- test_sshkey
1:executed 68 times by 3 tests: case 1:Executed by:- ssh-keygen
- test_kex
- test_sshkey
| 68 |
| 564 | returnexecuted 68 times by 3 tests: return 64 ;Executed by:- ssh-keygen
- test_kex
- test_sshkey
executed 68 times by 3 tests: return 64 ;Executed by:- ssh-keygen
- test_kex
- test_sshkey
| 68 |
| 565 | 64executed 68 times by 3 tests: return 64 ;Executed by:- ssh-keygen
- test_kex
- test_sshkey
| 68 |
| 566 | ;executed 68 times by 3 tests: return 64 ;Executed by:- ssh-keygen
- test_kex
- test_sshkey
| 68 |
| 567 | caseexecuted 24 times by 1 test: case 2: 2:executed 24 times by 1 test: case 2: | 24 |
| 568 | returnexecuted 24 times by 1 test: return 672 ; executed 24 times by 1 test: return 672 ; | 24 |
| 569 | 672executed 24 times by 1 test: return 672 ; | 24 |
| 570 | ;executed 24 times by 1 test: return 672 ; | 24 |
| 571 | caseexecuted 24 times by 1 test: case 4: 4:executed 24 times by 1 test: case 4: | 24 |
| 572 | returnexecuted 24 times by 1 test: return 674 ; executed 24 times by 1 test: return 674 ; | 24 |
| 573 | 674executed 24 times by 1 test: return 674 ; | 24 |
| 574 | ;executed 24 times by 1 test: return 674 ; | 24 |
| 575 | default never executed: default: :never executed: default: | 0 |
| 576 | return never executed: return -1; -1;never executed: return -1; | 0 |
| 577 | } | - |
| 578 | } | - |
| 579 | | - |
| 580 | int | - |
| 581 | ssh_rsa_complete_crt_parameters(struct sshkey *key, const BIGNUM *iqmp) | - |
| 582 | { | - |
| 583 | const BIGNUM *rsa_p, *rsa_q, *rsa_d; | - |
| 584 | BIGNUM *aux = | - |
| 585 | ((void *)0) | - |
| 586 | , *d_consttime = | - |
| 587 | ((void *)0) | - |
| 588 | ; | - |
| 589 | BIGNUM *rsa_dmq1 = | - |
| 590 | ((void *)0) | - |
| 591 | , *rsa_dmp1 = | - |
| 592 | ((void *)0) | - |
| 593 | , *rsa_iqmp = | - |
| 594 | ((void *)0) | - |
| 595 | ; | - |
| 596 | BN_CTX *ctx = | - |
| 597 | ((void *)0) | - |
| 598 | ; | - |
| 599 | int r; | - |
| 600 | | - |
| 601 | if (key == | TRUE | never evaluated | | FALSE | evaluated 6 times by 3 testsEvaluated by:- ssh-keygen
- sshd
- test_sshkey
|
| 0-6 |
| 602 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 6 times by 3 testsEvaluated by:- ssh-keygen
- sshd
- test_sshkey
|
| 0-6 |
| 603 | || key->rsa == | TRUE | never evaluated | | FALSE | evaluated 6 times by 3 testsEvaluated by:- ssh-keygen
- sshd
- test_sshkey
|
| 0-6 |
| 604 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 6 times by 3 testsEvaluated by:- ssh-keygen
- sshd
- test_sshkey
|
| 0-6 |
| 605 | || | - |
| 606 | sshkey_type_plain(key->type) != KEY_RSA| TRUE | never evaluated | | FALSE | evaluated 6 times by 3 testsEvaluated by:- ssh-keygen
- sshd
- test_sshkey
|
) | 0-6 |
| 607 | return never executed: return -10; -10;never executed: return -10; | 0 |
| 608 | | - |
| 609 | RSA_get0_key(key->rsa, | - |
| 610 | ((void *)0) | - |
| 611 | , | - |
| 612 | ((void *)0) | - |
| 613 | , &rsa_d); | - |
| 614 | RSA_get0_factors(key->rsa, &rsa_p, &rsa_q); | - |
| 615 | | - |
| 616 | if ((| TRUE | never evaluated | | FALSE | evaluated 6 times by 3 testsEvaluated by:- ssh-keygen
- sshd
- test_sshkey
|
ctx = BN_CTX_new()) == | TRUE | never evaluated | | FALSE | evaluated 6 times by 3 testsEvaluated by:- ssh-keygen
- sshd
- test_sshkey
|
| 0-6 |
| 617 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 6 times by 3 testsEvaluated by:- ssh-keygen
- sshd
- test_sshkey
|
| 0-6 |
| 618 | ) | - |
| 619 | return never executed: return -2; -2;never executed: return -2; | 0 |
| 620 | if ((| TRUE | never evaluated | | FALSE | evaluated 6 times by 3 testsEvaluated by:- ssh-keygen
- sshd
- test_sshkey
|
aux = BN_new()) == | TRUE | never evaluated | | FALSE | evaluated 6 times by 3 testsEvaluated by:- ssh-keygen
- sshd
- test_sshkey
|
| 0-6 |
| 621 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 6 times by 3 testsEvaluated by:- ssh-keygen
- sshd
- test_sshkey
|
| 0-6 |
| 622 | || | - |
| 623 | (| TRUE | never evaluated | | FALSE | evaluated 6 times by 3 testsEvaluated by:- ssh-keygen
- sshd
- test_sshkey
|
rsa_dmq1 = BN_new()) == | TRUE | never evaluated | | FALSE | evaluated 6 times by 3 testsEvaluated by:- ssh-keygen
- sshd
- test_sshkey
|
| 0-6 |
| 624 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 6 times by 3 testsEvaluated by:- ssh-keygen
- sshd
- test_sshkey
|
| 0-6 |
| 625 | || | - |
| 626 | (| TRUE | never evaluated | | FALSE | evaluated 6 times by 3 testsEvaluated by:- ssh-keygen
- sshd
- test_sshkey
|
rsa_dmp1 = BN_new()) == | TRUE | never evaluated | | FALSE | evaluated 6 times by 3 testsEvaluated by:- ssh-keygen
- sshd
- test_sshkey
|
| 0-6 |
| 627 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 6 times by 3 testsEvaluated by:- ssh-keygen
- sshd
- test_sshkey
|
| 0-6 |
| 628 | ) | - |
| 629 | return never executed: return -2; -2;never executed: return -2; | 0 |
| 630 | if ((| TRUE | never evaluated | | FALSE | evaluated 6 times by 3 testsEvaluated by:- ssh-keygen
- sshd
- test_sshkey
|
d_consttime = BN_dup(rsa_d)) == | TRUE | never evaluated | | FALSE | evaluated 6 times by 3 testsEvaluated by:- ssh-keygen
- sshd
- test_sshkey
|
| 0-6 |
| 631 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 6 times by 3 testsEvaluated by:- ssh-keygen
- sshd
- test_sshkey
|
| 0-6 |
| 632 | || | - |
| 633 | (| TRUE | never evaluated | | FALSE | evaluated 6 times by 3 testsEvaluated by:- ssh-keygen
- sshd
- test_sshkey
|
rsa_iqmp = BN_dup(iqmp)) == | TRUE | never evaluated | | FALSE | evaluated 6 times by 3 testsEvaluated by:- ssh-keygen
- sshd
- test_sshkey
|
| 0-6 |
| 634 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 6 times by 3 testsEvaluated by:- ssh-keygen
- sshd
- test_sshkey
|
| 0-6 |
| 635 | ) { | - |
| 636 | r = -2; | - |
| 637 | goto never executed: goto out; out;never executed: goto out; | 0 |
| 638 | } | - |
| 639 | | - |
| 640 | (( | - |
| 641 | aux | - |
| 642 | )->flags|=(0x04)) | - |
| 643 | ; | - |
| 644 | | - |
| 645 | (( | - |
| 646 | d_consttime | - |
| 647 | )->flags|=(0x04)) | - |
| 648 | ; | - |
| 649 | | - |
| 650 | if ((| TRUE | never evaluated | | FALSE | evaluated 6 times by 3 testsEvaluated by:- ssh-keygen
- sshd
- test_sshkey
|
BN_sub(aux, rsa_q, BN_value_one()) == 0)| TRUE | never evaluated | | FALSE | evaluated 6 times by 3 testsEvaluated by:- ssh-keygen
- sshd
- test_sshkey
|
|| | 0-6 |
| 651 | (| TRUE | never evaluated | | FALSE | evaluated 6 times by 3 testsEvaluated by:- ssh-keygen
- sshd
- test_sshkey
|
| 0-6 |
| 652 | BN_div(((void *)0),(| TRUE | never evaluated | | FALSE | evaluated 6 times by 3 testsEvaluated by:- ssh-keygen
- sshd
- test_sshkey
|
| 0-6 |
| 653 | rsa_dmq1| TRUE | never evaluated | | FALSE | evaluated 6 times by 3 testsEvaluated by:- ssh-keygen
- sshd
- test_sshkey
|
| 0-6 |
| 654 | ),(| TRUE | never evaluated | | FALSE | evaluated 6 times by 3 testsEvaluated by:- ssh-keygen
- sshd
- test_sshkey
|
| 0-6 |
| 655 | d_consttime| TRUE | never evaluated | | FALSE | evaluated 6 times by 3 testsEvaluated by:- ssh-keygen
- sshd
- test_sshkey
|
| 0-6 |
| 656 | ),(| TRUE | never evaluated | | FALSE | evaluated 6 times by 3 testsEvaluated by:- ssh-keygen
- sshd
- test_sshkey
|
| 0-6 |
| 657 | aux| TRUE | never evaluated | | FALSE | evaluated 6 times by 3 testsEvaluated by:- ssh-keygen
- sshd
- test_sshkey
|
| 0-6 |
| 658 | ),(| TRUE | never evaluated | | FALSE | evaluated 6 times by 3 testsEvaluated by:- ssh-keygen
- sshd
- test_sshkey
|
| 0-6 |
| 659 | ctx| TRUE | never evaluated | | FALSE | evaluated 6 times by 3 testsEvaluated by:- ssh-keygen
- sshd
- test_sshkey
|
| 0-6 |
| 660 | )) | TRUE | never evaluated | | FALSE | evaluated 6 times by 3 testsEvaluated by:- ssh-keygen
- sshd
- test_sshkey
|
| 0-6 |
| 661 | == 0)| TRUE | never evaluated | | FALSE | evaluated 6 times by 3 testsEvaluated by:- ssh-keygen
- sshd
- test_sshkey
|
|| | 0-6 |
| 662 | (| TRUE | never evaluated | | FALSE | evaluated 6 times by 3 testsEvaluated by:- ssh-keygen
- sshd
- test_sshkey
|
BN_sub(aux, rsa_p, BN_value_one()) == 0)| TRUE | never evaluated | | FALSE | evaluated 6 times by 3 testsEvaluated by:- ssh-keygen
- sshd
- test_sshkey
|
|| | 0-6 |
| 663 | (| TRUE | never evaluated | | FALSE | evaluated 6 times by 3 testsEvaluated by:- ssh-keygen
- sshd
- test_sshkey
|
| 0-6 |
| 664 | BN_div(((void *)0),(| TRUE | never evaluated | | FALSE | evaluated 6 times by 3 testsEvaluated by:- ssh-keygen
- sshd
- test_sshkey
|
| 0-6 |
| 665 | rsa_dmp1| TRUE | never evaluated | | FALSE | evaluated 6 times by 3 testsEvaluated by:- ssh-keygen
- sshd
- test_sshkey
|
| 0-6 |
| 666 | ),(| TRUE | never evaluated | | FALSE | evaluated 6 times by 3 testsEvaluated by:- ssh-keygen
- sshd
- test_sshkey
|
| 0-6 |
| 667 | d_consttime| TRUE | never evaluated | | FALSE | evaluated 6 times by 3 testsEvaluated by:- ssh-keygen
- sshd
- test_sshkey
|
| 0-6 |
| 668 | ),(| TRUE | never evaluated | | FALSE | evaluated 6 times by 3 testsEvaluated by:- ssh-keygen
- sshd
- test_sshkey
|
| 0-6 |
| 669 | aux| TRUE | never evaluated | | FALSE | evaluated 6 times by 3 testsEvaluated by:- ssh-keygen
- sshd
- test_sshkey
|
| 0-6 |
| 670 | ),(| TRUE | never evaluated | | FALSE | evaluated 6 times by 3 testsEvaluated by:- ssh-keygen
- sshd
- test_sshkey
|
| 0-6 |
| 671 | ctx| TRUE | never evaluated | | FALSE | evaluated 6 times by 3 testsEvaluated by:- ssh-keygen
- sshd
- test_sshkey
|
| 0-6 |
| 672 | )) | TRUE | never evaluated | | FALSE | evaluated 6 times by 3 testsEvaluated by:- ssh-keygen
- sshd
- test_sshkey
|
| 0-6 |
| 673 | == 0)| TRUE | never evaluated | | FALSE | evaluated 6 times by 3 testsEvaluated by:- ssh-keygen
- sshd
- test_sshkey
|
) { | 0-6 |
| 674 | r = -22; | - |
| 675 | goto never executed: goto out; out;never executed: goto out; | 0 |
| 676 | } | - |
| 677 | if (!RSA_set0_crt_params(key->rsa, rsa_dmp1, rsa_dmq1, rsa_iqmp)| TRUE | never evaluated | | FALSE | evaluated 6 times by 3 testsEvaluated by:- ssh-keygen
- sshd
- test_sshkey
|
) { | 0-6 |
| 678 | r = -22; | - |
| 679 | goto never executed: goto out; out;never executed: goto out; | 0 |
| 680 | } | - |
| 681 | rsa_dmp1 = rsa_dmq1 = rsa_iqmp = | - |
| 682 | ((void *)0) | - |
| 683 | ; | - |
| 684 | | - |
| 685 | r = 0; | - |
| 686 | out:code before this statement executed 6 times by 3 tests: out:Executed by:- ssh-keygen
- sshd
- test_sshkey
| 6 |
| 687 | BN_clear_free(aux); | - |
| 688 | BN_clear_free(d_consttime); | - |
| 689 | BN_clear_free(rsa_dmp1); | - |
| 690 | BN_clear_free(rsa_dmq1); | - |
| 691 | BN_clear_free(rsa_iqmp); | - |
| 692 | BN_CTX_free(ctx); | - |
| 693 | returnexecuted 6 times by 3 tests: return r;Executed by:- ssh-keygen
- sshd
- test_sshkey
r;executed 6 times by 3 tests: return r;Executed by:- ssh-keygen
- sshd
- test_sshkey
| 6 |
| 694 | } | - |
| 695 | | - |
| 696 | | - |
| 697 | int | - |
| 698 | ssh_rsa_sign(const struct sshkey *key, u_char **sigp, size_t *lenp, | - |
| 699 | const u_char *data, size_t datalen, const char *alg_ident) | - |
| 700 | { | - |
| 701 | const BIGNUM *rsa_n; | - |
| 702 | u_char digest[64], *sig = | - |
| 703 | ((void *)0) | - |
| 704 | ; | - |
| 705 | size_t slen = 0; | - |
| 706 | u_int dlen, len; | - |
| 707 | int nid, hash_alg, ret = -1; | - |
| 708 | struct sshbuf *b = | - |
| 709 | ((void *)0) | - |
| 710 | ; | - |
| 711 | | - |
| 712 | if (lenp != | TRUE | evaluated 116 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
| | FALSE | never evaluated |
| 0-116 |
| 713 | ((void *)0)| TRUE | evaluated 116 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
| | FALSE | never evaluated |
| 0-116 |
| 714 | ) | - |
| 715 | *executed 116 times by 3 tests: *lenp = 0;Executed by:- ssh-keygen
- test_kex
- test_sshkey
lenp = 0;executed 116 times by 3 tests: *lenp = 0;Executed by:- ssh-keygen
- test_kex
- test_sshkey
| 116 |
| 716 | if (sigp != | TRUE | evaluated 116 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
| | FALSE | never evaluated |
| 0-116 |
| 717 | ((void *)0)| TRUE | evaluated 116 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
| | FALSE | never evaluated |
| 0-116 |
| 718 | ) | - |
| 719 | *executed 116 times by 3 tests: *sigp = ((void *)0) ;Executed by:- ssh-keygen
- test_kex
- test_sshkey
sigp = executed 116 times by 3 tests: *sigp = ((void *)0) ;Executed by:- ssh-keygen
- test_kex
- test_sshkey
| 116 |
| 720 | ((void *)0)executed 116 times by 3 tests: *sigp = ((void *)0) ;Executed by:- ssh-keygen
- test_kex
- test_sshkey
| 116 |
| 721 | ;executed 116 times by 3 tests: *sigp = ((void *)0) ;Executed by:- ssh-keygen
- test_kex
- test_sshkey
| 116 |
| 722 | | - |
| 723 | if (alg_ident == | TRUE | evaluated 4 times by 2 tests | | FALSE | evaluated 112 times by 2 tests |
| 4-112 |
| 724 | ((void *)0)| TRUE | evaluated 4 times by 2 tests | | FALSE | evaluated 112 times by 2 tests |
| 4-112 |
| 725 | || strlen(alg_ident) == 0| TRUE | never evaluated | | FALSE | evaluated 112 times by 2 tests |
) | 0-112 |
| 726 | hash_alg = 1;executed 4 times by 2 tests: hash_alg = 1; | 4 |
| 727 | else | - |
| 728 | hash_alg = rsa_hash_id_from_keyname(alg_ident);executed 112 times by 2 tests: hash_alg = rsa_hash_id_from_keyname(alg_ident); | 112 |
| 729 | if (key == | TRUE | never evaluated | | FALSE | evaluated 116 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
|
| 0-116 |
| 730 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 116 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
|
| 0-116 |
| 731 | || key->rsa == | TRUE | never evaluated | | FALSE | evaluated 116 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
|
| 0-116 |
| 732 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 116 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
|
| 0-116 |
| 733 | || hash_alg == -1| TRUE | never evaluated | | FALSE | evaluated 116 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
|
|| | 0-116 |
| 734 | sshkey_type_plain(key->type) != KEY_RSA| TRUE | never evaluated | | FALSE | evaluated 116 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
|
) | 0-116 |
| 735 | return never executed: return -10; -10;never executed: return -10; | 0 |
| 736 | RSA_get0_key(key->rsa, &rsa_n, | - |
| 737 | ((void *)0) | - |
| 738 | , | - |
| 739 | ((void *)0) | - |
| 740 | ); | - |
| 741 | if (BN_num_bits(rsa_n) < 1024| TRUE | never evaluated | | FALSE | evaluated 116 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
|
) | 0-116 |
| 742 | return never executed: return -56; -56;never executed: return -56; | 0 |
| 743 | slen = RSA_size(key->rsa); | - |
| 744 | if (slen <= 0| TRUE | never evaluated | | FALSE | evaluated 116 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
|
|| slen > (16384 / 8)| TRUE | never evaluated | | FALSE | evaluated 116 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
|
) | 0-116 |
| 745 | return never executed: return -10; -10;never executed: return -10; | 0 |
| 746 | | - |
| 747 | | - |
| 748 | nid = rsa_hash_alg_nid(hash_alg); | - |
| 749 | if ((| TRUE | never evaluated | | FALSE | evaluated 116 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
|
dlen = ssh_digest_bytes(hash_alg)) == 0| TRUE | never evaluated | | FALSE | evaluated 116 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
|
) | 0-116 |
| 750 | return never executed: return -1; -1;never executed: return -1; | 0 |
| 751 | if ((| TRUE | never evaluated | | FALSE | evaluated 116 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
|
ret = ssh_digest_memory(hash_alg, data, datalen,| TRUE | never evaluated | | FALSE | evaluated 116 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
|
| 0-116 |
| 752 | digest, sizeof(digest))) != 0| TRUE | never evaluated | | FALSE | evaluated 116 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
|
) | 0-116 |
| 753 | goto never executed: goto out; out;never executed: goto out; | 0 |
| 754 | | - |
| 755 | if ((| TRUE | never evaluated | | FALSE | evaluated 116 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
|
sig = malloc(slen)) == | TRUE | never evaluated | | FALSE | evaluated 116 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
|
| 0-116 |
| 756 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 116 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
|
| 0-116 |
| 757 | ) { | - |
| 758 | ret = -2; | - |
| 759 | goto never executed: goto out; out;never executed: goto out; | 0 |
| 760 | } | - |
| 761 | | - |
| 762 | if (RSA_sign(nid, digest, dlen, sig, &len, key->rsa) != 1| TRUE | never evaluated | | FALSE | evaluated 116 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
|
) { | 0-116 |
| 763 | ret = -22; | - |
| 764 | goto never executed: goto out; out;never executed: goto out; | 0 |
| 765 | } | - |
| 766 | if (len < slen| TRUE | never evaluated | | FALSE | evaluated 116 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
|
) { | 0-116 |
| 767 | size_t diff = slen - len; | - |
| 768 | memmove(sig + diff, sig, len); | - |
| 769 | explicit_bzero(sig, diff); | - |
| 770 | } never executed: end of block else if (len > slen| TRUE | never evaluated | | FALSE | evaluated 116 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
|
) { | 0-116 |
| 771 | ret = -1; | - |
| 772 | goto never executed: goto out; out;never executed: goto out; | 0 |
| 773 | } | - |
| 774 | | - |
| 775 | if ((| TRUE | never evaluated | | FALSE | evaluated 116 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
|
b = sshbuf_new()) == | TRUE | never evaluated | | FALSE | evaluated 116 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
|
| 0-116 |
| 776 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 116 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
|
| 0-116 |
| 777 | ) { | - |
| 778 | ret = -2; | - |
| 779 | goto never executed: goto out; out;never executed: goto out; | 0 |
| 780 | } | - |
| 781 | if ((| TRUE | never evaluated | | FALSE | evaluated 116 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
|
ret = sshbuf_put_cstring(b, rsa_hash_alg_ident(hash_alg))) != 0| TRUE | never evaluated | | FALSE | evaluated 116 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
|
|| | 0-116 |
| 782 | (| TRUE | never evaluated | | FALSE | evaluated 116 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
|
ret = sshbuf_put_string(b, sig, slen)) != 0| TRUE | never evaluated | | FALSE | evaluated 116 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
|
) | 0-116 |
| 783 | goto never executed: goto out; out;never executed: goto out; | 0 |
| 784 | len = sshbuf_len(b); | - |
| 785 | if (sigp != | TRUE | evaluated 116 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
| | FALSE | never evaluated |
| 0-116 |
| 786 | ((void *)0)| TRUE | evaluated 116 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
| | FALSE | never evaluated |
| 0-116 |
| 787 | ) { | - |
| 788 | if ((*| TRUE | never evaluated | | FALSE | evaluated 116 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
|
sigp = malloc(len)) == | TRUE | never evaluated | | FALSE | evaluated 116 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
|
| 0-116 |
| 789 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 116 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
|
| 0-116 |
| 790 | ) { | - |
| 791 | ret = -2; | - |
| 792 | goto never executed: goto out; out;never executed: goto out; | 0 |
| 793 | } | - |
| 794 | memcpy(*sigp, sshbuf_ptr(b), len); | - |
| 795 | }executed 116 times by 3 tests: end of blockExecuted by:- ssh-keygen
- test_kex
- test_sshkey
| 116 |
| 796 | if (lenp != | TRUE | evaluated 116 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
| | FALSE | never evaluated |
| 0-116 |
| 797 | ((void *)0)| TRUE | evaluated 116 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
| | FALSE | never evaluated |
| 0-116 |
| 798 | ) | - |
| 799 | *executed 116 times by 3 tests: *lenp = len;Executed by:- ssh-keygen
- test_kex
- test_sshkey
lenp = len;executed 116 times by 3 tests: *lenp = len;Executed by:- ssh-keygen
- test_kex
- test_sshkey
| 116 |
| 800 | ret = 0; | - |
| 801 | out:code before this statement executed 116 times by 3 tests: out:Executed by:- ssh-keygen
- test_kex
- test_sshkey
| 116 |
| 802 | explicit_bzero(digest, sizeof(digest)); | - |
| 803 | freezero(sig, slen); | - |
| 804 | sshbuf_free(b); | - |
| 805 | returnexecuted 116 times by 3 tests: return ret;Executed by:- ssh-keygen
- test_kex
- test_sshkey
ret;executed 116 times by 3 tests: return ret;Executed by:- ssh-keygen
- test_kex
- test_sshkey
| 116 |
| 806 | } | - |
| 807 | | - |
| 808 | int | - |
| 809 | ssh_rsa_verify(const struct sshkey *key, | - |
| 810 | const u_char *sig, size_t siglen, const u_char *data, size_t datalen, | - |
| 811 | const char *alg) | - |
| 812 | { | - |
| 813 | const BIGNUM *rsa_n; | - |
| 814 | char *sigtype = | - |
| 815 | ((void *)0) | - |
| 816 | ; | - |
| 817 | int hash_alg, want_alg, ret = -1; | - |
| 818 | size_t len = 0, diff, modlen, dlen; | - |
| 819 | struct sshbuf *b = | - |
| 820 | ((void *)0) | - |
| 821 | ; | - |
| 822 | u_char digest[64], *osigblob, *sigblob = | - |
| 823 | ((void *)0) | - |
| 824 | ; | - |
| 825 | | - |
| 826 | if (key == | TRUE | never evaluated | | FALSE | evaluated 68896 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
|
| 0-68896 |
| 827 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 68896 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
|
| 0-68896 |
| 828 | || key->rsa == | TRUE | never evaluated | | FALSE | evaluated 68896 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
|
| 0-68896 |
| 829 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 68896 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
|
| 0-68896 |
| 830 | || | - |
| 831 | sshkey_type_plain(key->type) != KEY_RSA| TRUE | never evaluated | | FALSE | evaluated 68896 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
|
|| | 0-68896 |
| 832 | sig == | TRUE | never evaluated | | FALSE | evaluated 68896 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
|
| 0-68896 |
| 833 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 68896 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
|
| 0-68896 |
| 834 | || siglen == 0| TRUE | never evaluated | | FALSE | evaluated 68896 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
|
) | 0-68896 |
| 835 | return never executed: return -10; -10;never executed: return -10; | 0 |
| 836 | RSA_get0_key(key->rsa, &rsa_n, | - |
| 837 | ((void *)0) | - |
| 838 | , | - |
| 839 | ((void *)0) | - |
| 840 | ); | - |
| 841 | if (BN_num_bits(rsa_n) < 1024| TRUE | never evaluated | | FALSE | evaluated 68896 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
|
) | 0-68896 |
| 842 | return never executed: return -56; -56;never executed: return -56; | 0 |
| 843 | | - |
| 844 | if ((| TRUE | never evaluated | | FALSE | evaluated 68896 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
|
b = sshbuf_from(sig, siglen)) == | TRUE | never evaluated | | FALSE | evaluated 68896 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
|
| 0-68896 |
| 845 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 68896 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
|
| 0-68896 |
| 846 | ) | - |
| 847 | return never executed: return -2; -2;never executed: return -2; | 0 |
| 848 | if (sshbuf_get_cstring(b, &sigtype, | TRUE | evaluated 4024 times by 1 test | | FALSE | evaluated 64872 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
|
| 4024-64872 |
| 849 | ((void *)0)| TRUE | evaluated 4024 times by 1 test | | FALSE | evaluated 64872 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
|
| 4024-64872 |
| 850 | ) != 0| TRUE | evaluated 4024 times by 1 test | | FALSE | evaluated 64872 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
|
) { | 4024-64872 |
| 851 | ret = -4; | - |
| 852 | gotoexecuted 4024 times by 1 test: goto out; out;executed 4024 times by 1 test: goto out; | 4024 |
| 853 | } | - |
| 854 | if ((| TRUE | evaluated 8779 times by 1 test | | FALSE | evaluated 56093 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
|
hash_alg = rsa_hash_id_from_ident(sigtype)) == -1| TRUE | evaluated 8779 times by 1 test | | FALSE | evaluated 56093 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
|
) { | 8779-56093 |
| 855 | ret = -13; | - |
| 856 | gotoexecuted 8779 times by 1 test: goto out; out;executed 8779 times by 1 test: goto out; | 8779 |
| 857 | } | - |
| 858 | | - |
| 859 | | - |
| 860 | | - |
| 861 | | - |
| 862 | if (alg != | TRUE | evaluated 40 times by 1 test | | FALSE | evaluated 56053 times by 2 tests |
| 40-56053 |
| 863 | ((void *)0)| TRUE | evaluated 40 times by 1 test | | FALSE | evaluated 56053 times by 2 tests |
| 40-56053 |
| 864 | && | - |
| 865 | __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (| TRUE | evaluated 40 times by 1 test | | FALSE | never evaluated |
| 0-40 |
| 866 | alg| TRUE | evaluated 40 times by 1 test | | FALSE | never evaluated |
| 0-40 |
| 867 | ) && __builtin_constant_p (| TRUE | evaluated 40 times by 1 test | | FALSE | never evaluated |
| 0-40 |
| 868 | "ssh-rsa-cert-v01@openssh.com"| TRUE | evaluated 40 times by 1 test | | FALSE | never evaluated |
| 0-40 |
| 869 | ) && (__s1_len = __builtin_strlen (| TRUE | evaluated 40 times by 1 test | | FALSE | never evaluated |
| 0-40 |
| 870 | alg| TRUE | evaluated 40 times by 1 test | | FALSE | never evaluated |
| 0-40 |
| 871 | ), __s2_len = __builtin_strlen (| TRUE | evaluated 40 times by 1 test | | FALSE | never evaluated |
| 0-40 |
| 872 | "ssh-rsa-cert-v01@openssh.com"| TRUE | evaluated 40 times by 1 test | | FALSE | never evaluated |
| 0-40 |
| 873 | ), (!((size_t)(const void *)((| TRUE | evaluated 40 times by 1 test | | FALSE | never evaluated |
| 0-40 |
| 874 | alg| TRUE | evaluated 40 times by 1 test | | FALSE | never evaluated |
| 0-40 |
| 875 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 40 times by 1 test | | FALSE | never evaluated |
| 0-40 |
| 876 | alg| TRUE | evaluated 40 times by 1 test | | FALSE | never evaluated |
| 0-40 |
| 877 | ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((| TRUE | evaluated 40 times by 1 test | | FALSE | never evaluated |
| 0-40 |
| 878 | "ssh-rsa-cert-v01@openssh.com"| TRUE | evaluated 40 times by 1 test | | FALSE | never evaluated |
| 0-40 |
| 879 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 40 times by 1 test | | FALSE | never evaluated |
| 0-40 |
| 880 | "ssh-rsa-cert-v01@openssh.com"| TRUE | evaluated 40 times by 1 test | | FALSE | never evaluated |
| 0-40 |
| 881 | ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (| TRUE | evaluated 40 times by 1 test | | FALSE | never evaluated |
| 0-40 |
| 882 | alg| TRUE | evaluated 40 times by 1 test | | FALSE | never evaluated |
| 0-40 |
| 883 | , | TRUE | evaluated 40 times by 1 test | | FALSE | never evaluated |
| 0-40 |
| 884 | "ssh-rsa-cert-v01@openssh.com"| TRUE | evaluated 40 times by 1 test | | FALSE | never evaluated |
| 0-40 |
| 885 | ) : (__builtin_constant_p (| TRUE | evaluated 40 times by 1 test | | FALSE | never evaluated |
| 0-40 |
| 886 | alg| TRUE | evaluated 40 times by 1 test | | FALSE | never evaluated |
| 0-40 |
| 887 | ) && ((size_t)(const void *)((| TRUE | evaluated 40 times by 1 test | | FALSE | never evaluated |
| 0-40 |
| 888 | alg| TRUE | evaluated 40 times by 1 test | | FALSE | never evaluated |
| 0-40 |
| 889 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 40 times by 1 test | | FALSE | never evaluated |
| 0-40 |
| 890 | alg| TRUE | evaluated 40 times by 1 test | | FALSE | never evaluated |
| 0-40 |
| 891 | ) == 1) && (__s1_len = __builtin_strlen (| TRUE | evaluated 40 times by 1 test | | FALSE | never evaluated |
| 0-40 |
| 892 | alg| TRUE | evaluated 40 times by 1 test | | FALSE | never evaluated |
| 0-40 |
| 893 | ), __s1_len < 4) ? (__builtin_constant_p (| TRUE | evaluated 40 times by 1 test | | FALSE | never evaluated |
| 0-40 |
| 894 | "ssh-rsa-cert-v01@openssh.com"| TRUE | evaluated 40 times by 1 test | | FALSE | never evaluated |
| 0-40 |
| 895 | ) && ((size_t)(const void *)((| TRUE | evaluated 40 times by 1 test | | FALSE | never evaluated |
| 0-40 |
| 896 | "ssh-rsa-cert-v01@openssh.com"| TRUE | evaluated 40 times by 1 test | | FALSE | never evaluated |
| 0-40 |
| 897 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 40 times by 1 test | | FALSE | never evaluated |
| 0-40 |
| 898 | "ssh-rsa-cert-v01@openssh.com"| TRUE | evaluated 40 times by 1 test | | FALSE | never evaluated |
| 0-40 |
| 899 | ) == 1) ? __builtin_strcmp (| TRUE | evaluated 40 times by 1 test | | FALSE | never evaluated |
| 0-40 |
| 900 | alg| TRUE | evaluated 40 times by 1 test | | FALSE | never evaluated |
| 0-40 |
| 901 | , | TRUE | evaluated 40 times by 1 test | | FALSE | never evaluated |
| 0-40 |
| 902 | "ssh-rsa-cert-v01@openssh.com"| TRUE | evaluated 40 times by 1 test | | FALSE | never evaluated |
| 0-40 |
| 903 | ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (| TRUE | evaluated 40 times by 1 test | | FALSE | never evaluated |
| 0-40 |
| 904 | "ssh-rsa-cert-v01@openssh.com"| TRUE | evaluated 40 times by 1 test | | FALSE | never evaluated |
| 0-40 |
| 905 | ); int __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 40 times by 1 test | | FALSE | never evaluated |
| 0-40 |
| 906 | alg| TRUE | evaluated 40 times by 1 test | | FALSE | never evaluated |
| 0-40 |
| 907 | ))[0] - __s2[0]); if (__s1_len > 0| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 40 times by 1 test | | FALSE | never evaluated |
| 0-40 |
| 908 | alg| TRUE | evaluated 40 times by 1 test | | FALSE | never evaluated |
| 0-40 |
| 909 | ))[1] - __s2[1]); if (__s1_len > 1| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 40 times by 1 test | | FALSE | never evaluated |
| 0-40 |
| 910 | alg| TRUE | evaluated 40 times by 1 test | | FALSE | never evaluated |
| 0-40 |
| 911 | ))[2] - __s2[2]); if (__s1_len > 2| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( alg ))[3] - __s2[3]); | TRUE | evaluated 40 times by 1 test | | FALSE | never evaluated |
| 0-40 |
| 912 | alg| TRUE | evaluated 40 times by 1 test | | FALSE | never evaluated |
never executed: __result = (((const unsigned char *) (const char *) ( alg ))[3] - __s2[3]); | 0-40 |
| 913 | ))[3] - __s2[3]);| TRUE | evaluated 40 times by 1 test | | FALSE | never evaluated |
never executed: __result = (((const unsigned char *) (const char *) ( alg ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : (__builtin_constant_p (| TRUE | evaluated 40 times by 1 test | | FALSE | never evaluated |
| 0-40 |
| 914 | "ssh-rsa-cert-v01@openssh.com"| TRUE | evaluated 40 times by 1 test | | FALSE | never evaluated |
| 0-40 |
| 915 | ) && ((size_t)(const void *)((| TRUE | evaluated 40 times by 1 test | | FALSE | never evaluated |
| 0-40 |
| 916 | "ssh-rsa-cert-v01@openssh.com"| TRUE | evaluated 40 times by 1 test | | FALSE | never evaluated |
| 0-40 |
| 917 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 40 times by 1 test | | FALSE | never evaluated |
| 0-40 |
| 918 | "ssh-rsa-cert-v01@openssh.com"| TRUE | evaluated 40 times by 1 test | | FALSE | never evaluated |
| 0-40 |
| 919 | ) == 1) && (__s2_len = __builtin_strlen (| TRUE | evaluated 40 times by 1 test | | FALSE | never evaluated |
| 0-40 |
| 920 | "ssh-rsa-cert-v01@openssh.com"| TRUE | evaluated 40 times by 1 test | | FALSE | never evaluated |
| 0-40 |
| 921 | ), __s2_len < 4) ? (__builtin_constant_p (| TRUE | evaluated 40 times by 1 test | | FALSE | never evaluated |
| 0-40 |
| 922 | alg| TRUE | evaluated 40 times by 1 test | | FALSE | never evaluated |
| 0-40 |
| 923 | ) && ((size_t)(const void *)((| TRUE | evaluated 40 times by 1 test | | FALSE | never evaluated |
| 0-40 |
| 924 | alg| TRUE | evaluated 40 times by 1 test | | FALSE | never evaluated |
| 0-40 |
| 925 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 40 times by 1 test | | FALSE | never evaluated |
| 0-40 |
| 926 | alg| TRUE | evaluated 40 times by 1 test | | FALSE | never evaluated |
| 0-40 |
| 927 | ) == 1) ? __builtin_strcmp (| TRUE | evaluated 40 times by 1 test | | FALSE | never evaluated |
| 0-40 |
| 928 | alg| TRUE | evaluated 40 times by 1 test | | FALSE | never evaluated |
| 0-40 |
| 929 | , | TRUE | evaluated 40 times by 1 test | | FALSE | never evaluated |
| 0-40 |
| 930 | "ssh-rsa-cert-v01@openssh.com"| TRUE | evaluated 40 times by 1 test | | FALSE | never evaluated |
| 0-40 |
| 931 | ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (| TRUE | evaluated 40 times by 1 test | | FALSE | never evaluated |
| 0-40 |
| 932 | alg| TRUE | evaluated 40 times by 1 test | | FALSE | never evaluated |
| 0-40 |
| 933 | ); int __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 40 times by 1 test | | FALSE | never evaluated |
| 0-40 |
| 934 | "ssh-rsa-cert-v01@openssh.com"| TRUE | evaluated 40 times by 1 test | | FALSE | never evaluated |
| 0-40 |
| 935 | ))[0] - __s2[0]); if (__s2_len > 0| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 40 times by 1 test | | FALSE | never evaluated |
| 0-40 |
| 936 | "ssh-rsa-cert-v01@openssh.com"| TRUE | evaluated 40 times by 1 test | | FALSE | never evaluated |
| 0-40 |
| 937 | ))[1] - __s2[1]); if (__s2_len > 1| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 40 times by 1 test | | FALSE | never evaluated |
| 0-40 |
| 938 | "ssh-rsa-cert-v01@openssh.com"| TRUE | evaluated 40 times by 1 test | | FALSE | never evaluated |
| 0-40 |
| 939 | ))[2] - __s2[2]); if (__s2_len > 2| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( "ssh-rsa-cert-v01@openssh.com" ))[3] - __s2[3]); | TRUE | evaluated 40 times by 1 test | | FALSE | never evaluated |
| 0-40 |
| 940 | "ssh-rsa-cert-v01@openssh.com"| TRUE | evaluated 40 times by 1 test | | FALSE | never evaluated |
never executed: __result = (((const unsigned char *) (const char *) ( "ssh-rsa-cert-v01@openssh.com" ))[3] - __s2[3]); | 0-40 |
| 941 | ))[3] - __s2[3]);| TRUE | evaluated 40 times by 1 test | | FALSE | never evaluated |
never executed: __result = (((const unsigned char *) (const char *) ( "ssh-rsa-cert-v01@openssh.com" ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : __builtin_strcmp (| TRUE | evaluated 40 times by 1 test | | FALSE | never evaluated |
| 0-40 |
| 942 | alg| TRUE | evaluated 40 times by 1 test | | FALSE | never evaluated |
| 0-40 |
| 943 | , | TRUE | evaluated 40 times by 1 test | | FALSE | never evaluated |
| 0-40 |
| 944 | "ssh-rsa-cert-v01@openssh.com"| TRUE | evaluated 40 times by 1 test | | FALSE | never evaluated |
| 0-40 |
| 945 | )))); }) | TRUE | evaluated 40 times by 1 test | | FALSE | never evaluated |
| 0-40 |
| 946 | != 0| TRUE | evaluated 40 times by 1 test | | FALSE | never evaluated |
) { | 0-40 |
| 947 | if ((| TRUE | never evaluated | | FALSE | evaluated 40 times by 1 test |
want_alg = rsa_hash_id_from_keyname(alg)) == -1| TRUE | never evaluated | | FALSE | evaluated 40 times by 1 test |
) { | 0-40 |
| 948 | ret = -10; | - |
| 949 | goto never executed: goto out; out;never executed: goto out; | 0 |
| 950 | } | - |
| 951 | if (hash_alg != want_alg| TRUE | never evaluated | | FALSE | evaluated 40 times by 1 test |
) { | 0-40 |
| 952 | ret = -21; | - |
| 953 | goto never executed: goto out; out;never executed: goto out; | 0 |
| 954 | } | - |
| 955 | }executed 40 times by 1 test: end of block | 40 |
| 956 | if (sshbuf_get_string(b, &sigblob, &len) != 0| TRUE | evaluated 2840 times by 1 test | | FALSE | evaluated 53253 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
|
) { | 2840-53253 |
| 957 | ret = -4; | - |
| 958 | gotoexecuted 2840 times by 1 test: goto out; out;executed 2840 times by 1 test: goto out; | 2840 |
| 959 | } | - |
| 960 | if (sshbuf_len(b) != 0| TRUE | evaluated 774 times by 1 test | | FALSE | evaluated 52479 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
|
) { | 774-52479 |
| 961 | ret = -23; | - |
| 962 | gotoexecuted 774 times by 1 test: goto out; out;executed 774 times by 1 test: goto out; | 774 |
| 963 | } | - |
| 964 | | - |
| 965 | modlen = RSA_size(key->rsa); | - |
| 966 | if (len > modlen| TRUE | never evaluated | | FALSE | evaluated 52479 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
|
) { | 0-52479 |
| 967 | ret = -11; | - |
| 968 | goto never executed: goto out; out;never executed: goto out; | 0 |
| 969 | } else if (len < modlen| TRUE | evaluated 69 times by 1 test | | FALSE | evaluated 52410 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
|
) { | 69-52410 |
| 970 | diff = modlen - len; | - |
| 971 | osigblob = sigblob; | - |
| 972 | if ((| TRUE | never evaluated | | FALSE | evaluated 69 times by 1 test |
sigblob = realloc(sigblob, modlen)) == | TRUE | never evaluated | | FALSE | evaluated 69 times by 1 test |
| 0-69 |
| 973 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 69 times by 1 test |
| 0-69 |
| 974 | ) { | - |
| 975 | sigblob = osigblob; | - |
| 976 | ret = -2; | - |
| 977 | goto never executed: goto out; out;never executed: goto out; | 0 |
| 978 | } | - |
| 979 | memmove(sigblob + diff, sigblob, len); | - |
| 980 | explicit_bzero(sigblob, diff); | - |
| 981 | len = modlen; | - |
| 982 | }executed 69 times by 1 test: end of block | 69 |
| 983 | if ((| TRUE | never evaluated | | FALSE | evaluated 52479 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
|
dlen = ssh_digest_bytes(hash_alg)) == 0| TRUE | never evaluated | | FALSE | evaluated 52479 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
|
) { | 0-52479 |
| 984 | ret = -1; | - |
| 985 | goto never executed: goto out; out;never executed: goto out; | 0 |
| 986 | } | - |
| 987 | if ((| TRUE | never evaluated | | FALSE | evaluated 52479 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
|
ret = ssh_digest_memory(hash_alg, data, datalen,| TRUE | never evaluated | | FALSE | evaluated 52479 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
|
| 0-52479 |
| 988 | digest, sizeof(digest))) != 0| TRUE | never evaluated | | FALSE | evaluated 52479 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
|
) | 0-52479 |
| 989 | goto never executed: goto out; out;never executed: goto out; | 0 |
| 990 | | - |
| 991 | ret = openssh_RSA_verify(hash_alg, digest, dlen, sigblob, len, | - |
| 992 | key->rsa); | - |
| 993 | out:code before this statement executed 52479 times by 3 tests: out:Executed by:- ssh-keygen
- test_kex
- test_sshkey
| 52479 |
| 994 | freezero(sigblob, len); | - |
| 995 | free(sigtype); | - |
| 996 | sshbuf_free(b); | - |
| 997 | explicit_bzero(digest, sizeof(digest)); | - |
| 998 | returnexecuted 68896 times by 3 tests: return ret;Executed by:- ssh-keygen
- test_kex
- test_sshkey
ret;executed 68896 times by 3 tests: return ret;Executed by:- ssh-keygen
- test_kex
- test_sshkey
| 68896 |
| 999 | } | - |
| 1000 | static const u_char id_sha1[] = { | - |
| 1001 | 0x30, 0x21, | - |
| 1002 | 0x30, 0x09, | - |
| 1003 | 0x06, 0x05, | - |
| 1004 | 0x2b, 0x0e, 0x03, 0x02, 0x1a, | - |
| 1005 | 0x05, 0x00, | - |
| 1006 | 0x04, 0x14 | - |
| 1007 | }; | - |
| 1008 | | - |
| 1009 | | - |
| 1010 | | - |
| 1011 | | - |
| 1012 | | - |
| 1013 | | - |
| 1014 | | - |
| 1015 | static const u_char id_sha256[] = { | - |
| 1016 | 0x30, 0x31, | - |
| 1017 | 0x30, 0x0d, | - |
| 1018 | 0x06, 0x09, | - |
| 1019 | 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x02, 0x01, | - |
| 1020 | 0x05, 0x00, | - |
| 1021 | 0x04, 0x20 | - |
| 1022 | }; | - |
| 1023 | | - |
| 1024 | | - |
| 1025 | | - |
| 1026 | | - |
| 1027 | | - |
| 1028 | | - |
| 1029 | | - |
| 1030 | static const u_char id_sha512[] = { | - |
| 1031 | 0x30, 0x51, | - |
| 1032 | 0x30, 0x0d, | - |
| 1033 | 0x06, 0x09, | - |
| 1034 | 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x02, 0x03, | - |
| 1035 | 0x05, 0x00, | - |
| 1036 | 0x04, 0x40 | - |
| 1037 | }; | - |
| 1038 | | - |
| 1039 | static int | - |
| 1040 | rsa_hash_alg_oid(int hash_alg, const u_char **oidp, size_t *oidlenp) | - |
| 1041 | { | - |
| 1042 | switch (hash_alg) { | - |
| 1043 | caseexecuted 17522 times by 3 tests: case 1:Executed by:- ssh-keygen
- test_kex
- test_sshkey
1:executed 17522 times by 3 tests: case 1:Executed by:- ssh-keygen
- test_kex
- test_sshkey
| 17522 |
| 1044 | *oidp = id_sha1; | - |
| 1045 | *oidlenp = sizeof(id_sha1); | - |
| 1046 | break;executed 17522 times by 3 tests: break;Executed by:- ssh-keygen
- test_kex
- test_sshkey
| 17522 |
| 1047 | caseexecuted 17478 times by 1 test: case 2: 2:executed 17478 times by 1 test: case 2: | 17478 |
| 1048 | *oidp = id_sha256; | - |
| 1049 | *oidlenp = sizeof(id_sha256); | - |
| 1050 | break;executed 17478 times by 1 test: break; | 17478 |
| 1051 | caseexecuted 17479 times by 1 test: case 4: 4:executed 17479 times by 1 test: case 4: | 17479 |
| 1052 | *oidp = id_sha512; | - |
| 1053 | *oidlenp = sizeof(id_sha512); | - |
| 1054 | break;executed 17479 times by 1 test: break; | 17479 |
| 1055 | default never executed: default: :never executed: default: | 0 |
| 1056 | return never executed: return -10; -10;never executed: return -10; | 0 |
| 1057 | } | - |
| 1058 | returnexecuted 52479 times by 3 tests: return 0;Executed by:- ssh-keygen
- test_kex
- test_sshkey
0;executed 52479 times by 3 tests: return 0;Executed by:- ssh-keygen
- test_kex
- test_sshkey
| 52479 |
| 1059 | } | - |
| 1060 | | - |
| 1061 | static int | - |
| 1062 | openssh_RSA_verify(int hash_alg, u_char *hash, size_t hashlen, | - |
| 1063 | u_char *sigbuf, size_t siglen, RSA *rsa) | - |
| 1064 | { | - |
| 1065 | size_t rsasize = 0, oidlen = 0, hlen = 0; | - |
| 1066 | int ret, len, oidmatch, hashmatch; | - |
| 1067 | const u_char *oid = | - |
| 1068 | ((void *)0) | - |
| 1069 | ; | - |
| 1070 | u_char *decrypted = | - |
| 1071 | ((void *)0) | - |
| 1072 | ; | - |
| 1073 | | - |
| 1074 | if ((| TRUE | never evaluated | | FALSE | evaluated 52479 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
|
ret = rsa_hash_alg_oid(hash_alg, &oid, &oidlen)) != 0| TRUE | never evaluated | | FALSE | evaluated 52479 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
|
) | 0-52479 |
| 1075 | return never executed: return ret; ret;never executed: return ret; | 0 |
| 1076 | ret = -1; | - |
| 1077 | hlen = ssh_digest_bytes(hash_alg); | - |
| 1078 | if (hashlen != hlen| TRUE | never evaluated | | FALSE | evaluated 52479 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
|
) { | 0-52479 |
| 1079 | ret = -10; | - |
| 1080 | goto never executed: goto done; done;never executed: goto done; | 0 |
| 1081 | } | - |
| 1082 | rsasize = RSA_size(rsa); | - |
| 1083 | if (rsasize <= 0| TRUE | never evaluated | | FALSE | evaluated 52479 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
|
|| rsasize > (16384 / 8)| TRUE | never evaluated | | FALSE | evaluated 52479 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
|
|| | 0-52479 |
| 1084 | siglen == 0| TRUE | never evaluated | | FALSE | evaluated 52479 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
|
|| siglen > rsasize| TRUE | never evaluated | | FALSE | evaluated 52479 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
|
) { | 0-52479 |
| 1085 | ret = -10; | - |
| 1086 | goto never executed: goto done; done;never executed: goto done; | 0 |
| 1087 | } | - |
| 1088 | if ((| TRUE | never evaluated | | FALSE | evaluated 52479 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
|
decrypted = malloc(rsasize)) == | TRUE | never evaluated | | FALSE | evaluated 52479 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
|
| 0-52479 |
| 1089 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 52479 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
|
| 0-52479 |
| 1090 | ) { | - |
| 1091 | ret = -2; | - |
| 1092 | goto never executed: goto done; done;never executed: goto done; | 0 |
| 1093 | } | - |
| 1094 | if ((| TRUE | evaluated 52362 times by 1 test | | FALSE | evaluated 117 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
|
len = RSA_public_decrypt(siglen, sigbuf, decrypted, rsa,| TRUE | evaluated 52362 times by 1 test | | FALSE | evaluated 117 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
|
| 117-52362 |
| 1095 | | TRUE | evaluated 52362 times by 1 test | | FALSE | evaluated 117 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
|
| 117-52362 |
| 1096 | 1| TRUE | evaluated 52362 times by 1 test | | FALSE | evaluated 117 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
|
| 117-52362 |
| 1097 | )) < 0| TRUE | evaluated 52362 times by 1 test | | FALSE | evaluated 117 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
|
) { | 117-52362 |
| 1098 | ret = -22; | - |
| 1099 | gotoexecuted 52362 times by 1 test: goto done; done;executed 52362 times by 1 test: goto done; | 52362 |
| 1100 | } | - |
| 1101 | if (len < 0| TRUE | never evaluated | | FALSE | evaluated 117 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
|
|| (| TRUE | never evaluated | | FALSE | evaluated 117 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
|
size_t)len != hlen + oidlen| TRUE | never evaluated | | FALSE | evaluated 117 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
|
) { | 0-117 |
| 1102 | ret = -4; | - |
| 1103 | goto never executed: goto done; done;never executed: goto done; | 0 |
| 1104 | } | - |
| 1105 | oidmatch = timingsafe_bcmp(decrypted, oid, oidlen) == 0; | - |
| 1106 | hashmatch = timingsafe_bcmp(decrypted + oidlen, hash, hlen) == 0; | - |
| 1107 | if (!oidmatch| TRUE | never evaluated | | FALSE | evaluated 117 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
|
|| !hashmatch| TRUE | never evaluated | | FALSE | evaluated 117 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
|
) { | 0-117 |
| 1108 | ret = -21; | - |
| 1109 | goto never executed: goto done; done;never executed: goto done; | 0 |
| 1110 | } | - |
| 1111 | ret = 0; | - |
| 1112 | done:code before this statement executed 117 times by 3 tests: done:Executed by:- ssh-keygen
- test_kex
- test_sshkey
| 117 |
| 1113 | freezero(decrypted, rsasize); | - |
| 1114 | returnexecuted 52479 times by 3 tests: return ret;Executed by:- ssh-keygen
- test_kex
- test_sshkey
ret;executed 52479 times by 3 tests: return ret;Executed by:- ssh-keygen
- test_kex
- test_sshkey
| 52479 |
| 1115 | } | - |
| | |