Module Info
- Reference
BT4PT-EncryptedDataV1-0- Numeric OID
1.3.6.1.4.1.17218.1.2.11.1.0
BT4PT Encrypted Data - DRAFT.
BT4PT-EncryptedDataV1-01.3.6.1.4.1.17218.1.2.11.1.0This module explicitly exports the following symbols:
EncryptedData encryptedDataThis structure carries data to be included in an envelope that is readable only by the parties to which it is encrypted.
The data elements are encrypted with a Content Encryption Key that is used only once. The Content Encryption Key is then wrapped for each recipient, using a key derived from an X25519 key agreement between an ephemeral key pair generated by the issuer and a long-term key pair of the recipient.
The Content Encryption Key is a 128-bit key, which SHALL be generated by a cryptographically secure pseudo-random
number generator for each EncryptedData value, and SHALL NOT be used for any other encryption.
This sequence contains the following fields:
The information each recipient requires to recover the Content Encryption Key.
The encrypted data, being the ciphertext followed by the 16-byte authentication tag, as output by AES-128-GCM per , with:
header field.This is an object of the class: DATA-ELEMENT
This object has the following field values:
ENC1
This header contains the information identifying to whom the data is encrypted, and the data required to obtain the Content Encryption Key.
It contains an ephemeral X25519 key and the wrapped key per recipient. The ephemeral key pair SHALL be generated by a cryptographically secure pseudo-random number generator for each encrypted data element, and SHALL NOT be used for any other encrypted data element. The ephemeral private key SHALL be destroyed once the wrapping key of every recipient has been derived.
This sequence contains the following fields:
This type is constrained in the following way:
The length of the value must exactly:
32
The recipients of the encrypted data.
No two entries SHALL have the same key.
This type is constrained in the following way:
The length of the value must be greater than or equal to:
1
The length of the value must be less than or equal to:
32
This structure contains the per-recipient info required to obtain the Content Encryption Key.
The Content Encryption Key SHALL be wrapped using the AES Key Wrap algorithm of , using the default initial value, and a 256-bit wrapping key derived as follows:
SK be the 32-byte output of the X25519 function of , applied to the ephemeral private key
and the long-term public key identified by key when encrypting, or to the long-term private key identified
by key and ephemeralPublicKey when decrypting.SK consists only of null bytes, the key agreement has failed, and the wrapping key SHALL NOT be derived.SK, the salt being the value of ephemeralPublicKey, and info being the ASCII string
BT4PT-EncryptedDataV1-0 followed by the 32-byte long-term public key identified by key, encoded as specified
in .This sequence contains the following fields:
Identifies the long-term X25519 key of the recipient to which the Content Encryption Key is wrapped.
The wrapped Content Encryption Key.
This type is constrained in the following way:
The length of the value must exactly:
24
This data structure identifies the long-term X25519 key of a recipient, by the Key Agreement Key ID of the Key Agreement Certificate certifying it.
This sequence contains the following fields:
The Security Provider holding the long-term key, being the Company Code in the Subject Alternative Name extension of the Key Agreement Certificate.
The Key ID in the Key Agreement Key ID extension of the Key Agreement Certificate.
This type is constrained in the following way:
The value must be greater than or equal to:
1
The value must be less than or equal to:
65536
This structure, when encoded with the Canonical Unaligned Packed Encoding Rules, is the plaintext that is to be encrypted and included in a EncryptedData instance.
This type is constrained in the following way:
The length of the value must be greater than or equal to:
1
The length of the value must be less than or equal to:
16
This type is concretely parameterised with the following:
This type is constrained in the following way:
The type must satisfy the following field constraints, other fields are unconstrained:
| Field | Presence | Value |
|---|---|---|
| format | No stipulation |
InverseAny value, except any satisfying the following: UnionAny of the following can be true: Single value
The value must be exactly:
OR Single value
The value must be exactly:
OR Single value
The value must be exactly:
|
These are the data elements that are permitted to appear in an encrypted data element. Note: other data elements, not defined in this standard, are also permitted to appear.
This object set has the following members:
| &id | &Type | &encoding | &Constraints |
|---|---|---|---|
LUG1
|
LuggageTag | cuperEncoding | LuggageTagConstraints |
OTK1
|
TotpKey | cuperEncoding | NULL |
| Other members may be added at runtime. | |||