Skip to content

Commit

Permalink
Replace the nocrypto, cstruct, and hex dependency with digestif
Browse files Browse the repository at this point in the history
  • Loading branch information
hannesm committed Jan 7, 2025
1 parent 3805dc0 commit 37bb942
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
3 changes: 1 addition & 2 deletions lib/common.ml
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,4 @@ let get_sorted_files_from dir =
Array.sort String.compare files;
Array.to_list files

let sign_string_sha256 ~key ~basestring =
Cstruct.of_string basestring |> Nocrypto.Hash.SHA256.hmac ~key:(Cstruct.of_string key) |> Hex.of_cstruct |> Hex.show
let sign_string_sha256 ~key ~basestring = Digestif.SHA256.(hmac_string ~key basestring |> to_hex)
4 changes: 1 addition & 3 deletions lib/dune
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,10 @@
atdgen-runtime
biniou
cmarkit
cstruct
devkit
digestif
extlib
hex
lwt
nocrypto
re2
uri
yojson)
Expand Down
4 changes: 1 addition & 3 deletions slack.opam
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,13 @@ depends: [
"atdgen" {> "2.0.0"}
"atdgen-runtime" {> "2.0.0"}
"biniou"
"cstruct"
"cmarkit"
"cmdliner"
"devkit" {>= "1.20210517" }
"digestif" {>= "1.2.0"}
"extlib" {>= "1.7.7"}
"hex"
"lwt" {>= "5.1.0"}
"lwt_ppx"
"nocrypto"
"ppx_deriving"
"re2"
"uri"
Expand Down

0 comments on commit 37bb942

Please sign in to comment.