This page compares the different protection levels supported in
Cloud KMS:

[Software](https://docs.cloud.google.com/kms/docs/protection-levels.md.txt#software)
:   Cloud KMS keys with the `SOFTWARE` protection level are used for
    cryptographic operations that are performed in software. Cloud KMS
    keys can be generated by Google or imported.

[Multi-tenant hardware](https://docs.cloud.google.com/kms/docs/protection-levels.md.txt#hardware)
:   Cloud HSM keys with the `HSM` protection level are stored in a
    Google-owned Hardware Security Module (HSM). Cryptographic operations using
    these keys are performed in our HSMs. You can use Cloud HSM keys
    the same way you use Cloud KMS keys. Cloud HSM keys
    can be generated by Google or imported.

[Single-tenant hardware](https://docs.cloud.google.com/kms/docs/protection-levels.md.txt#hardware-single)
:   Cloud HSM keys with the `HSM_SINGLE_TENANT` protection level are
    stored in a single-tenant instance in a Google-owned Hardware Security
    Module (HSM). You control and manage the Single-tenant Cloud HSM
    instance, which is a dedicated cluster of HSM partitions that you manage.
    Cryptographic operations using these keys are performed in our HSMs. You can
    use single-tenant Cloud HSM keys the same way you use
    Cloud KMS keys. Single-tenant Cloud HSM keys can be
    generated by Google or imported. For more information, see
    [Single-tenant Cloud HSM](https://docs.cloud.google.com/kms/docs/single-tenant-hsm.md.txt).

[External over the internet](https://docs.cloud.google.com/kms/docs/protection-levels.md.txt#external)
:   Cloud EKM keys with the `EXTERNAL` protection level are generated
    and stored in your external key management (EKM) system. Cloud EKM
    stores additional cryptographic material and a path to your unique key,
    which is used to access your key over the internet.

[External over VPC](https://docs.cloud.google.com/kms/docs/protection-levels.md.txt#external-vpc)
:   Cloud EKM keys with the `EXTERNAL_VPC` protection level are
    generated and stored in your external key management (EKM) system.
    Cloud EKM stores additional cryptographic material and a path to
    your unique key, which is used to access your key over a [virtual private
    cloud (VPC) network](https://docs.cloud.google.com/vpc/docs/vpc).

Keys with all of these protection levels share the following features:

- Use your keys for customer-managed encryption key (CMEK) integrated
  Google Cloud services.

  > [!NOTE]
  > **Note:** Some CMEK-integrated services do not support Cloud EKM keys. To learn which CMEK-integrated services support Cloud EKM keys, see [CMEK integrations](https://docs.cloud.google.com/kms/docs/compatible-services.md.txt#cmek_integrations).

- Use your keys with the Cloud KMS APIs or client libraries, without
  any specialized code based on the protection level of the key.

- Control access to your keys using Identity and Access Management (IAM) roles.

- Control whether each key version is **Enabled** or **Disabled** from
  Cloud KMS.

- Key operations are captured in audit logs. Data access logging can be
  enabled.

## Software protection level

Cloud KMS uses the [BoringCrypto module (BCM)](https://boringssl.googlesource.com/boringssl/+/main/crypto/fipsmodule/FIPS.md) for all cryptographic
operations for software keys. The BCM is [FIPS 140-3](https://csrc.nist.gov/publications/detail/fips/140/3/final)
validated. Cloud KMS software keys use FIPS 140-3 Level 1--validated
Cryptographic Primitives of the BCM.
The software protection level is the cheapest protection level. Software keys are a good choice for use cases that do not have specific regulatory requirements for a higher FIPS 140-3 validation level.

<br />

## Hardware protection level

Cloud HSM helps you enforce regulatory compliance for your workloads in
Google Cloud. With Cloud HSM, you can generate encryption keys
and perform cryptographic operations in [FIPS 140-2 Level
3](https://csrc.nist.gov/publications/detail/fips/140/2/final) validated HSMs. The service is fully managed, so
you can protect your most sensitive workloads without worrying about the
operational overhead of managing an HSM cluster. Cloud HSM provides a
layer of abstraction on top of the HSM modules.
This abstraction lets you use your keys in CMEK integrations or the
Cloud KMS APIs or client libraries without HSM-specific code.
Hardware key versions are more expensive, but they provide substantial security benefits relative to software keys. Each Cloud HSM key has an [attestation statement](https://docs.cloud.google.com/docs/security/cloud-hsm-architecture.md.txt#cryptographic_key_attestation) that contains certified information about your key. This attestation and its associated certificate chains can be used to verify the authenticity of the statement and attributes of the key and HSM.

<br />

## Single-tenant hardware protection level

With Single-tenant Cloud HSM, you create and manage your own
Single-tenant Cloud HSM instance within Google-managed HSMs. Each instance is
a cluster of dedicated partitions on HSMs in a Google Cloud region. Your
instance administrators have administrative control of your instance.

Single-tenant Cloud HSM provides the same functionality as
Multi-tenant Cloud HSM, with the added benefit of cryptographic isolation
from other Google Cloud customers. For more information about
functionality shared by all Cloud HSM keys, see [Hardware protection
level](https://docs.cloud.google.com/kms/docs/protection-levels#hardware) earlier on this page.
Single-tenant Cloud HSM instances incur additional expenses relative to Multi-tenant Cloud HSM.

<br />

## External protection levels

Cloud External Key Manager (Cloud EKM) keys are keys that you manage in a [supported
external key management (EKM) partner](https://docs.cloud.google.com/kms/docs/ekm#supported_partners) service and use in
Google Cloud services and Cloud KMS APIs and client libraries.
Cloud EKM keys can be software-backed or hardware-backed, depending on
your EKM provider. You can use your Cloud EKM keys in CMEK-integrated
services or using the Cloud KMS APIs and client libraries.
You can migrate existing external key versions between the `EXTERNAL` and `EXTERNAL_VPC` protection levels. This migration lets you change how you access your existing key material without needing to re-encrypt your data and with zero downtime. For example, migrating from `EXTERNAL` to `EXTERNAL_VPC` lets you access the better availability of external over VPC keys without having to create new key material or reconfigure your resources to use a new key or key version. For more information, see [Migrate external
keys](https://docs.cloud.google.com/kms/docs/migrate-external-keys).

<br />

Cloud EKM protection levels are the most expensive. When you use Cloud EKM keys, you can be sure that Google Cloud can't access your key material.

<br />

To see which CMEK-integrated services support Cloud EKM keys,
see [CMEK integrations](https://docs.cloud.google.com/kms/docs/compatible-services.md.txt#cmek_integrations) and
apply the **Show only EKM compatible services** filter.

### External over the internet protection level

You can use Cloud EKM keys over the internet in all locations supported
by Cloud KMS except `nam-eur-asia1` and `global`.

> [!CAUTION]
> **Caution:** When you use Cloud EKM keys over the internet, there's a risk that the key can become unavailable. For better availability, consider using Cloud HSM or Cloud EKM over a VPC network.

### External over VPC protection level

You can use Cloud EKM keys over a VPC network for better availability
of your external keys. This better availability means that there's less of a
chance of your Cloud EKM keys and the resources they protect becoming
unavailable.

You can use Cloud EKM keys over a VPC network in most regional
locations supported by Cloud KMS.

Cloud EKM over a VPC network is not available in multi-region
locations.

<br />

## What's next

- Learn about [compatible services](https://docs.cloud.google.com/kms/docs/compatible-services.md.txt) that let you use your keys in Google Cloud.
- Learn about the [Single-tenant Cloud HSM](https://docs.cloud.google.com/kms/docs/single-tenant-hsm.md.txt) protection level and [how to create and manage a Single-tenant Cloud HSM
  instance](https://docs.cloud.google.com/kms/docs/create-manage-single-tenant-hsm).
- Learn how to [create key rings](https://docs.cloud.google.com/kms/docs/create-key-ring.md.txt) and [create
  encryption keys](https://docs.cloud.google.com/kms/docs/creating-keys).
- Learn about [importing keys](https://docs.cloud.google.com/kms/docs/key-import.md.txt).
- Learn about [external keys](https://docs.cloud.google.com/kms/docs/ekm.md.txt).
- Learn about other [considerations for using
  Cloud EKM](https://docs.cloud.google.com/kms/docs/ekm#considerations).