Efficient Encoding and Random Sampling of Permutations

Uniformly sampling permutations over domains of size from 20 to 7000 is needed in many cryptographic systems, especially in code-based post-quantum cryptography, where permutations are part of private keys or digital signatures. A common way to uniformly sample a permutation is by using the Fisher-Yates shuffle algorithm, which is equivalent to obtaining the Lehmer digits of the permutation’s Lehmer representation. These digits are obtained by drawing random bits from a cryptographically secure pseudorandom number generator. If the drawn value is outside the valid range, it is rejected and new bits are sampled. Depending on the range of these digits, this sampling procedure can lead to a high rejection rate. In this paper, we propose methods that reduce the rejection rate and sample permutations more efficiently. The approach is based on encoding Lehmer digits in pairs or small groups and then drawing random bits to build these grouped digits. This reduces the number of discarded bits and provides a faster and more efficient way to sample uniform permutations compared to existing methods. As a byproduct, the proposed encoding methods also yield a more compact representation of permutations, requiring almost as few bits as the optimal encoding but with lower computational cost. Such a compact form is advantageous when the permutation itself, rather than a seed, is included in a signature, leading to reduced bandwidth usage.

Authors

Institutions

Publication Details

Journal
IACR Communications in Cryptology
Published
2026-10-26
DOI
https://doi.org/10.62056/aby76cy6b
Primary Topic
Coding theory and cryptography
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Efficient Encoding and Random Sampling of Permutations

Parisa Amiri Eliasi, Joan Daemen
IACR Communications in Cryptology
Coding theory and cryptography
article

Efficient Encoding and Random Sampling of Permutations

Parisa Amiri Eliasi, Joan Daemen
article en

Abstract

Uniformly sampling permutations over domains of size from 20 to 7000 is needed in many cryptographic systems, especially in code-based post-quantum cryptography, where permutations are part of private keys or digital signatures. A common way to uniformly sample a permutation is by using the Fisher-Yates shuffle algorithm, which is equivalent to obtaining the Lehmer digits of the permutation’s Lehmer representation. These digits are obtained by drawing random bits from a cryptographically secure pseudorandom number generator. If the drawn value is outside the valid range, it is rejected and new bits are sampled. Depending on the range of these digits, this sampling procedure can lead to a high rejection rate. In this paper, we propose methods that reduce the rejection rate and sample permutations more efficiently. The approach is based on encoding Lehmer digits in pairs or small groups and then drawing random bits to build these grouped digits. This reduces the number of discarded bits and provides a faster and more efficient way to sample uniform permutations compared to existing methods. As a byproduct, the proposed encoding methods also yield a more compact representation of permutations, requiring almost as few bits as the optimal encoding but with lower computational cost. Such a compact form is advantageous when the permutation itself, rather than a seed, is included in a signature, leading to reduced bandwidth usage.

IACR Communications in CryptologyVol. 3(3)
Radboud University Nijmegen (NL)
Horizon 2020 Framework Programme
Openalex Percentile: Top 14%
Coding theory and cryptography
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon