Skip to main content

Module cms

Module cms 

Source
Expand description

The CMS EnvelopedData wrapper a DPAPI-NG blob is packaged in.

Layout, as Windows writes it for a KDS-protected secret:

ContentInfo
 ├─ contentType  1.2.840.113549.1.7.3  (envelopedData)
 └─ [0] EnvelopedData
     ├─ version
     ├─ recipientInfos SET { [2] KEKRecipientInfo }
     │    ├─ kekid → the MS-GKDI KEY_IDENTIFIER (which root key, which tree node)
     │    └─ encryptedKey → the content key, AES-wrapped under the KEK
     └─ encryptedContentInfo
          ├─ contentEncryptionAlgorithm  AES-256-GCM + nonce
          └─ [0] encryptedContent

Structs§

ProtectedBlob
A parsed DPAPI-NG blob, ready to decrypt once the KEK is known.

Constants§

OID_AES256_GCM
aes256-GCM
OID_AES256_WRAP
aes256-wrap
OID_ENVELOPED_DATA
id-envelopedData