Skip to content

Add Assert statements to crypto calls in MCUboot #2192

Open
@Karambite

Description

@Karambite

I'm open to any discussion, but I think there should be asserts in instances like this.

When porting a unique crypto library, it is understood that the developer should handle errors, however, in mcuboot, an error doesn't end the mcuboot hash operation early. Instead it still continues till the hash check is incorrect. An assert here to make sure that if there are errors (like failed crypto engine boot) and end mcuboot crypto operation end earlier would be an improvement.

Metadata

Metadata

Assignees

No one assigned

    Labels

    cryptoEncryption support

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions