VtsKernelEncryptionTest: fix wrapped key tests and test adding corrupted key

1. Correctly implement the derivation of raw secret when using
   wrapped keys. This is used to verify the key identifier and
   to derive the inode hash key for IV_INO_LBLK_32 (emmc_optimized)
   encryption policies.
2. Add a new test case (TestHwWrappedKeyCorruption) that fails
   when any byte of the key that is added is corrupted.

Test: VtsKernelEncryptionTest on device with HW wrapped keys
      supported.
Bug: 153730132

Change-Id: Id51f2dd514fed903783af4a442bad50280a64387
3 files changed