Skip to content

Commit

Permalink
fixed cxx standard flags & wrong epi::uint320_t initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdcvlsc committed Jun 6, 2024
1 parent 1ea6cfb commit ec6f69d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ChaCha20-Poly1305.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ namespace poly1305 {

std::cout << std::dec << "n = " << std::hex << n << '\n';

constexpr epi::uint320_t mask_n("0x10000000000000000000000006b637566");
constexpr epi::uint320_t mask_n("0x100000000000000000000000000000000");
n |= mask_n;
// n.limbs[2] |= 0x01;

Expand Down
2 changes: 1 addition & 1 deletion staticlib
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ HEADER_OUT:=build/include
LIB_OUT:=build/lib
LIB_OUTNAME:=libchacha20.a

CXXFLAGS:=-std=c++11 -Wall -Wextra
CXXFLAGS:=-std=c++20 -Wall -Wextra
USERFLAGS:=-D_MAKE_LIB -D_HIDE_WARNING
TEST_OPTIMIZATION:=-g -Og
HEADER_PATHS:=-I./$(HEADER_OUT)
Expand Down

0 comments on commit ec6f69d

Please sign in to comment.