Add byte typedef in Kalyna's anonymous namespace to avoid issues with globally scoped byte

This check-in supports Romain Geissler's work on cleaning up our use of ::byte when it collides with std::byte. Regardless of what happens, such as removing ::byte and adding CryptoPP::byte, providing the typedef here makes Kalyna immune to the outside changes. Also see Pull Request 437 and 438.
pull/397/merge
Jeffrey Walton 2017-07-16 11:11:41 -04:00
parent 32f715f1d7
commit fe63795638
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
1 changed files with 3 additions and 0 deletions

View File

@ -31,6 +31,9 @@ NAMESPACE_END
ANONYMOUS_NAMESPACE_BEGIN ANONYMOUS_NAMESPACE_BEGIN
// The typedef here is to sidestep problems with byte in the global namespace
typedef unsigned char byte;
using CryptoPP::word64; using CryptoPP::word64;
using CryptoPP::KalynaTab::T; using CryptoPP::KalynaTab::T;
using CryptoPP::KalynaTab::S; using CryptoPP::KalynaTab::S;