You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In file included from /home/ecomaikgolf/git/hybrid-HE-framework/build/tests/../../ciphers/he_only/plain/../../common_Zp/kats.h:13,
from /home/ecomaikgolf/git/hybrid-HE-framework/build/tests/../../ciphers/he_only/plain/testvectors.h:3,
from /home/ecomaikgolf/git/hybrid-HE-framework/build/tests/he_only_test.cpp:1:
/home/ecomaikgolf/git/hybrid-HE-framework/build/tests/../../ciphers/he_only/plain/../../common_Zp/../common/utils.h: In member function ‘void utils::SeededRandom::init_shake(std::array<unsigned char, 16>&)’:
/home/ecomaikgolf/git/hybrid-HE-framework/build/tests/../../ciphers/he_only/plain/../../common_Zp/../common/utils.h:130:50: error: invalid use of incomplete type ‘struct std::array<unsigned char, 16>’
130 | if (SUCCESS != Keccak_HashUpdate(&shake128_, seed.data(), seed.size() * 8))
| ^~~~
In file included from /usr/include/c++/13/bits/memory_resource.h:47,
from /usr/include/c++/13/string:58,
from /usr/include/c++/13/bits/locale_classes.h:40,
from /usr/include/c++/13/bits/ios_base.h:41,
from /usr/include/c++/13/streambuf:43,
from /usr/include/c++/13/bits/streambuf_iterator.h:35,
from /usr/include/c++/13/iterator:66,
from /home/ecomaikgolf/git/hybrid-HE-framework/build/tests/../../ciphers/he_only/plain/../../common_Zp/kats.h:6:
/usr/include/c++/13/tuple:2005:45: note: declaration of ‘struct std::array<unsigned char, 16>’
2005 | template<typename _Tp, size_t _Nm> struct array;
| ^~~~~
/home/ecomaikgolf/git/hybrid-HE-framework/build/tests/../../ciphers/he_only/plain/../../common_Zp/../common/utils.h:130:63: error: invalid use of incomplete type ‘struct std::array<unsigned char, 16>’
130 | if (SUCCESS != Keccak_HashUpdate(&shake128_, seed.data(), seed.size() * 8))
| ^~~~
/usr/include/c++/13/tuple:2005:45: note: declaration of ‘struct std::array<unsigned char, 16>’
2005 | template<typename _Tp, size_t _Nm> struct array;
| ^~~~~
/home/ecomaikgolf/git/hybrid-HE-framework/build/tests/../../ciphers/he_only/plain/../../common_Zp/../common/utils.h: In member function ‘void utils::SeededRandom::init_shake(uint64_t, uint64_t)’:
/home/ecomaikgolf/git/hybrid-HE-framework/build/tests/../../ciphers/he_only/plain/../../common_Zp/../common/utils.h:137:29: error: aggregate ‘std::array<unsigned char, 16> seed’ has incomplete type and cannot be defined
137 | std::array<uint8_t, 16> seed;
Error message:
Compiler version:
Fix:
Just including
<array>
inciphers/common/utils.h
The text was updated successfully, but these errors were encountered: