mbedtls/tests
Ronald Cron 3a4f0e3cc4 tests: psa: Reset key attributes where needed
After a call to psa_get_key_attributes() to retrieve
the attributes of a key into a psa_key_attributes_t
structure, a call to psa_reset_key_attributes() is
mandated to free the resources that may be
referenced by the psa_key_attributes_t structure.
Not calling psa_reset_key_attributes() may result in
a memory leak.

When a test function calls psa_get_key_parameters()
the associated key attributes are systematically
reset in the clean-up part of the function with a
comment to emphasize the need for the reset and make
it more visible.

Signed-off-by: Ronald Cron <ronald.cron@arm.com>
2020-11-20 13:57:26 +01:00
..
.jenkins Add a Jenkinsfile for PR job testing 2018-10-19 16:41:54 +01:00
configs Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
data_files Add a context-info.sh test for 0xFF chars 2020-10-20 13:35:21 -06:00
docker/bionic Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
git-scripts Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
include/test psa stats: Count locked slots instead of unlocked ones 2020-11-19 16:59:40 +01:00
scripts State PSA_CRYPTO_KEY_ID_ENCODES_OWNER and USE_PSA_CRYPTO incompatibility 2020-11-10 16:00:41 +01:00
src Merge pull request #3780 from stevew817/feature/validate_key_in_driver 2020-11-02 11:37:42 +01:00
suites tests: psa: Reset key attributes where needed 2020-11-20 13:57:26 +01:00
.gitignore Apply feedback from PR review 2020-09-07 14:01:52 +02:00
CMakeLists.txt Merge pull request #3407 from RcColes/development 2020-10-28 12:29:14 +01:00
compat-in-docker.sh Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
compat.sh compat.sh: stop using allow_sha1 2020-08-21 12:34:05 +02:00
context-info.sh Add a context-info.sh test for 0xFF chars 2020-10-20 13:35:21 -06:00
Descriptions.txt Revert "Remove tests that depend on TLS or X.509" 2020-03-19 14:17:54 +01:00
make-in-docker.sh Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
Makefile Add initial test driver conforming to the new spec 2020-09-04 14:22:26 +02:00
ssl-opt-in-docker.sh Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
ssl-opt.sh Style and typos 2020-10-29 01:14:50 +01:00