diff --git a/src/lib/utils/bitvector.h b/src/lib/utils/bitvector.h new file mode 100644 index 00000000000..2c21a332bf7 --- /dev/null +++ b/src/lib/utils/bitvector.h @@ -0,0 +1,1442 @@ +/* + * An abstraction for an arbitrarily large bitvector that can + * optionally use the secure_allocator. All bitwise accesses and all + * constructors are implemented in constant time. Otherwise, only methods + * with the "ct_" pre-fix run in constant time. + * + * (C) 2023-2024 Jack Lloyd + * (C) 2023-2024 René Meusel, Rohde & Schwarz Cybersecurity + * + * Botan is released under the Simplified BSD License (see license.txt) + */ + +#ifndef BOTAN_BIT_VECTOR_H_ +#define BOTAN_BIT_VECTOR_H_ + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include + +namespace Botan { + +template