Skip to content

Commit

Permalink
aesce.c: add macro of MBEDTLS_AES_ONLY_128_BIT_KEY_LENGTH
Browse files Browse the repository at this point in the history
Signed-off-by: Yanray Wang <yanray.wang@arm.com>
  • Loading branch information
Yanray Wang committed May 8, 2023
1 parent d9bf370 commit e2bc158
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions library/aesce.c
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@ static void aesce_setkey_enc(unsigned char *rk,
/* Do not write overflow words.*/
continue;
}
#if !defined(MBEDTLS_AES_ONLY_128_BIT_KEY_LENGTH)
switch (key_bit_length) {
case 128:
break;
Expand All @@ -265,6 +266,7 @@ static void aesce_setkey_enc(unsigned char *rk,
rko[7] = rko[6] ^ rki[7];
break;
}
#endif /* !MBEDTLS_AES_ONLY_128_BIT_KEY_LENGTH */
}
}

Expand Down

0 comments on commit e2bc158

Please sign in to comment.