Home
last modified time | relevance | path

Searched refs:modSizeInBytes (Results 1 – 5 of 5) sorted by relevance

/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/ec_wrst/
Dcc_ecpki_build_publ.c46 uint32_t modSizeInBytes, modSizeInWords; in CC_EcpkiPublKeyBuildAndCheck() local
79 modSizeInBytes = CALC_FULL_BYTES(pDomain->modSizeInBits); in CC_EcpkiPublKeyBuildAndCheck()
80 modSizeInWords = CALC_32BIT_WORDS_FROM_BYTES(modSizeInBytes); in CC_EcpkiPublKeyBuildAndCheck()
94 if (publKeySizeInBytes != modSizeInBytes + 1) in CC_EcpkiPublKeyBuildAndCheck()
97 if (publKeySizeInBytes != 2*modSizeInBytes + 1) in CC_EcpkiPublKeyBuildAndCheck()
109 pPubKeyIn + 1, modSizeInBytes); in CC_EcpkiPublKeyBuildAndCheck()
126 … pPubKeyIn + 1 + modSizeInBytes, modSizeInBytes); in CC_EcpkiPublKeyBuildAndCheck()
228 uint32_t modSizeInBytes, modSizeInWords; in CC_EcpkiPubKeyExport() local
258 modSizeInBytes = CALC_FULL_BYTES(publKey->domain.modSizeInBits); in CC_EcpkiPubKeyExport()
268 if (*pPublKeySizeBytes < modSizeInBytes + 1) in CC_EcpkiPubKeyExport()
[all …]
Dcc_ecdh.c51 uint32_t modSizeInBytes; in CC_EcdhSvdpDh() local
100 modSizeInBytes = CALC_FULL_BYTES(pDomain->modSizeInBits); in CC_EcdhSvdpDh()
103 if (*SharedSecrValSize_ptr < modSizeInBytes) { in CC_EcdhSvdpDh()
104 *SharedSecrValSize_ptr = modSizeInBytes; in CC_EcdhSvdpDh()
119 *SharedSecrValSize_ptr = modSizeInBytes; in CC_EcdhSvdpDh()
Dcc_ecies.c139 uint32_t modSizeInBytes, kdfDataSize; in EciesKemEncrypt() local
220 modSizeInBytes = CALC_FULL_BYTES(pDomain->modSizeInBits); in EciesKemEncrypt()
223 if (*pCipherDataSize < 2*modSizeInBytes + 1) in EciesKemEncrypt()
274 kdfDataSize = modSizeInBytes; in EciesKemEncrypt()
277 kdfDataSize = *pCipherDataSize + modSizeInBytes; in EciesKemEncrypt()
388 uint32_t modSizeInBytes, kdfDataSize; in CC_EciesKemDecrypt() local
440 modSizeInBytes = CALC_FULL_BYTES(pDomain->modSizeInBits); in CC_EciesKemDecrypt()
468 kdfDataSize = modSizeInBytes; in CC_EciesKemDecrypt()
471 kdfDataSize = cipherDataSize + modSizeInBytes; in CC_EciesKemDecrypt()
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/cc3x_sym/api/
Dmbedtls_cc_ecies.c189 uint32_t modSizeInBytes, kdfDataSize; in mbedtls_ecies_kem_encrypt_full() local
297 modSizeInBytes = CALC_FULL_BYTES(pDomain->modSizeInBits); in mbedtls_ecies_kem_encrypt_full()
300 if (*pCipherDataSize < 2 * modSizeInBytes + 1) in mbedtls_ecies_kem_encrypt_full()
302 …("Error - size mismatch dataSize[%u] keyDataSize[%u]\n", *pCipherDataSize, 2 * modSizeInBytes + 1); in mbedtls_ecies_kem_encrypt_full()
396 kdfDataSize = modSizeInBytes; in mbedtls_ecies_kem_encrypt_full()
401 kdfDataSize = *pCipherDataSize + modSizeInBytes; in mbedtls_ecies_kem_encrypt_full()
458 uint32_t modSizeInBytes, kdfDataSize; in mbedtls_ecies_kem_decrypt() local
546 modSizeInBytes = CALC_FULL_BYTES(pDomain->modSizeInBits); in mbedtls_ecies_kem_decrypt()
573 kdfDataSize = modSizeInBytes; in mbedtls_ecies_kem_decrypt()
578 kdfDataSize = cipherDataSize + modSizeInBytes; in mbedtls_ecies_kem_decrypt()
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/pki/ec_wrst/
Dec_wrst.c196 uint32_t ordSizeInWords, modSizeInWords, modSizeInBytes; in EcWrstDhDeriveSharedSecret() local
202 modSizeInBytes = CALC_FULL_BYTES(pPublKey->domain.modSizeInBits); in EcWrstDhDeriveSharedSecret()
231 CC_CommonReverseMemcpy(pSharedSecretValue, (uint8_t*)outPointX, modSizeInBytes); in EcWrstDhDeriveSharedSecret()