Add IV generation to one-shot cipher operation

The functions psa_cipher_encrypt and psa_cipher_decrypt are
one-shot operations that can take an arbitrary sized input.
These operations are implemented as client-side functions
that use multi-part cipher operations to allow large inputs
to be handled. The existing implementations were missing the
generation and setting of the IV at the start of the data.
This was leading to PSA Arch test failures (248 & 249). This
commit adds the missing IV handling and resolves the test
failures.

Signed-off-by: Julian Hall <julian.hall@arm.com>
Change-Id: I959980a8a83560c97f6c8d3840965b01ba4e434c
1 file changed