1 #ifndef SSP21_SEQUENCELENGTH_H 2 #define SSP21_SEQUENCELENGTH_H 4 #include "ssp21/util/SequenceTypes.h" 5 #include "ssp21/crypto/gen/ParseError.h" 6 #include "ssp21/crypto/gen/FormatError.h" 30 static const uint8_t top_bit_mask = 0x80;
31 static const uint8_t bottom_bits_mask = 0x7F;
33 static const uint32_t max_1_byte_value = 127;
34 static const uint32_t max_2_byte_value = 16383;
35 static const uint32_t max_3_byte_value = 2097151;
36 static const uint32_t max_4_byte_value = 268435455;
44 static size_t size_in_bytes(uint32_t value);
SSP21-cpp main namespace.