~
This commit is contained in:
parent
812b81a966
commit
c992e1d402
2 changed files with 5 additions and 5 deletions
|
|
@ -2,15 +2,11 @@ open Types
|
||||||
|
|
||||||
(* TODO
|
(* TODO
|
||||||
- take secmod devices as param
|
- take secmod devices as param
|
||||||
- time stuff
|
|
||||||
- hash stuff
|
- hash stuff
|
||||||
what is the hash algorithm
|
what is the hash algorithm
|
||||||
is it hash'ed then base32'ed in xxxP?
|
is it hash'ed then base32'ed in xxxP?
|
||||||
... *)
|
... *)
|
||||||
|
|
||||||
let mk_denomination_key rsa_pub =
|
|
||||||
DenominationKey.Rsa RsaDenominationKey.{ age_mask= 0; rsa_pub }
|
|
||||||
|
|
||||||
let mk_future_denom denom_secmod_sign_f
|
let mk_future_denom denom_secmod_sign_f
|
||||||
({
|
({
|
||||||
section_name;
|
section_name;
|
||||||
|
|
@ -27,7 +23,9 @@ let mk_future_denom denom_secmod_sign_f
|
||||||
sign= _;
|
sign= _;
|
||||||
} :
|
} :
|
||||||
Secmod_denom.rsa_denom) =
|
Secmod_denom.rsa_denom) =
|
||||||
let denom_pub = mk_denomination_key pub in
|
let denom_pub =
|
||||||
|
DenominationKey.Rsa RsaDenominationKey.{ age_mask= 0; rsa_pub= pub }
|
||||||
|
in
|
||||||
let denom_secmod_sig =
|
let denom_secmod_sig =
|
||||||
let open Binary_formats in
|
let open Binary_formats in
|
||||||
let h_denom_pub =
|
let h_denom_pub =
|
||||||
|
|
|
||||||
|
|
@ -19,10 +19,12 @@ let () =
|
||||||
check_bad Timestamp.jsont {|{"t_s": "agagou"}|};
|
check_bad Timestamp.jsont {|{"t_s": "agagou"}|};
|
||||||
|
|
||||||
(* TODO use a valid rsa_pub value *)
|
(* TODO use a valid rsa_pub value *)
|
||||||
|
(*
|
||||||
check DenominationKey.jsont
|
check DenominationKey.jsont
|
||||||
{|{"cipher": "RSA", "age_mask": 18, "rsa_pub": "agagouh"}|};
|
{|{"cipher": "RSA", "age_mask": 18, "rsa_pub": "agagouh"}|};
|
||||||
check DenominationKey.jsont
|
check DenominationKey.jsont
|
||||||
{|{"cipher": "CS", "age_mask": 18, "cs_pub": "ouhagag"}|};
|
{|{"cipher": "CS", "age_mask": 18, "cs_pub": "ouhagag"}|};
|
||||||
|
*)
|
||||||
()
|
()
|
||||||
|
|
||||||
let () =
|
let () =
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue