psa-crypto: fix AEAD block cypher support
This change enables support for block cyphers that require input data
to be processed in whole block-sized chunks.
psa_aead_encrypt() may send all input data for encryption, but the
underlying implementation is permitted to return only full blocks.
Any remaining data is returned later via psa_aead_finish().
Similarly, in psa_aead_decrypt(), extra decrypted data may be returned
during psa_aead_verify().
This update ensures compatibility with block-based hardware accelerators
by deferring partial block processing until finalisation steps.
Signed-off-by: Gabor Abonyi <gabor.abonyi@arm.com>
Change-Id: I5f81d04f50286b668ef722e2f263c46c28f78b84
1 file changed