Skip to content
  1. Jun 19, 2019
    • Jamie Fox's avatar
      Docs: Consistently refer to Musca-A · b8a92701
      Jamie Fox authored and Tamas Ban's avatar Tamas Ban committed
      
      
      Updates documents to consistently refer to Musca-A, rather than using a
      mix of Musca-A and Musca-A1.
      
      Change-Id: I6f7a9e6afe3475b4a88200f6e56bf4c5507850e4
      Signed-off-by: Jamie Fox's avatarJamie Fox <jamie.fox@arm.com>
      b8a92701
    • Sherry Zhang's avatar
      Test: Add isolation level 2 test cases · 024bc466
      Sherry Zhang authored
      
      
      The following isolation level 2 test cases are added:
      1. PSA RoT accesses APP RoT memory directly, positive test.
      2. APP RoT accesses PSA RoT memory directly, negative test. This test
         case causes 'MemManage Fault' and is disabled as default. Enable
         this case by defining 'TFM_IPC_ISOLATION_2_APP_ACCESS_PSA_MEM'.
      3. PSA RoT writes to APP RoT read-only memory directly, negative test.
         This test case causes 'MemManage Fault' and is disabled as default.
         Defining MACRO 'TFM_IPC_ISOLATION_2_TEST_READ_ONLY_MEM' to enable
         this test case.
      4. APP RoT takes PSA RoT memory reference as PSA API parameters,
         negative test. SPM memory checking filters this case out and panic
         so this case is disabled as default. Enable this case by defining
         MACRO 'TFM_IPC_ISOLATION_2_MEM_CHECK'.
      
      Change-Id: Ib8aad380ae36f39117900d06d3c9a9233dd45c8f
      Signed-off-by: default avatarSherry Zhang <sherry.zhang2@arm.com>
      024bc466
  2. Jun 18, 2019
  3. Jun 17, 2019
  4. Jun 14, 2019
  5. Jun 13, 2019
    • Jamie Fox's avatar
      Platform: Ensure flash driver is initialised · 43e80d9e
      Jamie Fox authored
      
      
      Adds a call to the flash driver initialisation function in the dummy NV
      counter implementation before any other flash driver functions are
      called. Previously, it relied on the flash driver being already
      initialised, but this is not necessarily always the case.
      
      Change-Id: I061d3ae61c62704e652e161c7619d0b882c661f7
      Signed-off-by: Jamie Fox's avatarJamie Fox <jamie.fox@arm.com>
      43e80d9e
  6. Jun 11, 2019
  7. Jun 06, 2019
  8. Jun 04, 2019
  9. May 31, 2019
  10. May 30, 2019
  11. May 29, 2019
    • Jamie Fox's avatar
      Crypto: Fixes for PSA Crypto API compliance · 707caf76
      Jamie Fox authored
      
      
      Details:
       - Require that setup functions are called with handles initialised to
         0. Make 0 the invalid handle and number handles from 1.
       - Return PSA_ERROR_BUFFER_TOO_SMALL if the output buffer is too small
         in psa_asymmetric_encrypt.
       - Release generator operations if setup or abort operations fail.
      
      Change-Id: Ic1da83e056a00364ef8eba3ea23cbf191f8886e4
      Signed-off-by: Jamie Fox's avatarJamie Fox <jamie.fox@arm.com>
      707caf76
    • Jamie Fox's avatar
      Attest: Init hash operation before calling setup · 3298664e
      Jamie Fox authored
      
      
      Initialises the PSA hash operation before calling psa_hash_setup,
      rather than copying the handle out of the hash context, in
      t_cose_crypto_hash_start.
      
      Change-Id: I7e8c8199c6c87f20776a83f164d9a3ee4fd8521f
      Signed-off-by: Jamie Fox's avatarJamie Fox <jamie.fox@arm.com>
      3298664e
    • Tamas Ban's avatar
      Attest: Fix the detection of option flags · 20474467
      Tamas Ban authored
      
      
      Option flags for test purpose can be passed in to
      attestation service. It is encoded in a special challenge
      value. In this case challenge object must be 64 bytes
      long and the last 60 bytes (4-63) must be 0 value then
      the first four byte (0-3) handled as the option flags.
      Detection of these flags was mishandled if challenge
      object is not 64 bytes long.
      
      Change-Id: I457ab8d52236c2261ca12b0ae0f341c4c15976b2
      Signed-off-by: Tamas Ban's avatarTamas Ban <tamas.ban@arm.com>
      20474467
    • Tamas Ban's avatar
      Boot: Fix format specifiers · c27b5c3d
      Tamas Ban authored
      
      
      Fix ARMCLANG build error on Musca-A due to
      printf format specifiers.
      
      Change-Id: I21751975659b0ccc0bf98f04fad1b14d1d333b8c
      Signed-off-by: Tamas Ban's avatarTamas Ban <tamas.ban@arm.com>
      c27b5c3d
    • Jamie Fox's avatar
      Platform: Fix missing heap for GCC when TFM_LVL!=1 · 3bfce393
      Jamie Fox authored
      
      
      The heap section was missing when TF-M was built with GCC in level 2 or
      3 with the secure client test partition disabled. It is required by the
      GCC libc implementation of printf.
      
      Change-Id: Id4cea624da783cad9a486e85d213093f20a58d70
      Signed-off-by: Jamie Fox's avatarJamie Fox <jamie.fox@arm.com>
      3bfce393
    • Jamie Fox's avatar
      Build: Add option to enable or disable Audit Log · c78c62c9
      Jamie Fox authored
      
      
      Adds a build option that makes it possible to enable or disable the
      TF-M Audit Log partition. The option TFM_PARTITION_AUDIT_LOG can be
      provided in the CMake configure command, and is enabled by default if
      not supplied.
      
      Change-Id: Ib60f22aeb62652e34a1ac43a61154288e6d989b3
      Signed-off-by: Jamie Fox's avatarJamie Fox <jamie.fox@arm.com>
      c78c62c9
  12. May 28, 2019
    • Dávid Vincze's avatar
      Boot: Remove format specifier macros · dcba70bf
      Dávid Vincze authored and Tamas Ban's avatar Tamas Ban committed
      
      
      This patch removes the format specifier macros used in the formatted
      input/output functions. The 8-bit types (e.g. PRIu8) requires the
      C99 I/O format support to be enabled, otherwise the usage of these
      macros results in undefined behaviour. TF-M uses the newlib-nano
      standard library implementation which by default does not support
      these format macros.
      
      Change-Id: I36acf18aabbc675db56232671f7186f6745d4152
      Signed-off-by: Dávid Vincze's avatarDavid Vincze <david.vincze@arm.com>
      dcba70bf
    • Miklos Balint's avatar
      Core: separate IPC and veneer fn-based code · dd02bb38
      Miklos Balint authored
      
      
      Improve separation of IPC and veneer function-based code in the
      source tree for memory optimization and better readability of source:
      - Do not compile unused SVC handler functions if using IPC messaging
      - Avoid activation of MPU regions not needed in selected build
        configuration
      - Flag error if a service veneer function is called when running IPC
        messaging
      - Do not include memory bounds for partitions in SPM database if
        level 1 isolation and veneer functions are used to save memory
      
      Signed-off-by: Miklos Balint's avatarMiklos Balint <miklos.balint@arm.com>
      Change-Id: Iaef91e69061b639a71ec8cb638b6393762d10761
      dd02bb38
    • Miklos Balint's avatar
      Platform: create, use common secure linker script · 8fb91004
      Miklos Balint authored
      
      
      Create a common linker script and scatter file for secure
      binary. This can be used by any platform that has no special
      requirements or limitations.
      All platforms can specify in their respective cmake files
      if they use the common file or want to use a different one.
      
      Signed-off-by: Miklos Balint's avatarMiklos Balint <miklos.balint@arm.com>
      Change-Id: I47b317daca1194878fbf4d48096588c85fadcb23
      8fb91004
    • Tamas Ban's avatar
      Attest: Update integration guide · 967eee3f
      Tamas Ban authored
      
      
      The limitation of proper ECDSA token signing is resolved
      with the integration of Crypto service.
      
      Change-Id: I7325038467fed44c549b5785741bd6d199526183
      Signed-off-by: Tamas Ban's avatarTamas Ban <tamas.ban@arm.com>
      967eee3f
    • Tamas Ban's avatar
      Build: Fix ConfigCoreIPC on Musca-B1 · e2dcd7ee
      Tamas Ban authored
      
      
      Musca-B1 requires the NO_SWAP upgrade strategy, which causes
      a build failure with ConfigCoreIPC due to the faulty
      configuration of compile time switches for the linker.
      
      Change-Id: I56a1fd38aa30268993438efd2d6d33e8ee1b3e1f
      Signed-off-by: Tamas Ban's avatarTamas Ban <tamas.ban@arm.com>
      e2dcd7ee
    • Edison Ai's avatar
      Build: Configuration for Regression IPC test · 1a40a400
      Edison Ai authored and Miklos Balint's avatar Miklos Balint committed
      
      
      - Disable Regression in ConfigCoreIPC.cmake and
        ConfigCoreIPCTfmLevel2.cmake.
      - Add new build configuration to run regresstion with IPC model and IPC
        model isolation level 2.
      - Add explicit setting for basic project build variables in all build
        configurations
      
      Change-Id: I9a627ca08209a5b8e295c3cac9538d6e80f2e669
      Signed-off-by: default avatarEdison Ai <edison.ai@arm.com>
      1a40a400
  13. May 24, 2019
Loading