test/crypto: test invalid aes key len

This commit is contained in:
Matthias Ringwald 2021-12-03 11:47:45 +01:00
parent 3bb5ff27f3
commit 6d21cd94ee

View File

@ -31,5 +31,6 @@ int main(void){
// test invalid key len
uint32_t rk[RKLENGTH(KEYBITS)];
btstack_assert(rijndaelSetupEncrypt(rk, &key[0], 0) == 0);
int result = rijndaelSetupEncrypt(rk, &key[0], 0);
btstack_assert(result == 0);
}