Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace the nocrypto, cstruct, and hex dependency with digestif #13

Merged
merged 1 commit into from
Jan 21, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading