/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/cc3x_sym/driver/ |
D | srp_driver.c | 42 mbedtls_md_context_t hash_ctx; in SRP_kMultiplierCalc() local 51 mbedtls_md_init(&hash_ctx); in SRP_kMultiplierCalc() 52 rc = mbedtls_md_setup(&hash_ctx, md_info, 0); // 0 = HASH, not HMAC in SRP_kMultiplierCalc() 56 rc = mbedtls_md_starts(&hash_ctx); in SRP_kMultiplierCalc() 60 rc = mbedtls_md_update(&hash_ctx, pCtx->groupParam.modulus, modSize); in SRP_kMultiplierCalc() 67 rc = mbedtls_md_update(&hash_ctx, (uint8_t *)pCtx->ephemPriv, modSize); in SRP_kMultiplierCalc() 71 rc = mbedtls_md_finish(&hash_ctx, (unsigned char *)hashResultBuff); in SRP_kMultiplierCalc() 85 mbedtls_md_free(&hash_ctx); in SRP_kMultiplierCalc() 237 mbedtls_md_context_t hash_ctx; in SRP_uScrambleCalc() local 275 md_ctx = &hash_ctx; in SRP_uScrambleCalc() [all …]
|
/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/kdf/ |
D | cc_kdf.c | 244 mbedtls_md_context_t hash_ctx; in CC_KdfKeyDerivFunc() local 306 mbedtls_md_init(&hash_ctx); in CC_KdfKeyDerivFunc() 307 error = mbedtls_md_setup(&hash_ctx, md_info, 0); // 0 = HASH, not HMAC in CC_KdfKeyDerivFunc() 321 error = mbedtls_md_starts(&hash_ctx); in CC_KdfKeyDerivFunc() 333 error = KdfHashUnalignUpdate(&hash_ctx, in CC_KdfKeyDerivFunc() 347 error = KdfHashUnalignUpdate(&hash_ctx, in CC_KdfKeyDerivFunc() 377 error = KdfHashUnalignUpdate(&hash_ctx, in CC_KdfKeyDerivFunc() 401 &hash_ctx, in CC_KdfKeyDerivFunc() 421 error = mbedtls_md_update(&hash_ctx, pTemp, remBuffSize); in CC_KdfKeyDerivFunc() 431 error = mbedtls_md_finish(&hash_ctx, (unsigned char *)hashResultBuff); in CC_KdfKeyDerivFunc() [all …]
|
/trusted-firmware-m-3.7.0/lib/ext/t_cose/crypto_adapters/ |
D | t_cose_psa_crypto.c | 345 enum t_cose_err_t t_cose_crypto_hash_start(struct t_cose_crypto_hash *hash_ctx, in t_cose_crypto_hash_start() argument 354 hash_ctx->ctx = psa_hash_operation_init(); in t_cose_crypto_hash_start() 357 hash_ctx->status = psa_hash_setup(&(hash_ctx->ctx), psa_alg); in t_cose_crypto_hash_start() 360 return psa_status_to_t_cose_error_hash((psa_status_t)hash_ctx->status); in t_cose_crypto_hash_start() 367 void t_cose_crypto_hash_update(struct t_cose_crypto_hash *hash_ctx, in t_cose_crypto_hash_update() argument 370 if(hash_ctx->status != PSA_SUCCESS) { in t_cose_crypto_hash_update() 384 hash_ctx->status = psa_hash_update(&(hash_ctx->ctx), in t_cose_crypto_hash_update() 394 t_cose_crypto_hash_finish(struct t_cose_crypto_hash *hash_ctx, in t_cose_crypto_hash_finish() argument 398 if(hash_ctx->status != PSA_SUCCESS) { in t_cose_crypto_hash_finish() 404 hash_ctx->status = psa_hash_finish(&(hash_ctx->ctx), in t_cose_crypto_hash_finish() [all …]
|
/trusted-firmware-m-3.7.0/lib/ext/t_cose/src/ |
D | t_cose_util.c | 170 struct t_cose_crypto_hash hash_ctx; in create_tbs_hash() local 223 return_value = t_cose_crypto_hash_start(&hash_ctx, hash_alg_id); in create_tbs_hash() 245 t_cose_crypto_hash_update(&hash_ctx, in create_tbs_hash() 252 t_cose_crypto_hash_update(&hash_ctx, payload); in create_tbs_hash() 255 return_value = t_cose_crypto_hash_finish(&hash_ctx, in create_tbs_hash()
|
D | t_cose_mac0_verify.c | 41 struct t_cose_crypto_hash hash_ctx; in short_circuit_verify() local 52 return_value = t_cose_crypto_hash_start(&hash_ctx, hash_alg_id); in short_circuit_verify() 58 t_cose_crypto_hash_update(&hash_ctx, q_useful_buf_head(header, header.len)); in short_circuit_verify() 61 t_cose_crypto_hash_update(&hash_ctx, payload); in short_circuit_verify() 63 return_value = t_cose_crypto_hash_finish(&hash_ctx, tag_buffer, &tag); in short_circuit_verify()
|
D | t_cose_mac0_sign.c | 158 struct t_cose_crypto_hash hash_ctx; in short_circuit_tag() local 186 return_value = t_cose_crypto_hash_start(&hash_ctx, hash_alg_id); in short_circuit_tag() 192 t_cose_crypto_hash_update(&hash_ctx, q_useful_buf_head(header, header.len)); in short_circuit_tag() 195 t_cose_crypto_hash_update(&hash_ctx, payload); in short_circuit_tag() 197 return_value = t_cose_crypto_hash_finish(&hash_ctx, tag_buffer, tag); in short_circuit_tag()
|
D | t_cose_crypto.h | 480 t_cose_crypto_hash_start(struct t_cose_crypto_hash *hash_ctx, 504 void t_cose_crypto_hash_update(struct t_cose_crypto_hash *hash_ctx, 539 t_cose_crypto_hash_finish(struct t_cose_crypto_hash *hash_ctx,
|
/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/ec_wrst/ |
D | cc_ecdsa_verify.c | 134 mbedtls_md_init(&(pWorkingContext->hash_ctx)); in EcdsaVerifyInit() 135 … err = mbedtls_md_setup(&(pWorkingContext->hash_ctx), md_info, 0); // 0 = HASH, not HMAC in EcdsaVerifyInit() 139 err = mbedtls_md_starts(&(pWorkingContext->hash_ctx)); in EcdsaVerifyInit() 158 mbedtls_md_free(&(pWorkingContext->hash_ctx)); in EcdsaVerifyInit() 245 err = mbedtls_md_update(&(pWorkingContext->hash_ctx), pMessageDataIn, dataInSize); in EcdsaVerifyUpdate() 266 mbedtls_md_free(&(pWorkingContext->hash_ctx)); in EcdsaVerifyUpdate() 376 …err = mbedtls_md_finish(&(pWorkingContext->hash_ctx), (unsigned char *)pWorkingContext->hashResult… in EcdsaVerifyFinish() 424 mbedtls_md_free(&(pWorkingContext->hash_ctx)); in EcdsaVerifyFinish()
|
D | cc_ecdsa_sign.c | 146 mbedtls_md_init(&(pWorkingContext->hash_ctx)); in EcdsaSignInit() 147 err = mbedtls_md_setup(&(pWorkingContext->hash_ctx), md_info, 0); // 0 = HASH, not HMAC in EcdsaSignInit() 151 err = mbedtls_md_starts(&(pWorkingContext->hash_ctx)); in EcdsaSignInit() 171 mbedtls_md_free(&(pWorkingContext->hash_ctx)); in EcdsaSignInit() 259 err = mbedtls_md_update(&(pWorkingContext->hash_ctx), pMessageDataIn, dataInSize); in EcdsaSignUpdate() 281 mbedtls_md_free(&(pWorkingContext->hash_ctx)); in EcdsaSignUpdate() 432 …err = mbedtls_md_finish(&(pWorkingContext->hash_ctx), (unsigned char *)pWorkingContext->hashResult… in EcdsaSignFinishInt() 494 mbedtls_md_free(&(pWorkingContext->hash_ctx)); in EcdsaSignFinishInt()
|
/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/shared/include/crypto_api/ |
D | cc_ecpki_types.h | 325 mbedtls_md_context_t hash_ctx; member 377 mbedtls_md_context_t hash_ctx; member
|
/trusted-firmware-m-3.7.0/interface/include/psa/ |
D | crypto_builtin_composites.h | 49 struct psa_hash_operation_s hash_ctx; member
|
/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/rsa/ |
D | cc_rsa_local.h | 92 mbedtls_md_context_t hash_ctx; member
|
D | cc_rsa_oaep.c | 200 md_ctx = &(((CCRsaOaepData_t*)((void*)PrimeData_ptr->InternalBuff))->hash_ctx); in RsaPssOaepEncode() 540 md_ctx = &(((CCRsaOaepData_t*)((void*)PrimeData_ptr->InternalBuff))->hash_ctx); in RsaPssOaepDecode()
|