mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-01-06 07:10:41 +00:00
a56c448636
Alternative implementations of GCM may delay the output of partial blocks from mbedtls_gcm_update(). Add an output length parameter to mbedtls_gcm_update() to allow such implementations to delay the output of partial blocks. With the software implementation, there is no such delay. Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
16 lines
835 B
Plaintext
16 lines
835 B
Plaintext
API changes
|
|
* The interface of the GCM module has changed to remove restrictions on
|
|
how the input to multipart operations is broken down. mbedtls_gcm_finish()
|
|
now takes an extra output parameter for the last partial output block.
|
|
mbedtls_gcm_update() now takes extra parameters for the output length.
|
|
The software implementation always produces the full output at each
|
|
call to mbedtls_gcm_update(), but alternative implementations activated
|
|
by MBEDTLS_GCM_ALT may delay partial blocks to the next call to
|
|
mbedtls_gcm_update() or mbedtls_gcm_finish().
|
|
These changes are backward compatible for users of the cipher API.
|
|
|
|
Features
|
|
* The multi-part GCM interface (mbedtls_gcm_update() or
|
|
mbedtls_cipher_update()) no longer requires the size of partial inputs to
|
|
be a multiple of 16.
|