Skip to content

Commit

Permalink
unsafe
Browse files Browse the repository at this point in the history
  • Loading branch information
hannesm committed Mar 6, 2024
1 parent 172f627 commit 3004f1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ec/mirage_crypto_ec.ml
Original file line number Diff line number Diff line change
Expand Up @@ -974,7 +974,7 @@ module Ed25519 = struct
let h = Digestif.SHA512.(digest_string secret |> to_raw_string) in
(* step 2 *)
let s, rest =
Bytes.of_string (String.sub h 0 key_len),
Bytes.unsafe_of_string (String.sub h 0 key_len),
String.sub h key_len (String.length h - key_len)
in
Bytes.set_uint8 s 0 ((Bytes.get_uint8 s 0) land 248);
Expand Down

0 comments on commit 3004f1c

Please sign in to comment.