/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/shared/include/pal/ |
D | cc_pal_types.h | 64 #define CALC_FULL_BYTES(numBits) ((numBits)/CC_BITS_IN_BYTE + (((numBits) & (CC_BITS_IN_BYTE… 77 #define ROUNDUP_BITS_TO_BYTES(numBits) (CALC_FULL_BYTES(numBits) * CC_BITS_IN_BYTE) 83 #define CC_BITS_IN_BYTE 8 macro
|
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/shared/include/crypto_api/ |
D | cc_rsa_types.h | 43 …SA_MAX_VALID_KEY_SIZE_VALUE_IN_BYTES (CC_RSA_MAX_VALID_KEY_SIZE_VALUE_IN_BITS / CC_BITS_IN_BYTE) 529 …uint8_t decBuff[((CC_RSA_MIN_VALID_KEY_SIZE_VALUE_IN_BITS/CC_BITS_IN_BYTE) - 2*(CC_HASH_SH… 531 uint8_t encBuff[CC_RSA_FIPS_MODULUS_SIZE_BITS/CC_BITS_IN_BYTE]; 557 uint8_t encBuff[CC_RSA_FIPS_MODULUS_SIZE_BITS/CC_BITS_IN_BYTE]; 559 …uint8_t decBuff[((CC_RSA_FIPS_MODULUS_SIZE_BITS/CC_BITS_IN_BYTE) - 2*(CC_HASH_SHA1_DIGEST_SIZE… 562 …uint8_t signBuff[CC_RSA_FIPS_MODULUS_SIZE_BITS/CC_BITS_IN_BYTE]; // used for RsaSign and R…
|
D | cc_ffc_domain.h | 33 #define CC_FFC_DOMAIN_MAX_MOD_SIZE_IN_BYTES (CC_FFC_DOMAIN_MAX_MOD_SIZE_IN_BITS / CC_BITS_IN_BYTE) 44 …OMAIN_MAX_GENER_ORDER_SIZE_IN_BYTES (CC_FFC_DOMAIN_MAX_GENER_ORDER_SIZE_IN_BITS / CC_BITS_IN_BYTE)
|
D | cc_ffcdh.h | 45 …fine CC_FFCDH_MAX_MOD_SIZE_IN_BYTES (CC_FFCDH_MAX_VALID_KEY_SIZE_VALUE_IN_BITS / CC_BITS_IN_BYTE) 54 …e CC_FFCDH_MAX_GENER_ORDER_SIZE_IN_BYTES (CC_FFCDH_MAX_GENER_ORDER_SIZE_IN_BITS / CC_BITS_IN_BYTE)
|
D | cc_ecpki_types.h | 446 #define CC_ECPKI_FIPS_ORDER_LENGTH (256/CC_BITS_IN_BYTE) // the order of secp256r1 in bytes
|
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/rsa/ |
D | cc_rsa_kg.c | 251 … CC_CommonReverseMemcpy(rsaKgOutParams.nModulus, (uint8_t*)pCcPubKey->n, KeySize/CC_BITS_IN_BYTE); in CC_RsaKgKeyPairGenerate() 252 …verseMemcpy(rsaKgOutParams.pPrim, (uint8_t*)KeyGenData_ptr->KGData.p, KeySize/(2*CC_BITS_IN_BYTE)); in CC_RsaKgKeyPairGenerate() 253 …verseMemcpy(rsaKgOutParams.qPrim, (uint8_t*)KeyGenData_ptr->KGData.q, KeySize/(2*CC_BITS_IN_BYTE)); in CC_RsaKgKeyPairGenerate() 254 …(rsaKgOutParams.dPrivExponent, (uint8_t*)pCcPrivKey->PriveKeyDb.NonCrt.d, KeySize/CC_BITS_IN_BYTE); in CC_RsaKgKeyPairGenerate() 415 … CC_CommonReverseMemcpy(rsaKgOutParams.nModulus, (uint8_t*)pCcPubKey->n, KeySize/CC_BITS_IN_BYTE); in CC_RsaKgKeyPairCrtGenerate() 416 …everseMemcpy(rsaKgOutParams.pPrim, (uint8_t*)KeyGenData_ptr->KGData.p,KeySize/(2*CC_BITS_IN_BYTE)); in CC_RsaKgKeyPairCrtGenerate() 417 …verseMemcpy(rsaKgOutParams.qPrim, (uint8_t*)KeyGenData_ptr->KGData.q, KeySize/(2*CC_BITS_IN_BYTE)); in CC_RsaKgKeyPairCrtGenerate() 418 CC_CommonReverseMemcpy(rsaKgOutParams.dPrivExponent, NULL, KeySize/CC_BITS_IN_BYTE); in CC_RsaKgKeyPairCrtGenerate()
|
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/shared/include/crypto_api/cc3x/ |
D | mbedtls_cc_srp.h | 68 #define CC_SRP_MAX_MODULUS (CC_SRP_MAX_MODULUS_IN_BITS/CC_BITS_IN_BYTE) 76 #define CC_SRP_PRIV_NUM_MIN_SIZE (CC_SRP_PRIV_NUM_MIN_SIZE_IN_BITS/CC_BITS_IN_BYTE) 82 #define CC_SRP_PRIV_NUM_MAX_SIZE (CC_SRP_PRIV_NUM_MAX_SIZE_IN_BITS/CC_BITS_IN_BYTE)
|
D | cc_ec_mont_api.h | 38 …ONT_MOD_SIZE_IN_BYTES ((CC_EC_MONT_MOD_SIZE_IN_BITS + CC_BITS_IN_BYTE - 1) / CC_BITS_IN_BYTE)
|
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/shared/include/proj/cc3x/ |
D | cc_pka_hw_plat_defs.h | 43 #define SB_CERT_RSA_KEY_SIZE_IN_BYTES (SB_CERT_RSA_KEY_SIZE_IN_BITS/CC_BITS_IN_BYTE)
|
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/host/src/cc3x_lib/ |
D | cc_util_cmac.c | 45 if (derivedKeySize * CC_BITS_IN_BYTE > 0xFF) { in UtilCmacBuildDataForDerivation() 81 length = derivedKeySize * CC_BITS_IN_BYTE; in UtilCmacBuildDataForDerivation()
|
D | mbedtls_cc_util_asset_prov.c | 104 …(&ccmCtx, MBEDTLS_CIPHER_ID_AES, keyProv, CC_UTIL_AES_CMAC_RESULT_SIZE_IN_BYTES * CC_BITS_IN_BYTE); in mbedtls_util_asset_pkg_unpack()
|
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/pki/common/ |
D | pka_defs.h | 28 #define PKA_WORD_SIZE_IN_BYTES (CC_PKA_WORD_SIZE_IN_BITS/CC_BITS_IN_BYTE)
|
D | pki.c | 269 …uint32_t regSizeInBits = ((CC_PKA_SRAM_SIZE_IN_KBYTES*CC_1K_SIZE_IN_BYTES*CC_BITS_IN_BYTE)/PKA_MAX… in PkiClearAllPka()
|
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/utils/src/dmpu_asset_pkg_util/common/ |
D | dmpu_common.c | 105 dataIn[index++] = outKeySize*CC_BITS_IN_BYTE; // size of the key in bits in AesCmacKeyDerivation()
|
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/host/src/cc3x_productionlib/common/ |
D | prod_crypto_driver.c | 63 … rc = mbedtls_ccm_setkey(pCtx, MBEDTLS_CIPHER_ID_AES, pKey, keySizeInBytes * CC_BITS_IN_BYTE); in CC_PROD_AesCcmDecrypt() 242 …dataIn[dataInSize++] = CC_AES_BLOCK_SIZE_IN_BYTES * CC_BITS_IN_BYTE; // all derived keys are 128… in CC_PROD_KeyDerivation()
|
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/ffc_domain/ |
D | cc_ffc_domain.c | 408 CHECK_ERROR(FfcGetCountOfRabMilTests(&countRabMilTests, orderSizeBytes*CC_BITS_IN_BYTE)); in FfcFips186v4FindOrderQ() 542 CHECK_ERROR(FfcGetCountOfRabMilTests(&countRabMilTests, primeSizeBytes*CC_BITS_IN_BYTE)); in FfcFips186v4FindPrimeP() 560 for(counter = 0; counter < 4*primeSizeBytes*CC_BITS_IN_BYTE; counter++) { in FfcFips186v4FindPrimeP() 852 …CHECK_AND_SET_ERROR(primeSizeBits != primeSizeBytes*CC_BITS_IN_BYTE, CC_FFC_DOMAIN_INVALID_PRIME_S… in FfcDomainMinCheckInput() 853 …CHECK_AND_SET_ERROR(orderSizeBits != orderSizeBytes*CC_BITS_IN_BYTE, CC_FFC_DOMAIN_INVALID_ORDER_S… in FfcDomainMinCheckInput() 1135 primeSizeBytes = primeSizeBits/CC_BITS_IN_BYTE; in CC_FfcValidateAndImportDomain() 1136 orderSizeBytes = orderSizeBits/CC_BITS_IN_BYTE; in CC_FfcValidateAndImportDomain()
|
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/pki/rsa/ |
D | rsa_genkey.c | 1391 CC_PalMemCopy(pCcPrivKey->n, pCcPubKey->n, pCcPubKey->nSizeInBits / CC_BITS_IN_BYTE); in RsaCalculateNandD() 1560 CC_CommonReverseMemcpy(primeInt->xPrime, (uint8_t *)pPrime, primeSizeInBits/CC_BITS_IN_BYTE); in RsaKgFindPrime() 1767 … CC_PalMemCopy( RSA_KG_debugPvect, (uint8_t*)pKeyGenData->KGData.p, KeySize/(2*CC_BITS_IN_BYTE) ); in RsaGenPandQ() 1768 … CC_PalMemCopy( RSA_KG_debugQvect, (uint8_t*)pKeyGenData->KGData.q, KeySize/(2*CC_BITS_IN_BYTE) ); in RsaGenPandQ() 1772 … CC_PalMemCopy( (uint8_t*)pKeyGenData->KGData.p, RSA_KG_debugPvect, KeySize/(2*CC_BITS_IN_BYTE) ); in RsaGenPandQ() 1773 … CC_PalMemCopy( (uint8_t*)pKeyGenData->KGData.q, RSA_KG_debugQvect, KeySize/(2*CC_BITS_IN_BYTE) ); in RsaGenPandQ() 1810 CC_PalMemCopy( RSA_KG_debugPvect, (uint8_t*)pPrimeP, KeySize/(2*CC_BITS_IN_BYTE) ); in RsaGenPandQ() 1811 CC_PalMemCopy( RSA_KG_debugQvect, (uint8_t*)pPrimeQ, KeySize/(2*CC_BITS_IN_BYTE) ); in RsaGenPandQ()
|
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/utils/src/cc3x_asset_prov_rt/lib/ |
D | main.c | 94 dataIn[i] = outKeySize*CC_BITS_IN_BYTE; // size of the key in bits in AesCmacKeyDerivation()
|
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/utils/src/cmpu_asset_pkg_util/lib/ |
D | main.c | 106 dataIn[index++] = outKeySize*CC_BITS_IN_BYTE; // size of the key in bits in AesCmacKeyDerivation()
|
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/secure_boot_debug/secure_debug/cc3x/ |
D | secdebug_defs.h | 26 #define CC_BSV_SEC_DEBUG_DCU_SIZE_IN_BYTES (CC_BSV_SEC_DEBUG_DCU_SIZE_IN_BITS/CC_BITS_IN_BYTE)
|
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/ffcdh/ |
D | cc_ffcdh.c | 918 primeModSize*CC_BITS_IN_BYTE, /*P size in bits*/ in FfcDhGenKeyPair() 1803 primeSizeWords*CC_BITS_IN_BYTE, /*P size in bits*/ in FfcDhCalcSharedSecretVal() 2516 pDomain->prime/**pMod*/, primeSizeBytes*CC_BITS_IN_BYTE /*modSizeBits*/, in CC_FfcDhGetSharedSecretVal()
|
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/pki/ec_edw/ |
D | ec_edw.c | 785 err = PkaInitPka(CC_HASH_SHA512_DIGEST_SIZE_IN_BYTES*CC_BITS_IN_BYTE, in EcEdwSignVerify()
|