Merge pull request #1406 from dgarske/mmcau_sha256_cast

Fix for cast warning with NXP CAU and SHA256.
This commit is contained in:
toddouska 2018-03-02 10:10:14 -08:00 committed by GitHub
commit e698084eac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -359,9 +359,9 @@ static int InitSha256(wc_Sha256* sha256)
int ret = wolfSSL_CryptHwMutexLock();
if (ret == 0) {
#ifdef FREESCALE_MMCAU_CLASSIC_SHA
cau_sha256_hash_n(sha256->buffer, 1, sha256->digest);
cau_sha256_hash_n((byte*)sha256->buffer, 1, sha256->digest);
#else
MMCAU_SHA256_HashN(sha256->buffer, 1, sha256->digest);
MMCAU_SHA256_HashN((byte*)sha256->buffer, 1, sha256->digest);
#endif
wolfSSL_CryptHwMutexUnLock();
}