Module keynesis::memsec[][src]

Memsec utility functions

Most of the types defined here implements Scrubbed trait.

Traits

Scrubbed

Types implementing this can be scrubbed, the memory is cleared and erased with a dummy value.

Functions

memcmp

Constant time comparison

memeq

compare the equality of the 2 given arrays, constant in time

memset

Perform a secure memset. This function is guaranteed not to be elided or reordered.