3#include <protocols/mf_classic/mf_classic.h>
17void crypto1_free(
Crypto1* instance);
19void crypto1_reset(
Crypto1* crypto1);
21void crypto1_init(
Crypto1* crypto1, uint64_t key);
23uint8_t crypto1_bit(
Crypto1* crypto1, uint8_t in,
int is_encrypted);
25uint8_t crypto1_byte(
Crypto1* crypto1, uint8_t in,
int is_encrypted);
27uint32_t crypto1_word(
Crypto1* crypto1, uint32_t in,
int is_encrypted);
33void crypto1_encrypt_reader_nonce(
42uint32_t crypto1_lfsr_rollback_word(
Crypto1* crypto1, uint32_t in,
int fb);
44bool crypto1_nonce_matches_encrypted_parity_bits(uint32_t nt, uint32_t ks, uint8_t nt_par_enc);
46bool crypto1_is_weak_prng_nonce(uint32_t nonce);
48uint32_t crypto1_decrypt_nt_enc(uint32_t cuid, uint32_t nt_enc,
MfClassicKey known_key);
50uint32_t crypto1_prng_successor(uint32_t x, uint32_t n);
Definition bit_buffer.c:7
Definition mf_classic.h:87