keys.h 774 B

123456789101112131415161718192021222324252627282930313233343536
  1. #ifndef KEYS_H
  2. #define KEYS_H
  3. #include "../metroflip_i.h"
  4. typedef enum {
  5. CARD_TYPE_BIP,
  6. CARD_TYPE_METROMONEY,
  7. CARD_TYPE_CHARLIECARD,
  8. CARD_TYPE_SMARTRIDER,
  9. CARD_TYPE_TROIKA,
  10. CARD_TYPE_UNKNOWN
  11. } CardType;
  12. typedef struct {
  13. CardType type;
  14. } CardInfo;
  15. typedef struct {
  16. uint64_t a;
  17. uint64_t b;
  18. } MfClassicKeyPair;
  19. typedef struct {
  20. const MfClassicKeyPair* keys;
  21. uint32_t data_sector;
  22. } TroikaCardConfig;
  23. extern const MfClassicKeyPair troika_1k_keys[16];
  24. extern const MfClassicKeyPair troika_4k_keys[40];
  25. extern const uint8_t SMARTRIDER_STANDARD_KEYS[3][6];
  26. extern const MfClassicKeyPair charliecard_1k_keys[16];
  27. extern const MfClassicKeyPair bip_1k_keys[16];
  28. extern const MfClassicKeyPair metromoney_1k_keys[16];
  29. #endif // KEYS_H