Details
Description
This is a follow up on HDFS-6134
KeyProvider API should have 2 new methods:
- KeyVersion generateEncryptedKey(String keyVersionName, byte[] iv)
- KeyVersion decryptEncryptedKey(String keyVersionName, byte[] iv, KeyVersion encryptedKey)
The implementation would do a known transformation on the IV (i.e.: xor with 0xff the original IV).