Tom Rini | 0344c60 | 2024-10-08 13:56:50 -0600 | [diff] [blame^] | 1 | OID get Any Policy certificate policy |
| 2 | oid_get_certificate_policies:"551D2000":"Any Policy" |
| 3 | |
| 4 | OID get certificate policy invalid oid |
| 5 | oid_get_certificate_policies:"5533445566":"" |
| 6 | |
| 7 | OID get certificate policy wrong oid - id-ce-authorityKeyIdentifier |
| 8 | oid_get_certificate_policies:"551D23":"" |
| 9 | |
| 10 | OID get Ext Key Usage - id-kp-serverAuth |
| 11 | oid_get_extended_key_usage:"2B06010505070301":"TLS Web Server Authentication" |
| 12 | |
| 13 | OID get Ext Key Usage - id-kp-clientAuth |
| 14 | oid_get_extended_key_usage:"2B06010505070302":"TLS Web Client Authentication" |
| 15 | |
| 16 | OID get Ext Key Usage - id-kp-codeSigning |
| 17 | oid_get_extended_key_usage:"2B06010505070303":"Code Signing" |
| 18 | |
| 19 | OID get Ext Key Usage - id-kp-emailProtection |
| 20 | oid_get_extended_key_usage:"2B06010505070304":"E-mail Protection" |
| 21 | |
| 22 | OID get Ext Key Usage - id-kp-timeStamping |
| 23 | oid_get_extended_key_usage:"2B06010505070308":"Time Stamping" |
| 24 | |
| 25 | OID get Ext Key Usage - id-kp-OCSPSigning |
| 26 | oid_get_extended_key_usage:"2B06010505070309":"OCSP Signing" |
| 27 | |
| 28 | OID get Ext Key Usage - id-kp-wisun-fan-device |
| 29 | oid_get_extended_key_usage:"2B0601040182E42501":"Wi-SUN Alliance Field Area Network (FAN)" |
| 30 | |
| 31 | OID get Ext Key Usage invalid oid |
| 32 | oid_get_extended_key_usage:"5533445566":"" |
| 33 | |
| 34 | OID get Ext Key Usage wrong oid - id-ce-authorityKeyIdentifier |
| 35 | oid_get_extended_key_usage:"551D23":"" |
| 36 | |
| 37 | OID get x509 extension - id-ce-basicConstraints |
| 38 | oid_get_x509_extension:"551D13":MBEDTLS_OID_X509_EXT_BASIC_CONSTRAINTS |
| 39 | |
| 40 | OID get x509 extension - id-ce-keyUsage |
| 41 | oid_get_x509_extension:"551D0F":MBEDTLS_OID_X509_EXT_KEY_USAGE |
| 42 | |
| 43 | OID get x509 extension - id-ce-extKeyUsage |
| 44 | oid_get_x509_extension:"551D25":MBEDTLS_OID_X509_EXT_EXTENDED_KEY_USAGE |
| 45 | |
| 46 | OID get x509 extension - id-ce-subjectAltName |
| 47 | oid_get_x509_extension:"551D11":MBEDTLS_OID_X509_EXT_SUBJECT_ALT_NAME |
| 48 | |
| 49 | OID get x509 extension - id-netscape-certtype |
| 50 | oid_get_x509_extension:"6086480186F8420101":MBEDTLS_OID_X509_EXT_NS_CERT_TYPE |
| 51 | |
| 52 | OID get x509 extension - id-ce-certificatePolicies |
| 53 | oid_get_x509_extension:"551D20":MBEDTLS_OID_X509_EXT_CERTIFICATE_POLICIES |
| 54 | |
| 55 | OID get x509 extension - invalid oid |
| 56 | oid_get_x509_extension:"5533445566":0 |
| 57 | |
| 58 | OID get x509 extension - wrong oid - id-ce |
| 59 | oid_get_x509_extension:"551D":0 |
| 60 | |
| 61 | OID hash id - id-md5 |
| 62 | depends_on:MBEDTLS_MD_CAN_MD5 |
| 63 | oid_get_md_alg_id:"2A864886f70d0205":MBEDTLS_MD_MD5 |
| 64 | |
| 65 | OID hash id - id-sha1 |
| 66 | depends_on:MBEDTLS_MD_CAN_SHA1 |
| 67 | oid_get_md_alg_id:"2b0e03021a":MBEDTLS_MD_SHA1 |
| 68 | |
| 69 | OID hash id - id-sha224 |
| 70 | depends_on:MBEDTLS_MD_CAN_SHA224 |
| 71 | oid_get_md_alg_id:"608648016503040204":MBEDTLS_MD_SHA224 |
| 72 | |
| 73 | OID hash id - id-sha256 |
| 74 | depends_on:MBEDTLS_MD_CAN_SHA256 |
| 75 | oid_get_md_alg_id:"608648016503040201":MBEDTLS_MD_SHA256 |
| 76 | |
| 77 | OID hash id - id-sha384 |
| 78 | depends_on:MBEDTLS_MD_CAN_SHA384 |
| 79 | oid_get_md_alg_id:"608648016503040202":MBEDTLS_MD_SHA384 |
| 80 | |
| 81 | OID hash id - id-sha512 |
| 82 | depends_on:MBEDTLS_MD_CAN_SHA512 |
| 83 | oid_get_md_alg_id:"608648016503040203":MBEDTLS_MD_SHA512 |
| 84 | |
| 85 | OID hash id - id-sha3-224 |
| 86 | depends_on:MBEDTLS_MD_CAN_SHA3_224 |
| 87 | oid_get_md_alg_id:"608648016503040207":MBEDTLS_MD_SHA3_224 |
| 88 | |
| 89 | OID hash id - id-sha3-256 |
| 90 | depends_on:MBEDTLS_MD_CAN_SHA3_256 |
| 91 | oid_get_md_alg_id:"608648016503040208":MBEDTLS_MD_SHA3_256 |
| 92 | |
| 93 | OID hash id - id-sha3-384 |
| 94 | depends_on:MBEDTLS_MD_CAN_SHA3_384 |
| 95 | oid_get_md_alg_id:"608648016503040209":MBEDTLS_MD_SHA3_384 |
| 96 | |
| 97 | OID hash id - id-sha3-512 |
| 98 | depends_on:MBEDTLS_MD_CAN_SHA3_512 |
| 99 | oid_get_md_alg_id:"60864801650304020a":MBEDTLS_MD_SHA3_512 |
| 100 | |
| 101 | OID hash id - id-ripemd160 |
| 102 | depends_on:MBEDTLS_MD_CAN_RIPEMD160 |
| 103 | oid_get_md_alg_id:"2b24030201":MBEDTLS_MD_RIPEMD160 |
| 104 | |
| 105 | OID hash id - invalid oid |
| 106 | oid_get_md_alg_id:"2B864886f70d0204":-1 |
| 107 | |
| 108 | OID get numeric string - hardware module name |
| 109 | oid_get_numeric_string:"2B06010505070804":0:"1.3.6.1.5.5.7.8.4" |
| 110 | |
| 111 | OID get numeric string - multi-byte subidentifier |
| 112 | oid_get_numeric_string:"29903C":0:"1.1.2108" |
| 113 | |
| 114 | OID get numeric string - second component greater than 39 |
| 115 | oid_get_numeric_string:"81010000863A00":0:"2.49.0.0.826.0" |
| 116 | |
| 117 | OID get numeric string - multi-byte first subidentifier |
| 118 | oid_get_numeric_string:"8837":0:"2.999" |
| 119 | |
| 120 | OID get numeric string - second subidentifier not terminated |
| 121 | oid_get_numeric_string:"0081":MBEDTLS_ERR_ASN1_OUT_OF_DATA:"" |
| 122 | |
| 123 | OID get numeric string - empty oid buffer |
| 124 | oid_get_numeric_string:"":MBEDTLS_ERR_ASN1_OUT_OF_DATA:"" |
| 125 | |
| 126 | OID get numeric string - no final / all bytes have top bit set |
| 127 | oid_get_numeric_string:"818181":MBEDTLS_ERR_ASN1_OUT_OF_DATA:"" |
| 128 | |
| 129 | OID get numeric string - 0.39 |
| 130 | oid_get_numeric_string:"27":0:"0.39" |
| 131 | |
| 132 | OID get numeric string - 1.0 |
| 133 | oid_get_numeric_string:"28":0:"1.0" |
| 134 | |
| 135 | OID get numeric string - 1.39 |
| 136 | oid_get_numeric_string:"4f":0:"1.39" |
| 137 | |
| 138 | OID get numeric string - 2.0 |
| 139 | oid_get_numeric_string:"50":0:"2.0" |
| 140 | |
| 141 | OID get numeric string - 1 byte first subidentifier beyond 2.39 |
| 142 | oid_get_numeric_string:"7f":0:"2.47" |
| 143 | |
| 144 | # Encodes the number 0x0400000000 as a subidentifier which overflows 32-bits |
| 145 | OID get numeric string - 32-bit overflow |
| 146 | oid_get_numeric_string:"C080808000":MBEDTLS_ERR_ASN1_INVALID_DATA:"" |
| 147 | |
| 148 | OID get numeric string - 32-bit overflow, second subidentifier |
| 149 | oid_get_numeric_string:"2BC080808000":MBEDTLS_ERR_ASN1_INVALID_DATA:"" |
| 150 | |
| 151 | OID get numeric string - overlong encoding |
| 152 | oid_get_numeric_string:"8001":MBEDTLS_ERR_ASN1_INVALID_DATA:"" |
| 153 | |
| 154 | OID get numeric string - overlong encoding, second subidentifier |
| 155 | oid_get_numeric_string:"2B8001":MBEDTLS_ERR_ASN1_INVALID_DATA:"" |
| 156 | |
| 157 | OID from numeric string - hardware module name |
| 158 | oid_from_numeric_string:"1.3.6.1.5.5.7.8.4":0:"2B06010505070804" |
| 159 | |
| 160 | OID from numeric string - multi-byte subidentifier |
| 161 | oid_from_numeric_string:"1.1.2108":0:"29903C" |
| 162 | |
| 163 | OID from numeric string - second component greater than 39 |
| 164 | oid_from_numeric_string:"2.49.0.0.826.0":0:"81010000863A00" |
| 165 | |
| 166 | OID from numeric string - multi-byte first subidentifier |
| 167 | oid_from_numeric_string:"2.999":0:"8837" |
| 168 | |
| 169 | OID from numeric string - empty string input |
| 170 | oid_from_numeric_string:"":MBEDTLS_ERR_ASN1_INVALID_DATA:"" |
| 171 | |
| 172 | OID from numeric string - first component not a number |
| 173 | oid_from_numeric_string:"abc.1.2":MBEDTLS_ERR_ASN1_INVALID_DATA:"" |
| 174 | |
| 175 | OID from numeric string - second component not a number |
| 176 | oid_from_numeric_string:"1.abc.2":MBEDTLS_ERR_ASN1_INVALID_DATA:"" |
| 177 | |
| 178 | OID from numeric string - first component too large |
| 179 | oid_from_numeric_string:"3.1":MBEDTLS_ERR_ASN1_INVALID_DATA:"" |
| 180 | |
| 181 | OID from numeric string - first component < 2, second > 39 |
| 182 | oid_from_numeric_string:"1.40":MBEDTLS_ERR_ASN1_INVALID_DATA:"" |
| 183 | |
| 184 | OID from numeric string - third component not a number |
| 185 | oid_from_numeric_string:"1.2.abc":MBEDTLS_ERR_ASN1_INVALID_DATA:"" |
| 186 | |
| 187 | OID from numeric string - non-'.' separator between first and second |
| 188 | oid_from_numeric_string:"1/2.3.4":MBEDTLS_ERR_ASN1_INVALID_DATA:"" |
| 189 | |
| 190 | OID from numeric string - non-'.' separator between second and third |
| 191 | oid_from_numeric_string:"1.2/3.4":MBEDTLS_ERR_ASN1_INVALID_DATA:"" |
| 192 | |
| 193 | OID from numeric string - non-'.' separator between third and fourth |
| 194 | oid_from_numeric_string:"1.2.3/4":MBEDTLS_ERR_ASN1_INVALID_DATA:"" |
| 195 | |
| 196 | OID from numeric string - OID greater than max length (129 components) |
| 197 | oid_from_numeric_string:"1.2.3.4.5.6.7.8.1.2.3.4.5.6.7.8.1.2.3.4.5.6.7.8.1.2.3.4.5.6.7.8.1.2.3.4.5.6.7.8.1.2.3.4.5.6.7.8.1.2.3.4.5.6.7.8.1.2.3.4.5.6.7.8.1.2.3.4.5.6.7.8.1.2.3.4.5.6.7.8.1.2.3.4.5.6.7.8.1.2.3.4.5.6.7.8.1.2.3.4.5.6.7.8.1.2.3.4.5.6.7.8.1.2.3.4.5.6.7.8.1.2.3.4.5.6.7.8.1":MBEDTLS_ERR_ASN1_INVALID_DATA:"" |
| 198 | |
| 199 | OID from numeric string - OID with maximum subidentifier |
| 200 | oid_from_numeric_string:"2.4294967215":0:"8FFFFFFF7F" |
| 201 | |
| 202 | OID from numeric string - OID with overflowing subidentifier |
| 203 | oid_from_numeric_string:"2.4294967216":MBEDTLS_ERR_ASN1_INVALID_DATA:"" |
| 204 | |
| 205 | mbedtls_oid_get_md_hmac - RIPEMD160 |
| 206 | depends_on:MBEDTLS_MD_CAN_RIPEMD160 |
| 207 | mbedtls_oid_get_md_hmac:"2B06010505080104":MBEDTLS_MD_RIPEMD160 |
| 208 | |
| 209 | mbedtls_oid_get_md_hmac - SHA1 |
| 210 | depends_on:MBEDTLS_MD_CAN_SHA1 |
| 211 | mbedtls_oid_get_md_hmac:"2A864886F70D0207":MBEDTLS_MD_SHA1 |
| 212 | |
| 213 | mbedtls_oid_get_md_hmac - SHA224 |
| 214 | depends_on:MBEDTLS_MD_CAN_SHA224 |
| 215 | mbedtls_oid_get_md_hmac:"2A864886F70D0208":MBEDTLS_MD_SHA224 |
| 216 | |
| 217 | mbedtls_oid_get_md_hmac - SHA256 |
| 218 | depends_on:MBEDTLS_MD_CAN_SHA256 |
| 219 | mbedtls_oid_get_md_hmac:"2A864886F70D0209":MBEDTLS_MD_SHA256 |
| 220 | |
| 221 | mbedtls_oid_get_md_hmac - SHA384 |
| 222 | depends_on:MBEDTLS_MD_CAN_SHA384 |
| 223 | mbedtls_oid_get_md_hmac:"2A864886F70D020A":MBEDTLS_MD_SHA384 |
| 224 | |
| 225 | mbedtls_oid_get_md_hmac - SHA512 |
| 226 | depends_on:MBEDTLS_MD_CAN_SHA512 |
| 227 | mbedtls_oid_get_md_hmac:"2A864886F70D020B":MBEDTLS_MD_SHA512 |
| 228 | |
| 229 | mbedtls_oid_get_md_hmac - SHA3_224 |
| 230 | depends_on:MBEDTLS_MD_CAN_SHA3_224 |
| 231 | mbedtls_oid_get_md_hmac:"60864801650304020D":MBEDTLS_MD_SHA3_224 |
| 232 | |
| 233 | mbedtls_oid_get_md_hmac - SHA3_256 |
| 234 | depends_on:MBEDTLS_MD_CAN_SHA3_256 |
| 235 | mbedtls_oid_get_md_hmac:"60864801650304020E":MBEDTLS_MD_SHA3_256 |
| 236 | |
| 237 | mbedtls_oid_get_md_hmac - SHA3_384 |
| 238 | depends_on:MBEDTLS_MD_CAN_SHA3_384 |
| 239 | mbedtls_oid_get_md_hmac:"60864801650304020F":MBEDTLS_MD_SHA3_384 |
| 240 | |
| 241 | mbedtls_oid_get_md_hmac - SHA3_512 |
| 242 | depends_on:MBEDTLS_MD_CAN_SHA3_512 |
| 243 | mbedtls_oid_get_md_hmac:"608648016503040210":MBEDTLS_MD_SHA3_512 |