std1.0.0-beta-7 SafeC docs

std :: crypto::ct

Function std::ct_copy_if

#include <std/crypto/ct.h> source ยท definition

void ct_copy_if(unsigned int bit, []unsigned char dst, []const unsigned char src)

dst[0..n) = bit ? src[0..n) : dst[0..n) ('bit' is 0 or 1), touching every byte either way.