From b4984fd94ef861f3f058dcaab0a290169b78152a Mon Sep 17 00:00:00 2001 From: Sangbida Chaudhuri <101164840+sangbida@users.noreply.github.com> Date: Fri, 24 Oct 2025 13:57:49 +1030 Subject: [PATCH] hsm_encryption: delete hsm_encryption Changelog-Removed: Remove hsm_encryption files as they have now been replaced by hsm_secret --- common/Makefile | 1 - common/hsm_encryption.c | 158 ------------------ common/hsm_encryption.h | 67 -------- .../010a57daa7433703ddc639f51f53d01a74afdba8 | 3 - .../010a7169be4dc57b1df48a71f8292af8a692b2b3 | Bin 33 -> 0 bytes .../019f9573207b9765047f660f11cd19bbd48309e2 | Bin 40 -> 0 bytes .../086d57f3fa5ff9c9b7eb765ff8b88a2d797ca946 | 2 - .../11daf937510fff8519d131daf36160fb39cfba15 | Bin 50 -> 0 bytes .../11f4de6b8b45cf8051b1d17fa4cde9ad935cea41 | 1 - .../176cbd4490560d179030137a21c904027fea3935 | Bin 50 -> 0 bytes .../24c823bc3c38d3de37f789f5ecafaa8408c93757 | Bin 56 -> 0 bytes .../260031bd67c9814ad538fb29634fa783c82ccfe3 | Bin 49 -> 0 bytes .../26dfa419dd7a4e2049feff895b829dda48f425ac | 2 - .../2756db15a535e07f2ac3498d97d7bb2be248a172 | 2 - .../29d842a6375afe12348b81f1742c708169f6796b | 2 - .../3bc15c8aae3e4124dd409035f32ea2fd6835efc9 | 1 - .../44fdfd93ea706488b4817f55435dde2bf0048eb5 | Bin 49 -> 0 bytes .../48748e3a570fbe79b28fa52b048ecc9d73b6d3b1 | 2 - .../4d9636304829eca44744fa3f960c076fa247d875 | 2 - .../59d2945e40bfcbb2ac91ce0334a06689abe21fb7 | Bin 64 -> 0 bytes .../5dbe749bb6c6027a0022430f2514824f47097269 | Bin 34 -> 0 bytes .../712bad91ff51f19b892122cbba365a0f4b3147fb | Bin 33 -> 0 bytes .../7618428f8d106024bd6e27dfada6d9dbb2f05a9b | Bin 40 -> 0 bytes .../7c191aae1d3d9a8a8a9c70959f8ac14ba22e7c83 | Bin 38 -> 0 bytes .../82db6048fae4a5953f671f416b59afe4004380ec | Bin 33 -> 0 bytes .../85b3c5e8a553adee68f94a2c5770f59acf41308f | Bin 34 -> 0 bytes .../85e53271e14006f0265921d02d4d736cdc580b0b | 1 - .../878e4439b591edc28ebb2691979661037bc5cde1 | Bin 49 -> 0 bytes .../8efd4d04bba8942cef9293af1a778e66fe6d0e7d | 1 - .../922d91b16cc923561d58979900554de2af4762d8 | Bin 33 -> 0 bytes .../92b6e6612209872ccc8bb6b45b617558125e092a | Bin 37 -> 0 bytes .../974098cfbcc636d36e3a8e64dd8018fc8b83ec89 | Bin 34 -> 0 bytes .../9842926af7ca0a8cca12604f945414f07b01e13d | 1 - .../9ca6d4b8e2b357f4996c432067304c1f626720eb | Bin 48 -> 0 bytes .../9e350e370dc6f75a337009f44ef5d0ecf5ed610e | Bin 57 -> 0 bytes .../a4921de93678886f2666fe9240f55356038ac16e | Bin 48 -> 0 bytes .../a71b3c25b54d5c8eb084084f1ef9f9b27931d5ff | 1 - .../af030542a4125d670351df40131a4265e29b7447 | Bin 50 -> 0 bytes .../b0adf074d207869cad9d349b0bf943d532c5e765 | Bin 50 -> 0 bytes .../b166167155f161a697affe07e3a018901bf00c7f | 2 - .../b6a060bc39f6f35a41d503cf5c32adae7540e2d4 | 1 - .../b714e28e82cb02857771f0ef8a3a1fc91f7d578c | 1 - .../c1554cfd9efc6515e42d6ea45c85131217dc48c6 | Bin 33 -> 0 bytes .../ca06da040976f32f8453a8737c15ea1b800d0255 | Bin 40 -> 0 bytes .../d2c778022a38b46327e74b61341dc384402580ec | Bin 33 -> 0 bytes .../d5fc363735dc945c877052ef2b7ebe383208afe1 | Bin 40 -> 0 bytes .../d7d64e916ef78eb838273ae25a308aaf217980d8 | 1 - .../d9a56f6dabaf3b4cc0776f9ee65b1d64a69aa7e4 | 1 - .../da424c425994ded6390738b342cf7c853c6aa51f | 1 - .../dd4c2e570f6c9506840c00001570479aff75fe09 | Bin 33 -> 0 bytes .../de48b44d9fdbb12c895bc256198d61caf24eacbe | Bin 40 -> 0 bytes .../ded4d55b7202b767c7bd76edf6dfd6f15d2a7592 | Bin 33 -> 0 bytes .../df58248c414f342c81e056b40bee12d17a08bf61 | 1 - .../e31d31820dd73683cc2858c3fe3deb567b469c36 | Bin 33 -> 0 bytes .../e3a039a6cfc87ae1503145a859bd03ea0a675524 | Bin 64 -> 0 bytes .../ead8514f2be42cdd84c9dd7aee05c3e378f9d8e8 | Bin 58 -> 0 bytes .../eb408af63c99aa3224d25ff6c74990e56635d5ef | 2 - .../eb6a2e7996ecfbca0aad0988a7c36d11bf0884d2 | 2 - .../ee129cbcf727b0afd5a7f3b79a4fa333417033d9 | Bin 33 -> 0 bytes .../f0054c92049c5e3706f7c45082065e67f9ea8ea0 | Bin 48 -> 0 bytes .../f44634b586d683d6c27e5997fa674574683e267a | Bin 36 -> 0 bytes .../f4cb666c221192e9a9a2010e114ec8847f038051 | Bin 33 -> 0 bytes .../f98aef5540e4bcf21b7292adb1b9de01669d7e7b | 1 - .../fe7b328bfc4adc6daa6d5de3eba6273832803783 | 2 - tests/fuzz/fuzz-hsm_encryption.c | 50 ------ 65 files changed, 312 deletions(-) delete mode 100644 common/hsm_encryption.c delete mode 100644 common/hsm_encryption.h delete mode 100644 tests/fuzz/corpora/fuzz-hsm_encryption/010a57daa7433703ddc639f51f53d01a74afdba8 delete mode 100644 tests/fuzz/corpora/fuzz-hsm_encryption/010a7169be4dc57b1df48a71f8292af8a692b2b3 delete mode 100644 tests/fuzz/corpora/fuzz-hsm_encryption/019f9573207b9765047f660f11cd19bbd48309e2 delete mode 100644 tests/fuzz/corpora/fuzz-hsm_encryption/086d57f3fa5ff9c9b7eb765ff8b88a2d797ca946 delete mode 100644 tests/fuzz/corpora/fuzz-hsm_encryption/11daf937510fff8519d131daf36160fb39cfba15 delete mode 100644 tests/fuzz/corpora/fuzz-hsm_encryption/11f4de6b8b45cf8051b1d17fa4cde9ad935cea41 delete mode 100644 tests/fuzz/corpora/fuzz-hsm_encryption/176cbd4490560d179030137a21c904027fea3935 delete mode 100644 tests/fuzz/corpora/fuzz-hsm_encryption/24c823bc3c38d3de37f789f5ecafaa8408c93757 delete mode 100644 tests/fuzz/corpora/fuzz-hsm_encryption/260031bd67c9814ad538fb29634fa783c82ccfe3 delete mode 100644 tests/fuzz/corpora/fuzz-hsm_encryption/26dfa419dd7a4e2049feff895b829dda48f425ac delete mode 100644 tests/fuzz/corpora/fuzz-hsm_encryption/2756db15a535e07f2ac3498d97d7bb2be248a172 delete mode 100644 tests/fuzz/corpora/fuzz-hsm_encryption/29d842a6375afe12348b81f1742c708169f6796b delete mode 100644 tests/fuzz/corpora/fuzz-hsm_encryption/3bc15c8aae3e4124dd409035f32ea2fd6835efc9 delete mode 100644 tests/fuzz/corpora/fuzz-hsm_encryption/44fdfd93ea706488b4817f55435dde2bf0048eb5 delete mode 100644 tests/fuzz/corpora/fuzz-hsm_encryption/48748e3a570fbe79b28fa52b048ecc9d73b6d3b1 delete mode 100644 tests/fuzz/corpora/fuzz-hsm_encryption/4d9636304829eca44744fa3f960c076fa247d875 delete mode 100644 tests/fuzz/corpora/fuzz-hsm_encryption/59d2945e40bfcbb2ac91ce0334a06689abe21fb7 delete mode 100644 tests/fuzz/corpora/fuzz-hsm_encryption/5dbe749bb6c6027a0022430f2514824f47097269 delete mode 100644 tests/fuzz/corpora/fuzz-hsm_encryption/712bad91ff51f19b892122cbba365a0f4b3147fb delete mode 100644 tests/fuzz/corpora/fuzz-hsm_encryption/7618428f8d106024bd6e27dfada6d9dbb2f05a9b delete mode 100644 tests/fuzz/corpora/fuzz-hsm_encryption/7c191aae1d3d9a8a8a9c70959f8ac14ba22e7c83 delete mode 100644 tests/fuzz/corpora/fuzz-hsm_encryption/82db6048fae4a5953f671f416b59afe4004380ec delete mode 100644 tests/fuzz/corpora/fuzz-hsm_encryption/85b3c5e8a553adee68f94a2c5770f59acf41308f delete mode 100644 tests/fuzz/corpora/fuzz-hsm_encryption/85e53271e14006f0265921d02d4d736cdc580b0b delete mode 100644 tests/fuzz/corpora/fuzz-hsm_encryption/878e4439b591edc28ebb2691979661037bc5cde1 delete mode 100644 tests/fuzz/corpora/fuzz-hsm_encryption/8efd4d04bba8942cef9293af1a778e66fe6d0e7d delete mode 100644 tests/fuzz/corpora/fuzz-hsm_encryption/922d91b16cc923561d58979900554de2af4762d8 delete mode 100644 tests/fuzz/corpora/fuzz-hsm_encryption/92b6e6612209872ccc8bb6b45b617558125e092a delete mode 100644 tests/fuzz/corpora/fuzz-hsm_encryption/974098cfbcc636d36e3a8e64dd8018fc8b83ec89 delete mode 100644 tests/fuzz/corpora/fuzz-hsm_encryption/9842926af7ca0a8cca12604f945414f07b01e13d delete mode 100644 tests/fuzz/corpora/fuzz-hsm_encryption/9ca6d4b8e2b357f4996c432067304c1f626720eb delete mode 100644 tests/fuzz/corpora/fuzz-hsm_encryption/9e350e370dc6f75a337009f44ef5d0ecf5ed610e delete mode 100644 tests/fuzz/corpora/fuzz-hsm_encryption/a4921de93678886f2666fe9240f55356038ac16e delete mode 100644 tests/fuzz/corpora/fuzz-hsm_encryption/a71b3c25b54d5c8eb084084f1ef9f9b27931d5ff delete mode 100644 tests/fuzz/corpora/fuzz-hsm_encryption/af030542a4125d670351df40131a4265e29b7447 delete mode 100644 tests/fuzz/corpora/fuzz-hsm_encryption/b0adf074d207869cad9d349b0bf943d532c5e765 delete mode 100644 tests/fuzz/corpora/fuzz-hsm_encryption/b166167155f161a697affe07e3a018901bf00c7f delete mode 100644 tests/fuzz/corpora/fuzz-hsm_encryption/b6a060bc39f6f35a41d503cf5c32adae7540e2d4 delete mode 100644 tests/fuzz/corpora/fuzz-hsm_encryption/b714e28e82cb02857771f0ef8a3a1fc91f7d578c delete mode 100644 tests/fuzz/corpora/fuzz-hsm_encryption/c1554cfd9efc6515e42d6ea45c85131217dc48c6 delete mode 100644 tests/fuzz/corpora/fuzz-hsm_encryption/ca06da040976f32f8453a8737c15ea1b800d0255 delete mode 100644 tests/fuzz/corpora/fuzz-hsm_encryption/d2c778022a38b46327e74b61341dc384402580ec delete mode 100644 tests/fuzz/corpora/fuzz-hsm_encryption/d5fc363735dc945c877052ef2b7ebe383208afe1 delete mode 100644 tests/fuzz/corpora/fuzz-hsm_encryption/d7d64e916ef78eb838273ae25a308aaf217980d8 delete mode 100644 tests/fuzz/corpora/fuzz-hsm_encryption/d9a56f6dabaf3b4cc0776f9ee65b1d64a69aa7e4 delete mode 100644 tests/fuzz/corpora/fuzz-hsm_encryption/da424c425994ded6390738b342cf7c853c6aa51f delete mode 100644 tests/fuzz/corpora/fuzz-hsm_encryption/dd4c2e570f6c9506840c00001570479aff75fe09 delete mode 100644 tests/fuzz/corpora/fuzz-hsm_encryption/de48b44d9fdbb12c895bc256198d61caf24eacbe delete mode 100644 tests/fuzz/corpora/fuzz-hsm_encryption/ded4d55b7202b767c7bd76edf6dfd6f15d2a7592 delete mode 100644 tests/fuzz/corpora/fuzz-hsm_encryption/df58248c414f342c81e056b40bee12d17a08bf61 delete mode 100644 tests/fuzz/corpora/fuzz-hsm_encryption/e31d31820dd73683cc2858c3fe3deb567b469c36 delete mode 100644 tests/fuzz/corpora/fuzz-hsm_encryption/e3a039a6cfc87ae1503145a859bd03ea0a675524 delete mode 100644 tests/fuzz/corpora/fuzz-hsm_encryption/ead8514f2be42cdd84c9dd7aee05c3e378f9d8e8 delete mode 100644 tests/fuzz/corpora/fuzz-hsm_encryption/eb408af63c99aa3224d25ff6c74990e56635d5ef delete mode 100644 tests/fuzz/corpora/fuzz-hsm_encryption/eb6a2e7996ecfbca0aad0988a7c36d11bf0884d2 delete mode 100644 tests/fuzz/corpora/fuzz-hsm_encryption/ee129cbcf727b0afd5a7f3b79a4fa333417033d9 delete mode 100644 tests/fuzz/corpora/fuzz-hsm_encryption/f0054c92049c5e3706f7c45082065e67f9ea8ea0 delete mode 100644 tests/fuzz/corpora/fuzz-hsm_encryption/f44634b586d683d6c27e5997fa674574683e267a delete mode 100644 tests/fuzz/corpora/fuzz-hsm_encryption/f4cb666c221192e9a9a2010e114ec8847f038051 delete mode 100644 tests/fuzz/corpora/fuzz-hsm_encryption/f98aef5540e4bcf21b7292adb1b9de01669d7e7b delete mode 100644 tests/fuzz/corpora/fuzz-hsm_encryption/fe7b328bfc4adc6daa6d5de3eba6273832803783 delete mode 100644 tests/fuzz/fuzz-hsm_encryption.c diff --git a/common/Makefile b/common/Makefile index 5b8538577..8ab2b6355 100644 --- a/common/Makefile +++ b/common/Makefile @@ -45,7 +45,6 @@ COMMON_SRC_NOGEN := \ common/hash_u5.c \ common/hmac.c \ common/hsm_capable.c \ - common/hsm_encryption.c \ common/hsm_secret.c \ common/htlc_state.c \ common/htlc_trim.c \ diff --git a/common/hsm_encryption.c b/common/hsm_encryption.c deleted file mode 100644 index 3486773dd..000000000 --- a/common/hsm_encryption.c +++ /dev/null @@ -1,158 +0,0 @@ -#include "config.h" -#include -#include -#include -#include -#include - -int hsm_secret_encryption_key_with_exitcode(const char *pass, struct secret *key, - const char **err_msg) -{ - u8 salt[16] = "c-lightning\0\0\0\0\0"; - - /* Don't swap the encryption key ! */ - if (sodium_mlock(key->data, sizeof(key->data)) != 0) { - if (err_msg) - *err_msg = "Could not lock hsm_secret encryption key memory."; - return EXITCODE_HSM_GENERIC_ERROR; - } - - /* Check bounds. */ - if (strlen(pass) < crypto_pwhash_argon2id_PASSWD_MIN) { - if (err_msg) - *err_msg = "Password too short to be able to derive a key from it."; - return EXITCODE_HSM_BAD_PASSWORD; - } else if (strlen(pass) > crypto_pwhash_argon2id_PASSWD_MAX) { - if (err_msg) - *err_msg = "Password too long to be able to derive a key from it."; - return EXITCODE_HSM_BAD_PASSWORD; - } - - /* Now derive the key. */ - if (crypto_pwhash(key->data, sizeof(key->data), pass, strlen(pass), salt, - /* INTERACTIVE needs 64 MiB of RAM, MODERATE needs 256, - * and SENSITIVE needs 1024. */ - crypto_pwhash_argon2id_OPSLIMIT_MODERATE, - crypto_pwhash_argon2id_MEMLIMIT_MODERATE, - crypto_pwhash_ALG_ARGON2ID13) != 0) { - if (err_msg) - *err_msg = "Could not derive a key from the password."; - return EXITCODE_HSM_BAD_PASSWORD; - } - - return 0; -} - -bool encrypt_hsm_secret(const struct secret *encryption_key, - const struct secret *hsm_secret, - struct encrypted_hsm_secret *output) -{ - crypto_secretstream_xchacha20poly1305_state crypto_state; - - if (crypto_secretstream_xchacha20poly1305_init_push(&crypto_state, output->data, - encryption_key->data) != 0) - return false; - if (crypto_secretstream_xchacha20poly1305_push(&crypto_state, - output->data + HS_HEADER_LEN, - NULL, hsm_secret->data, - sizeof(hsm_secret->data), - /* Additional data and tag */ - NULL, 0, 0)) - return false; - - return true; -} - -bool decrypt_hsm_secret(const struct secret *encryption_key, - const struct encrypted_hsm_secret *cipher, - struct secret *output) -{ - crypto_secretstream_xchacha20poly1305_state crypto_state; - - /* The header part */ - if (crypto_secretstream_xchacha20poly1305_init_pull(&crypto_state, cipher->data, - encryption_key->data) != 0) - return false; - /* The ciphertext part */ - if (crypto_secretstream_xchacha20poly1305_pull(&crypto_state, output->data, - NULL, 0, - cipher->data + HS_HEADER_LEN, - HS_CIPHERTEXT_LEN, - NULL, 0) != 0) - return false; - - return true; -} - -/* Returns -1 on error (and sets errno), 0 if not encrypted, 1 if it is */ -int is_hsm_secret_encrypted(const char *path) -{ - struct stat st; - - if (stat(path, &st) != 0) - return -1; - - return st.st_size == ENCRYPTED_HSM_SECRET_LEN; -} - -void discard_key(struct secret *key TAKES) -{ - /* sodium_munlock() also zeroes the memory. */ - sodium_munlock(key->data, sizeof(key->data)); - if (taken(key)) - tal_free(key); -} - -/* Read a line from stdin, do not take the newline character into account. */ -static bool getline_stdin_pass(char **passwd, size_t *passwd_size) -{ - if (getline(passwd, passwd_size, stdin) < 0) - return false; - - if ((*passwd)[strlen(*passwd) - 1] == '\n') - (*passwd)[strlen(*passwd) - 1] = '\0'; - - return true; -} - -char *read_stdin_pass_with_exit_code(const char **reason, int *exit_code) -{ - struct termios current_term, temp_term; - char *passwd = NULL; - size_t passwd_size = 0; - - if (isatty(fileno(stdin))) { - /* Set a temporary term, same as current but with ECHO disabled. */ - if (tcgetattr(fileno(stdin), ¤t_term) != 0) { - *reason = "Could not get current terminal options."; - *exit_code = EXITCODE_HSM_PASSWORD_INPUT_ERR; - return NULL; - } - temp_term = current_term; - temp_term.c_lflag &= ~ECHO; - if (tcsetattr(fileno(stdin), TCSANOW, &temp_term) != 0) { - *reason = "Could not disable pass echoing."; - *exit_code = EXITCODE_HSM_PASSWORD_INPUT_ERR; - return NULL; - } - - if (!getline_stdin_pass(&passwd, &passwd_size)) { - *reason = "Could not read pass from stdin."; - *exit_code = EXITCODE_HSM_PASSWORD_INPUT_ERR; - return NULL; - } - - /* Restore the original terminal */ - if (tcsetattr(fileno(stdin), TCSANOW, ¤t_term) != 0) { - *reason = "Could not restore terminal options."; - free(passwd); - *exit_code = EXITCODE_HSM_PASSWORD_INPUT_ERR; - return NULL; - } - } else if (!getline_stdin_pass(&passwd, &passwd_size)) { - *reason = "Could not read pass from stdin."; - *exit_code = EXITCODE_HSM_PASSWORD_INPUT_ERR; - return NULL; - } - return passwd; -} diff --git a/common/hsm_encryption.h b/common/hsm_encryption.h deleted file mode 100644 index af67701ad..000000000 --- a/common/hsm_encryption.h +++ /dev/null @@ -1,67 +0,0 @@ -#ifndef LIGHTNING_COMMON_HSM_ENCRYPTION_H -#define LIGHTNING_COMMON_HSM_ENCRYPTION_H -#include "config.h" -#include -#include - -/* Length of the encrypted hsm secret header. */ -#define HS_HEADER_LEN crypto_secretstream_xchacha20poly1305_HEADERBYTES -/* From libsodium: "The ciphertext length is guaranteed to always be message - * length + ABYTES" */ -#define HS_CIPHERTEXT_LEN \ - (sizeof(struct secret) + crypto_secretstream_xchacha20poly1305_ABYTES) -/* Total length of an encrypted hsm_secret */ -#define ENCRYPTED_HSM_SECRET_LEN (HS_HEADER_LEN + HS_CIPHERTEXT_LEN) - -struct encrypted_hsm_secret { - u8 data[ENCRYPTED_HSM_SECRET_LEN]; -}; - -/** Derive the hsm_secret encryption key from a passphrase. - * @pass: the passphrase string. - * @encryption_key: the output key derived from the passphrase. - * @err_msg: if not NULL the error message contains the reason of the failure. - * - * On success, 0 is returned, on error a value > 0 is returned and it can be used as exit code. - */ -int hsm_secret_encryption_key_with_exitcode(const char *pass, struct secret *key, - const char **err_msg); - -/** Encrypt the hsm_secret using a previously derived encryption key. - * @encryption_key: the key derived from the passphrase. - * @hsm_secret: the plaintext hsm_secret to encrypt. - * @output: the resulting encrypted hsm_secret. - * - * Return false on encryption failure. - */ -bool encrypt_hsm_secret(const struct secret *encryption_key, - const struct secret *hsm_secret, - struct encrypted_hsm_secret *output); - -/** Decrypt the hsm_secret using a previously derived encryption key. - * @encryption_key: the key derived from the passphrase. - * @cipher: the encrypted hsm_secret to decrypt. - * @output: the resulting hsm_secret. - * - * Return false on decryption failure. - */ -bool decrypt_hsm_secret(const struct secret *encryption_key, - const struct encrypted_hsm_secret *cipher, - struct secret *output); - -/** Unlock and zeroize the encryption key memory after use. - * @key: the encryption key. If taken, it will be tal_free'd - */ -void discard_key(struct secret *key TAKES); - -/** Read hsm_secret encryption pass from stdin, disabling echoing. - * @reason: if NULL is returned, will point to the human-readable error, - * and the correct exit code is returned by the exit_code parameter. - * - * Caller must free the string as it does tal-reallocate getline's output. - */ -char *read_stdin_pass_with_exit_code(const char **reason, int *exit_code); - -/** Returns -1 on error (and sets errno), 0 if not encrypted, 1 if it is */ -int is_hsm_secret_encrypted(const char *path); -#endif /* LIGHTNING_COMMON_HSM_ENCRYPTION_H */ diff --git a/tests/fuzz/corpora/fuzz-hsm_encryption/010a57daa7433703ddc639f51f53d01a74afdba8 b/tests/fuzz/corpora/fuzz-hsm_encryption/010a57daa7433703ddc639f51f53d01a74afdba8 deleted file mode 100644 index 86652eacb..000000000 --- a/tests/fuzz/corpora/fuzz-hsm_encryption/010a57daa7433703ddc639f51f53d01a74afdba8 +++ /dev/null @@ -1,3 +0,0 @@ --ÿÿÿÿÿÿÿ;ÿÿûÿÿÿÿÿ!;ÿÿÿÿÿÿÿÿÿ -ÿÿ -2 \ No newline at end of file diff --git a/tests/fuzz/corpora/fuzz-hsm_encryption/010a7169be4dc57b1df48a71f8292af8a692b2b3 b/tests/fuzz/corpora/fuzz-hsm_encryption/010a7169be4dc57b1df48a71f8292af8a692b2b3 deleted file mode 100644 index 6699578436cf86a34266bb9cf56aec79a264ff85..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 33 XcmdP>4+bB=;J*U{GWgH+|2G!^T}TiV diff --git a/tests/fuzz/corpora/fuzz-hsm_encryption/019f9573207b9765047f660f11cd19bbd48309e2 b/tests/fuzz/corpora/fuzz-hsm_encryption/019f9573207b9765047f660f11cd19bbd48309e2 deleted file mode 100644 index 18a2c231744b7160713e4a8bb8455aecc3b937b2..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 40 ecmdP>&j19PK>QyFP65Gxpa@tHA_NrW0wMrxBou-G diff --git a/tests/fuzz/corpora/fuzz-hsm_encryption/086d57f3fa5ff9c9b7eb765ff8b88a2d797ca946 b/tests/fuzz/corpora/fuzz-hsm_encryption/086d57f3fa5ff9c9b7eb765ff8b88a2d797ca946 deleted file mode 100644 index 602ed3f86..000000000 --- a/tests/fuzz/corpora/fuzz-hsm_encryption/086d57f3fa5ff9c9b7eb765ff8b88a2d797ca946 +++ /dev/null @@ -1,2 +0,0 @@ --ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ -QQQQQQQQQQ€€€€€QQQQQQQQÿÿ diff --git a/tests/fuzz/corpora/fuzz-hsm_encryption/11daf937510fff8519d131daf36160fb39cfba15 b/tests/fuzz/corpora/fuzz-hsm_encryption/11daf937510fff8519d131daf36160fb39cfba15 deleted file mode 100644 index a335e4b43384910511c27f1ba7cad2fd724e8ca1..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 50 PcmdP>j}tI5V3h&@ptCOk diff --git a/tests/fuzz/corpora/fuzz-hsm_encryption/11f4de6b8b45cf8051b1d17fa4cde9ad935cea41 b/tests/fuzz/corpora/fuzz-hsm_encryption/11f4de6b8b45cf8051b1d17fa4cde9ad935cea41 deleted file mode 100644 index 67c329761..000000000 --- a/tests/fuzz/corpora/fuzz-hsm_encryption/11f4de6b8b45cf8051b1d17fa4cde9ad935cea41 +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/tests/fuzz/corpora/fuzz-hsm_encryption/176cbd4490560d179030137a21c904027fea3935 b/tests/fuzz/corpora/fuzz-hsm_encryption/176cbd4490560d179030137a21c904027fea3935 deleted file mode 100644 index 22ad235a45ef7b626e5d69c7e04a27eaf24a4510..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 50 PcmdP>j{`8^5dRMVw1_YM diff --git a/tests/fuzz/corpora/fuzz-hsm_encryption/24c823bc3c38d3de37f789f5ecafaa8408c93757 b/tests/fuzz/corpora/fuzz-hsm_encryption/24c823bc3c38d3de37f789f5ecafaa8408c93757 deleted file mode 100644 index 0a282f9b70ed393e39bb2549a75dc38b5568a748..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 56 dcmdP>|Nnm!5d8nI3uHk-6^wyGGcYh9_y8(iFb@C# diff --git a/tests/fuzz/corpora/fuzz-hsm_encryption/260031bd67c9814ad538fb29634fa783c82ccfe3 b/tests/fuzz/corpora/fuzz-hsm_encryption/260031bd67c9814ad538fb29634fa783c82ccfe3 deleted file mode 100644 index 67ce86d66402d722155871de5069cafb60e0f9a0..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 49 ccmdP>4+j7K|7U=J|NnnOgy5tALI%hJ07vH@7XSbN diff --git a/tests/fuzz/corpora/fuzz-hsm_encryption/26dfa419dd7a4e2049feff895b829dda48f425ac b/tests/fuzz/corpora/fuzz-hsm_encryption/26dfa419dd7a4e2049feff895b829dda48f425ac deleted file mode 100644 index 762048989..000000000 --- a/tests/fuzz/corpora/fuzz-hsm_encryption/26dfa419dd7a4e2049feff895b829dda48f425ac +++ /dev/null @@ -1,2 +0,0 @@ --ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ -ÿÿÿ \ No newline at end of file diff --git a/tests/fuzz/corpora/fuzz-hsm_encryption/2756db15a535e07f2ac3498d97d7bb2be248a172 b/tests/fuzz/corpora/fuzz-hsm_encryption/2756db15a535e07f2ac3498d97d7bb2be248a172 deleted file mode 100644 index 490e942b7..000000000 --- a/tests/fuzz/corpora/fuzz-hsm_encryption/2756db15a535e07f2ac3498d97d7bb2be248a172 +++ /dev/null @@ -1,2 +0,0 @@ --ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ÷ÿÿøÿÿÿÿÿÿÿ -ÿÿÿÿÿÿÿÿ ÿÿÿÿ÷ÿÿÿÿÿÿÿÿÿÿ diff --git a/tests/fuzz/corpora/fuzz-hsm_encryption/29d842a6375afe12348b81f1742c708169f6796b b/tests/fuzz/corpora/fuzz-hsm_encryption/29d842a6375afe12348b81f1742c708169f6796b deleted file mode 100644 index 7aeae87f9..000000000 --- a/tests/fuzz/corpora/fuzz-hsm_encryption/29d842a6375afe12348b81f1742c708169f6796b +++ /dev/null @@ -1,2 +0,0 @@ --ÿÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ -ÿÿ diff --git a/tests/fuzz/corpora/fuzz-hsm_encryption/3bc15c8aae3e4124dd409035f32ea2fd6835efc9 b/tests/fuzz/corpora/fuzz-hsm_encryption/3bc15c8aae3e4124dd409035f32ea2fd6835efc9 deleted file mode 100644 index 3cf20d57b..000000000 --- a/tests/fuzz/corpora/fuzz-hsm_encryption/3bc15c8aae3e4124dd409035f32ea2fd6835efc9 +++ /dev/null @@ -1 +0,0 @@ -- \ No newline at end of file diff --git a/tests/fuzz/corpora/fuzz-hsm_encryption/44fdfd93ea706488b4817f55435dde2bf0048eb5 b/tests/fuzz/corpora/fuzz-hsm_encryption/44fdfd93ea706488b4817f55435dde2bf0048eb5 deleted file mode 100644 index f811ff67eeb33c531640efc66bcad7454eea162a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 49 icmeyb`~Uy%|6Kq7|7TAQJ$1hb8R* diff --git a/tests/fuzz/corpora/fuzz-hsm_encryption/48748e3a570fbe79b28fa52b048ecc9d73b6d3b1 b/tests/fuzz/corpora/fuzz-hsm_encryption/48748e3a570fbe79b28fa52b048ecc9d73b6d3b1 deleted file mode 100644 index babeeded6..000000000 --- a/tests/fuzz/corpora/fuzz-hsm_encryption/48748e3a570fbe79b28fa52b048ecc9d73b6d3b1 +++ /dev/null @@ -1,2 +0,0 @@ --ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ -YYYÿÿ diff --git a/tests/fuzz/corpora/fuzz-hsm_encryption/4d9636304829eca44744fa3f960c076fa247d875 b/tests/fuzz/corpora/fuzz-hsm_encryption/4d9636304829eca44744fa3f960c076fa247d875 deleted file mode 100644 index a3d76e4da..000000000 --- a/tests/fuzz/corpora/fuzz-hsm_encryption/4d9636304829eca44744fa3f960c076fa247d875 +++ /dev/null @@ -1,2 +0,0 @@ --ÿÿ-ÿÿÿÿÿÿÿÿÿ;ÿÿÿÿÿÿÿÿÿ;ÿÿÿÿÿÿÿÿÿ -ÿÿiiiiiiiiiÿÿÿ \ No newline at end of file diff --git a/tests/fuzz/corpora/fuzz-hsm_encryption/59d2945e40bfcbb2ac91ce0334a06689abe21fb7 b/tests/fuzz/corpora/fuzz-hsm_encryption/59d2945e40bfcbb2ac91ce0334a06689abe21fb7 deleted file mode 100644 index 77ac414b59d4e37df748dfcd804831b9b246b19c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 64 dcmezW9|rVb3=H}tnh1j~P(YF4zb*sA3jn<|NlP&1H)hC7BFC71ag2vKwu3fxd0ZX5}p76 diff --git a/tests/fuzz/corpora/fuzz-hsm_encryption/7618428f8d106024bd6e27dfada6d9dbb2f05a9b b/tests/fuzz/corpora/fuzz-hsm_encryption/7618428f8d106024bd6e27dfada6d9dbb2f05a9b deleted file mode 100644 index 721f8eff1e92d9a5a9bd6697ddd211d772b95081..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 40 gcmdP>&%nT-`5y>0fea801V9!TfY@9>6c!c+0F9p$ga7~l diff --git a/tests/fuzz/corpora/fuzz-hsm_encryption/7c191aae1d3d9a8a8a9c70959f8ac14ba22e7c83 b/tests/fuzz/corpora/fuzz-hsm_encryption/7c191aae1d3d9a8a8a9c70959f8ac14ba22e7c83 deleted file mode 100644 index a5bffea422140a46a239fdfd77b4b3319f1564b1..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 38 YcmdP>4+jiD@Z&#_NMYbW5q!@D0OH*icK`qY diff --git a/tests/fuzz/corpora/fuzz-hsm_encryption/82db6048fae4a5953f671f416b59afe4004380ec b/tests/fuzz/corpora/fuzz-hsm_encryption/82db6048fae4a5953f671f416b59afe4004380ec deleted file mode 100644 index f75f77eb35836b84a8c33b80281eab8d4b7856e0..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 33 dcmdP>4*@-3isk=*Z3YI0|3J(P#0)763;=$C5J3O{ diff --git a/tests/fuzz/corpora/fuzz-hsm_encryption/85b3c5e8a553adee68f94a2c5770f59acf41308f b/tests/fuzz/corpora/fuzz-hsm_encryption/85b3c5e8a553adee68f94a2c5770f59acf41308f deleted file mode 100644 index 5ee21ebe2350d9941aac662798eb4429ccb38317..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 34 bcmdP>|DS~c0{#Pm?f>r}3I@3T|K|b#Mw=F8 diff --git a/tests/fuzz/corpora/fuzz-hsm_encryption/85e53271e14006f0265921d02d4d736cdc580b0b b/tests/fuzz/corpora/fuzz-hsm_encryption/85e53271e14006f0265921d02d4d736cdc580b0b deleted file mode 100644 index ce542efaa..000000000 --- a/tests/fuzz/corpora/fuzz-hsm_encryption/85e53271e14006f0265921d02d4d736cdc580b0b +++ /dev/null @@ -1 +0,0 @@ -ÿ \ No newline at end of file diff --git a/tests/fuzz/corpora/fuzz-hsm_encryption/878e4439b591edc28ebb2691979661037bc5cde1 b/tests/fuzz/corpora/fuzz-hsm_encryption/878e4439b591edc28ebb2691979661037bc5cde1 deleted file mode 100644 index 104add0c5e326602ccfeec965a2cfe061d24e10c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 49 acmdP>j|*`9f6w**zXe2^fsug$!U6z7?|6kGiKNg_-|33=@5C8zqNEo94 diff --git a/tests/fuzz/corpora/fuzz-hsm_encryption/92b6e6612209872ccc8bb6b45b617558125e092a b/tests/fuzz/corpora/fuzz-hsm_encryption/92b6e6612209872ccc8bb6b45b617558125e092a deleted file mode 100644 index 1581ba2b89ec18f15dd531c69c4c7db8292bfc12..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 37 YcmeCs{f`dV8Gs;#fdL}U_5VE=02<~R3;+NC diff --git a/tests/fuzz/corpora/fuzz-hsm_encryption/974098cfbcc636d36e3a8e64dd8018fc8b83ec89 b/tests/fuzz/corpora/fuzz-hsm_encryption/974098cfbcc636d36e3a8e64dd8018fc8b83ec89 deleted file mode 100644 index 5d99ffec22cca7fd92bb5f165ede81e5189d8124..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 34 bcmdP>|DS~c0{(-*cM$OeC;+1Wa{&j|vzV7=8jptQk;+;XDB32r4-M diff --git a/tests/fuzz/corpora/fuzz-hsm_encryption/9e350e370dc6f75a337009f44ef5d0ecf5ed610e b/tests/fuzz/corpora/fuzz-hsm_encryption/9e350e370dc6f75a337009f44ef5d0ecf5ed610e deleted file mode 100644 index 9fbf5f882650c4c3110ddcb06aab55b6f8978cce..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 57 WcmezWp9H|53slU&@L!jK;ROIh*D?|S diff --git a/tests/fuzz/corpora/fuzz-hsm_encryption/a4921de93678886f2666fe9240f55356038ac16e b/tests/fuzz/corpora/fuzz-hsm_encryption/a4921de93678886f2666fe9240f55356038ac16e deleted file mode 100644 index 0d4475d0ab8e147d8528fdf9df2713e84970b7a2..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 48 TcmdP>4+jiDpo_$VGm#kpmkua1 diff --git a/tests/fuzz/corpora/fuzz-hsm_encryption/a71b3c25b54d5c8eb084084f1ef9f9b27931d5ff b/tests/fuzz/corpora/fuzz-hsm_encryption/a71b3c25b54d5c8eb084084f1ef9f9b27931d5ff deleted file mode 100644 index aadd44139..000000000 --- a/tests/fuzz/corpora/fuzz-hsm_encryption/a71b3c25b54d5c8eb084084f1ef9f9b27931d5ff +++ /dev/null @@ -1 +0,0 @@ -Ù z- \ No newline at end of file diff --git a/tests/fuzz/corpora/fuzz-hsm_encryption/af030542a4125d670351df40131a4265e29b7447 b/tests/fuzz/corpora/fuzz-hsm_encryption/af030542a4125d670351df40131a4265e29b7447 deleted file mode 100644 index 4011feca84d0e9a6b4cf4ed33b54195d475de393..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 50 QcmdP>PZSVffB>Lk0FqlN6#xJL diff --git a/tests/fuzz/corpora/fuzz-hsm_encryption/b0adf074d207869cad9d349b0bf943d532c5e765 b/tests/fuzz/corpora/fuzz-hsm_encryption/b0adf074d207869cad9d349b0bf943d532c5e765 deleted file mode 100644 index 9f24745faffee22591ad02ffac6d61449e40e9bc..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 50 dcmcav%)^k7z`&sU9|RZ@z|?;RBmfaXkN|&=9g6?} diff --git a/tests/fuzz/corpora/fuzz-hsm_encryption/b166167155f161a697affe07e3a018901bf00c7f b/tests/fuzz/corpora/fuzz-hsm_encryption/b166167155f161a697affe07e3a018901bf00c7f deleted file mode 100644 index b5cc5944a..000000000 --- a/tests/fuzz/corpora/fuzz-hsm_encryption/b166167155f161a697affe07e3a018901bf00c7f +++ /dev/null @@ -1,2 +0,0 @@ --ÿÿÿÿòòòòòòòòòòòòòò8òòòòòòòòÿÿÿÿÿÿÿÿÿÿÿÿÿýÿÿÿÿÿÿÿÿÿÿ -ÿÿ diff --git a/tests/fuzz/corpora/fuzz-hsm_encryption/b6a060bc39f6f35a41d503cf5c32adae7540e2d4 b/tests/fuzz/corpora/fuzz-hsm_encryption/b6a060bc39f6f35a41d503cf5c32adae7540e2d4 deleted file mode 100644 index 158486736..000000000 --- a/tests/fuzz/corpora/fuzz-hsm_encryption/b6a060bc39f6f35a41d503cf5c32adae7540e2d4 +++ /dev/null @@ -1 +0,0 @@ --ÿÿÿÿÿÿÿÿÿÿÿÿ¢¢¢¢¢¢¢¢¢¢¢¢¢ÿÿÿÿÿÿÿÿÿ&ÿÿÿÿÿÿÿÿÿÿÿÿÿ \ No newline at end of file diff --git a/tests/fuzz/corpora/fuzz-hsm_encryption/b714e28e82cb02857771f0ef8a3a1fc91f7d578c b/tests/fuzz/corpora/fuzz-hsm_encryption/b714e28e82cb02857771f0ef8a3a1fc91f7d578c deleted file mode 100644 index cc7c26f92..000000000 --- a/tests/fuzz/corpora/fuzz-hsm_encryption/b714e28e82cb02857771f0ef8a3a1fc91f7d578c +++ /dev/null @@ -1 +0,0 @@ --ÿÿÿÿÿÿÿÿ;ÿÿÿÿÿÿÿÿÿ!;ÿÿÿÿÿÿÿÿÿÿÿ diff --git a/tests/fuzz/corpora/fuzz-hsm_encryption/c1554cfd9efc6515e42d6ea45c85131217dc48c6 b/tests/fuzz/corpora/fuzz-hsm_encryption/c1554cfd9efc6515e42d6ea45c85131217dc48c6 deleted file mode 100644 index 944ef8086f68e9ce0fb19ef33275e6ca710a17e9..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 33 WcmdP>4+Q&p89)>a=z4+0E8zz!n7JP04eh48ul|K|b#fyfg! diff --git a/tests/fuzz/corpora/fuzz-hsm_encryption/d2c778022a38b46327e74b61341dc384402580ec b/tests/fuzz/corpora/fuzz-hsm_encryption/d2c778022a38b46327e74b61341dc384402580ec deleted file mode 100644 index fe7303c7fa572bbf63de0f45b348ea13795b7291..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 33 acmdP>4+R1YK)?sYoIrsS0?J@MkP84E_6$`3 diff --git a/tests/fuzz/corpora/fuzz-hsm_encryption/d5fc363735dc945c877052ef2b7ebe383208afe1 b/tests/fuzz/corpora/fuzz-hsm_encryption/d5fc363735dc945c877052ef2b7ebe383208afe1 deleted file mode 100644 index 7aea70c089f11e2dc84813569b4625a7b5d54476..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 40 acmdP>&j19PKn!Lu{D%Xs|No=mfC~UbK@sZ! diff --git a/tests/fuzz/corpora/fuzz-hsm_encryption/d7d64e916ef78eb838273ae25a308aaf217980d8 b/tests/fuzz/corpora/fuzz-hsm_encryption/d7d64e916ef78eb838273ae25a308aaf217980d8 deleted file mode 100644 index 050e845e9..000000000 --- a/tests/fuzz/corpora/fuzz-hsm_encryption/d7d64e916ef78eb838273ae25a308aaf217980d8 +++ /dev/null @@ -1 +0,0 @@ --ÿÿÿÿÿÿÿÿ;¿ \ No newline at end of file diff --git a/tests/fuzz/corpora/fuzz-hsm_encryption/d9a56f6dabaf3b4cc0776f9ee65b1d64a69aa7e4 b/tests/fuzz/corpora/fuzz-hsm_encryption/d9a56f6dabaf3b4cc0776f9ee65b1d64a69aa7e4 deleted file mode 100644 index 8157ef3aa..000000000 --- a/tests/fuzz/corpora/fuzz-hsm_encryption/d9a56f6dabaf3b4cc0776f9ee65b1d64a69aa7e4 +++ /dev/null @@ -1 +0,0 @@ -`ÿÿÿôÿÿ \ No newline at end of file diff --git a/tests/fuzz/corpora/fuzz-hsm_encryption/da424c425994ded6390738b342cf7c853c6aa51f b/tests/fuzz/corpora/fuzz-hsm_encryption/da424c425994ded6390738b342cf7c853c6aa51f deleted file mode 100644 index fc5204d8e..000000000 --- a/tests/fuzz/corpora/fuzz-hsm_encryption/da424c425994ded6390738b342cf7c853c6aa51f +++ /dev/null @@ -1 +0,0 @@ -ÑÑ \ No newline at end of file diff --git a/tests/fuzz/corpora/fuzz-hsm_encryption/dd4c2e570f6c9506840c00001570479aff75fe09 b/tests/fuzz/corpora/fuzz-hsm_encryption/dd4c2e570f6c9506840c00001570479aff75fe09 deleted file mode 100644 index bd734bcff71d6124525ed598f3ce59de2eb61c25..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 33 bcmdP>!N8t`3K)PulY!y?|NpxGxh?_#yfO?J diff --git a/tests/fuzz/corpora/fuzz-hsm_encryption/de48b44d9fdbb12c895bc256198d61caf24eacbe b/tests/fuzz/corpora/fuzz-hsm_encryption/de48b44d9fdbb12c895bc256198d61caf24eacbe deleted file mode 100644 index a3db6a0a8af873c34940626055f1c885ebdc7922..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 40 bcmdP>&j1AffdE8<0Ei6+DnOD8D$WG}g8UOx diff --git a/tests/fuzz/corpora/fuzz-hsm_encryption/ded4d55b7202b767c7bd76edf6dfd6f15d2a7592 b/tests/fuzz/corpora/fuzz-hsm_encryption/ded4d55b7202b767c7bd76edf6dfd6f15d2a7592 deleted file mode 100644 index af8186d96841a9cc83158e34c98c8a5774bdfc0c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 33 ccmdNj`2U}UfkB%A1pfd3Ux5Js|LXz;0M*S8*Z=?k diff --git a/tests/fuzz/corpora/fuzz-hsm_encryption/df58248c414f342c81e056b40bee12d17a08bf61 b/tests/fuzz/corpora/fuzz-hsm_encryption/df58248c414f342c81e056b40bee12d17a08bf61 deleted file mode 100644 index f59ec20aa..000000000 --- a/tests/fuzz/corpora/fuzz-hsm_encryption/df58248c414f342c81e056b40bee12d17a08bf61 +++ /dev/null @@ -1 +0,0 @@ -* \ No newline at end of file diff --git a/tests/fuzz/corpora/fuzz-hsm_encryption/e31d31820dd73683cc2858c3fe3deb567b469c36 b/tests/fuzz/corpora/fuzz-hsm_encryption/e31d31820dd73683cc2858c3fe3deb567b469c36 deleted file mode 100644 index bec1f1584cd1f4562c06d913dd4a21dd1d31c90a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 33 VcmdP>4+Q)FGk^#T!1ez>7Xavf9HjsN diff --git a/tests/fuzz/corpora/fuzz-hsm_encryption/e3a039a6cfc87ae1503145a859bd03ea0a675524 b/tests/fuzz/corpora/fuzz-hsm_encryption/e3a039a6cfc87ae1503145a859bd03ea0a675524 deleted file mode 100644 index 586d539ffacb84268d72209a41d562bb6823c284..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 64 acmezWp8$A|MgG85hX0BT|8*G{UH|~}<2i)@ diff --git a/tests/fuzz/corpora/fuzz-hsm_encryption/ead8514f2be42cdd84c9dd7aee05c3e378f9d8e8 b/tests/fuzz/corpora/fuzz-hsm_encryption/ead8514f2be42cdd84c9dd7aee05c3e378f9d8e8 deleted file mode 100644 index 96521d33e2b7e3cc8552f56d8ca5a9a7b9b5a07c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 58 YcmdOm{f_|A2;R&I>;E4v06Tad*#H0l diff --git a/tests/fuzz/corpora/fuzz-hsm_encryption/eb408af63c99aa3224d25ff6c74990e56635d5ef b/tests/fuzz/corpora/fuzz-hsm_encryption/eb408af63c99aa3224d25ff6c74990e56635d5ef deleted file mode 100644 index 552c7ccf6..000000000 --- a/tests/fuzz/corpora/fuzz-hsm_encryption/eb408af63c99aa3224d25ff6c74990e56635d5ef +++ /dev/null @@ -1,2 +0,0 @@ --ÿÿÿÿÿÿÿÿÿ;ÿÿÿÿÿÿÿÿÿ!;ÿÿÿÿÿÿÿÿÿ -ÿÿ diff --git a/tests/fuzz/corpora/fuzz-hsm_encryption/eb6a2e7996ecfbca0aad0988a7c36d11bf0884d2 b/tests/fuzz/corpora/fuzz-hsm_encryption/eb6a2e7996ecfbca0aad0988a7c36d11bf0884d2 deleted file mode 100644 index 19362ffa9..000000000 --- a/tests/fuzz/corpora/fuzz-hsm_encryption/eb6a2e7996ecfbca0aad0988a7c36d11bf0884d2 +++ /dev/null @@ -1,2 +0,0 @@ --ÿÿÿÿÿÿÿÿÿÿÿÿÿÿïÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ -ÿÿÿ \ No newline at end of file diff --git a/tests/fuzz/corpora/fuzz-hsm_encryption/ee129cbcf727b0afd5a7f3b79a4fa333417033d9 b/tests/fuzz/corpora/fuzz-hsm_encryption/ee129cbcf727b0afd5a7f3b79a4fa333417033d9 deleted file mode 100644 index f608f32696a2764945dc2cad3a00a7d15fe5184d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 33 XcmdP>&j1Ji|Mvh91X%wE0~Q7V(4-H- diff --git a/tests/fuzz/corpora/fuzz-hsm_encryption/f0054c92049c5e3706f7c45082065e67f9ea8ea0 b/tests/fuzz/corpora/fuzz-hsm_encryption/f0054c92049c5e3706f7c45082065e67f9ea8ea0 deleted file mode 100644 index 356d5548f4d62f31b5a2e741ca6eb7bf6292f1f9..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 48 ccmdP>j|v!9GKe6FXoA^?4j}F)w7`7#JYpT>sy50RRW_8IS+~ diff --git a/tests/fuzz/corpora/fuzz-hsm_encryption/f4cb666c221192e9a9a2010e114ec8847f038051 b/tests/fuzz/corpora/fuzz-hsm_encryption/f4cb666c221192e9a9a2010e114ec8847f038051 deleted file mode 100644 index 58c9354f1f5937d3ce55feced829942694a8fb09..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 33 ecmdP>|NlQH0}yQ8x)n(N|E~xXfB~-m|9Jo`929#1 diff --git a/tests/fuzz/corpora/fuzz-hsm_encryption/f98aef5540e4bcf21b7292adb1b9de01669d7e7b b/tests/fuzz/corpora/fuzz-hsm_encryption/f98aef5540e4bcf21b7292adb1b9de01669d7e7b deleted file mode 100644 index 32e83d5ca..000000000 --- a/tests/fuzz/corpora/fuzz-hsm_encryption/f98aef5540e4bcf21b7292adb1b9de01669d7e7b +++ /dev/null @@ -1 +0,0 @@ --ÿû \ No newline at end of file diff --git a/tests/fuzz/corpora/fuzz-hsm_encryption/fe7b328bfc4adc6daa6d5de3eba6273832803783 b/tests/fuzz/corpora/fuzz-hsm_encryption/fe7b328bfc4adc6daa6d5de3eba6273832803783 deleted file mode 100644 index f9ff64d11..000000000 --- a/tests/fuzz/corpora/fuzz-hsm_encryption/fe7b328bfc4adc6daa6d5de3eba6273832803783 +++ /dev/null @@ -1,2 +0,0 @@ -­ÿÿÿÿÿÿÿÿÿ;ÿÿÿÿÿÿÿÿÿ!;ÿÿÿÿÿÿÿÿÿ -ÿÿ diff --git a/tests/fuzz/fuzz-hsm_encryption.c b/tests/fuzz/fuzz-hsm_encryption.c deleted file mode 100644 index 39f92fa7f..000000000 --- a/tests/fuzz/fuzz-hsm_encryption.c +++ /dev/null @@ -1,50 +0,0 @@ -#include "config.h" -#include - -#include -#include -#include -#include -#include - -void init(int *argc, char ***argv) -{ - /* Don't run as a unit test under valgrind: too slow! */ -#ifndef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION - if (getenv("VALGRIND") && strcmp(getenv("VALGRIND"), "1") == 0) { - common_shutdown(); - exit(0); - } -#endif -} - -void run(const uint8_t *data, size_t size) -{ - /* 4294967295 is crypto_pwhash_argon2id_PASSWD_MAX. libfuzzer won't - * generate inputs that large in practice, but hey. */ - if (size > 32 && size < 4294967295) { - struct secret *hsm_secret, decrypted_hsm_secret, encryption_key; - char *passphrase; - struct encrypted_hsm_secret encrypted_secret; - const char *emsg; - - /* Take the first 32 bytes as the plaintext hsm_secret seed, - * and the remaining ones as the passphrase. */ - hsm_secret = (struct secret *)tal_dup_arr(NULL, u8, data, 32, 0); - passphrase = to_string(NULL, data + 32, size - 32); - - /* A valid seed, a valid passphrase. This should not fail. */ - assert(!hsm_secret_encryption_key_with_exitcode(passphrase, &encryption_key, &emsg)); - /* Roundtrip */ - assert(encrypt_hsm_secret(&encryption_key, hsm_secret, - &encrypted_secret)); - assert(decrypt_hsm_secret(&encryption_key, &encrypted_secret, - &decrypted_hsm_secret)); - assert(memeq(hsm_secret->data, sizeof(hsm_secret->data), - decrypted_hsm_secret.data, - sizeof(decrypted_hsm_secret.data))); - - tal_free(hsm_secret); - tal_free(passphrase); - } -}