Skip to content

Commit 77830b0

Browse files
authored
Merge pull request arduino#655 from pennam/se050-nicla-fix
SE050: Add missing digest init
2 parents 0c12792 + f9cdd8c commit 77830b0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

libraries/SE05X/src/SE05X.cpp

+7
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,13 @@ int SE05XClass::beginSHA256()
335335
return 0;
336336
}
337337

338+
status = sss_digest_init(&_digest_ctx);
339+
340+
if (status != kStatus_SSS_Success) {
341+
SE05X_PRINT_ERROR("sss_digest_init Failed!!!");
342+
return 0;
343+
}
344+
338345
return 1;
339346
}
340347

0 commit comments

Comments
 (0)