This commit is contained in:
2025-04-30 15:48:50 +02:00
commit 4a0ca11c9a
11 changed files with 605 additions and 0 deletions

15
base.h Normal file
View File

@@ -0,0 +1,15 @@
//
// Created by bruno on 4/29/25.
//
#ifndef CANDASH_BASE_H
#define CANDASH_BASE_H
#include <stddef.h>
void hex_dump(const unsigned char *data, size_t len);
int base64_decode(const char *in, unsigned char *out, size_t *out_len);
extern const unsigned char dtable[256];
void init_crc32_table(void);
uint32_t crc32_le(uint32_t crc, const uint8_t *buf, size_t len);
#endif //CANDASH_BASE_H