Garbling labels as words #
At parameter k a garbling label is a (k + 1)-bit key and a colour bit,
BitString (k + 1) × Bool. Garbling schemes that work on words, and the circular correlation
robustness assumption on word hash families, write a label as its word labelBits: the key's bits
followed by the colour, k + 2 bits, which is the reply of labelCodec k. The word of a sum of
labels is the XOR of their words (labelBits_add).
This module also reads labels back from words. labelEquiv k identifies (k + 2)-bit strings
with labels, splitting off the last bit as the colour, and labelOfWord k word is the label of the
first k + 2 bits of word, padded with false. On a word of k + 2 bits, labelBits undoes it
(labelBits_labelOfWord).
Main definitions #
Cslib.Crypto.Garbling.labelBits: the word of a label.Cslib.Crypto.Garbling.labelEquiv: labels as(k + 2)-bit strings.Cslib.Crypto.Garbling.labelOfWord: the label of a word.
Main results #
Cslib.Crypto.Garbling.labelBits_labelOfWord: the word of the label of a(k + 2)-bit word is that word.
Words of labels #
Labels of words #
The colour of the label of a word is its bit k + 1.