This commit is contained in:
parent
2208218110
commit
3555893541
1 changed files with 0 additions and 5 deletions
|
|
@ -259,15 +259,10 @@ end
|
||||||
module RsaSignature : sig
|
module RsaSignature : sig
|
||||||
type t
|
type t
|
||||||
|
|
||||||
val sign : key:Mirage_crypto_pk.Rsa.priv -> string -> t
|
|
||||||
val jsont : t Jsont.t
|
val jsont : t Jsont.t
|
||||||
end = struct
|
end = struct
|
||||||
type t = string
|
type t = string
|
||||||
|
|
||||||
(* TODO rsa sign *)
|
|
||||||
let sign ~key s =
|
|
||||||
Mirage_crypto_pk.Rsa.decrypt ~crt_hardening:true ~mask:`Yes ~key s
|
|
||||||
|
|
||||||
let jsont =
|
let jsont =
|
||||||
let of_b32 s = B32.decode s in
|
let of_b32 s = B32.decode s in
|
||||||
let to_b32 t = B32.encode t in
|
let to_b32 t = B32.encode t in
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue