0

How to generate randomly in java an IV for this specification :

  • Generation of the transaction key (see Appendix, Chapter 15)
  • AES-128 (key length 128 bit) in CBC mode
  • ICV (Initial Chaining Value) = 0
  • Padding process in accordance with ANSI X9.23 / ISO 10126-2.

thanks

Bastiflew
  • 1,096
  • 3
  • 17
  • 29
  • Looks like this question has already been solved : http://stackoverflow.com/questions/4504280/encryption-with-aes-256-and-the-initialization-vector – Olivier Croisier Dec 22 '11 at 16:37
  • Your question is not really clear. A *random initialization vector* is just a random byte sequence, and can be generated by any way. A zero initialization vector is just zero (and not recommended for CBC). And ANSI X9.23 and ISO 10126 seem to be [different padding modes](http://en.wikipedia.org/wiki/Padding_(cryptography)#Byte_padding). What do you actually want to know? – Paŭlo Ebermann Dec 23 '11 at 20:27
  • I don't know if a must generate an array of random number, which are equals to zero (by a calculation), or if I juste must make juste a zero initialization vector, like you said. – Bastiflew Dec 24 '11 at 10:05

0 Answers0