0.22.0 (latest) 0.21.0 0.20.0 0.19.0 0.18.0 0.17.0 0.16.2 0.15.1 0.14.1 0.13.0 0.12.2 0.11.3 0.10.0 0.9.1 0.8.3 0.7.0 0.6.1 0.5.0 0.4.0 0.3.0 0.2.1 0.1.0 Reference documentation and code samples for the KMS Inventory V1 API module Google::Cloud::Kms::V1::ImportJob::ImportMethod.

[ImportMethod](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-kms-inventory-v1/latest/Google-Cloud-Kms-V1-ImportJob-ImportMethod "Google::Cloud::Kms::V1::ImportJob::ImportMethod (module)") describes the
key wrapping method chosen for this
[ImportJob](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-kms-inventory-v1/latest/Google-Cloud-Kms-V1-ImportJob "Google::Cloud::Kms::V1::ImportJob (class)").

## Constants

### IMPORT_METHOD_UNSPECIFIED

**value:** 0  
Not specified.

### RSA_OAEP_3072_SHA1_AES_256

**value:** 1  
This ImportMethod represents the CKM_RSA_AES_KEY_WRAP key wrapping
scheme defined in the PKCS #11 standard. In summary, this involves
wrapping the raw key with an ephemeral AES key, and wrapping the
ephemeral AES key with a 3072 bit RSA key. For more details, see
[RSA AES key wrap
mechanism](http://docs.oasis-open.org/pkcs11/pkcs11-curr/v2.40/cos01/pkcs11-curr-v2.40-cos01.html#_Toc408226908).

### RSA_OAEP_4096_SHA1_AES_256

**value:** 2  
This ImportMethod represents the CKM_RSA_AES_KEY_WRAP key wrapping
scheme defined in the PKCS #11 standard. In summary, this involves
wrapping the raw key with an ephemeral AES key, and wrapping the
ephemeral AES key with a 4096 bit RSA key. For more details, see
[RSA AES key wrap
mechanism](http://docs.oasis-open.org/pkcs11/pkcs11-curr/v2.40/cos01/pkcs11-curr-v2.40-cos01.html#_Toc408226908).

### RSA_OAEP_3072_SHA256_AES_256

**value:** 3  
This ImportMethod represents the CKM_RSA_AES_KEY_WRAP key wrapping
scheme defined in the PKCS #11 standard. In summary, this involves
wrapping the raw key with an ephemeral AES key, and wrapping the
ephemeral AES key with a 3072 bit RSA key. For more details, see
[RSA AES key wrap
mechanism](http://docs.oasis-open.org/pkcs11/pkcs11-curr/v2.40/cos01/pkcs11-curr-v2.40-cos01.html#_Toc408226908).

### RSA_OAEP_4096_SHA256_AES_256

**value:** 4  
This ImportMethod represents the CKM_RSA_AES_KEY_WRAP key wrapping
scheme defined in the PKCS #11 standard. In summary, this involves
wrapping the raw key with an ephemeral AES key, and wrapping the
ephemeral AES key with a 4096 bit RSA key. For more details, see
[RSA AES key wrap
mechanism](http://docs.oasis-open.org/pkcs11/pkcs11-curr/v2.40/cos01/pkcs11-curr-v2.40-cos01.html#_Toc408226908).

### RSA_OAEP_3072_SHA256

**value:** 5  
This ImportMethod represents RSAES-OAEP with a 3072 bit RSA key. The
key material to be imported is wrapped directly with the RSA key. Due
to technical limitations of RSA wrapping, this method cannot be used to
wrap RSA keys for import.

### RSA_OAEP_4096_SHA256

**value:** 6  
This ImportMethod represents RSAES-OAEP with a 4096 bit RSA key. The
key material to be imported is wrapped directly with the RSA key. Due
to technical limitations of RSA wrapping, this method cannot be used to
wrap RSA keys for import.

### HPKE_KEM_ML_KEM_768_HKDF_SHA256_AES_256_GCM

**value:** 8  
Represents the Hybrid Public Key Encryption (HPKE) Scheme originally
defined in [RFC 9180](https://www.rfc-editor.org/rfc/rfc9180). It
involves wrapping the raw key with an ephemeral AES key, derived with
HKDF-SHA256 from an encryption context, that is, in turn obtained from
the receiver's public key with the help of the ML-KEM-768 KEM. For more
details, see the [ML-KEM HPKE
standard](http://datatracker.ietf.org/doc/draft-ietf-hpke-pq/01/).

### HPKE_KEM_ML_KEM_1024_HKDF_SHA256_AES_256_GCM

**value:** 9  
Represents the Hybrid Public Key Encryption (HPKE) Scheme originally
defined in [RFC 9180](https://www.rfc-editor.org/rfc/rfc9180). It
involves wrapping the raw key with an ephemeral AES key, derived with
HKDF-SHA256 from an encryption context, that is, in turn obtained from
the receiver's public key with the help of the ML-KEM-1024 KEM. For more
details, see the [ML-KEM HPKE
standard](http://datatracker.ietf.org/doc/draft-ietf-hpke-pq/01/).

### HPKE_KEM_XWING_HKDF_SHA256_AES_256_GCM

**value:** 10  
Represents the Hybrid Public Key Encryption (HPKE) Scheme originally
defined in [RFC 9180](https://www.rfc-editor.org/rfc/rfc9180). It
involves wrapping the raw key with an ephemeral AES key, derived with
HKDF-SHA256 from an encryption context, that is, in turn obtained from
the receiver's public key with the help of the X-Wing hybrid KEM. For
more details, see the [X-Wing
standard](http://datatracker.ietf.org/doc/draft-connolly-cfrg-xwing-kem/09/).