mbedtls/include/psa
Gilles Peskine c744d99386 Limit keys to 65528 bits
65528 bits is more than any reasonable key until we start supporting
post-quantum cryptography.

This limit is chosen to allow bit-sizes to be stored in 16 bits, with
65535 left to indicate an invalid value. It's a whole number of bytes,
which facilitates some calculations, in particular allowing a key of
exactly PSA_CRYPTO_MAX_STORAGE_SIZE to be created but not one bit
more.

As a resource usage limit, this is arguably too large, but that's out
of scope of the current commit.

Test that key import, generation and derivation reject overly large
sizes.
2019-07-30 20:58:33 +02:00
..
crypto_accel_driver.h Pacify check-names.sh 2019-03-06 18:29:57 +01:00
crypto_driver_common.h Split crypto_driver.h into one for each driver type 2018-12-21 18:17:10 +01:00
crypto_entropy_driver.h Doxygen changes to match the code changes. clarifications. 2019-02-15 17:23:42 -06:00
crypto_extra.h Move attribute fields to a substructure 2019-07-30 20:58:27 +02:00
crypto_platform.h PSA crypto service: encode the key owner (ITS backend only) 2019-02-20 12:52:09 +01:00
crypto_se_driver.h SE driver: report the bit size on key import 2019-07-29 18:07:09 +02:00
crypto_sizes.h Favor stdint.h types in example code 2019-07-15 11:16:18 +02:00
crypto_struct.h Limit keys to 65528 bits 2019-07-30 20:58:33 +02:00
crypto_types.h Move the definition of psa_key_attributes_t to crypto_types.h 2019-07-23 18:43:28 +02:00
crypto_values.h Remove GMAC algorithm (for now) 2019-07-11 15:51:45 +01:00
crypto.h Merge pull request #157 from gilles-peskine-arm/psa-se_driver-create_key 2019-07-26 14:39:55 +02:00