Skip to content

Commit

Permalink
Fixed appending CEK to wrapped CEK.
Browse files Browse the repository at this point in the history
  • Loading branch information
bkstein committed Dec 8, 2023
1 parent 33f7abb commit 86c7e2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cms/src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -788,7 +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);
wrapped_cek.extend_from_slice(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 86c7e2e

Please sign in to comment.