Home
last modified time | relevance | path

Searched refs:assetSize (Results 1 – 8 of 8) sorted by relevance

/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/host/src/cc3x_lib/
Dmbedtls_cc_util_asset_prov.c62 if ((pAssetPackage->assetSize > CC_ASSET_PROV_MAX_ASSET_SIZE) || in mbedtls_util_asset_pkg_unpack()
63 (pAssetPackage->assetSize == 0) || in mbedtls_util_asset_pkg_unpack()
64 (pAssetPackage->assetSize % CC_ASSET_PROV_BLOCK_SIZE)) { in mbedtls_util_asset_pkg_unpack()
65 CC_PAL_LOG_ERR("Invalid asset size 0x%x", pAssetPackage->assetSize); in mbedtls_util_asset_pkg_unpack()
69 if ((assetPackageLen < (constPkgSize+pAssetPackage->assetSize)) || in mbedtls_util_asset_pkg_unpack()
70 (*pAssetDataLen < pAssetPackage->assetSize)) { in mbedtls_util_asset_pkg_unpack()
71 CC_PAL_LOG_ERR("Invalid asset size 0x%x", pAssetPackage->assetSize); in mbedtls_util_asset_pkg_unpack()
110 assetDataSize = pAssetPackage->assetSize; in mbedtls_util_asset_pkg_unpack()
113 rc = mbedtls_ccm_auth_decrypt(&ccmCtx, pAssetPackage->assetSize, in mbedtls_util_asset_pkg_unpack()
117 … pAssetPackage->encAsset + pAssetPackage->assetSize, CC_ASSET_PROV_TAG_SIZE); in mbedtls_util_asset_pkg_unpack()
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/utils/src/cc3x_asset_prov_rt/lib/
Dmain.c123 uint8_t *asset, uint32_t assetSize, in build_asset_blob() argument
138 (assetSize > CC_ASSET_PROV_MAX_ASSET_SIZE) || (assetSize % CC_ASSET_PROV_BLOCK_SIZE) || in build_asset_blob()
143 …assetBlobSize = CC_ASSET_PROV_ADATA_SIZE + CC_ASSET_PROV_NONCE_SIZE + assetSize + CC_ASSET_PROV_TA… in build_asset_blob()
150 assetBlob.assetSize = assetSize; in build_asset_blob()
188 asset, assetSize, in build_asset_blob()
189 (uint8_t *)assetBlob.encAsset, &assetSize, in build_asset_blob()
190 ((uint8_t *)assetBlob.encAsset)+assetSize, CC_ASSET_PROV_TAG_SIZE); in build_asset_blob()
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/utils/src/dmpu_asset_pkg_util/oem_asset_package/lib/
Dmain.c45 uint8_t *asset, uint32_t assetSize, in build_oem_asset_pkg() argument
65 (assetSize != PROD_ASSET_SIZE) || in build_oem_asset_pkg()
76 assetPackage.assetSize = assetSize; in build_oem_asset_pkg()
119 asset, assetSize, in build_oem_asset_pkg()
120 (uint8_t *)assetPackage.encAsset, &assetSize, in build_oem_asset_pkg()
121 ((uint8_t *)assetPackage.encAsset)+assetSize, PROD_ASSET_TAG_SIZE); in build_oem_asset_pkg()
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/utils/src/cmpu_asset_pkg_util/lib/
Dmain.c137 uint8_t *asset, uint32_t assetSize, in build_asset_pkg() argument
159 (assetSize != PROD_ASSET_SIZE) || in build_asset_pkg()
170 assetPackage.assetSize = assetSize; in build_asset_pkg()
223 asset, assetSize, in build_asset_pkg()
224 (uint8_t *)assetPackage.encAsset, &assetSize, in build_asset_pkg()
225 ((uint8_t *)assetPackage.encAsset)+assetSize, PROD_ASSET_TAG_SIZE); in build_asset_pkg()
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/shared/include/cc_util/
Dcc_util_asset_prov_int.h39 uint32_t assetSize; member
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/shared/include/sbrom/
Dcc_asset_prov.h38 uint32_t assetSize; member
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/host/src/cc3x_productionlib/common/
Dprod_util.c68 (pPkgAsset->assetSize != PROD_ASSET_SIZE) || in CC_PROD_PkgVerify()
104 (uint8_t *)localPkgAsset.encAsset, localPkgAsset.assetSize, in CC_PROD_PkgVerify()
106 PROD_ASSET_TAG_SIZE, ((uint8_t *)localPkgAsset.encAsset) + localPkgAsset.assetSize, in CC_PROD_PkgVerify()
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/shared/include/proj/cc3x/
Dcc_production_asset.h69 uint32_t assetSize; member