Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
Crc32.hpp
Go to the documentation of this file.
1#ifndef IV_SRC_CRYPTO_CRC32__HPP_
2#define IV_SRC_CRYPTO_CRC32__HPP_
3
4#include <cstdint>
5
6//https://github.com/randombit/botan/blob/master/src/lib/hash/checksum/crc32/crc32.cpp#L84C1-L84C24 extraído de aquí
7class Crc32 final
8{
9public:
10 Crc32();
11
12 Crc32(const Crc32 &other) = delete;
13 Crc32(Crc32 &&other) = delete;
14 virtual ~Crc32();
15
16 Crc32 &operator=(const Crc32 &other) = delete;
17 Crc32 &operator=(const Crc32 &&other) = delete;
18
19 uint32_t update(const char *data, uint32_t length);
20
21private:
22 uint32_t m_value;
23};
24
25#endif//IV_SRC_CRYPTO_CRC32__HPP_
Definition Crc32.hpp:8
virtual ~Crc32()
Crc32(Crc32 &&other)=delete
Crc32 & operator=(const Crc32 &&other)=delete
Crc32 & operator=(const Crc32 &other)=delete
uint32_t m_value
Definition Crc32.hpp:22
uint32_t update(const char *data, uint32_t length)
Definition Crc32.cpp:41
Crc32(const Crc32 &other)=delete
Crc32()
Definition Crc32.cpp:34