Commit 9b7a2583 authored by Fabio Utzig's avatar Fabio Utzig Committed by Fabio Utzig
Browse files

Fix overwrite-only encrypted images in sim

Also add overwrite-only + encrypted tests to travis-ci.

Signed-off-by: default avatarFabio Utzig <utzig@apache.org>
parent e641ea5e
Loading
Loading
Loading
Loading
+2
Changes for .travis.yml: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -23,6 +23,8 @@ matrix:
      env: MULTI_FEATURES="sig-rsa overwrite-only,sig-ecdsa overwrite-only"
    - os: linux
      env: MULTI_FEATURES="sig-rsa validate-slot0,sig-ecdsa validate-slot0"
    - os: linux
      env: MULTI_FEATURES="enc-kw overwrite-only,enc-rsa overwrite-only"

    # FIXME: this test actually fails and must be fixed
    #- os: linux
+2
Changes for sim/src/lib.rs: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -695,11 +695,13 @@ impl Images {
    }

    #[cfg(feature = "enc-rsa")]
    #[cfg(not(feature = "overwrite-only"))]
    fn status_sz(&self) -> usize {
        self.trailer_sz() - (16 + 24 + 32)
    }

    #[cfg(feature = "enc-kw")]
    #[cfg(not(feature = "overwrite-only"))]
    fn status_sz(&self) -> usize {
        self.trailer_sz() - (16 + 24 + 32)
    }