add secmod sign_with_xx

This commit is contained in:
swrup 2025-12-16 14:20:41 +01:00
parent f69f393abb
commit 5ef99e7099
2 changed files with 33 additions and 0 deletions

View file

@ -2,6 +2,15 @@ open Crypto
type t
val sign_with_sm_key : t -> string -> eddsa_sig
val verify_with_sm_key : t -> eddsa_sig -> msg:string -> (unit, string) result
val sign_with_signkey :
t -> pub:eddsa_pub -> string -> (eddsa_sig, string) result
val verify_with_signkey :
t -> pub:eddsa_pub -> eddsa_sig -> msg:string -> (unit, string) result
val get_sm_key_priv : t -> eddsa_priv
val get_sm_key_pub : t -> eddsa_pub
val get_signkeys : t -> Signkey_data.t list