Map attributes = new HashMap();
attributes.put(IKeyWrappingAlgorithm.KEY_ENCRYPTION_KEY_MATERIAL, kek);
kwa.init(attributes);
byte[] wrapped = new byte[km.length + 8];
int outputLength = kwa.wrap(km, 0, km.length, wrapped, 0);
harness.check(outputLength == 16,
"Wrapped 64-bit key material MUST produce 16 bytes");
byte[] unwrapped = new byte[8];
outputLength = kwa.unwrap(wrapped, 0, wrapped.length, unwrapped, 0);