pub struct AsymmetricDecryptResponse {
pub plaintext: Option<Vec<u8>>,
pub plaintext_crc32c: Option<i64>,
pub protection_level: Option<String>,
pub verified_ciphertext_crc32c: Option<bool>,
}Expand description
Response message for KeyManagementService.AsymmetricDecrypt.
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
Fields§
§plaintext: Option<Vec<u8>>The decrypted data originally encrypted with the matching public key.
plaintext_crc32c: Option<i64>Integrity verification field. A CRC32C checksum of the returned AsymmetricDecryptResponse.plaintext. An integrity check of AsymmetricDecryptResponse.plaintext can be performed by computing the CRC32C checksum of AsymmetricDecryptResponse.plaintext and comparing your results to this field. Discard the response in case of non-matching checksum values, and perform a limited number of retries. A persistent mismatch may indicate an issue in your computation of the CRC32C checksum. Note: This field is defined as int64 for reasons of compatibility across different languages. However, it is a non-negative integer, which will never exceed 2^32-1, and can be safely downconverted to uint32 in languages that support this type.
protection_level: Option<String>The ProtectionLevel of the CryptoKeyVersion used in decryption.
verified_ciphertext_crc32c: Option<bool>Integrity verification field. A flag indicating whether AsymmetricDecryptRequest.ciphertext_crc32c was received by KeyManagementService and used for the integrity verification of the ciphertext. A false value of this field indicates either that AsymmetricDecryptRequest.ciphertext_crc32c was left unset or that it was not delivered to KeyManagementService. If you’ve set AsymmetricDecryptRequest.ciphertext_crc32c but this field is still false, discard the response and perform a limited number of retries.
Trait Implementations§
Source§impl Clone for AsymmetricDecryptResponse
impl Clone for AsymmetricDecryptResponse
Source§fn clone(&self) -> AsymmetricDecryptResponse
fn clone(&self) -> AsymmetricDecryptResponse
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AsymmetricDecryptResponse
impl Debug for AsymmetricDecryptResponse
Source§impl Default for AsymmetricDecryptResponse
impl Default for AsymmetricDecryptResponse
Source§fn default() -> AsymmetricDecryptResponse
fn default() -> AsymmetricDecryptResponse
Source§impl<'de> Deserialize<'de> for AsymmetricDecryptResponse
impl<'de> Deserialize<'de> for AsymmetricDecryptResponse
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl ResponseResult for AsymmetricDecryptResponse
Auto Trait Implementations§
impl Freeze for AsymmetricDecryptResponse
impl RefUnwindSafe for AsymmetricDecryptResponse
impl Send for AsymmetricDecryptResponse
impl Sync for AsymmetricDecryptResponse
impl Unpin for AsymmetricDecryptResponse
impl UnwindSafe for AsymmetricDecryptResponse
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more