Enum google_api_proto::google::cloud::kms::v1::import_job::ImportMethod
source · #[repr(i32)]pub enum ImportMethod {
Unspecified = 0,
RsaOaep3072Sha1Aes256 = 1,
RsaOaep4096Sha1Aes256 = 2,
RsaOaep3072Sha256Aes256 = 3,
RsaOaep4096Sha256Aes256 = 4,
RsaOaep3072Sha256 = 5,
RsaOaep4096Sha256 = 6,
}
Expand description
[ImportMethod][google.cloud.kms.v1.ImportJob.ImportMethod] describes the key wrapping method chosen for this [ImportJob][google.cloud.kms.v1.ImportJob].
Variants§
Unspecified = 0
Not specified.
RsaOaep3072Sha1Aes256 = 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.
RsaOaep4096Sha1Aes256 = 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.
RsaOaep3072Sha256Aes256 = 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.
RsaOaep4096Sha256Aes256 = 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.
RsaOaep3072Sha256 = 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.
RsaOaep4096Sha256 = 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.
Implementations§
source§impl ImportMethod
impl ImportMethod
source§impl ImportMethod
impl ImportMethod
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Clone for ImportMethod
impl Clone for ImportMethod
source§fn clone(&self) -> ImportMethod
fn clone(&self) -> ImportMethod
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ImportMethod
impl Debug for ImportMethod
source§impl Default for ImportMethod
impl Default for ImportMethod
source§fn default() -> ImportMethod
fn default() -> ImportMethod
source§impl From<ImportMethod> for i32
impl From<ImportMethod> for i32
source§fn from(value: ImportMethod) -> i32
fn from(value: ImportMethod) -> i32
source§impl Hash for ImportMethod
impl Hash for ImportMethod
source§impl Ord for ImportMethod
impl Ord for ImportMethod
source§fn cmp(&self, other: &ImportMethod) -> Ordering
fn cmp(&self, other: &ImportMethod) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for ImportMethod
impl PartialEq for ImportMethod
source§fn eq(&self, other: &ImportMethod) -> bool
fn eq(&self, other: &ImportMethod) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ImportMethod
impl PartialOrd for ImportMethod
source§fn partial_cmp(&self, other: &ImportMethod) -> Option<Ordering>
fn partial_cmp(&self, other: &ImportMethod) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for ImportMethod
impl TryFrom<i32> for ImportMethod
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
source§fn try_from(value: i32) -> Result<ImportMethod, UnknownEnumValue>
fn try_from(value: i32) -> Result<ImportMethod, UnknownEnumValue>
impl Copy for ImportMethod
impl Eq for ImportMethod
impl StructuralPartialEq for ImportMethod
Auto Trait Implementations§
impl Freeze for ImportMethod
impl RefUnwindSafe for ImportMethod
impl Send for ImportMethod
impl Sync for ImportMethod
impl Unpin for ImportMethod
impl UnwindSafe for ImportMethod
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request