What is GCP HSM It’s a cloud key management service provided by GCP (Google Cloud Platform). It supports HSM (hardware security modules) and multiple algorithms to encrypt and decrypt. You can read more from here. We will only focus on asymmetric signing and secp256k1 algorithm. Generate a private key First, we need to generate a private key on GCP HSM. Here are commands we can use to generate. you need to install gcloud first.