Measurements for S32K311, HSE-B Version 2.40.0

HSE Services Execution Time (from service request to response)

With PLL @120MHz

FULL MEM HSE Firmware:

  • Test Method
  • STM Clock configuration is used to measure time in Ticks.
  • Converted for each NPI into Microseconds
  • HSE and App Core are both running at same frequency
  • Testing is done for K311 NPI with 120MHz with PLL Source
  • Timer starts before service call and Service call is made. Post service call time is read.
  • Delta between Start Timer and End Time will provide benchmarking number for service time.
  • Service calls are made multiple times, and Max - Min values are recorded.
  • Verified with more than one K311 device.

Benchmarking Numbers from HSE Dev test

LINK to files.

https://bitbucket.sw.nxp.com/projects/AFT/repos/hse_releases/browse/internal_rc_packages/S32K3XX/standard/S32K3X1/package_S32K311_FULL_MEM/docs/HSE_B_S32K311_0.2.40.0_ASYNC_Benchmark.pdf

https://bitbucket.sw.nxp.com/projects/AFT/repos/hse_releases/browse/internal_rc_packages/S32K3XX/standard/S32K3X1/package_S32K311_FULL_MEM/docs/HSE_B_S32K311_0.2.40.0_SYNC_Benchmark.pdf

NOTE: Demo App can be used to measure Benchmarking. STM Timer


HSE ServiceMinTypicalMaxComments
1HSE_SRV_ID_ERASE_HSE_NVM_DATA68.737ms68.744ms68.749ms
2HSE_SRV_ID_ERASE_FW111.515ms112.257ms113.711ms
3HSE_SRV_ID_SBAF_UPDATE0.161s0.161s0.161s
4HSE_SRV_ID_FW_INTEGRITY_CHECK27us27us27us
5HSE_SRV_ID_SHE_BOOT_OK


Requires Oscilloscope. Will be updated in the first week of Nov.
6HSE_SRV_ID_SHE_BOOT_FAILURE


7HSE_SRV_ID_SET_ATTR10.522ms10.543 ms10.584 msHSE_FAST_CMAC_MIN_TAG_BIT_LEN_ATTR_ID
8HSE_HSE_SRV_ID_GET_ATTR27.325 us27.344 us27.358 us

HSE_FW_VERSION_ATTR_ID

9HSE_SRV_ID_CANCEL22us22us22usexport key -

HSE_KEY_TYPE_AES (128 bits)

28.033us27.969us27.85usget_key_info - HSE_KEY_TYPE_AES (128 bits)
10HSE_SRV_ID_BOOT_DATA_IMAGE_SIGN322.241 us322.235 us322.225 us
11HSE_SRV_ID_BOOT_DATA_IMAGE_VERIFY283.35 us283.35 us283.35  us
12HSE_SRV_ID_IMPORT_EXPORT_STREAM_CTX158.516 us158.58us158.675 usexport

169.766 us169.805us169.833import
13HSE_SRV_ID_CONFIG_KHTT


Hardware support not available for K311
14HSE_SRV_ID_PUSH_MSC_KEYS


Hardware support not available for K311
15HSE_SRV_ID_PUBLISH_NVM_KEYSTORE_RAM_TO_FLASH25.183us25.18us25.185us
16HSE_SRV_ID_CONFIG_COUNTER10.822ms16.097 ms22.749msRPBitSize = 40 bits
17HSE_SRV_ID_LOAD_ECC_CURVE10.897 ms12.494ms15.511ms

HSE_EC_BRAINPOOL_BRAINPOOLP256R1,       

User curve: HSE_EC_USER_CURVE1

18HSE_SRV_ID_FORMAT_KEY_CATALOGS30.503ms30.528ms30.547ms
19HSE_SRV_ID_ERASE_KEY42.216us42.44us42.416us
  • Key Type: HSE_KEY_TYPE_AES
  • Key Sizes:128 bits
20HSE_SRV_ID_GET_KEY_INFO33.575 us33.591 us33.616 us
  • Key Type: HSE_KEY_TYPE_AES
  • Key Sizes:128 bits
21HSE_SRV_ID_IMPORT_KEY30.196ms30.201ms30.199ms
  • Key type: HSE_KEY_TYPE_AES
  • Key size: 128 bits
22HSE_SRV_ID_EXPORT_KEY254.083 us254.083 us254.108us
  • Key type: HSE_KEY_TYPE_AES
  • Key size: 128 bits
23HSE_SRV_ID_KEY_GENERATE43.744ms43.751ms43.757msKeyGenScheme: HSE_KEY_GEN_ECC_KEY_PAIR
24HSE_SRV_ID_KEY_DERIVE171.975 us171.985 us172.00 us
  • KDF Algo:HSE_KDF_ALGO_SP800_108
  • KDF Counter Length:1 byte
  • Source Key Type: HSE_KEY_TYPE_AES
  • Source Key Sizes:128 bits
  • kdfPrf :HSE_KDF_PRF_CMAC
25HSE_SRV_ID_KEY_DERIVE_COPY125.825 us125.825 us125.825 us
  • KDF Algo:HSE_KDF_ALGO_SP800_108
26HSE_SRV_ID_KEY_VERIFY64.341 us64.349 us64.358us
  •  macScheme: HSE_MAC_ALGO_HMAC
  •  Hash Algorithm: HSE_KEY_VER_CMAC
27HSE_SRV_ID_SHE_LOAD_KEY63.158us63.183 us63.216us
28HSE_SRV_ID_SHE_LOAD_PLAIN_KEY77.7us77.716us77.725us
29HSE_SRV_ID_SHE_EXPORT_RAM_KEY486.25us486.33 us486.34us
30HSE_SRV_ID_SHE_GET_ID147.225us147.241us147.25us

