d70bc48630
Fix test output size
...
1. set output size to safe value
2. set output size correctly
3. check correct length of actual output
2018-09-05 12:44:17 +03:00
553b8f39e9
Fix test data
...
test data used incorrect clear-text length.
2018-09-05 12:44:17 +03:00
72eca16afe
Fix scenario test names
...
1. make all names unique
2. fix spacing issue in names
2018-09-05 12:44:17 +03:00
5b051bc608
Remove trailing whitespace
...
Only horizontal whitespace changes in this commit.
2018-09-05 12:44:12 +03:00
6afe789d4c
Finish renaming around PSA_ALG_IS_RSA_PKCS1V15
...
Now the code compiles. Some OAEP and PSS macros may still need to be fixed.
2018-09-05 12:41:53 +03:00
a1cac84e83
Move AEAD tests just after cipher
...
Always adding things at the end tends to create merge conflicts.
Adding in the middle in this way makes the order more logical in
addition to avoiding conflicts.
2018-09-05 12:41:53 +03:00
0f3bdbddee
change RSA encryption tests compensate for random component in encryption.
2018-09-05 12:41:53 +03:00
39e59144f6
added support for PKCSv1.5 signature verification and encryption/decryption and very basic tests.
2018-09-05 12:41:53 +03:00
84861a95ca
Merge remote-tracking branch 'psa/psa-wrapper-apis-aead' into feature-psa
2018-09-05 12:41:52 +03:00
3158564f08
add nonce as argument to the test function of encrypt/decrypt
2018-09-05 12:41:52 +03:00
8ffd764e23
re-group test vectors and change vectors' names
2018-09-05 12:41:52 +03:00
f7f72da769
add invalid signature test case
2018-09-05 12:41:52 +03:00
c1ee32e1f4
add GCM test vectors encrypt/decrypt
2018-09-05 12:41:52 +03:00
371a6e4067
add decrypt tests for CCM
2018-09-05 12:41:52 +03:00
ed8dbeb434
add and fix data vectors
2018-09-05 12:41:52 +03:00
f14394b25f
add policy checks
2018-09-05 12:41:52 +03:00
0317945a37
disable uncompleted tests
2018-09-05 12:41:51 +03:00
f2525ebda7
add encryption only test case
2018-09-05 12:41:51 +03:00
4b26850a15
fix tests according to the code changes in error value
2018-09-05 12:41:51 +03:00
ee652a344c
Fix psa_aead_decrypt to read the tag at the end of the ciphertext
2018-09-05 12:41:51 +03:00
20399393a5
add psa_crypto to test suites
2018-09-05 12:41:49 +03:00
e797945ea9
initialize length variables and process decrypt only when encrypts passes
2018-09-05 12:38:18 +03:00
9b07132591
remove compilation warnings
2018-09-05 12:38:18 +03:00
f07db2e919
Add more test scenario for GCM and failure cases
2018-09-05 12:38:18 +03:00
d973472a37
Fix loop index and output size parameter value
2018-09-05 12:38:18 +03:00
bdd892aef5
Add test scenario
2018-09-05 12:38:18 +03:00
091e73b22b
Fix usage of TEST_ASSERT
...
Add missing == PSA_SUCCESS in TEST_ASSERT usage
2018-09-05 12:38:18 +03:00
9112693930
aead test scenario
2018-09-05 12:38:18 +03:00
3aa8efb230
Merge remote-tracking branch 'psa/psa-wrapper-apis-march-12' into feature-psa
2018-09-05 12:38:17 +03:00
5809ce7bd6
Add PKCS#7 good decryption test cases
2018-09-05 12:38:17 +03:00
42b8aec792
Correct some bad test data
...
* PKCS#7 padding always adds at least one byte of padding, so test
data with plaintext length = ciphertext length could not have been
correct.
* CTR has plaintext length = ciphertext length, so test data with
differing lengths could not have been correct.
2018-09-05 12:38:17 +03:00
a7ec95f1ea
Cipher tests: calculate and verify the actual output size
2018-09-05 12:38:17 +03:00
50e586b691
We don't need _test_ in test function names
...
Also fix typo multpart -> multipart
2018-09-05 12:38:17 +03:00
048b7f0802
Rename some variables to make the code easier to read
...
In cipher_test_verify_output_multpart, tweak the ways chunk sizes are
added in order to get rid of the variable temp. In other functions,
this commit does not change the logic at all.
2018-09-05 12:38:17 +03:00
8172b87a63
add tests cases
2018-09-05 12:38:17 +03:00
a9c3a658be
tests fix + max_output_size
2018-09-05 12:38:17 +03:00
9e3aa62c13
change variable naming
2018-09-05 12:38:17 +03:00
17ddaa27b0
Correct and improve cipher test case descriptions
2018-09-05 12:38:17 +03:00
9cf78d301d
Fix some test case dependencies on cipher modes
2018-09-05 12:38:17 +03:00
4ca9c3f9a1
Fix whitespace issues
...
Only whitespace changes.
* Remove tabs.
* Remove trailing whitespace.
* Correct some misindented lines.
* Normalize whitespace around some punctuation.
* Split some lines to avoid going over 80 columns.
2018-09-05 12:38:17 +03:00
7f87850fc4
fix and add tests case + fix for padding mode
2018-09-05 12:38:17 +03:00
ded844092e
fix and add tests case + fix for padding mode
2018-09-05 12:38:17 +03:00
5cbb4c8508
Correct some test case descriptions
2018-09-05 12:38:17 +03:00
7268afc29e
Reordered cipher tests to be just after MAC tests
2018-09-05 12:38:15 +03:00
691dfb3e3a
Whitespce normalization
...
No semantic change.
2018-09-05 12:14:29 +03:00
5eb6e9ed60
PSA_ALG_CBC_BASE -> SA_ALG_CBC_BASE | PSA_ALG_BLOCK_CIPHER_PAD_NONE
2018-09-05 12:14:29 +03:00
d8100245d8
Remove cipher_test_positive, duplicated as cipher_test_encrypt
...
cipher_test_positive was never compiled due to a syntax error in the
BEGIN_CASE magic comment. It has now been duplicated as
cipher_test_encrypt. Remove the copy that was never compiled.
2018-09-05 12:14:29 +03:00
7691fb7b6b
add new test scenario (cipher_test_encrypt_multipart)
2018-09-05 12:14:29 +03:00
96cc00a857
add missing tests function
2018-09-05 12:14:28 +03:00
f55e804e07
adjust indentation per Mbed TLS standards
2018-09-05 12:14:28 +03:00