Skip to content

ConstantTimeCompare

[Source]

primitive val ConstantTimeCompare

Constructors

create

[Source]

new val create()
: ConstantTimeCompare val^

Returns


Public Functions

apply

[Source]

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

[Source]

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

Parameters

Returns


ne

[Source]

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

Parameters

Returns