diff options
author | thegeorg <thegeorg@yandex-team.ru> | 2022-05-10 22:16:03 +0300 |
---|---|---|
committer | thegeorg <thegeorg@yandex-team.ru> | 2022-05-10 22:16:03 +0300 |
commit | 09c71d918d4d0b0ebf67e1ab41aa90ddf587a3f2 (patch) | |
tree | dd44d2cb68e2845c2d4c367b66893f3e043a6e8e /contrib/restricted/aws/s2n/pq-crypto/kyber_r3/kyber512r3_params.h | |
parent | 5eb4a8a2d487411924e1d1b27c454223dcf35005 (diff) | |
download | ydb-09c71d918d4d0b0ebf67e1ab41aa90ddf587a3f2.tar.gz |
Update contrib/restricted/aws/s2n to 1.3.12
ref:f8279d764b4c00974a63543a1364c91e2b81b7a6
Diffstat (limited to 'contrib/restricted/aws/s2n/pq-crypto/kyber_r3/kyber512r3_params.h')
-rw-r--r-- | contrib/restricted/aws/s2n/pq-crypto/kyber_r3/kyber512r3_params.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/contrib/restricted/aws/s2n/pq-crypto/kyber_r3/kyber512r3_params.h b/contrib/restricted/aws/s2n/pq-crypto/kyber_r3/kyber512r3_params.h new file mode 100644 index 0000000000..d2d32d08f1 --- /dev/null +++ b/contrib/restricted/aws/s2n/pq-crypto/kyber_r3/kyber512r3_params.h @@ -0,0 +1,31 @@ +#pragma once + +/* All kyber512r3 functions and global variables in the pq-crypto/kyber_r3 directory + * should be defined using the namespace macro to avoid symbol collisions. For example, + * in foo.h, declare a function as follows: + * + * #define foo_function S2N_KYBER_512_R3_NAMESPACE(foo_function) + * int foo_function(int foo_argument); */ +#define S2N_KYBER_512_R3_NAMESPACE(s) s2n_kyber_512_r3_##s + +#define S2N_KYBER_512_R3_K 2 + +#define S2N_KYBER_512_R3_N 256 +#define S2N_KYBER_512_R3_Q 3329 + +#define S2N_KYBER_512_R3_SYMBYTES 32 /* size in bytes of hashes, and seeds */ +#define S2N_KYBER_512_R3_SSBYTES 32 /* size in bytes of shared key */ + +#define S2N_KYBER_512_R3_POLYBYTES 384 +#define S2N_KYBER_512_R3_POLYVECBYTES (S2N_KYBER_512_R3_K * S2N_KYBER_512_R3_POLYBYTES) + +#define S2N_KYBER_512_R3_ETA1 3 +#define S2N_KYBER_512_R3_POLYCOMPRESSEDBYTES 128 +#define S2N_KYBER_512_R3_POLYVECCOMPRESSEDBYTES 640 + +#define S2N_KYBER_512_R3_ETA2 2 + +#define S2N_KYBER_512_R3_INDCPA_MSGBYTES S2N_KYBER_512_R3_SYMBYTES +#define S2N_KYBER_512_R3_INDCPA_PUBLICKEYBYTES (S2N_KYBER_512_R3_POLYVECBYTES + S2N_KYBER_512_R3_SYMBYTES) +#define S2N_KYBER_512_R3_INDCPA_SECRETKEYBYTES (S2N_KYBER_512_R3_POLYVECBYTES) +#define S2N_KYBER_512_R3_INDCPA_BYTES (S2N_KYBER_512_R3_POLYVECCOMPRESSEDBYTES + S2N_KYBER_512_R3_POLYCOMPRESSEDBYTES) |