Home
last modified time | relevance | path

Searched refs:modPsizeBits (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_kg.c490 uint32_t modPsizeBits, /*in */ in DhX942FindPrimeP() argument
567 modSizeBytes = CALC_FULL_BYTES(modPsizeBits); in DhX942FindPrimeP()
568 modSizeWords = CALC_FULL_32BIT_WORDS(modPsizeBits); in DhX942FindPrimeP()
570 L1 = (modPsizeBits + CC_DH_SEED_MIN_SIZE_IN_BITS - 1) / CC_DH_SEED_MIN_SIZE_IN_BITS; in DhX942FindPrimeP()
605 if (modPsizeBits < 3072) { in DhX942FindPrimeP()
743 …if (*pgenCounter_ptr >= DH_X942_PGEN_COUNTER_CONST*(modPsizeBits + DH_X942_PRIME_MOD_MIN_VAL - 1)/… in DhX942FindPrimeP()
945 uint32_t modPsizeBits, /*in */ in DhCreateDomainParams() argument
1000 modSizeBytes = CALC_FULL_BYTES(modPsizeBits); in DhCreateDomainParams()
1026 modPsizeBits, /*in */ in DhCreateDomainParams()
1048modPsizeBits, /*in */ in DhCreateDomainParams()
[all …]
Dcc_dh.c685 uint32_t modPsizeBits; in CC_DhCheckPubKey() local
748modPsizeBits = CC_MIN(8*modPsizeBytes, CC_CommonGetWordsCounterEffectiveSizeInBits(tmpPubKey_ptr… in CC_DhCheckPubKey()
753 if (modPsizeBits < CC_DH_MIN_VALID_KEY_SIZE_VALUE_IN_BITS || in CC_DhCheckPubKey()
754 modPsizeBits % 256 != 0 || in CC_DhCheckPubKey()
755 modPsizeBits > CC_DH_MAX_VALID_KEY_SIZE_VALUE_IN_BITS) { in CC_DhCheckPubKey()
766 if (pubKeySizeBits > modPsizeBits || in CC_DhCheckPubKey()
802 tmpPubKey_ptr->nSizeInBits = modPsizeBits; in CC_DhCheckPubKey()