17638efc46
remove unused variable
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
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
ce5cba9a6a
unify the concatenation of the tag and update output length
2018-09-05 12:38:18 +03:00
9e5a515aa8
Fix parameter validation
2018-09-05 12:38:18 +03:00
47ddf3d544
Concatenate the tag to the output buffer
...
Concatenate the tag to the output buffer.
2018-09-05 12:38:18 +03:00
5955c98779
Initial implementation of the AEAD decrypt/encrypt APIs
...
Initial implementation for the AEAD APIs, missing the following:
* Concatenation of the tag to the output buffer.
* Updated documentation of the new functions.
* argument validations
* tests
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
2c5219a06d
Whitespace normalization
...
No semantic change.
2018-09-05 12:14:29 +03:00
5351420b3e
Use block local variable for padding_mode for readability
...
No intended behavior change.
2018-09-05 12:14:29 +03:00
7cb22b8327
abort operation before return + fix error checks
2018-09-05 12:14:29 +03:00
89d789c9bc
Refactor some argument checks for readability
...
No intended behavior change.
2018-09-05 12:14:29 +03:00
7e9288520f
Wrap lines to 80 columns
2018-09-05 12:14:29 +03:00
e553c65cc3
Fix indentation and horizontal whitespace
...
Only whitespace changes in this commit.
2018-09-05 12:14:29 +03:00
3520c2c4f7
unset iv_required to 0 (psa_encrypt_set_iv)and block_size (psa_cipher_setup)
2018-09-05 12:14:29 +03:00
395db875e6
adjust indentation per Mbed TLS standards
2018-09-05 12:14:29 +03:00
ae382791fb
add missing psa_cipher_abort( operation )
2018-09-05 12:14:28 +03:00
70531163a9
fix compilation error - missing if
2018-09-05 12:14:28 +03:00
a28258c594
adjust indentation per Mbed TLS standards
2018-09-05 12:14:28 +03:00
2cab25aacf
fix conditions in psa_cipher_finish function
2018-09-05 12:14:28 +03:00
dc38ebc068
delete decrypt checks + fix memcpy& return value
2018-09-05 12:14:28 +03:00
ad9d82cc0e
add iv_required field to psa_cipher_operation_s and fix relevant functions
2018-09-05 12:14:28 +03:00
71f19ae6f8
add missing call to psa_cipher_abort in cipher_setup func + iv_length check in cipher_set_iv func
2018-09-05 12:14:28 +03:00
406008ab4c
add missing check on output_size in psa_cipher_update func
2018-09-05 12:14:28 +03:00
bed71a2b17
fix missing check on output_size in psa_cipher_finish func
2018-09-05 12:14:28 +03:00
0071b873a3
add missing parameter output_size on psa_cipher_finish
2018-09-05 12:14:28 +03:00
4c80d8331a
adjust indentation per Mbed TLS standards
2018-09-05 12:14:28 +03:00
b152d4d8b6
add test scenarios to decrypt and encrypt input and compare with given output
2018-09-05 12:14:28 +03:00
89e0f468bf
style
2018-09-05 12:14:28 +03:00
41deec4494
partly pr fix
2018-09-05 12:14:28 +03:00
e1210dcac3
remove unused parameter in psa_cipher_finish.
2018-09-05 12:14:28 +03:00
3205a6592b
tests fix
2018-09-05 12:14:28 +03:00
16864af80b
fix static function name
2018-09-05 12:14:28 +03:00
8481e74ecc
CR fixes
...
more fixes
Compilation fixes
Compilation fixes for PSA crypto code and tests
2018-09-05 12:14:28 +03:00
efb0107fbe
CR fix, remove exposing ECB
2018-09-05 12:14:27 +03:00
990a18c2f0
add ecb to cipher algorithms
2018-09-05 12:14:27 +03:00
5100318a92
Merge pull request #18 from ARMmbed/psa-wrapper-apis-export-publickey
...
Export public key implementation (#18 )
2018-09-05 12:13:23 +03:00
8275961178
warnings fixes
2018-09-05 12:13:23 +03:00
503973bdf3
initial implementation for PSA symmetric APIs - missing tests and documentations
2018-09-05 12:13:23 +03:00
8756763cf1
change error check on psa_internal_export_key func
2018-09-05 12:13:23 +03:00
785fd55a39
Whitespace fixes; removed redundant parentheses
...
No semantic change.
2018-09-05 12:13:23 +03:00
cceea98bfe
adjust indentation per Mbed TLS standards
2018-09-05 12:13:23 +03:00
d732659867
adjust indentation per Mbed TLS standards
2018-09-05 12:13:23 +03:00
17e36e1bd9
fix conditions
2018-09-05 12:13:23 +03:00
6036432617
adjust indentation per Mbed TLS standards
2018-09-05 12:13:23 +03:00
a998bc6ac9
psa_internal_export_key function for common code.
...
create psa_internal_export_key function for common code in psa_export_key and psa_export_public_key.
2018-09-05 12:13:22 +03:00
5010828fb6
adjust indentation per Mbed TLS standards
2018-09-05 12:13:22 +03:00