cyberheg
November 29th, 2003, 08:42
Quote:
[Originally Posted by BassPlayer]I'm trying to set a custom IV for AES encryption. When I try either a 16 or 8 byte IV string it fails with param4 error. But when I let it generate one it creates a 16 byte IV. Are there any special parameters I need to pay attention to when creating an IV |
I don't know cryptlib myself so I can't really help you on the question.
But what I do know is that you left out a few interesting details such as:
Which encryption-scheme are you using? Since you need IV's it can't be ECB. My best guess is you use CBC or CTR.
Why did you try 8 byte IV's? It sounds to me you are not really knowing what you are doing?
If you use AES with 128 bit keys and 128 bit blocklength (minimum) you will need a 128 bit IV also. If you choose less then 128 bit IV (you mentioned 64 bit IV's) you won't make use of the full possible keyspace.
Why not include some specific code which demonstrates your problem?
If you're not experienced in programming then maybe it's just a trivial bug. How should anyone be able to guess what param4 error means UNLESS they actually tried to do the exact same thing you're doing?
// CyberHeg