Skip to content

Commit ac27a6c

Browse files
authored
Merge pull request #192 from cppalliance/sha3basev2
Add SHA3/SHAKE base class v2
2 parents dc006b2 + 937ae90 commit ac27a6c

File tree

3 files changed

+485
-2
lines changed

3 files changed

+485
-2
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ jobs:
416416
fail-fast: false
417417
matrix:
418418
compiler: [ intel ]
419-
standard: [ c++20 ]
419+
standard: [ 20, 23 ]
420420
steps:
421421
- uses: actions/checkout@v4
422422
with:
@@ -464,7 +464,12 @@ jobs:
464464
run: |
465465
cd ../boost-root
466466
mkdir __build__ && cd __build__
467-
cmake -DCMAKE_C_COMPILER=icx -DCMAKE_CXX_COMPILER=icpx -DBOOST_INCLUDE_LIBRARIES=$LIBRARY -DBUILD_TESTING=ON ..
467+
cmake -DCMAKE_C_COMPILER=icx \
468+
-DCMAKE_CXX_COMPILER=icpx \
469+
-DCMAKE_CXX_STANDARD=${{ matrix.standard }} \
470+
-DCMAKE_CXX_STANDARD_REQUIRED=ON \
471+
-DBOOST_INCLUDE_LIBRARIES=$LIBRARY \
472+
-DBUILD_TESTING=ON ..
468473
469474
- name: Build tests
470475
run: |

include/boost/crypt2/detail/compat.hpp

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,20 @@ using unexpected =
296296
boost::crypt::detail::expected_impl::unexpected<E>;
297297
#endif
298298

299+
// Endian
300+
enum class endian : int
301+
{
302+
#ifdef BOOST_CRYPT_HAS_CUDA
303+
little = static_cast<int>(cuda::std::endian::little),
304+
big = static_cast<int>(cuda::std::endian::big),
305+
native = static_cast<int>(cuda::std::endian::native),
306+
#else
307+
little = static_cast<int>(std::endian::little),
308+
big = static_cast<int>(std::endian::big),
309+
native = static_cast<int>(std::endian::native),
310+
#endif
311+
};
312+
299313
} // namespace boost::crypt::compat
300314

301315
#endif // BOOST_CRYPT2_DETAIL_COMPAT_HPP

0 commit comments

Comments
 (0)