Lines Matching refs:ctx
2310 memset(&operation->ctx, 0, sizeof(operation->ctx));
3838 &operation->ctx);
3845 operation->ctx->grp.nbits);
3910 mbedtls_ecdsa_sign_det_restartable(&operation->ctx->grp,
3913 &operation->ctx->d,
3926 mbedtls_ecdsa_sign_restartable(&operation->ctx->grp,
3929 &operation->ctx->d,
3998 if (operation->ctx) {
3999 mbedtls_ecdsa_free(operation->ctx);
4000 mbedtls_free(operation->ctx);
4001 operation->ctx = NULL;
4056 &operation->ctx);
4062 coordinate_bytes = PSA_BITS_TO_BYTES(operation->ctx->grp.nbits);
4087 status = mbedtls_psa_ecp_load_public_part(operation->ctx);
4140 mbedtls_ecdsa_verify_restartable(&operation->ctx->grp,
4143 &operation->ctx->Q,
4171 if (operation->ctx) {
4172 mbedtls_ecdsa_free(operation->ctx);
4173 mbedtls_free(operation->ctx);
4174 operation->ctx = NULL;
5488 mbedtls_free(operation->ctx.hkdf.info);
5489 status = psa_mac_abort(&operation->ctx.hkdf.hmac);
5497 if (operation->ctx.tls12_prf.secret != NULL) {
5498 mbedtls_zeroize_and_free(operation->ctx.tls12_prf.secret,
5499 operation->ctx.tls12_prf.secret_length);
5502 if (operation->ctx.tls12_prf.seed != NULL) {
5503 mbedtls_zeroize_and_free(operation->ctx.tls12_prf.seed,
5504 operation->ctx.tls12_prf.seed_length);
5507 if (operation->ctx.tls12_prf.label != NULL) {
5508 mbedtls_zeroize_and_free(operation->ctx.tls12_prf.label,
5509 operation->ctx.tls12_prf.label_length);
5512 if (operation->ctx.tls12_prf.other_secret != NULL) {
5513 mbedtls_zeroize_and_free(operation->ctx.tls12_prf.other_secret,
5514 operation->ctx.tls12_prf.other_secret_length);
5526 mbedtls_platform_zeroize(operation->ctx.tls12_ecjpake_to_pms.data,
5527 sizeof(operation->ctx.tls12_ecjpake_to_pms.data));
5532 if (operation->ctx.pbkdf2.salt != NULL) {
5533 mbedtls_zeroize_and_free(operation->ctx.pbkdf2.salt,
5534 operation->ctx.pbkdf2.salt_length);
6042 status = psa_key_derivation_hkdf_read(&operation->ctx.hkdf, kdf_alg,
6050 status = psa_key_derivation_tls12_prf_read(&operation->ctx.tls12_prf,
6059 &operation->ctx.tls12_ecjpake_to_pms, output, output_length);
6064 status = psa_key_derivation_pbkdf2_read(&operation->ctx.pbkdf2, kdf_alg,
6634 /* Make sure that operation->ctx is properly zero-initialised. (Macro
6636 memset(&operation->ctx, 0, sizeof(operation->ctx));
7316 status = psa_hkdf_input(&operation->ctx.hkdf, kdf_alg,
7322 status = psa_tls12_prf_input(&operation->ctx.tls12_prf,
7328 status = psa_tls12_prf_psk_to_ms_input(&operation->ctx.tls12_prf,
7335 &operation->ctx.tls12_ecjpake_to_pms, step, data, data_length);
7340 status = psa_pbkdf2_input(&operation->ctx.pbkdf2, kdf_alg,
7370 &operation->ctx.pbkdf2, step, value);
8018 void (* entropy_init)(mbedtls_entropy_context *ctx),
8019 void (* entropy_free)(mbedtls_entropy_context *ctx))