Lines Matching defs:key
48 * Generate public key (restartable version)
79 * Generate public key
419 const mbedtls_ecp_keypair *key,
424 /* If it's not our key, just import the public part as Qp */
426 return mbedtls_ecp_copy(&ctx->Qp, &key->Q);
429 /* Our key: import public (as Q) and private parts */
434 if ((ret = mbedtls_ecp_copy(&ctx->Q, &key->Q)) != 0 ||
435 (ret = mbedtls_mpi_copy(&ctx->d, &key->d)) != 0) {
446 const mbedtls_ecp_keypair *key,
457 if ((ret = mbedtls_ecdh_setup(ctx, key->grp.id)) != 0) {
462 * current key's group is the same as the context's, which was set
463 * from the first key's group. */
464 if (mbedtls_ecdh_grp_id(ctx) != key->grp.id) {
470 return ecdh_get_params_internal(ctx, key, side);
480 key, s);
485 key, side);