package rfc6287
Module Rfc6287Source
RFC6287 (OCRA)
The abstract OCRA suite type
Source
type di = {c : bool;(*C
*)q : [ `A | `N | `H ] * int;(*Q
*)p : [ `SHA1 | `SHA256 | `SHA512 ] option;(*P
*)s : int option;(*S
*)t : int option;(*T
*)
}Source
val gen :
?time:int64 ->
?c:int64 ->
?p:pinhash ->
?s:Cstruct.t ->
?t:timestamp ->
key:Cstruct.t ->
q:string ->
t ->
(Cstruct.t, err) Rresult.resultGenerate OCRA(K, {[C] | Q | [P | S | T]}).