diff options
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; |
