Home
last modified time | relevance | path

Searched refs:NP_SIZE_IN_BYTES (Results 1 – 15 of 15) sorted by relevance

/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/utils/src/common/
Dcommon_rsa_keypair_util.c30 uint8_t gNp[NP_SIZE_IN_BYTES] = {0};
160 memcpy(pNandNpBuff->pNpBuff, gNp, NP_SIZE_IN_BYTES); in CC_CommonGetNAndNpFromKeyPair()
161 *pNAndNpSize = (SB_CERT_RSA_KEY_SIZE_IN_BYTES+NP_SIZE_IN_BYTES); in CC_CommonGetNAndNpFromKeyPair()
163 UTIL_LOG_BYTE_BUFF("gNp", gNp, NP_SIZE_IN_BYTES); in CC_CommonGetNAndNpFromKeyPair()
224 memcpy(pNandNpBuff->pNpBuff, gNp, NP_SIZE_IN_BYTES); in CC_CommonGetNAndNpFromPubKey()
225 *pNAndNpSize = (SB_CERT_RSA_KEY_SIZE_IN_BYTES+NP_SIZE_IN_BYTES); in CC_CommonGetNAndNpFromPubKey()
227 UTIL_LOG_BYTE_BUFF("gNp", gNp, NP_SIZE_IN_BYTES); in CC_CommonGetNAndNpFromPubKey()
268 UTIL_LOG_BYTE_BUFF("gNp", gNp, NP_SIZE_IN_BYTES); in CC_CommonCalcHBKFromBuff()
271 memcpy(gNAndNp.pNpBuff, gNp, NP_SIZE_IN_BYTES); in CC_CommonCalcHBKFromBuff()
325 UTIL_LOG_BYTE_BUFF("gNp", gNp, NP_SIZE_IN_BYTES); in CC_CommonCalcHBKFromFile()
[all …]
Dcommon_rsa_keypair.c189 NP_res = (int8_t*)malloc(NP_SIZE_IN_BYTES); in CC_CommonRSACalculateNpInt()
221 memset (NP_ptr, 0, NP_SIZE_IN_BYTES); in CC_CommonRSACalculateNpInt()
222 memcpy ((uint8_t *)(NP_ptr + (NP_SIZE_IN_BYTES - len)), (int8_t *)NP_res, len); in CC_CommonRSACalculateNpInt()
237 memset (NP_ptr, 0, (NP_SIZE_IN_BYTES * 2 + 2)); in CC_CommonRSACalculateNpInt()
238 memcpy ((int8_t *)(NP_ptr + (NP_SIZE_IN_BYTES * 2 + 2 - len)), (int8_t *)NP_res, len); in CC_CommonRSACalculateNpInt()
Dcommon_rsa_keypair_util.h17 uint8_t pNpBuff[NP_SIZE_IN_BYTES];
Dcommon_rsa_keypair.h30 #define NP_SIZE_IN_BYTES 20 macro
Dcommon_sb_ops.c302 int nAndNpSize = SB_CERT_RSA_KEY_SIZE_IN_BYTES+NP_SIZE_IN_BYTES; in SBU_GetNAndNpFromKeyPair()
335 int nAndNpSize = SB_CERT_RSA_KEY_SIZE_IN_BYTES+NP_SIZE_IN_BYTES; in SBU_GetNAndNpFromPubKey()
/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/utils/src/dmpu_asset_pkg_util/common/
Ddmpu_util_crypto_helper.py20 NP_SIZE_IN_BYTES = 20 variable
35 return(PUBKEY_SIZE_BYTES + NP_SIZE_IN_BYTES)
43 for i in range(PUBKEY_SIZE_BYTES + NP_SIZE_IN_BYTES):
78 publicKey = create_string_buffer(PUBKEY_SIZE_BYTES + NP_SIZE_IN_BYTES)
92 publicKey = create_string_buffer(PUBKEY_SIZE_BYTES + NP_SIZE_IN_BYTES)
Ddmpu_utils.h31 uint8_t oemMainPubKey[ SB_CERT_RSA_KEY_SIZE_IN_BYTES+NP_SIZE_IN_BYTES];
32 uint8_t oemEncPubKey[ SB_CERT_RSA_KEY_SIZE_IN_BYTES+NP_SIZE_IN_BYTES];
/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/utils/src/cc3x_boot_cert/common_utils/
Dcert_dbg_util_data.py28 return(PUBKEY_SIZE_BYTES + NP_SIZE_IN_BYTES)
36 for i in range(PUBKEY_SIZE_BYTES + NP_SIZE_IN_BYTES):
Dglobal_defines.py25 NP_SIZE_IN_BYTES = 20 variable
26 NP_SIZE_IN_WORDS = (NP_SIZE_IN_BYTES//BYTES_WITHIN_WORD)
Dcert_dbg_util_gen.py21 publicKey = create_string_buffer(RSA_SIGNATURE_SIZE_BYTES + NP_SIZE_IN_BYTES)
34 publicKey = create_string_buffer(RSA_SIGNATURE_SIZE_BYTES + NP_SIZE_IN_BYTES)
Dkey_data_structures.py134 return(RSA_SIGNATURE_SIZE_IN_BYTES + NP_SIZE_IN_BYTES)
142 for i in range(RSA_SIGNATURE_SIZE_IN_BYTES + NP_SIZE_IN_BYTES):
Dcert_cfg_parser_util.py371 certLength =certLength + PUBKEY_SIZE_BYTES + NP_SIZE_IN_BYTES # certificate public key + Np
/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/utils/src/dmpu_asset_pkg_util/oem_key_request/
Ddmpu_oem_key_request_util.py108 …_CERT_HEADER_SIZE_IN_BYTES + PUBKEY_SIZE_BYTES + NP_SIZE_IN_BYTES + PUBKEY_SIZE_BYTES + NP_SIZE_IN…
/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/utils/src/dmpu_asset_pkg_util/icv_key_response/lib/
Dmain.c124 SB_CERT_RSA_KEY_SIZE_IN_BYTES+NP_SIZE_IN_BYTES, in generateIcvKeyRespPkg()
/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/utils/src/cc3x_boot_cert/x509cert_lib/
Dmain.c505 UTIL_LOG_BYTE_BUFF("pNAndNp", (uint8_t *)pNAndNp.pNpBuff, NP_SIZE_IN_BYTES); in SBU_x509_AddPubKeyNpBuffExtension()
507 …ringExtension(gpCertBuff, gCertType, CC_X509_ID_EXT_PUB_KEY_NP, pNAndNp.pNpBuff, NP_SIZE_IN_BYTES); in SBU_x509_AddPubKeyNpBuffExtension()