Key Wrapping
Key wrapping is a way of protecting one cryptographic key by encrypting it with another key, so it can be stored or sent over an untrusted channel without being exposed. The protected result is often called a wrapped key or encrypted key. This technique guards the confidentiality of the key and, in some methods, also protects it from tampering.
Key wrapping is a method of cryptographically protecting keys using a symmetric key that provides both confidentiality and integrity protection (per NIST). Operationally, it is the process of encrypting one key with another key for secure storage or transmission over an untrusted channel; in envelope encryption schemes, a key-encryption key (KEK) encrypts a data-encryption key (DEK) to produce a wrapped DEK. The AES Key Wrap algorithm (RFC 3394) is designed specifically to wrap key data and operates on 64-bit blocks, with RFC 5649 specifying a padding convention that removes the requirement for the input key data length to be a multiple of the block size. This entry covers the concept and referenced algorithms only; it does not address key generation, key lifecycle management, hardware security module implementation details, or applicable regulatory obligations, which are governed separately. Note that wrapping a key protects the key material itself and does not by itself render any underlying data non-personal.
Why it matters
Key wrapping addresses a fundamental problem in key management: cryptographic keys are themselves sensitive material that must be protected, yet they often need to be stored alongside the data they protect or transmitted across channels that cannot be fully trusted. By encrypting one key with another, key wrapping allows an organization to keep a data-encryption key (DEK) in an untrusted store or move it over an untrusted channel while its confidentiality, and in some methods its integrity, is preserved. This is a core building block of envelope encryption architectures used across many cloud key management services.
For practitioners, the practical value is that a wrapped DEK can be handled more freely than an unwrapped one, because compromise of the wrapped form alone does not expose the underlying key without also compromising the key-encryption key (KEK). This separation supports designs where a smaller number of high-value KEKs are protected under stronger controls while larger numbers of DEKs are wrapped and distributed. The strength of the arrangement therefore depends on how the KEK is protected, which is governed by key generation, key lifecycle management, and hardware security module practices that are outside the scope of key wrapping itself.
A point that is frequently misunderstood at expert level is that wrapping a key protects the key material only. It does not by itself render any underlying data non-personal, and it does not on its own establish compliance with any regulatory obligation. Encryption of data under a wrapped key may be relevant to a broader security control set, but the personal or special category status of the underlying data, along with applicable transfer, retention, and accountability obligations, must be assessed separately.
Who it's relevant to
Inside Key Wrapping
Common questions
Answers to the questions practitioners most commonly ask about Key Wrapping.