Crate rostl_primitives

Source
Expand description

Commonly used base types and primitives for the oblivious algorithms.

Modules§

asm
Assembly implementations of the Cmov trait.
asm_x86
x86 assembly implementations of the Cmov trait.
indexable
Traits for indexable types.
ooption
Implements an option type with constant-time conditional move operations.
traits
Traits for conditional move and swap operations.
utils
Some common utility functions that should be in the standard library. This is a temporary solution until they are added to the standard library.

Macros§

cmov_body
The shared body for cmov. Any file that uses the macro should include be in a module that includes the bytemuck crate and should also include:
cxchg_body
UNDONE(git-20) Optimized cxchg
impl_cmov_for_generic_pod
Automatically implement the Cmov trait for a generic type that is a pod. usage:
impl_cmov_for_pod
Automatically implement the Cmov trait for a concrete type that is a pod.