Skip to content

Commit

Permalink
Update src/engine.ml
Browse files Browse the repository at this point in the history
Co-authored-by: Reynir Björnsson <[email protected]>
  • Loading branch information
hannesm and reynir authored Sep 27, 2024
1 parent f0b6a2f commit 2b15aa7
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/engine.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1131,7 +1131,6 @@ let out ?add_timestamp prefix_len (ctx : keys) hmac_algorithm compress rng data
let b = Bytes.create (Packet.id_len + String.length my_implicit_iv) in
set_replay_id b 0;
Bytes.blit_string my_implicit_iv 0 b 4 (String.length my_implicit_iv);
(* We reuse the replay id part of the nonce to avoid another allocation *)
(Bytes.unsafe_to_string b, Bytes.sub_string b 0 4)
in
let data =
Expand Down

0 comments on commit 2b15aa7

Please sign in to comment.