Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Ruben Anthony Gonzalez
Namespaced Pqm4
Commits
2c35f43d
Commit
2c35f43d
authored
May 29, 2022
by
Ruben Anthony Gonzalez
Browse files
Fix alignment issues of kyber
parent
3f188d17
Changes
1
Hide whitespace changes
Inline
Side-by-side
crypto_kem/kyber512/m4fspeed/ntt.c
View file @
2c35f43d
...
...
@@ -12,9 +12,9 @@ const int16_t PQM4_KYBER512_M4fspeed_zetas[64] =
418
,
329
,
3173
,
3254
,
817
,
1097
,
603
,
610
,
1322
,
2044
,
1864
,
384
,
2114
,
3193
,
1218
,
1994
,
2455
,
220
,
2142
,
1670
,
2144
,
1799
,
2051
,
794
,
1819
,
2475
,
2459
,
478
,
3221
,
3021
,
996
,
991
,
958
,
1869
,
1522
,
1628
};
}
;
const
int16_t
PQM4_KYBER512_M4fspeed_zetas_asm
[
128
]
=
{
const
int16_t
__attribute__
((
aligned
(
4
)))
PQM4_KYBER512_M4fspeed_zetas_asm
[
128
]
=
{
// 7 & 6 & 5 & 4 layers
0
,
2571
,
2970
,
1812
,
1493
,
1422
,
287
,
202
,
3158
,
622
,
1577
,
182
,
962
,
2127
,
1855
,
1468
,
// 1st loop of 3 & 2 & 1 layers
...
...
@@ -35,7 +35,7 @@ const int16_t PQM4_KYBER512_M4fspeed_zetas_asm[128] = {
3124
,
448
,
2264
,
3221
,
3021
,
996
,
991
,
1758
,
677
,
2054
,
958
,
1869
,
1522
,
1628
};
const
int16_t
PQM4_KYBER512_M4fspeed_zetas_inv_ct_asm
[
256
]
=
const
int16_t
__attribute__
((
aligned
(
4
)))
PQM4_KYBER512_M4fspeed_zetas_inv_ct_asm
[
256
]
=
{
// pad + LAYER 7+6+5+4
0
,
2285
,
2285
,
758
,
2285
,
1517
,
758
,
359
,
2285
,
3127
,
1517
,
1907
,
758
,
3042
,
359
,
1836
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment