Skip to content

ConstantTimeCompare

[Source]

primitive val ConstantTimeCompare

Constructors

create

[Source]

new val create()
: ConstantTimeCompare val^

Returns


Public Functions

apply[optional S: (String box | Array[U8 val] box)]

[Source]

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

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

Parameters

  • xs: S
  • ys: S

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