kmBytes[i] = (byte)(i + 1);
SecretKeySpec km = new SecretKeySpec(kmBytes, "TripleDES");
byte[] cipherText = kwa.wrap(km);
kwa.init(Cipher.UNWRAP_MODE, kek);
Key k = kwa.unwrap(cipherText, "TripleDES", Cipher.SECRET_KEY);
// key-unwrap ALWAYS returns a parity-adjusted (proper!) key
TripleDES.adjustParity(kmBytes, 0);
SecretKeySpec kmpa = new SecretKeySpec(kmBytes, "TripleDES");
harness.check(kmpa.equals(k),
"Unwrapped and original key-material MUST match");