Part Number: AM2634-Q1
Other Parts Discussed in Thread: AM2634
Tool/software:
Hi TI Team,
I am checking the SHA256 example on the AM2634 KIT. The example builds successfully and runs as expected. However, when I port the code into my project, execution gets stuck after calling the following API: DTHE_SHA_open. Could you help me understand why this might be happening?
void crypto_sha_256_main(void)
{
DTHE_SHA_Return_t status;
DTHE_Handle shaHandle;
DTHE_SHA_Params shaParams;
/* Opening crypto driver */
shaHandle = DTHE_open(0);
DebugP_assert(shaHandle != NULL);
/* Opening sha driver */
status = DTHE_SHA_open(shaHandle);
UPRINTF("\n\rSHA Status: %d\n\r", status);
if (DTHE_SHA_RETURN_SUCCESS != status) {
return;
}
}
Thanks,
Rahul