41a686bb9f
Fix missing-prototype error in programs/fuzz by moving LLVMFuzzerTestOneInput prototype to common.h
...
Signed-off-by: Michael Schuster <michael@schuster.ms >
2024-08-06 12:09:13 +01:00
d5f68976e8
fuzz_pubkey, fuzz_privkey: no real need to access private fields
...
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com >
2024-02-22 12:05:35 +01:00
5346396c48
Fix code-style
...
Signed-off-by: Przemek Stekiel <przemyslaw.stekiel@mobica.com >
2023-04-24 09:01:41 +02:00
758aef60c5
Add guards for mbedtls_psa_crypto_free()
...
Signed-off-by: Przemek Stekiel <przemyslaw.stekiel@mobica.com >
2023-04-24 08:10:01 +02:00
774f9debf2
Init PSA in fuzz programs
...
Signed-off-by: Przemek Stekiel <przemyslaw.stekiel@mobica.com >
2023-04-24 08:07:20 +02:00
449bd8303e
Switch to the new code style
...
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com >
2023-01-11 14:50:10 +01:00
6c2e9b6048
Add MBEDTLS_ALLOW_PRIVATE_ACCESS to test programs
...
Signed-off-by: Mateusz Starzyk <mateusz.starzyk@mobica.com >
2021-05-21 18:10:44 +02:00
d7fb66fd13
If a key is not of a supported type, something went wrong
2020-02-25 19:54:27 +01:00
e60b365a5e
EC keys can have the type MBEDTLS_PK_ECKEY_DH too
2020-02-25 19:54:07 +01:00
f02b984f86
Sanity check on elliptic curve keys: check that the group is known
2020-02-25 19:52:44 +01:00
8d36696e1f
Fix fuzz_pubkey failure on valid RSA keys
...
On a valid RSA public key, mbedtls_rsa_export should succeed if you
ask for the public fields, but fail if you ask for private fields. The
code was expecting to succeed when asking for private fields, so
failed on every valid RSA public key.
2020-02-25 19:51:07 +01:00
8b1ed1cf0e
Adds explicit include to stdlib.h for abort
2020-01-22 16:22:36 +01:00
7d4bd6f15f
Checks mbedtls_rsa_export_crt return in fuzz targets
2020-01-22 14:14:18 +01:00
66070bc19d
Checks mbedtls_rsa_export return in fuzz targets
2020-01-22 13:54:56 +01:00
48f35f50bf
Move fuzz directory to programs
2019-06-27 08:46:45 +02:00