Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wuriyanto48 committed Sep 3, 2023
1 parent 6845ad1 commit 09284a0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
app
app*
*.txt
test
test
.vscode/
8 changes: 4 additions & 4 deletions tests/test.c
Original file line number Diff line number Diff line change
Expand Up @@ -486,10 +486,10 @@ void test_rsa_encryption() {
unsigned char* expected = "Hello World 😋";

// load public key
unsigned char* rsa_public_key_char = load_file("public_key.txt");
unsigned char* rsa_public_key_char = load_file("./testdata/public_key.key");

// load private key
unsigned char* rsa_private_key_char = load_file("private_key.txt");
unsigned char* rsa_private_key_char = load_file("./testdata/private_key.key");

// ------------------- RSA OAEP MD5 encryption test -------------------
printf("test RSA OAEP MD5 encryption\n");
Expand Down Expand Up @@ -700,10 +700,10 @@ void test_rsa_digital_signature() {
unsigned char* plain_data = "Hello World 😋";

// load public key
unsigned char* rsa_public_key_char = load_file("public_key.txt");
unsigned char* rsa_public_key_char = load_file("./testdata/public_key.key");

// load private key
unsigned char* rsa_private_key_char = load_file("private_key.txt");
unsigned char* rsa_private_key_char = load_file("./testdata/private_key.key");

// ------------------- RSA PSS MD5 signature test -------------------
printf("test RSA digital signature PSS MD5\n");
Expand Down

0 comments on commit 09284a0

Please sign in to comment.