Skip to content

Commit

Permalink
Update ec/mirage_crypto_ec.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 Mar 6, 2024
1 parent 058ac88 commit 09dbc01
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 @@ -628,7 +628,7 @@ module Make_dsa (Param : Parameters) (F : Fn) (P : Point) (S : Scalar) (H : Dige
let g ~key msg =
let g = Mirage_crypto_rng.create ~strict:true drbg in
Mirage_crypto_rng.reseed ~g
(String.concat "" [ S.to_octets key ; msg ]);
(S.to_octets key ^ msg);
g

(* take qbit length, and ensure it is suitable for ECDSA (> 0 & < n) *)
Expand Down

0 comments on commit 09dbc01

Please sign in to comment.