Some CycloneCRYPTO functions return error_t type, which is not a boolean and consequently cannot be treated like boolean. For example:
.
Solution: perform int comparison.