aboutsummaryrefslogtreecommitdiff
path: root/tests/suites/test_suite_oid.data
AgeCommit message (Collapse)AuthorFilesLines
2024-07-19Move crypto test suitesRonald Cron1-243/+0
Signed-off-by: Ronald Cron <ronald.cron@arm.com>
2024-07-18Replace MBEDTLS_MD_CAN_MD5 with PSA_WANT_ALG_MD5Elena Uziunaite1-1/+1
Signed-off-by: Elena Uziunaite <elena.uziunaite@arm.com>
2024-07-12Replace MBEDTLS_MD_CAN_SHA3_384 with PSA_WANT_ALG_SHA3_384Elena Uziunaite1-2/+2
Signed-off-by: Elena Uziunaite <elena.uziunaite@arm.com>
2024-07-12Replace MBEDTLS_MD_CAN_SHA3_224 with PSA_WANT_ALG_SHA3_224Elena Uziunaite1-2/+2
Signed-off-by: Elena Uziunaite <elena.uziunaite@arm.com>
2024-07-11Replace MBEDTLS_MD_CAN_SHA256 with PSA_WANT_ALG_SHA_256Elena Uziunaite1-2/+2
Signed-off-by: Elena Uziunaite <elena.uziunaite@arm.com>
2024-07-04Replace MBEDTLS_MD_CAN_SHA3_256 with PSA_WANT_ALG_SHA3_256Elena Uziunaite1-2/+2
Signed-off-by: Elena Uziunaite <elena.uziunaite@arm.com>
2024-07-04Merge pull request #9214 from eleuzi01/replace-mbedtls-md-can-sha3-512Ronald Cron1-2/+2
Replace MBEDTLS_MD_CAN_SHA3_512 with PSA_WANT_ALG_SHA3_512
2024-07-04Replace MBEDTLS_MD_CAN_SHA3_512 with PSA_WANT_ALG_SHA3_512Elena Uziunaite1-2/+2
Signed-off-by: Elena Uziunaite <elena.uziunaite@arm.com>
2024-07-04Merge pull request #9171 from eleuzi01/replace-mbedtls-md-can-sha384Ronald Cron1-2/+2
Replace MBEDTLS_MD_CAN_SHA384 with PSA_WANT_ALG_SHA_384
2024-07-04Merge pull request #9125 from eleuzi01/replace-mbedtls-md-can-ripemd160Ronald Cron1-2/+2
Replace MBEDTLS_MD_CAN_RIPEMD160 with PSA_WANT_ALG_RIPEMD160
2024-07-03Replace MBEDTLS_MD_CAN_SHA384 with PSA_WANT_ALG_SHA_384Elena Uziunaite1-2/+2
Signed-off-by: Elena Uziunaite <elena.uziunaite@arm.com>
2024-07-02Replace MBEDTLS_MD_CAN_SHA224 with PSA_WANT_ALG_SHA_224Elena Uziunaite1-2/+2
Signed-off-by: Elena Uziunaite <elena.uziunaite@arm.com>
2024-06-20Replace MBEDTLS_MD_CAN_RIPEMD160 with PSA_WANT_ALG_RIPEMD160Elena Uziunaite1-2/+2
Signed-off-by: Elena Uziunaite <elena.uziunaite@arm.com>
2023-07-27Add OID tests for HMAC-xxxDave Rodgman1-0/+40
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
2023-07-05Add OID tests for SHA-3Dave Rodgman1-0/+16
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
2023-06-06Merge pull request #7106 from davidhorstmann-arm/parse-oid-from-stringGilles Peskine1-0/+48
Parse an OID from a string
2023-06-02Allow subidentifiers of size UINT_MAXDavid Horstmann1-0/+6
Make overflow check more accurate and add testcases Signed-off-by: David Horstmann <david.horstmann@arm.com>
2023-04-26Limit OIDs to 128 componentsDavid Horstmann1-0/+3
The longest OID known by oid-info.com is 34 components[1], so 128 should be plenty and will limit the potential for attacks. [1] http://oid-info.com/get/1.3.6.1.4.1.1248.1.1.2.1.3.21.69.112.115.111.110.32.83.116.121.108.117.115.32.80.114.111.32.52.57.48.48 Signed-off-by: David Horstmann <david.horstmann@arm.com>
2023-03-21OID + misc crypto: use MD_CAN and fix failuresManuel Pégourié-Gonnard1-7/+7
After this, only PK, X.509 and TLS remain to be done. Deterministic uses HMAC-DRBG which uses MD, so it needs crypto_init() when using a driver-only hash. Also, remove a special-purpose macro that's no longer needed. Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com>
2023-03-16Fix segfault in mbedtls_oid_get_numeric_stringDemi Marie Obenour1-0/+18
When passed an empty OID, mbedtls_oid_get_numeric_string would read one byte from the zero-sized buffer and return an error code that depends on its value. This is demonstrated by the test suite changes, which check that an OID with length zero and an invalid buffer pointer does not cause Mbed TLS to segfault. Also check that second and subsequent subidentifiers are terminated, and add a test case for that. Furthermore, stop relying on integer division by 40, use the same loop for both the first and subsequent subidentifiers, and add additional tests. Signed-off-by: Demi Marie Obenour <demiobenour@gmail.com>
2023-02-22Add negative test cases for OID parsingDavid Horstmann1-0/+27
Signed-off-by: David Horstmann <david.horstmann@arm.com>
2023-02-22Add tests for OID parsing from stringDavid Horstmann1-0/+12
Signed-off-by: David Horstmann <david.horstmann@arm.com>
2023-02-20Change error codes to more appropriate codesDavid Horstmann1-6/+6
The more precise error codes are borrowed from the ASN1 module. Signed-off-by: David Horstmann <david.horstmann@arm.com>
2023-02-15Add testcases for overlong encoding of OIDsDavid Horstmann1-0/+6
Signed-off-by: David Horstmann <david.horstmann@arm.com>
2023-02-15Add tests for mbedtls_oid_get_numeric_string()David Horstmann1-0/+24
Signed-off-by: David Horstmann <david.horstmann@arm.com>
2022-08-19test_suite_oid: Replace MBEDTLS_MD5_C and MBEDTLS_SHAxxx_C with the ↵Przemek Stekiel1-7/+7
corresponding MBEDTLS_HAS_ALG_xxx_VIA_LOWLEVEL_OR_PSA *** Comparing before-default -> after-default *** x509parse: total 723; skipped 26 -> 26 x509write: total 41; skipped 8 -> 8 pem: total 13; skipped 0 -> 0 oid: total 28; skipped 0 -> 0 *** Comparing before-full -> after-full *** x509parse: total 723; skipped 25 -> 25 x509write: total 41; skipped 0 -> 0 pem: total 13; skipped 0 -> 0 oid: total 28; skipped 0 -> 0 *** Comparing reference -> drivers *** x509parse: total 723; skipped 89 -> 89 x509write: total 41; skipped 3 -> 3 pem: total 13; skipped 0 -> 0 oid: total 28; skipped 0 -> 0 Signed-off-by: Przemek Stekiel <przemyslaw.stekiel@mobica.com>
2021-05-10Fix SHA definitions and their dependencies in library and test suites.Mateusz Starzyk1-1/+1
Rework SHA224 and SHA283 documentation. Define MBEDTLS_SHAxxx_C options in alphabetic order. Fix SHA224 and SHA384 dependencies in test suites. Signed-off-by: Mateusz Starzyk <mateusz.starzyk@mobica.com>
2021-04-28Separate SHA224 from SHA256 config options.Mateusz Starzyk1-1/+1
These options are still dependant on each other. This is an intermediate step. Signed-off-by: Mateusz Starzyk <mateusz.starzyk@mobica.com>
2019-05-06Add a test of the OID->MD map functionsJack Lloyd1-0/+32
2019-04-16Add certificate policy oid x509 extensionRon Eldor1-0/+24
Add the `MBEDTLS_OID_X509_EXT_CERTIFICATE_POLICIES` to the list of supported x509 extensions, in `mbedtls_oid_get_x509_ext_type()`.
2019-04-03Add Wisun Fan device extended key usageRon Eldor1-0/+27
Add the Wisun extended key usage oid and tests.
2019-03-26Add certificate policy of type any policy idRon Eldor1-0/+8
Add a function for getting the certificate policy. Currently only "Any Policy" is supported.