Skip to content

Commit

Permalink
Adding CEK to wrapped key.
Browse files Browse the repository at this point in the history
Obviously, this should not be forgotten.

Co-authored-by: Arthur Gautier <[email protected]>
  • Loading branch information
bkstein and baloo authored Dec 8, 2023
1 parent 7cd04da commit 33f7abb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cms/src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -788,6 +788,7 @@ where
wrapped_cek.push(0xff ^ content_encryption_key[0]);
wrapped_cek.push(0xff ^ content_encryption_key[1]);
wrapped_cek.push(0xff ^ content_encryption_key[2]);
wrapped_cek.append(content_encryption_key);
if padding_length > 0 {
let mut padding = vec![0_u8; padding_length];
self.rng.fill_bytes(padding.as_mut_slice());
Expand Down

0 comments on commit 33f7abb

Please sign in to comment.