Home
last modified time | relevance | path

Searched refs:pNonce (Results 1 – 13 of 13) sorted by relevance

/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/cc3x_sym/api/
Dmbedtls_cc_chacha_poly.c18 mbedtls_chacha_nonce pNonce, in mbedtls_chacha_poly() argument
46 (pNonce == NULL) || in mbedtls_chacha_poly()
63 …rc = mbedtls_chacha(pNonce, CC_CHACHA_Nonce96BitSize, pKey, 0, CC_CHACHA_Encrypt, chachaInState, s… in mbedtls_chacha_poly()
73 …rc = mbedtls_chacha(pNonce, CC_CHACHA_Nonce96BitSize, pKey, 1, encryptDecryptFlag, (uint8_t *)pDat… in mbedtls_chacha_poly()
97 …rc = mbedtls_chacha(pNonce, CC_CHACHA_Nonce96BitSize, pKey, 1, encryptDecryptFlag, (uint8_t *)pDat… in mbedtls_chacha_poly()
Dmbedtls_chacha_ext_dma.c33 int mbedtls_ext_dma_chacha_init(uint8_t * pNonce, in mbedtls_ext_dma_chacha_init() argument
52 if (pNonce == NULL) { in mbedtls_ext_dma_chacha_init()
82 CC_PalMemCopy((uint8_t *)nonceBuffer, pNonce, nonceSizeBytes); in mbedtls_ext_dma_chacha_init()
Dmbedtls_cc_chacha.c93 mbedtls_chacha_nonce pNonce, in mbedtls_chacha_init() argument
124 if (pNonce == NULL) { in mbedtls_chacha_init()
157 CC_PalMemCopy(chachaCtx->nonceBuf, pNonce, nonceSizeBytes); in mbedtls_chacha_init()
207 CIMPORT_C CCError_t mbedtls_chacha(mbedtls_chacha_nonce pNonce, in mbedtls_chacha() argument
235 …Error = mbedtls_chacha_init(&UserContext, pNonce, nonceSize, pKey, initialCounter, encryptDecryptF… in mbedtls_chacha()
Dmbedtls_ccm_internal.c35 const uint8_t *pNonce, in ccm_init() argument
57 if (pNonce == NULL) in ccm_init()
80 if (pNonce[MBEDTLS_AESCCM_STAR_NONCE_SIZE_BYTES - 1] != securityLevelField) { in ccm_init()
136 CC_PalMemCopy(tempBuff + 1, pNonce, sizeOfN); in ccm_init()
162 CC_PalMemCopy(ctrStateBuf + 1, pNonce, sizeOfN); in ccm_init()
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/psa_driver_api/src/
Dcc3xx_internal_ccm.c132 const uint8_t *pNonce, uint8_t sizeOfN, in ccm_init() argument
150 if (pNonce == NULL) { in ccm_init()
160 securityField = pNonce[CC3XX_CCM_STAR_NONCE_SIZE_BYTES - 1]; in ccm_init()
174 if (pNonce[CC3XX_CCM_STAR_NONCE_SIZE_BYTES - 1] != securityLevelField) { in ccm_init()
224 CC_PalMemCopy(tempBuff + 1, pNonce, sizeOfN); in ccm_init()
250 CC_PalMemCopy(ctrStateBuf + 1, pNonce, sizeOfN); in ccm_init()
753 const uint8_t *pNonce, in cc3xx_ccm_set_nonce() argument
767 if (NULL == ctx || NULL == pNonce) { in cc3xx_ccm_set_nonce()
777 securityField = pNonce[CC3XX_CCM_STAR_NONCE_SIZE_BYTES - 1]; in cc3xx_ccm_set_nonce()
788 if (pNonce[CC3XX_CCM_STAR_NONCE_SIZE_BYTES - 1] != securityLevelField) { in cc3xx_ccm_set_nonce()
[all …]
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/shared/include/crypto_api/cc3x/
Dmbedtls_cc_chacha.h115 mbedtls_chacha_nonce pNonce, /*!< [in] A buffer containing a nonce. */
181 … mbedtls_chacha_nonce pNonce, /*!< [in] A buffer containing a nonce. */
Dmbedtls_chacha_ext_dma.h42 uint8_t * pNonce,
Dmbedtls_cc_chacha_poly.h43 …mbedtls_chacha_nonce pNonce, /*!< [in] A pointer to a buffer containing th…
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/host/src/tests/integration_cc3x/runtime_integration_test/tests/
Drun_integration_chacha.c132 …static mbedtls_chacha_nonce pNonce = { 0x07, 0x00, 0x00, 0x00, 0x40, 0x41, 0x42, 0x43, 0x44, 0x45,… in runIt_ChachaPolyEncrypt() local
162 pNonce, in runIt_ChachaPolyEncrypt()
198 …static mbedtls_chacha_nonce pNonce = {0x00,0x00,0x00,0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08}; in runIt_ChachaPolyDecrypt() local
230 pNonce, in runIt_ChachaPolyDecrypt()
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/host/src/cc3x_productionlib/common/
Dprod_crypto_driver.h29 uint8_t *pNonce,
Dprod_crypto_driver.c39 uint8_t *pNonce, in CC_PROD_AesCcmDecrypt() argument
70 pNonce, nonceSizeInBytes, in CC_PROD_AesCcmDecrypt()
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/psa_driver_api/include/
Dcc3xx_internal_ccm.h90 const uint8_t *pNonce,
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/utils/src/cc3x_boot_cert/x509cert_lib/
Dmain.c618 uint8_t *pNonce, in SBU_x509_AddContentCertBodyExtension() argument
630 (pNonce == NULL)) { in SBU_x509_AddContentCertBodyExtension()
637 memcpy((uint8_t *)certBody.nonce, pNonce, sizeof(CCSbNonce_t)); in SBU_x509_AddContentCertBodyExtension()