Home
last modified time | relevance | path

Searched refs:secpar (Results 1 – 2 of 2) sorted by relevance

/systemd-251/src/libsystemd/sd-journal/
Dfsprg.c36 #define ISVALID_SECPAR(secpar) (((secpar) % 16 == 0) && ((secpar) >= 16) && ((secpar) <= 16384)) argument
37 #define VALIDATE_SECPAR(secpar) assert(ISVALID_SECPAR(secpar)); argument
152 …_t gensquare(const gcry_mpi_t n, const void *seed, size_t seedlen, uint32_t idx, unsigned secpar) { in gensquare() argument
153 size_t buflen = secpar / 8; in gensquare()
234 static void store_secpar(void *buf, uint16_t secpar) { in store_secpar() argument
235 secpar = secpar / 16 - 1; in store_secpar()
236 ((uint8_t*) buf)[0] = (secpar >> 8) & 0xff; in store_secpar()
237 ((uint8_t*) buf)[1] = (secpar >> 0) & 0xff; in store_secpar()
241 uint16_t secpar; in read_secpar() local
242 secpar = in read_secpar()
[all …]
Dfsprg.h38 size_t FSPRG_mskinbytes(unsigned secpar) _const_;
39 size_t FSPRG_mpkinbytes(unsigned secpar) _const_;
40 size_t FSPRG_stateinbytes(unsigned secpar) _const_;
43 void FSPRG_GenMK(void *msk, void *mpk, const void *seed, size_t seedlen, unsigned secpar);