public sealed class CryptoKey : IMessage<CryptoKey>, IEquatable<CryptoKey>, IDeepCloneable<CryptoKey>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Data Loss Prevention v2 API class CryptoKey.
This is a data encryption key (DEK) (as opposed to
a key encryption key (KEK) stored by Cloud Key Management Service
(Cloud KMS).
When using Cloud KMS to wrap or unwrap a DEK, be sure to set an appropriate
IAM policy on the KEK to ensure an attacker cannot
unwrap the DEK.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-04-09 UTC."],[[["This page provides documentation for the `CryptoKey` class within the Google Cloud Data Loss Prevention v2 API, detailing its functionality as a data encryption key."],["The `CryptoKey` class can be implemented as either `KmsWrapped`, `Transient`, or `Unwrapped`, which is determined by the `SourceCase` property, and it implements several interfaces including `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage`."],["The current latest version available for this class is 4.16.0, and the documentation also includes various previous versions back to 2.15.0, all of which are linked for access."],["`CryptoKey` is part of the `Google.Cloud.Dlp.V2` namespace, and is located in the `Google.Cloud.Dlp.V2.dll` assembly."],["The `CryptoKey` class has two constructors, a default one, `CryptoKey()`, and another that takes an existing `CryptoKey` object as a parameter, `CryptoKey(CryptoKey other)`."]]],[]]