mirror of
https://github.com/luxfi/pqclean.git
synced 2026-11-02 15:23:24 +00:00
16 lines
513 B
C
16 lines
513 B
C
#ifndef CONTROLBITS_H
|
|
#define CONTROLBITS_H
|
|
/* This file is for implementing the Nassimi-Sahni algorithm */
|
|
/* See David Nassimi, Sartaj Sahni "Parallel algorithms to set up the Benes permutationnetwork" */
|
|
/* See also https://cr.yp.to/papers/controlbits-20200923.pdf */
|
|
|
|
#include "namespace.h"
|
|
|
|
#define controlbitsfrompermutation CRYPTO_NAMESPACE(controlbitsfrompermutation)
|
|
|
|
#include <inttypes.h>
|
|
|
|
extern void controlbitsfrompermutation(unsigned char *out, const int16_t *pi, long long w, long long n);
|
|
|
|
#endif
|