ConstantTimeCompare

primitive val ConstantTimeCompare

Constructors

create

new val create()
: ConstantTimeCompare val^

Returns


Public Functions

apply

Return true if the two ByteSeqs, xs and ys, have equal contents. The time taken is independent of the contents.

fun box apply(
  xs: (String val | Array[U8 val] val),
  ys: (String val | Array[U8 val] val))
: Bool val

Parameters

Returns


eq

fun box eq(
  that: ConstantTimeCompare val)
: Bool val

Parameters

Returns


ne

fun box ne(
  that: ConstantTimeCompare val)
: Bool val

Parameters

Returns