forked from wolfSSL/wolfssl
add macro guard for fips and selftest builds
This commit is contained in:
@ -9157,6 +9157,7 @@ int aesccm_test(void)
|
|||||||
return -6313;
|
return -6313;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if !defined(HAVE_FIPS) && !defined(HAVE_SELFTEST)
|
||||||
/* test fail on invalid IV sizes */
|
/* test fail on invalid IV sizes */
|
||||||
result = wc_AesCcmSetKey(&enc, k, sizeof(k));
|
result = wc_AesCcmSetKey(&enc, k, sizeof(k));
|
||||||
if (result != 0)
|
if (result != 0)
|
||||||
@ -9168,6 +9169,7 @@ int aesccm_test(void)
|
|||||||
if (result == 0) {
|
if (result == 0) {
|
||||||
return -6315;
|
return -6315;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user