Fix incorrect key derivation operation handle init
The key derivation operation handle is zeroed after key derivation setup
completes, when testing zero key handle in
psa_key_derivation_input_key_negative_test().
Therefore, both operation handle and key handle are invalid during test.
The return result becomes implementation defined, depending on whether
SPE checks operation or key at first.
Move key derivation operation handle init before key derivation setup,
to make sure the operation is valid.
Move the test log dump as well accordingly.
Signed-off-by: David Hu <david.hu@arm.com>
1 file changed