SecreC 2 language  2.8.0 (2023.09)
Language and standard library reference
Functions
applyPublicPermutation

Functions

template<domain D :shared3p , type T>
D T applyPublicPermutation (D T[[1]] x, uint[[1]] p)
 

Detailed Description

Permute a vector according to a public permutation.

Note
D - shared3p protection domain
Supported types - bool / uint8 / uint16 / uint32 / uint / int8 / int16 / int32 / int / float32 / float64 / fix32 / fix64
Parameters
x- vector to be permuted
p- permutation. Output at index i will be x[p[i]].
Returns
x permuted according to permutation p
Leakage
None

Function Documentation

◆ applyPublicPermutation()

D T applyPublicPermutation ( D T[[1]]  x,
uint[[1]]  p 
)