Skip to content

Commit

Permalink
Removed some unsed variables
Browse files Browse the repository at this point in the history
  • Loading branch information
ewd340 committed Aug 24, 2023
1 parent 30dc7a6 commit 48da6bb
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/tests.c
Original file line number Diff line number Diff line change
Expand Up @@ -325,9 +325,6 @@ int u_encrypt_decrypt(void)
enum error err = ERR_OK;
uint8_t key[KEY_SIZE];
uint8_t nonce[NONCE_SIZE];
uint8_t data[MAX_FILE_SIZE] = {0};
uint8_t dec_buf[MAX_FILE_SIZE] = {0};
uint64_t fsize = 0;
FILE *in, *out;

fillrand(key, KEY_SIZE);
Expand Down Expand Up @@ -370,6 +367,7 @@ int u_encrypt_decrypt(void)
return status;
}


// Test gen_key using the provided vector by Monocypher.
void gen_key_test(vector_reader *reader)
{
Expand Down Expand Up @@ -400,6 +398,7 @@ void gen_key_test(vector_reader *reader)
gen_key(config, inputs, extras, out.size, out.buf);
}


// Test encrypt/decrypt using passphrases.
int p_password_enc_dec(void)
{
Expand Down Expand Up @@ -470,6 +469,7 @@ int p_password_enc_dec(void)
return status;
}


// Test encrypt/decrypt using keyfiles.
int p_keyfile_enc_dec(void)
{
Expand Down Expand Up @@ -560,6 +560,7 @@ int u_gen_random_keyfile(void)
return status;
}


// Test deterministic keyfiles generation
int u_gen_deterministic_keyfile(void)
{
Expand Down Expand Up @@ -630,6 +631,7 @@ int test_usage_and_version(void)
return 0;
}


int main(int argc, char **argv)
{

Expand Down

0 comments on commit 48da6bb

Please sign in to comment.