Skip to content
  1. Jul 08, 2024
  2. Apr 02, 2024
  3. Feb 28, 2024
  4. Feb 23, 2024
  5. Feb 22, 2024
  6. Feb 21, 2024
    • Etienne Carriere's avatar
      xtest: asym_perf: fix indentation issues · ac200fe2
      Etienne Carriere authored and Jérôme Forissier's avatar Jérôme Forissier committed
      
      
      Fix a minor indentation issue in asym_test.c.
      
      Fixes: bcd55831 ("xtest: add asymmetric cipher perf test")
      Acked-by: Jens Wiklander's avatarJens Wiklander <jens.wiklander@linaro.org>
      Signed-off-by: default avatarEtienne Carriere <etienne.carriere@foss.st.com>
      ac200fe2
    • Etienne Carriere's avatar
      ta: crypto_perf: correct coding style issue in symm tests · 79ba734b
      Etienne Carriere authored and Jérôme Forissier's avatar Jérôme Forissier committed
      
      
      Sort out some coding style issue that are better being fixed for
      test TAs implementation consistency. No functional changes.
      
      Fixes: e18381f5 ("xtest: combine aes_perf and hash_perf TAs into crypto_perf")
      Acked-by: Jens Wiklander's avatarJens Wiklander <jens.wiklander@linaro.org>
      Signed-off-by: default avatarEtienne Carriere <etienne.carriere@foss.st.com>
      79ba734b
    • Etienne Carriere's avatar
      ta: crypto_perf: fix coding style issues in asymm tests · babafcab
      Etienne Carriere authored and Jérôme Forissier's avatar Jérôme Forissier committed
      
      
      Sort out some coding style issues that are better being fixed for the
      consistency of the implementation of the test TAs. No functional changes.
      
      Fixes: 14a2b2ac ("ta: crypto_perf: add asymmetric crypto perf tests")
      Acked-by: Jens Wiklander's avatarJens Wiklander <jens.wiklander@linaro.org>
      Signed-off-by: default avatarEtienne Carriere <etienne.carriere@foss.st.com>
      babafcab
    • Etienne Carriere's avatar
      ta: crypto_perf: fix build error on type mismatch · bad11a95
      Etienne Carriere authored and Jérôme Forissier's avatar Jérôme Forissier committed
      
      
      Fix build error in crypto_perf TA as shown in below build trace
      messages when built for a 64bit target:
      
      ta_crypto_perf.c: In function 'cmd_asym_process_rsa_ecc':
      ta_crypto_perf.c:772:33: warning: assignment to 'TEE_Result (*)(struct __TEE_OperationHandle *, const TEE_Attribute *, uint32_t,  const void *, uint32_t,  void *, uint32_t *)' {aka 'unsigned int (*)(struct __TEE_OperationHandle *, const TEE_Attribute *, unsigned int,  const void *, unsigned int,  void *, unsigned int *)'} from incompatible pointer type 'TEE_Result (*)(struct __TEE_OperationHandle *, const TEE_Attribute *, uint32_t,  const void *, size_t,  void *, size_t *)' {aka 'unsigned int (*)(struct __TEE_OperationHandle *, const TEE_Attribute *, unsigned int,  const void *, long unsigned int,  void *, long unsigned int *)'} [-Wincompatible-pointer-types]
        772 |                         do_asym = TEE_AsymmetricEncrypt;
            |                                 ^
      ta_crypto_perf.c:774:33: warning: assignment to 'TEE_Result (*)(struct __TEE_OperationHandle *, const TEE_Attribute *, uint32_t,  const void *, uint32_t,  void *, uint32_t *)' {aka 'unsigned int (*)(struct __TEE_OperationHandle *, const TEE_Attribute *, unsigned int,  const void *, unsigned int,  void *, unsigned int *)'} from incompatible pointer type 'TEE_Result (*)(struct __TEE_OperationHandle *, const TEE_Attribute *, uint32_t,  const void *, size_t,  void *, size_t *)' {aka 'unsigned int (*)(struct __TEE_OperationHandle *, const TEE_Attribute *, unsigned int,  const void *, long unsigned int,  void *, long unsigned int *)'} [-Wincompatible-pointer-types]
        774 |                         do_asym = TEE_AsymmetricDecrypt;
            |                                 ^
      ta_crypto_perf.c:776:33: warning: assignment to 'TEE_Result (*)(struct __TEE_OperationHandle *, const TEE_Attribute *, uint32_t,  const void *, uint32_t,  void *, uint32_t *)' {aka 'unsigned int (*)(struct __TEE_OperationHandle *, const TEE_Attribute *, unsigned int,  const void *, unsigned int,  void *, unsigned int *)'} from incompatible pointer type 'TEE_Result (*)(struct __TEE_OperationHandle *, const TEE_Attribute *, uint32_t,  const void *, size_t,  void *, size_t *)' {aka 'unsigned int (*)(struct __TEE_OperationHandle *, const TEE_Attribute *, unsigned int,  const void *, long unsigned int,  void *, long unsigned int *)'} [-Wincompatible-pointer-types]
        776 |                         do_asym = TEE_AsymmetricSignDigest;
            |                                 ^
      ta_crypto_perf.c:784:64: warning: passing argument 7 of 'do_asym' from incompatible pointer type [-Wincompatible-pointer-types]
        784 |                                       params[2].memref.buffer, &dummy_size);
            |                                                                ^~~~~~~~~~~
            |                                                                |
            |                                                                size_t * {aka long unsigned int *}
      ta_crypto_perf.c:784:64: note: expected 'uint32_t *' {aka 'unsigned int *'} but argument is of type 'size_t *' {aka 'long unsigned int *'}
      ta_crypto_perf.c: At top level:
      
      Fixes: 14a2b2ac ("ta: crypto_perf: add asymmetric crypto perf tests")
      Acked-by: Jens Wiklander's avatarJens Wiklander <jens.wiklander@linaro.org>
      Signed-off-by: default avatarEtienne Carriere <etienne.carriere@foss.st.com>
      bad11a95
    • Etienne Carriere's avatar
      ta: crypto_perf: fix build warning on unused resources · cb5136a4
      Etienne Carriere authored and Jérôme Forissier's avatar Jérôme Forissier committed
      
      
      Fix build warning in crypto_perf TA as shown in below build trace
      messages:
      
      ta_crypto_perf.c:704:42: warning: unused parameter ‘params’ [-Wunused-parameter]
        704 |                                TEE_Param params[TEE_NUM_PARAMS])
            |                                ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
      ta_crypto_perf.c: In function ‘cmd_asym_process_keypair’:
      ta_crypto_perf.c:745:1: warning: label ‘out’ defined but not used [-Wunused-label]
        745 | out:
            | ^~~
      ta_crypto_perf.c: In function ‘cmd_asym_process_rsa_ecc’:
      ta_crypto_perf.c:796:1: warning: label ‘out’ defined but not used [-Wunused-label]
        796 | out:
            | ^~~
      
      Fixes: 14a2b2ac ("ta: crypto_perf: add asymmetric crypto perf tests")
      Acked-by: Jens Wiklander's avatarJens Wiklander <jens.wiklander@linaro.org>
      Signed-off-by: default avatarEtienne Carriere <etienne.carriere@foss.st.com>
      cb5136a4
    • Clement Faure's avatar
      regression_4000: check if the generated DH private key is a CAAM black key · 967368b3
      Clement Faure authored and Jérôme Forissier's avatar Jérôme Forissier committed
      
      
      Check if the generated private DH key is a CAAM black key. If it is the
      case, skip the buffer size check as the key size and CAAM black key
      buffer size do not match.
      
      Signed-off-by: default avatarClement Faure <clement.faure@nxp.com>
      Reviewed-by: Jens Wiklander's avatarJens Wiklander <jens.wiklander@linaro.org>
      967368b3
  7. Feb 12, 2024
  8. Feb 09, 2024
  9. Feb 05, 2024
  10. Feb 02, 2024
  11. Jan 11, 2024
  12. Dec 08, 2023
  13. Nov 30, 2023
  14. Nov 23, 2023
  15. Nov 22, 2023
  16. Nov 21, 2023
  17. Nov 20, 2023
Loading