spicetools/reader/crypt.h

18 lines
260 B
C
Raw Normal View History

2024-08-28 15:10:34 +00:00
#pragma once
#include <cstdint>
class Crypt {
private:
uint32_t keys[4];
public:
Crypt();
void set_keys(uint32_t reader_key, uint32_t game_key);
void crypt(uint8_t *data, size_t len);
uint16_t crc(const uint8_t *data, size_t len);
};