1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-16 07:21:53 +03:00
Commit Graph

9081 Commits

Author SHA1 Message Date
3158564f08 add nonce as argument to the test function of encrypt/decrypt 2018-09-05 12:41:52 +03:00
fc614b1e0e fix parentheses 2018-09-05 12:41:52 +03:00
1347a73fbe fix macros documentation style. 2018-09-05 12:41:52 +03:00
e109f21638 remove unnecessary check for block size 2018-09-05 12:41:52 +03:00
a1d9801683 add slot validation 2018-09-05 12:41:52 +03:00
e3cb8a8d8b return PSA_ERROR_BUFFER_TOO_SMALL intead of PSA_ERROR_INVALID_ARGUMENT 2018-09-05 12:41:52 +03:00
fb5b9cbb8d add missing documentations 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
6b4d98cf78 remove trailing spaces 2018-09-05 12:41:52 +03:00
5ed0621dd4 aligned with coding standards - line length 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
96910d807e fix block size depending on algorithm 2018-09-05 12:41:51 +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
60a64d079a remove unnecessary argument to the psa_aead_unpadded_locate_tag function 2018-09-05 12:41:51 +03:00
15223a8b89 write the tag directly on the ciphertext buffer. 2018-09-05 12:41:51 +03:00
4fc744f8af change the check of block size for all supported algorithms 2018-09-05 12:41:51 +03:00
0f21465175 use mbedtls_cipher_info_from_psa to get cipher ID 2018-09-05 12:41:51 +03:00
f58aa6ade6 use memset instead of mbedtils_zeroize 2018-09-05 12:41:51 +03:00
554faad260 return NOT_SUPPORTED instead of INVLID_ARGUMENT 2018-09-05 12:41:51 +03:00
95893f834d remove usless cast 2018-09-05 12:41:51 +03:00
f08a550e68 set output length to zero to cover output length in error case 2018-09-05 12:41:51 +03:00
f4f0d612ba change mbedtls_cipher_info_from_psa to provide cipher_id also 2018-09-05 12:41:51 +03:00
22898ba0bd remove duplicated definition 2018-09-05 12:41:51 +03:00
9375f8403a fix code offsets after rebase 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
36a74b71a0 Fix Doxygen comments to pass clang -Wdocumentation 2018-09-05 12:41:51 +03:00
1e7d8f1b09 Document AEAD functions
Write documentation for psa_aead_encrypt and psa_aead_decrypt. Define
macros PSA_AEAD_ENCRYPT_OUTPUT_SIZE and PSA_AEAD_DECRYPT_OUTPUT_SIZE
(untested).
2018-09-05 12:41:51 +03:00
a40d77477d Whitespace fixes
Changed indentation to match Mbed TLS style. Wrapped some lines to 80 columns.
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
39574652ae add else for not supported algorithm 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
5c8845f563 return invalid argument for unsupported algorithms 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
e58e68458e fix condition over key type 2018-09-05 12:38:18 +03:00
17638efc46 remove unused variable 2018-09-05 12:38:18 +03:00
bdd892aef5 Add test scenario 2018-09-05 12:38:18 +03:00
dad36fa855 add Key and Algorithm validation 2018-09-05 12:38:18 +03:00
a7e6df76ea Validation fixes for key_type 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
4f5eb7cb54 Fill the the output buffer with zero data in case of failure 2018-09-05 12:38:18 +03:00
6bbd8c75dc Remove unnecessary cast
Remove unnecessary cast
2018-09-05 12:38:18 +03:00
db6247315f Parameters validation fixes
Fix key_type validation test and no need to ask for place for tag in decryption
2018-09-05 12:38:18 +03:00