0

I'm sending some encrypted data to a client through a web service.

The client had requested that I encrypt the data using a given key and IV. I know you should ideally use a different random IV each time, and I've already raised that with them.

The IV they have provided is a string of length 25. This really doesn't seem right to me.

As far as I was aware the IV length should match the block size, so either 128, 192 or 256 bytes (String lengths 16, 24 or 32). Am I right, or am I missing something here...?

Please note that the IV was provided to me, and therefore I am not trying to pick it.

The provided IV was of the form "ghPNHfg544JUdfjdR5BGVbj67", which I not believe is correct. (The provided key was a string 16 characters long)

D Purnell
  • 9
  • 2

0 Answers0