Skip to content

Commit 765ab31

Browse files
committed
ci debug
1 parent 729cd03 commit 765ab31

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

libOTe/Tools/Pprf/RegularPprf.h

+6-1
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,10 @@ namespace osuCrypto
284284
auto parents = levels[d];
285285

286286
// The next level of theGGM tree that we are populating.
287-
auto children = levels[d + 1];
287+
auto children = levels[d + 1];
288+
assert((u64)level0.data() % sizeof(block) == 0 && "levels requires aligment");
289+
assert((u64)level1.data() % sizeof(block) == 0 && "levels requires aligment");
290+
288291

289292
// For each child, populate the child by expanding the parent.
290293
for (u64 parentIdx = 0, childIdx = 0; parentIdx < width; ++parentIdx, childIdx += 2)
@@ -897,6 +900,8 @@ namespace osuCrypto
897900
// The next level that we want to construct.
898901
auto level1 = levels[d + 1];
899902
assert(level1.size() == width * 2);
903+
assert((u64)level0.data() % sizeof(block) == 0 && "levels requires aligment");
904+
assert((u64)level1.data() % sizeof(block) == 0 && "levels requires aligment");
900905

901906
for (u64 parentIdx = 0, childIdx = 0; parentIdx < width; ++parentIdx, childIdx += 2)
902907
{

0 commit comments

Comments
 (0)