F-6720: use a full 16-byte IV in CAAM/SECO AES-CBC examples

pull/600/head
Emma Stensland 2026-07-15 10:02:34 -06:00
parent 069f16efe2
commit 5807e9b595
2 changed files with 2 additions and 2 deletions

View File

@ -95,7 +95,7 @@ int main(int argc, char** argv)
unsigned int keyId;
unsigned int keyStoreId;
const byte in[] = "test message to encrypt";
const byte iv[] = {0,1,2,3,4,5,6,7,8,9,10,11,12};
const byte iv[AES_BLOCK_SIZE] = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15};
if (argc == 4) {
if (XSTRNCMP(argv[1], "1", 1) == 0) {

View File

@ -95,7 +95,7 @@ int main(int argc, char** argv)
unsigned int keyId;
unsigned int keyStoreId;
const byte in[] = "test message to encrypt";
const byte iv[] = {0,1,2,3,4,5,6,7,8,9,10,11,12};
const byte iv[AES_BLOCK_SIZE] = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15};
if (argc == 4) {
if (XSTRNCMP(argv[1], "1", 1) == 0) {