#1 2018-06-28 09:14:43

jaclas
Member
Registered: 2014-09-12
Posts: 215

AES encrypt and IV question

AES and other block cipher algorithms uses a initialization vector as first block to encode input data.

But when I call method (or other with IVAtBeginning param):

TAESxxx.EncryptPKCS7(const Input: TBytes;  IVAtBeginning: boolean): TBytes; 

with IVAtBeginnig = False, then as IV is used an empty array?

Last edited by jaclas (2018-06-28 09:15:11)

Offline

#2 2018-06-28 16:16:50

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 13,504
Website

Re: AES encrypt and IV question

This is the value of the TAESxxx.IV property, so by default 16 zero bytes.

Offline

Board footer

Powered by FluxBB