Skip to content

Commit

Permalink
Added includes of <ostream>
Browse files Browse the repository at this point in the history
  • Loading branch information
dsuponitskiy-duality committed Nov 22, 2024
1 parent dc177c7 commit baa1f79
Show file tree
Hide file tree
Showing 12 changed files with 31 additions and 18 deletions.
1 change: 1 addition & 0 deletions src/core/include/lattice/hal/default/poly-impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
#include <cmath>
#include <limits>
#include <memory>
#include <ostream>
#include <string>
#include <utility>
#include <vector>
Expand Down
1 change: 1 addition & 0 deletions src/core/include/lattice/hal/elemparams.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
#include "utils/inttypes.h"
#include "utils/serializable.h"

#include <ostream>
#include <string>
#include <utility>

Expand Down
1 change: 1 addition & 0 deletions src/core/include/math/hal/bigintdyn/mubintvecdyn.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
#include "utils/serializable.h"

#include <initializer_list>
#include <ostream>
#include <string>
#include <utility>
#include <vector>
Expand Down
1 change: 1 addition & 0 deletions src/core/include/math/hal/bigintdyn/ubintdyn.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@

#include <functional>
#include <limits>
#include <ostream>
#include <string>
#include <type_traits>
#include <utility>
Expand Down
5 changes: 3 additions & 2 deletions src/core/include/math/hal/bigintfxd/mubintvecfxd.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,13 @@
#ifndef LBCRYPTO_MATH_HAL_BIGINTFXD_MUBINVECFXD_H
#define LBCRYPTO_MATH_HAL_BIGINTFXD_MUBINVECFXD_H

#include <string>
#include "math/hal/bigintfxd/ubintfxd.h"

#include "utils/inttypes.h"
#include "utils/serializable.h"

#include "math/hal/bigintfxd/ubintfxd.h"
#include <ostream>
#include <string>

/**
* @namespace bigintfxd
Expand Down
21 changes: 11 additions & 10 deletions src/core/include/math/hal/bigintfxd/ubintfxd.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,6 @@
#ifndef LBCRYPTO_MATH_HAL_BIGINTFXD_UBINTFXD_H
#define LBCRYPTO_MATH_HAL_BIGINTFXD_UBINTFXD_H

#include <cstdlib>
#include <cstring>
#include <fstream>
#include <functional>
#include <limits>
#include <memory>
#include <string>
#include <type_traits>
#include <typeinfo>

#include "math/hal/basicint.h"
#include "math/hal/integer.h"

Expand All @@ -64,6 +54,17 @@
#include "utils/serializable.h"
#include "utils/utilities.h"

#include <cstdlib>
#include <cstring>
#include <fstream>
#include <functional>
#include <limits>
#include <memory>
#include <ostream>
#include <string>
#include <type_traits>
#include <typeinfo>

////////// bigintfxd code
typedef uint32_t integral_dtype;

Expand Down
9 changes: 5 additions & 4 deletions src/core/include/math/hal/bigintntl/mubintvecntl.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,16 @@
#include <NTL/vec_ZZ.h>
#include <NTL/vector.h>

#include <initializer_list>
#include <string>
#include <vector>

#include "math/hal/bigintntl/ubintntl.h"
#include "utils/exception.h"
#include "utils/inttypes.h"
#include "utils/serializable.h"

#include <initializer_list>
#include <ostream>
#include <string>
#include <vector>

// defining this forces modulo when you write to the vector (except with at())
// this is becuase NTL required inputs to modmath to be < modulus but BU does
// not play with this and you will see different tests in pke pass and fail.
Expand Down
1 change: 1 addition & 0 deletions src/core/include/math/hal/bigintntl/ubintntl.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
#include <functional>
#include <limits>
#include <memory>
#include <ostream>
#include <sstream>
#include <string>
#include <type_traits>
Expand Down
1 change: 1 addition & 0 deletions src/core/include/math/hal/intnat/mubintvecnat.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@

#include <algorithm>
#include <initializer_list>
#include <ostream>
#include <string>
#include <utility>
#include <vector>
Expand Down
1 change: 1 addition & 0 deletions src/core/include/math/hal/intnat/ubintnat.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
#include <cstdint>
#include <functional>
#include <limits>
#include <ostream>
#include <string>
#include <type_traits>
#include <vector>
Expand Down
2 changes: 2 additions & 0 deletions src/core/include/utils/serial.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@

#include "utils/sertype.h"

#include <ostream>

#ifndef CEREAL_RAPIDJSON_HAS_STDSTRING
#define CEREAL_RAPIDJSON_HAS_STDSTRING 1
#endif
Expand Down
5 changes: 3 additions & 2 deletions src/pke/include/encoding/plaintext.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,13 @@
#include "constants.h"
#include "scheme/scheme-id.h"

#include <algorithm>
#include <initializer_list>
#include <memory>
#include <ostream>
#include <string>
#include <vector>
#include <algorithm>
#include <utility>
#include <vector>

namespace lbcrypto {

Expand Down

0 comments on commit baa1f79

Please sign in to comment.