HSE_SRV_ID_HASH45.416us45.444 us45.491 usHSE_HASH_ALGO_SHA_1

45.216 us45.244 us45.291 usHSE_HASH_ALGO_SHA2_224
31958.158 us975.06 us983.516 usHSE_HASH_ALGO_SHA2_384

966.875us983.197 us1015.625 usHSE_HASH_ALGO_SHA2_512

872.658us880.722us895.833usHSE_HASH_ALGO_SHA2_512_224

900.283 us900.483 us900.283 usHSE_HASH_ALGO_SHA2_512_256

687.628687.787688.008 usHSE_HASH_ALGO_SHA3_224

44.741 us44.760us44.775 usHSE_HASH_ALGO_MP

741.316us 725.00 us740.991 usHSE_HASH_ALGO_SHA3_512
32HSE_SRV_ID_MAC65.95us66.155 us66.516 usMAC generation

54.73354.821 us54.891MAC verification
33HSE_SRV_ID_FAST_CMAC53.016us53.033us53.058us
  • Fast CMAC generation
  • macScheme:HSE_MAC_ALGO_CMAC,
  • Key Type:HSE_KEY_TYPE_AES,
  • Key size: 128 bits

53.825us53.836 us

53.85us

  • Fast CMAC verification -
  • macScheme:HSE_MAC_ALGO_CMAC,
  • Key Type:HSE_KEY_TYPE_AES,
  • Key size: 128 bits
34HSE_SRV_ID_SYM_CIPHER68.516 us68541 us68.541 us

CBC_DEC - Key Type:HSE_KEY_TYPE_AES, Key size:128


66.45 us66.483 us66.525 usCBC_ENC - HSE_KEY_TYPE_AES, Key size:128

66.466 us66.491 us66.475 usCFB_DEC - HSE_KEY_TYPE_AES, Key size:128

66.466 us66.483 us66.491usCFB_ENC - HSE_KEY_TYPE_AES, Key size:128

66.475 us66.513 us66.550 usCTR_DEC - HSE_KEY_TYPE_AES, Key size:128

66.555 us66.583us66.625 usCTR_ENC - HSE_KEY_TYPE_AES, Key size:128 

66.308 us66.324us66.341 usECB_DEC - HSE_KEY_TYPE_AES, Key size:128 

66.458 us66.467 us66.489 usECB_ENC- HSE_KEY_TYPE_AES, Key size:128 

66.575 us66.580 us66.585 usOFB_DEC - HSE_KEY_TYPE_AES, Key size:128 

66.675 us66.705us66.733OFB_ENC - HSE_KEY_TYPE_AES, Key size:128 
35HSE_SRV_ID_AEAD85.283us85.308 us85.283usDEC_CCM - HSE_KEY_TYPE_AES, Key size:128

85.391 us85.455 us85.516 usENC_CCM - HSE_KEY_TYPE_AES, Key size:128

75.650 us75.694 us75.716 usDEC_GCM - HSE_KEY_TYPE_AES, Key size:128

76.483us76.513 us76.541 usENC_GCM - HSE_KEY_TYPE_AES, Key size:128
36HSE_SRV_ID_SIGN14.151ms14.154 ms14.157ms
  • Sign generation 
  • SignGenScheme: HSE_SIGN_ECDSA 
  • Hash Algorithm: HSE_HASH_ALGO_SHA2_256
  • Key Type: HSE_KEY_TYPE_ECC_PAIR

12.781ms12.809ms12.839ms
  • Sign Verification:
  • SignVerScheme: HSE_SIGN_ECDSA
  • Hash Algorithm: HSE_HASH_ALGO_SHA2_256
  • Key Type: HSE_KEY_TYPE_ECC_PUB
37HSE_SRV_ID_RSA_CIPHER517.650 ms518.281 ms519.267ms
  • RSA encryption
  • Encryption Scheme: RSA-OAEP  
  • KeyType: HSE_KEY_TYPE_RSA_PUB 
  • Key sizes:1024 bits
  • Hash Algorithm: HSE_HASH_ALGO_SHA2_256

27.609 ms27.408ms28.077ms
  • RSA decryption
  • Decryption Scheme: RSA-OAEP
  • Key Type: HSE_KEY_TYPE_RSA_PAIR
  • Key sizes:1024 bits
  • Hash Algorithm:HSE_HASH_ALGO_SHA2_256 
38HSE_SRV_ID_GET_RANDOM_NUM50.525 us50.541 us50.55 us
39HSE_SRV_ID_INCREMENT_COUNTER34.066us34.080 us34.091 us
40HSE_SRV_ID_READ_COUNTER20.783us 20.802 us20.825 us
41HSE_SRV_ID_SMR_ENTRY_INSTALL8.568ms10.806 ms15.226ms
42HSE_SRV_ID_SMR_VERIFY83.61 us90.549 us104.408 us
43HSE_SRV_ID_CORE_RESET_ENTRY_INSTALL8.432ms9.654 ms12.051ms
44HSE_SRV_ID_SMR_ENTRY_ERASE10.534ms12.063 ms15.046 ms
45HSE_SRV_ID_CORE_RESET_ENTRY_ERASE31.466 us31.491 us31.491 us
46HSE_SRV_ID_ON_DEMAND_CORE_RESET


Noida office is closed for Security reasons and Diwali festival. Will be updated in first week of November
47HSE_SRV_ID_SYS_AUTH_REQ (only runs in IN_FIELD lifecycle)


48HSE_SRV_ID_SYS_AUTH_RESP (only runs in IN_FIELD lifecycle)


49Lifecycle change time (CUST_DEL to OEM_PROD)


50Lifecycle change time (OEM_PROD to IN_FIELD)


Write a comment...