mbedtls/library
Jaeden Amero e236c2a13c psa: Don't abort when operations are invalid
In places where we detect a context is in a bad state and there is no
sensitive data to clear, simply return PSA_ERROR_BAD_STATE and don't
abort on behalf of the application. The application will choose what to
do when it gets a bad state error.

The motivation for this change is that an application should decide what
to do when it misuses the API and encounters a PSA_ERROR_BAD_STATE
error. The library should not attempt to abort on behalf of the
application, as that may not be the correct thing to do in all
circumstances.
2019-02-20 17:38:25 +00:00
..
.gitignore
aes.c Merge development commit 8e76332 into development-psa 2019-01-31 08:20:20 -05:00
aesni.c
arc4.c
aria.c Merge development commit 8e76332 into development-psa 2019-01-31 08:20:20 -05:00
asn1parse.c
asn1write.c Merge development commit 8e76332 into development-psa 2019-01-31 08:20:20 -05:00
base64.c
bignum.c Merge development commit 8e76332 into development-psa 2019-01-31 08:20:20 -05:00
blowfish.c Merge development commit 8e76332 into development-psa 2019-01-31 08:20:20 -05:00
camellia.c Merge development commit 8e76332 into development-psa 2019-01-31 08:20:20 -05:00
ccm.c Merge development commit 8e76332 into development-psa 2019-01-31 08:20:20 -05:00
certs.c
chacha20.c Merge development commit 8e76332 into development-psa 2019-01-31 08:20:20 -05:00
chachapoly.c Merge development commit 8e76332 into development-psa 2019-01-31 08:20:20 -05:00
cipher_wrap.c
cipher.c Initialize PSA Crypto operation contexts 2019-02-20 10:51:42 +00:00
cmac.c
CMakeLists.txt Merge branch 'development-psa-proposed' into development 2019-02-14 15:58:43 +00:00
ctr_drbg.c Merge development commit 8e76332 into development-psa 2019-01-31 08:20:20 -05:00
debug.c Merge development commit 8e76332 into development-psa 2019-01-31 08:20:20 -05:00
des.c
dhm.c Merge development commit 8e76332 into development-psa 2019-01-31 08:20:20 -05:00
ecdh.c Merge development commit 8e76332 into development-psa 2019-01-31 08:20:20 -05:00
ecdsa.c Merge development commit 8e76332 into development-psa 2019-01-31 08:20:20 -05:00
ecjpake.c Merge development commit 8e76332 into development-psa 2019-01-31 08:20:20 -05:00
ecp_curves.c Merge development commit 8e76332 into development-psa 2019-01-31 08:20:20 -05:00
ecp.c Merge development commit 8e76332 into development-psa 2019-01-31 08:20:20 -05:00
entropy_poll.c Merge development commit 8e76332 into development-psa 2019-01-31 08:20:20 -05:00
entropy.c
error.c Merge development commit 8e76332 into development-psa 2019-01-31 08:20:20 -05:00
gcm.c Merge development commit 8e76332 into development-psa 2019-01-31 08:20:20 -05:00
havege.c
hkdf.c
hmac_drbg.c Merge development commit 8e76332 into development-psa 2019-01-31 08:20:20 -05:00
Makefile Merge branch 'development-psa-proposed' into development 2019-02-14 15:58:43 +00:00
md2.c
md4.c
md5.c
md_wrap.c
md.c
memory_buffer_alloc.c
net_sockets.c
nist_kw.c Merge development commit 8e76332 into development-psa 2019-01-31 08:20:20 -05:00
oid.c
padlock.c
pem.c Merge development commit 8e76332 into development-psa 2019-01-31 08:20:20 -05:00
pk_wrap.c Fix outdated comment in ecdsa_verify_wrap() 2019-01-29 08:26:15 +00:00
pk.c pk: restructure precondition check 2019-02-05 05:09:05 -05:00
pkcs5.c Merge development commit 8e76332 into development-psa 2019-01-31 08:20:20 -05:00
pkcs11.c
pkcs12.c Merge development commit 8e76332 into development-psa 2019-01-31 08:20:20 -05:00
pkparse.c Merge development commit 8e76332 into development-psa 2019-01-31 08:20:20 -05:00
pkwrite.c Merge development-psa commit 80b5662 into development-psa-merged branch 2019-02-05 06:02:51 -05:00
platform_util.c Merge development commit 8e76332 into development-psa 2019-01-31 08:20:20 -05:00
platform.c Merge remote-tracking branch 'origin/pr/1551' into development 2019-01-30 13:24:55 +00:00
poly1305.c Merge development commit 8e76332 into development-psa 2019-01-31 08:20:20 -05:00
psa_crypto_core.h Document some functions in internal headers 2018-12-11 16:48:14 +01:00
psa_crypto_invasive.h Add a facility to configure entropy sources 2018-11-23 22:58:38 +01:00
psa_crypto_slot_management.c Merge pull request #16 from itayzafrir/spm-support-crypto-handles-api 2019-01-23 13:38:50 +00:00
psa_crypto_slot_management.h Document some functions in internal headers 2018-12-11 16:48:14 +01:00
psa_crypto_storage_backend.h Persistent storage implementation: psa_key_slot_t -> psa_key_id_t 2018-12-11 16:48:13 +01:00
psa_crypto_storage_file.c psa: Fix builds without MBEDTLS_PLATFORM_C 2019-02-14 16:01:14 +00:00
psa_crypto_storage_its.c Use new ITS uid type 2019-01-28 14:51:50 +02:00
psa_crypto_storage.c psa: Fix builds without MBEDTLS_PLATFORM_C 2019-02-14 16:01:14 +00:00
psa_crypto_storage.h Document the maximum key identifier 2018-12-11 16:48:14 +01:00
psa_crypto.c psa: Don't abort when operations are invalid 2019-02-20 17:38:25 +00:00
ripemd160.c
rsa_internal.c
rsa.c rsa: Enable use of zero-length null output 2019-02-11 03:39:51 -05:00
sha1.c Merge development commit 8e76332 into development-psa 2019-01-31 08:20:20 -05:00
sha256.c Merge development commit 8e76332 into development-psa 2019-01-31 08:20:20 -05:00
sha512.c Merge development commit 8e76332 into development-psa 2019-01-31 08:20:20 -05:00
ssl_cache.c
ssl_ciphersuites.c
ssl_cli.c Merge commit '01b34fb316a5' into development 2019-02-07 12:19:59 +00:00
ssl_cookie.c
ssl_srv.c Merge commit '01b34fb316a5' into development 2019-02-07 12:19:59 +00:00
ssl_ticket.c Merge commit '01b34fb316a5' into development 2019-02-07 12:19:59 +00:00
ssl_tls.c Initialize PSA Crypto operation contexts 2019-02-20 10:51:42 +00:00
threading.c
timing.c
version_features.c Merge branch 'development-psa-proposed' into development 2019-02-14 15:58:43 +00:00
version.c
x509_create.c
x509_crl.c
x509_crt.c Initialize PSA Crypto operation contexts 2019-02-20 10:51:42 +00:00
x509_csr.c Merge development commit 8e76332 into development-psa 2019-01-31 08:20:20 -05:00
x509.c Fix #2370, minor typos and spelling mistakes 2019-01-24 10:37:40 +01:00
x509write_crt.c
x509write_csr.c Initialize PSA Crypto operation contexts 2019-02-20 10:51:42 +00:00
xtea.c