Searched refs:hashSize (Results 1 – 8 of 8) sorted by relevance
/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/utils/src/common/ |
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_crypto_sym.c | 423 int32_t hashSize) in CC_CommonCalcHash() argument 437 …if ((hashSize != HASH_SHA256_DIGEST_SIZE_IN_BYTES) && (hashSize != HASH_SHA256_DIGEST_SIZE_IN_BYTE… in CC_CommonCalcHash() 438 …est size is %d\n", HASH_SHA256_DIGEST_SIZE_IN_BYTES, HASH_SHA256_DIGEST_SIZE_IN_BYTES/2, hashSize); in CC_CommonCalcHash() 446 memcpy(pHash, hash, hashSize); in CC_CommonCalcHash()
|
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.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() 367 printf( "failed to CC_CommonCalcHBKFromFile %d or ilegal size %d\n", rc, hashSize); in SBU_GetHashOfNAndNpFromPubKey()
|
D | common_crypto_sym.h | 96 …CommonCalcHash(uint8_t *pPemDecryted, int32_t pemDecryptedSize, uint8_t *pHash, int32_t hashSize );
|
D | common_sb_ops.h | 236 SBUEXPORT_C int SBU_GetHashOfNAndNpFromPubKey(char* pPemFileName_ptr, char *pHash, int hashSize);
|
/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/utils/src/cc3x_boot_cert/x509cert_lib/ |
D | main.c | 907 …UEXPORT_C int SBU_x509_GetHashOfNAndNpFromPubKey(char* pPemFileName_ptr, char *pHash, int hashSize) in SBU_x509_GetHashOfNAndNpFromPubKey() argument 913 rc = CC_CommonCalcHBKFromFile(pPemFileName_ptr, pHash, hashSize); in SBU_x509_GetHashOfNAndNpFromPubKey() 915 printf( "failed to CC_CommonCalcHBKFromFile %d or ilegal size %d\n", rc, hashSize); in SBU_x509_GetHashOfNAndNpFromPubKey()
|
/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/ffcdh/ |
D | cc_ffcdh.c | 709 uint32_t hashSize, minHashSize; in CC_FfcDhCtxSetSchemeParams() local 760 …CHECK_ERROR(FfcGetHashMode(&hashMode, NULL/*pHkdfHashMode*/, NULL/*pBlockSize*/, &hashSize, ffcHas… in CC_FfcDhCtxSetSchemeParams() 773 CHECK_AND_SET_ERROR(hashSize < minHashSize, CC_FFCDH_INVALID_LOW_HASH_SIZE_ERROR); in CC_FfcDhCtxSetSchemeParams()
|