Home
last modified time | relevance | path

Searched refs:pHash (Results 1 – 9 of 9) sorted by relevance

/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/host/src/tests/integration_cc3x/runtime_integration_test/tests/
Drun_integration_ecdsa.c181 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/
Dcommon_crypto_sym.h96 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);
Dcommon_crypto_sym.c422 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()
Dcommon_rsa_keypair_util.c247 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()
Dcommon_rsa_keypair_util.h66 int32_t CC_CommonCalcHBKFromFile(int8_t* pubKeyFileName_ptr, uint8_t *pHash, int32_t hashSize);
Dcommon_sb_ops.h236 SBUEXPORT_C int SBU_GetHashOfNAndNpFromPubKey(char* pPemFileName_ptr, char *pHash, int hashSize);
Dcommon_sb_ops.c359 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/
Dmain.c907 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/
Dec_edw.c344 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()