Simple AES ECB test

I'm trying to integrate AES-128 (ECB mode) decryption into my project

I've based it on the AES_CBC sample, and adapted it to use ECB mode instead of CBC. When I compile and run from this sample, the code works

When I try and import the same code into a blank application, I get a -134 error when I try to import a key - psa_import_key()

Is there some configuration somewhere that I am missing here?

Related