I'm using an ATAES132A chip, and it seems I've been able to create a key using a KeyCreate command (no error returned, output key and output MAC returned).
Problem is, the returned key is encrypted and I haven't been able so far to decrypt it and use for a following Auth command, which always returns me "MAC Error" code.
I think I can properly generate an InMAC (tested with different commands), so I think the problemi lies in the key I'm using for the InMAC generation (that is, the key returned bythe KeyCreate).
So... Does anybody know which is the proper way to decrypt keys returned by KeyCreate? Which is the algorithm used for the encryption? Can anybody enlighten me? :-)
Thanks in advance!