Home
last modified time | relevance | path

Searched refs:modPsizeBytes (Results 1 – 2 of 2) sorted by relevance

/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/dh/
Dcc_dh.c671 size_t modPsizeBytes, /*in */ in CC_DhCheckPubKey() argument
714 if (modPsizeBytes > CC_DH_MAX_VALID_KEY_SIZE_VALUE_IN_BITS / 8) in CC_DhCheckPubKey()
717 if (orderQsizeBytes > modPsizeBytes) in CC_DhCheckPubKey()
720 if (pubKeySizeBytes > modPsizeBytes) in CC_DhCheckPubKey()
729 …CC_CommonConvertMsbLsbBytesToLswMswWords(tmpPubKey_ptr->n, modPsizeBytes, modP_ptr, modPsizeBytes); in CC_DhCheckPubKey()
735 …Error = CC_CommonConvertMsbLsbBytesToLswMswWords(tmpPubKey_ptr->e, modPsizeBytes, orderQ_ptr, orde… in CC_DhCheckPubKey()
741 …CommonConvertMsbLsbBytesToLswMswWords(tempBuff_ptr->PrimeData.DataIn, modPsizeBytes, pubKey_ptr, p… in CC_DhCheckPubKey()
748 …modPsizeBits = CC_MIN(8*modPsizeBytes, CC_CommonGetWordsCounterEffectiveSizeInBits(tmpPubKey_ptr… in CC_DhCheckPubKey()
786 (uint16_t)modPsizeBytes/4); in CC_DhCheckPubKey()
827 CC_PalMemSetZero((uint8_t*)&tmpPubKey_ptr->n, modPsizeBytes); in CC_DhCheckPubKey()
[all …]
Dcc_dh_kg.c1362 uint32_t modPsizeBytes, /*in */ in CC_DhCheckDomainParams() argument
1402 if (modPsizeBytes < CC_DH_MIN_VALID_KEY_SIZE_VALUE_IN_BITS / 8 || in CC_DhCheckDomainParams()
1403 modPsizeBytes % CC_BITS_IN_32BIT_WORD != 0 || in CC_DhCheckDomainParams()
1404 modPsizeBytes > CC_DH_MAX_MOD_SIZE_IN_BYTES) { in CC_DhCheckDomainParams()
1410 orderQsizeBytes > modPsizeBytes/4) { in CC_DhCheckDomainParams()
1445 modPsizeWords = CALC_32BIT_WORDS_FROM_BYTES(modPsizeBytes); in CC_DhCheckDomainParams()
1458 CC_CommonReverseMemcpy((uint8_t*)P_ptr, modP_ptr, modPsizeBytes); in CC_DhCheckDomainParams()
1461 …modPsizeBits = CC_MIN(8*modPsizeBytes, CC_CommonGetBytesCounterEffectiveSizeInBits((uint8_t*)P_ptr… in CC_DhCheckDomainParams()
1496 if (CC_PalMemCmp(modP_ptr, (uint8_t*)P_ptr, modPsizeBytes) != 0) { in CC_DhCheckDomainParams()
1523 modPsizeBytes, /*in */ in CC_DhCheckDomainParams()