!40 fix wrong use of the sizeof a pointer.

Merge pull request !40 from zgit2021/master
This commit is contained in:
openharmony_ci
2021-08-26 09:14:18 +00:00
committed by Gitee
+1 -1
View File
@@ -31,7 +31,7 @@ unsigned char* GenerateRandomIv(void)
return NULL;
}
struct HksBlob blob = {sizeof(randomIv), randomIv};
struct HksBlob blob = {IV_LEN, randomIv};
int ret = HksGenerateRandom(NULL, &blob);
if (ret != 0) {