File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
specification/structured-encryption Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -205,9 +205,16 @@ and an info as calculated [above](#calculate-info)
205
205
206
206
The ` FieldRootKey ` MUST be generated with the plaintext data key in the encryption materials
207
207
and the Message ID generated for this Encrypted Structured Data.
208
+
208
209
The ` FieldRootKey ` is combined with the ordinal position of a field within a record
209
210
to generate a unique ` FieldKey ` for encrypting that field.
210
211
212
+ The ordinal position is calculated by sorting the
213
+ [ canonical path] ( ./header.md#canonical-path )
214
+ of all of the [ ENCRYPT_AND_SIGN] ( ./structures.md#encryptandsign ) fields,
215
+ sorting those paths in ascending order,
216
+ and taking the zero-based position of the field in that sorted list.
217
+
211
218
The calculated Field Root MUST have length equal to the
212
219
[ algorithm suite's encryption key length] ( ../../submodules/MaterialProviders/aws-encryption-sdk-specification/framework/algorithm-suites.md#algorithm-suites-encryption-settings ) .
213
220
You can’t perform that action at this time.
0 commit comments