Update to only serve GCM and CCM
Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com>
This commit is contained in:
parent
301d2a29a7
commit
f1878d8974
1 changed files with 4 additions and 10 deletions
|
@ -513,9 +513,9 @@ testing, based and what's needed by internal users of Cipher light. The new
|
||||||
config symbol will not be considered public so its definition may change.
|
config symbol will not be considered public so its definition may change.
|
||||||
|
|
||||||
Cipher light will be automatically enabled in `build_info.h` by modules that
|
Cipher light will be automatically enabled in `build_info.h` by modules that
|
||||||
need it, namely: CTR\_DRBG, CCM, GCM. Note: CCM and GCM currently depend on
|
need it, namely: CCM, GCM. Note: CCM and GCM currently depend on the full
|
||||||
the full `CIPHER_C` (enforced by `check_config.h`); this hard dependency would
|
`CIPHER_C` (enforced by `check_config.h`); this hard dependency would be
|
||||||
be replaced by the above auto-enablement.
|
replaced by the above auto-enablement.
|
||||||
|
|
||||||
Cipher light includes:
|
Cipher light includes:
|
||||||
- info functions;
|
- info functions;
|
||||||
|
@ -533,27 +533,21 @@ This excludes:
|
||||||
The following API functions, and supporting types, are candidates for
|
The following API functions, and supporting types, are candidates for
|
||||||
inclusion in the Cipher light API, with limited features as above:
|
inclusion in the Cipher light API, with limited features as above:
|
||||||
```
|
```
|
||||||
mbedtls_cipher_info_from_type
|
mbedtls_cipher_info_from_values
|
||||||
mbedtls_cipher_info_get_block_size
|
mbedtls_cipher_info_get_block_size
|
||||||
|
|
||||||
mbedtls_cipher_init
|
mbedtls_cipher_init
|
||||||
mbedtls_cipher_setup
|
mbedtls_cipher_setup
|
||||||
mbedtls_cipher_setkey
|
mbedtls_cipher_setkey
|
||||||
mbedtls_cipher_crypt
|
|
||||||
mbedtls_cipher_free
|
mbedtls_cipher_free
|
||||||
|
|
||||||
mbedtls_cipher_update
|
mbedtls_cipher_update
|
||||||
(mbedtls_cipher_finish)
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Note: `mbedtls_cipher_info_get_block_size()` can be hard-coded to return 16,
|
Note: `mbedtls_cipher_info_get_block_size()` can be hard-coded to return 16,
|
||||||
as all three supported block ciphers have the same block size (DES was
|
as all three supported block ciphers have the same block size (DES was
|
||||||
excluded).
|
excluded).
|
||||||
|
|
||||||
Note: `mbedtls_cipher_finish()` is not required by any of the modules using
|
|
||||||
Cipher light, but it might be convenient to include it anyway as it's used in
|
|
||||||
the implementation of `mbedtls_cipher_crypt()`.
|
|
||||||
|
|
||||||
#### Cipher light dual dispatch
|
#### Cipher light dual dispatch
|
||||||
|
|
||||||
This is likely to come in the future, but has not been defined yet.
|
This is likely to come in the future, but has not been defined yet.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue