12345678910111213141516171819# 1 "default/lib/digestif/digestif_eq.ml"moduleMake(D:sigvaldigest_size:intend)=struct(* XXX(dinosaure): these functions are implemented (instead to use common
functions) to avoid timing attacks. So if you want to update this code, you
need to take care about some assumptions. *)leteqab=letret=ref0infori=0toD.digest_size-1doret:=!retlor((Char.code(String.getai))lxor(Char.code(String.getbi)))done;!ret<>0letneqab=not(eqab)letunsafe_compareab=String.compareabexternalint_compare:int->int->int="caml_int_compare"letcompareab=int_compare(Hashtbl.hasha)(Hashtbl.hashb)end