lelteto replied to Gandalf Maximus
18-Nov-09 01:48 AM
Not to my knowledge. (I checked my Wincrypt.h file and in addition to
PKCS5_PADDING there are only random and zero paddings. I do not see "no
padding" option.)
You can work around this limitation (with some but not much added code and
32 bytes of stack space) simply by saving the last 16 bytes into a local byte
array, do the rest of the AES operation in the chopped area (ignoring the
last 16 bytes) the do the last 16 bytes CBC on the copied last block and copy
back the encrypted / decrypted block into the original last 16 bytes area.
Alternatively, you can use other crypto libraries (Cryptoki = PKCS#11 or
OpenSSL).
Laszlo Elteto
SafeNet, Inc.