mirror of
https://github.com/apache/nuttx.git
synced 2026-05-26 02:36:11 +08:00
Move cypto debug definitions to debug.h with other susbsystem-level debug
This commit is contained in:
+2
-2
@@ -76,9 +76,9 @@ void up_cryptoinitialize(void)
|
||||
#if defined(CONFIG_CRYPTO_ALGTEST)
|
||||
res = crypto_test();
|
||||
if (res)
|
||||
cryptdbg("crypto test failed\n");
|
||||
cryptlldbg("crypto test failed\n");
|
||||
else
|
||||
cryptvdbg("crypto test OK\n");
|
||||
cryptllvdbg("crypto test OK\n");
|
||||
#endif
|
||||
|
||||
return res;
|
||||
|
||||
+2
-2
@@ -78,7 +78,7 @@ static int do_test_aes(FAR struct cipher_testvec* test, int mode, int encrypt)
|
||||
#define AES_CYPHER_TEST_ENCRYPT(mode, mode_str, count, template) \
|
||||
for (i = 0; i < count; i++) { \
|
||||
if (do_test_aes(template + i, mode, CYPHER_ENCRYPT)) { \
|
||||
cryptdbg("Failed " mode_str " encrypt test #%i\n", i); \
|
||||
cryptlldbg("Failed " mode_str " encrypt test #%i\n", i); \
|
||||
return -1; \
|
||||
} \
|
||||
}
|
||||
@@ -86,7 +86,7 @@ static int do_test_aes(FAR struct cipher_testvec* test, int mode, int encrypt)
|
||||
#define AES_CYPHER_TEST_DECRYPT(mode, mode_str, count, template) \
|
||||
for (i = 0; i < count; i++) { \
|
||||
if (do_test_aes(template + i, mode, CYPHER_DECRYPT)) { \
|
||||
cryptdbg("Failed " mode_str " decrypt test #%i\n", i); \
|
||||
cryptlldbg("Failed " mode_str " decrypt test #%i\n", i); \
|
||||
return -1; \
|
||||
} \
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user