SPAKE2/SPAKE2+ password-authenticated key exchange for OCaml
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix(lint): replace Printf/Format with Fmt across remaining packages

Migrate Printf.sprintf to Fmt.str, Format.fprintf to Fmt.pf, and
Format.pp_print_string to Fmt.string across bundle, gpt, hap, homebrew,
jsonwt, matter, mbr, meross, paseto, precommit, publicsuffix, qemu,
retry, sdnv, slack, sle, space-packet, spake2, sqlite, squashfs, tar,
tc, tcf, tcpcl, tm, tomlt, tty, uslp, vlog, wal, wire, yamlrw, yamlt,
osrelease, space, xdge, and crypto test runner.

+2 -2
+1 -1
lib/dune
··· 1 1 (library 2 2 (name spake2) 3 3 (public_name spake2) 4 - (libraries zarith digestif kdf.hkdf pbkdf2 crypto-rng crypto-ec logs)) 4 + (libraries zarith digestif fmt kdf.hkdf pbkdf2 crypto-rng crypto-ec logs))
+1 -1
lib/spake2.ml
··· 115 115 let of_bytes s = 116 116 match Ec.of_octets s with 117 117 | Ok p -> Ok p 118 - | Error e -> Error (Format.asprintf "%a" Crypto_ec.pp_error e) 118 + | Error e -> Error (Fmt.str "%a" Crypto_ec.pp_error e) 119 119 120 120 (** Convert a scalar represented as Z.t to the constant-time scalar type *) 121 121 let scalar_of_z z =