/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/host/src/tests/integration_cc3x/runtime_integration_test/tests/ |
D | run_integration_ecdsa.c | 181 unsigned char *pHash = NULL; in runIt_ecdsaPrimVectorsTest() local 197 ALLOC(hashPtr, pHash, 66); in runIt_ecdsaPrimVectorsTest() 207 memset(pHash, 0, 66); in runIt_ecdsaPrimVectorsTest() 217 hlen = runIt_unhexify(pHash, hash_str); in runIt_ecdsaPrimVectorsTest() 234 …RUNIT_ASSERT_API(mbedtls_ecdsa_sign(pGrp, &r, &s, &d, pHash, hlen, runIt_rndBufferRand, &rnd_info)… in runIt_ecdsaPrimVectorsTest() 237 RUNIT_ASSERT_API(mbedtls_ecdsa_verify(pGrp, pHash, hlen, pQ, &rCheck, &sCheck) == 0); in runIt_ecdsaPrimVectorsTest() 284 unsigned char *pHash = NULL; in runIt_ecdsaDetVectorsTest() local 306 ALLOC(hashPtr, pHash, MBEDTLS_MD_MAX_SIZE); in runIt_ecdsaDetVectorsTest() 314 memset(pHash, 0, MBEDTLS_MD_MAX_SIZE); in runIt_ecdsaDetVectorsTest() 330 RUNIT_ASSERT_API(mbedtls_md(md_info, (const unsigned char *) msg, strlen(msg), pHash) == 0); in runIt_ecdsaDetVectorsTest() [all …]
|
/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/utils/src/common/ |
D | common_crypto_sym.h | 96 int32_t CC_CommonCalcHash(uint8_t *pPemDecryted, int32_t pemDecryptedSize, uint8_t *pHash, int32_t … 106 int32_t CC_CommonCalcSha1(uint8_t *pDataIn, int32_t dataInSize, uint8_t *pHash);
|
D | common_crypto_sym.c | 422 uint8_t *pHash, in CC_CommonCalcHash() argument 431 (pHash == NULL)) { in CC_CommonCalcHash() 446 memcpy(pHash, hash, hashSize); in CC_CommonCalcHash() 462 uint8_t *pHash) in CC_CommonCalcSha1() argument 469 (pHash == NULL)) { in CC_CommonCalcSha1() 478 memcpy(pHash, hash, HASH_SHA1_DIGEST_SIZE_IN_BYTES); in CC_CommonCalcSha1()
|
D | common_rsa_keypair_util.c | 247 int32_t CC_CommonCalcHBKFromBuff(int8_t* pNBuff, uint8_t *pHash, int32_t hashSize) in CC_CommonCalcHBKFromBuff() argument 275 if (CC_CommonCalcHash((uint8_t *)&gNAndNp, sizeof(gNAndNp), pHash, hashSize) != 0) { in CC_CommonCalcHBKFromBuff() 299 int32_t CC_CommonCalcHBKFromFile(int8_t* pubKeyFileName_ptr, uint8_t *pHash, int32_t hashSize) in CC_CommonCalcHBKFromFile() argument 333 …cHash((uint8_t *)&gNAndNp, SB_CERT_RSA_KEY_SIZE_IN_BYTES+NP_SIZE_IN_BYTES, pHash, hashSize) != 0) { in CC_CommonCalcHBKFromFile()
|
D | common_rsa_keypair_util.h | 66 int32_t CC_CommonCalcHBKFromFile(int8_t* pubKeyFileName_ptr, uint8_t *pHash, int32_t hashSize);
|
D | common_sb_ops.h | 236 SBUEXPORT_C int SBU_GetHashOfNAndNpFromPubKey(char* pPemFileName_ptr, char *pHash, int hashSize);
|
D | common_sb_ops.c | 359 SBUEXPORT_C int SBU_GetHashOfNAndNpFromPubKey(char* pPemFileName_ptr, char *pHash, int hashSize) in SBU_GetHashOfNAndNpFromPubKey() argument 365 rc = CC_CommonCalcHBKFromFile(pPemFileName_ptr, pHash, hashSize); in SBU_GetHashOfNAndNpFromPubKey()
|
/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/utils/src/cc3x_boot_cert/x509cert_lib/ |
D | main.c | 907 SBUEXPORT_C int SBU_x509_GetHashOfNAndNpFromPubKey(char* pPemFileName_ptr, char *pHash, int hashSiz… in SBU_x509_GetHashOfNAndNpFromPubKey() argument 913 rc = CC_CommonCalcHBKFromFile(pPemFileName_ptr, pHash, hashSize); in SBU_x509_GetHashOfNAndNpFromPubKey()
|
/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/pki/ec_edw/ |
D | ec_edw.c | 344 uint32_t *pHash = pSign + 2*edwSizeWords; /*second part of */ in EcEdwSign() local 345 uint32_t *pIntegrVal/*hram*/ = pHash + CC_HASH_SHA512_DIGEST_SIZE_IN_WORDS; in EcEdwSign()
|