Skip to content

Commit

Permalink
Merge pull request #18 from reynir/mirage-crypto-rng.0.11.0
Browse files Browse the repository at this point in the history
Update to mirage-crypto-rng.0.11.0
  • Loading branch information
reynir authored Feb 17, 2023
2 parents 446db09 + b6553c4 commit 574cf84
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/ssh_add.ml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ let gen_key key_type bits =
Ssh_agent.Privkey.Ssh_ed25519 priv

let main key_type bits key_comment =
let () = Mirage_crypto_rng_unix.initialize () in
let () = Mirage_crypto_rng_unix.initialize (module Mirage_crypto_rng.Fortuna) in
let sock_path =
match Sys.getenv "SSH_AUTH_SOCK" with
| path -> path
Expand Down
1 change: 1 addition & 0 deletions ssh-agent.opam
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ depends: [
"mirage-crypto-pk"
"mirage-crypto-ec"
"cstruct"
"mirage-crypto-rng" {with-test & >= "0.11.0"}
"alcotest" {with-test}
]
conflicts: [
Expand Down
2 changes: 1 addition & 1 deletion test/test.ml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ let m_response = (module Response
: Alcotest.TESTABLE with type t = Ssh_agent.any_ssh_agent_response)


let () = Mirage_crypto_rng_unix.initialize ()
let () = Mirage_crypto_rng_unix.initialize (module Mirage_crypto_rng.Fortuna)
let privkey = Mirage_crypto_pk.Rsa.generate ~bits:1024 ()
let pubkey = Mirage_crypto_pk.Rsa.pub_of_priv privkey
let privkey = Ssh_agent.Privkey.Ssh_rsa privkey
Expand Down

0 comments on commit 574cf84

Please sign in to comment.