question about setting IV

31 views
Skip to first unread message

SP

unread,
Aug 5, 2009, 11:40:39 AM8/5/09
to As3Crypto Discussion List
I would like to explicitly set the IV. I think this is what I need to
do. Can someone verify?

var name : String = "aes" + "-" + "cbc";
var pad : IPad = new PKCS5();
var mode : ICipher = Crypto.getCipher(name, key, pad);

(IVMode (mode)).IV = "the IV bytes";

pad.setBlockSize(mode.getBlockSize());
mode.encrypt(data);

Reply all
Reply to author
Forward
0 new messages