Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
TomAFrench committed Jan 7, 2025
1 parent 438dcab commit 094807f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion noir-projects/aztec-nr/aztec/src/encrypted_logs/header.nr
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ impl EncryptedLogHeader {
}

let input: [u8; 32] = self.address.to_field().to_be_bytes();
aes128_encrypt(input, iv, sym_key).as_array()
aes128_encrypt(input, iv, sym_key)
}
}

Expand Down
2 changes: 1 addition & 1 deletion noir-projects/aztec-nr/aztec/src/encrypted_logs/payload.nr
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ pub fn compute_incoming_body_ciphertext<let P: u32>(
plaintext: [u8; P],
eph_sk: Scalar,
address_point: AddressPoint,
) -> [u8] {
) -> [u8; P + 16 - P % 16] {
let full_key = derive_aes_secret(eph_sk, address_point.to_point());
let mut sym_key = [0; 16];
let mut iv = [0; 16];
Expand Down

0 comments on commit 094807f

Please sign in to comment.