mirror of
https://github.com/rvtr/twl_wrapsdk.git
synced 2025-10-31 06:11:10 -04:00
undef AES_DOES_NOT_SUPPORT_MULTIPLE_KEYS and add comment to test
git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/twl_wrapsdk/trunk@75 4ee2a332-4b2b-5046-8439-1ba90f034370
This commit is contained in:
parent
05e6490dbb
commit
56d2717953
@ -17,11 +17,6 @@
|
|||||||
#include <twl/aes/common/assert.h>
|
#include <twl/aes/common/assert.h>
|
||||||
#include <nitro/os/common/interrupt.h>
|
#include <nitro/os/common/interrupt.h>
|
||||||
|
|
||||||
// for OLD AES registers
|
|
||||||
#ifndef AES_DOES_NOT_SUPPORT_MULTIPLE_KEYS
|
|
||||||
#define AES_DOES_NOT_SUPPORT_MULTIPLE_KEYS
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef AES_DOES_NOT_SUPPORT_MULTIPLE_KEYS
|
#ifdef AES_DOES_NOT_SUPPORT_MULTIPLE_KEYS
|
||||||
#define REG_AES_KEY_OFFSET 0x4410
|
#define REG_AES_KEY_OFFSET 0x4410
|
||||||
#define REG_AES_KEY_ADDR (HW_REG_BASE + REG_AES_KEY_OFFSET)
|
#define REG_AES_KEY_ADDR (HW_REG_BASE + REG_AES_KEY_OFFSET)
|
||||||
|
|||||||
@ -196,7 +196,7 @@ static void test2(void)
|
|||||||
// 出力結果の表示
|
// 出力結果の表示
|
||||||
dump(__func__, dataB, sizeof(gs_data));
|
dump(__func__, dataB, sizeof(gs_data));
|
||||||
|
|
||||||
OS_TPrintf("Result: %s\n", AES_IsValid() ? "Success" : "Failed");
|
OS_TPrintf("Result: %s\n", AES_IsValid() ? "Success" : "Failed (OK!)");
|
||||||
}
|
}
|
||||||
|
|
||||||
static u32 intrCounter[3];
|
static u32 intrCounter[3];
|
||||||
|
|||||||
@ -283,7 +283,7 @@ static void test2(void)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
OS_TPrintf("Result: %s\n", AES_RESULT_SUCCESS_TRUE == result ? "Success" : "Failed");
|
OS_TPrintf("Result: %s\n", AES_RESULT_SUCCESS_TRUE == result ? "Success" : "Failed (OK!)");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user