diff options
| author | Mattias Andrée <m@maandree.se> | 2026-05-16 12:11:02 +0200 |
|---|---|---|
| committer | Mattias Andrée <m@maandree.se> | 2026-05-16 12:11:02 +0200 |
| commit | 8ea4c3659a63fa4c5a1b85e2e6650ea2c3a4b91b (patch) | |
| tree | 827cd837787ad59964e9233b73629bb6c7c717a2 /librecrypt_test_supported.c | |
| parent | m (diff) | |
| download | librecrypt-8ea4c3659a63fa4c5a1b85e2e6650ea2c3a4b91b.tar.gz librecrypt-8ea4c3659a63fa4c5a1b85e2e6650ea2c3a4b91b.tar.bz2 librecrypt-8ea4c3659a63fa4c5a1b85e2e6650ea2c3a4b91b.tar.xz | |
Add "reserved" parameter to a few more functions
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to 'librecrypt_test_supported.c')
| -rw-r--r-- | librecrypt_test_supported.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/librecrypt_test_supported.c b/librecrypt_test_supported.c index 66ee4fb..db5ac7c 100644 --- a/librecrypt_test_supported.c +++ b/librecrypt_test_supported.c @@ -4,7 +4,7 @@ int -librecrypt_test_supported(const char *phrase, size_t len, int text, const char *settings) +librecrypt_test_supported(const char *phrase, size_t len, int text, const char *settings, void *reserved) { const struct algorithm *algo; size_t n; @@ -49,11 +49,11 @@ librecrypt_test_supported(const char *phrase, size_t len, int text, const char * #define CHECK(ALGO, VALID, INVALID)\ do {\ - EXPECT(librecrypt_test_supported(NULL, 4096u, 0, ALGO VALID) == 1);\ - EXPECT(librecrypt_test_supported(NULL, 4096u, 0, ALGO VALID">"NSA) == 0);\ - EXPECT(librecrypt_test_supported(NULL, 4096u, 0, NSA">"ALGO VALID) == 0);\ - EXPECT(librecrypt_test_supported(NULL, 4096u, 0, ALGO VALID">"ALGO VALID) == 1);\ - EXPECT(librecrypt_test_supported(NULL, 4096u, 0, ALGO INVALID) == 0);\ + EXPECT(librecrypt_test_supported(NULL, 4096u, 0, ALGO VALID, NULL) == 1);\ + EXPECT(librecrypt_test_supported(NULL, 4096u, 0, ALGO VALID">"NSA, NULL) == 0);\ + EXPECT(librecrypt_test_supported(NULL, 4096u, 0, NSA">"ALGO VALID, NULL) == 0);\ + EXPECT(librecrypt_test_supported(NULL, 4096u, 0, ALGO VALID">"ALGO VALID, NULL) == 1);\ + EXPECT(librecrypt_test_supported(NULL, 4096u, 0, ALGO INVALID, NULL) == 0);\ } while (0) @@ -63,10 +63,10 @@ main(void) SET_UP_ALARM(); INIT_RESOURCE_TEST(); - EXPECT(librecrypt_test_supported("abcdefgh", 8u, 1, NSA) == 0); - EXPECT(librecrypt_test_supported("abcdefgh", 8u, 1, NSA">") == 0); - EXPECT(librecrypt_test_supported("abcdefgh", 8u, 1, ">"NSA) == 0); - EXPECT(librecrypt_test_supported("abcdefgh", 8u, 1, NSA">"NSA) == 0); + EXPECT(librecrypt_test_supported("abcdefgh", 8u, 1, NSA, NULL) == 0); + EXPECT(librecrypt_test_supported("abcdefgh", 8u, 1, NSA">", NULL) == 0); + EXPECT(librecrypt_test_supported("abcdefgh", 8u, 1, ">"NSA, NULL) == 0); + EXPECT(librecrypt_test_supported("abcdefgh", 8u, 1, NSA">"NSA, NULL) == 0); IF__argon2i__SUPPORTED(CHECK("$argon2i$v=19$", "m=8,t=1,p=1$*16$*40", "m=0,t=0,p=0$*1$*1")); IF__argon2d__SUPPORTED(CHECK("$argon2d$v=19$", "m=8,t=1,p=1$*16$*40", "m=0,t=0,p=0$*1$*1")); @@ -107,7 +107,7 @@ LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) memcpy(settings, data, size); settings[size] = '\0'; - discarded_return_value = librecrypt_test_supported(phrase, len, text, settings); + discarded_return_value = librecrypt_test_supported(phrase, len, text, settings, NULL); free(settings); return 0; |
