You are not logged in.
Pages: 1
Hi, how can i set the IV before encrypting AES?
Thanks in advance.
Arthur.
Last edited by arthurprs (2010-09-25 17:18:23)
Offline
Thanks for the quick reply.
If i just fill the .IV array with the value it will work?
I searched for ".IV" on the unit but I found no references (except padlock specific ones).
Arthur.
Edit: Sorry, there was a mistake in my first post, i need to set it before encrypting, not decrypting.
Last edited by arthurprs (2010-09-25 17:19:26)
Offline
We provide only ECB mode of encryption.
So IV is not to be set here.
If you implement other modes (CBC or even better CTR, if you want it to be easily parallelized with multiple CPUs), you'll have to use the IV.
Offline
Well, I don't know much about encryption (I just googled about ecb and cbc).
So I guess there is no easy way to modify the library to fit my need, is that right?
Thanks for your time, have a great weekend.
Offline
About modes of encryption, see http://en.wikipedia.org/wiki/Block_ciph … _operation
Offline
I've added TAESCBC, TAESCFB, TAESOFB and TAESCTR classes to handle AES encryption of memory buffers in CBC, CFB, OFB and CTR mode (including PKCS7 padding) in SynCrypto.pas.
This will cover most useful patterns of the AES algorithm.
See http://synopse.info/fossil/info/8482ce8dda and http://synopse.info/fossil/info/215558e943
Offline
Pages: 1