Home
last modified time | relevance | path

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

/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/pki/ec_edw/
Dec_edw.c348 mbedtls_md_context_t *p_hash_ctx = NULL; in EcEdwSign() local
375 p_hash_ctx = (mbedtls_md_context_t*)(pIntegrVal + 2*edwSizeWords); in EcEdwSign()
376 mbedtls_md_init(p_hash_ctx); in EcEdwSign()
377 err = mbedtls_md_setup(p_hash_ctx, md_info, 0); // 0 = HASH, not HMAC in EcEdwSign()
381 err = mbedtls_md_starts(p_hash_ctx); in EcEdwSign()
399 err = mbedtls_md_update(p_hash_ctx, (uint8_t*)pEphPriv/*h2*/, sizeToHash); in EcEdwSign()
404 … err = mbedtls_md_update(p_hash_ctx, (uint8_t*)pMsg+(sizeToHash - edwSizeBytes), msgSize1); in EcEdwSign()
408 err = mbedtls_md_finish(p_hash_ctx, (unsigned char *)pEphPriv); in EcEdwSign()
412 mbedtls_md_free(p_hash_ctx); in EcEdwSign()
413 p_hash_ctx = NULL; in EcEdwSign()
[all …]
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/kdf/
Dcc_kdf.c62 mbedtls_md_context_t *p_hash_ctx, in KdfHashUnalignUpdate() argument
84 error = mbedtls_md_update(p_hash_ctx, buff_ptr, blockSizeBytes); in KdfHashUnalignUpdate()
112 error = mbedtls_md_update(p_hash_ctx, data_ptr, dataSize); in KdfHashUnalignUpdate()