The KDF was using CTR mode unsafely.
The data to be encrypted should go in the IV, with a blank plaintext, so that the ciphertext is equal to the keystream. Putting the data in the plaintext would have led to different keys derived from the same source consisting of the same keystream XORed with different guessable plaintexts. That would have been bad.
Loading
Please register or sign in to comment