Debian Codegraph @

src/crypto/srp_constants.h

raw symbols SCIP
1 #ifndef LIBRIST_CRYPTO_SRP_CONSTANTS_H
2 #define LIBRIST_CRYPTO_SRP_CONSTANTS_H
3
4
5 #include <librist/common.h>
6 typedef enum
7 {
8 /* Slots 0 and 1 (formerly NG_512, NG_768) are reserved to keep the
9 * post-removal integer values of the surviving groups stable. */
10 LIBRIST_SRP_NG_RESERVED_0 = 0,
11 LIBRIST_SRP_NG_RESERVED_1 = 1,
12 LIBRIST_SRP_NG_1024 = 2,
13 LIBRIST_SRP_NG_2048 = 3,
14 LIBRIST_SRP_NG_4096 = 4,
15 LIBRIST_SRP_NG_8192 = 5
16 } librist_srp_ng_e;
17
18 #define LIBRIST_SRP_NG_DEFAULT LIBRIST_SRP_NG_2048
19
20 //Marked as public because we want to use it in ristsrppassword. NOT (yet) intended for public use, so zero API/ABI guarantees/promises.
21 RIST_API int librist_get_ng_constants(librist_srp_ng_e ng_pair, const char **n, const char **g);
22
23 #endif /* LIBRIST_CRYPTO_SRP_CONSTANTS_H */