Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitriyMusatkin committed Sep 28, 2023
1 parent b63263e commit d2396af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/rsa_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ static int s_rsa_encryption_roundtrip_helper(
aws_byte_cursor_advance(&ciphertext_cur, prefix.len);

struct aws_byte_buf decrypted;
ASSERT_SUCCESS(aws_byte_buf_init(&decrypted, allocator, aws_rsa_key_pair_block_length(key_pair)));
ASSERT_SUCCESS(aws_byte_buf_init(&decrypted, allocator, prefix.len + aws_rsa_key_pair_block_length(key_pair)));
ASSERT_SUCCESS(aws_byte_buf_append(&decrypted, &prefix));
ASSERT_SUCCESS(aws_rsa_key_pair_decrypt(key_pair, algo, ciphertext_cur, &decrypted));

Expand Down

0 comments on commit d2396af

Please sign in to comment.