Algorithms_in_C 1.0.0
Set of algorithms implemented in C.
|
Files | |
file | hash_adler32.c |
32-bit Adler hash algorithm | |
file | hash_crc32.c |
32-bit CRC hash algorithm | |
file | hash_djb2.c |
DJB2 hash algorithm | |
file | hash_sdbm.c |
SDBM hash algorithm | |
file | hash_xor8.c |
8-bit XOR hash algorithm for ASCII characters | |
Functions | |
uint32_t | adler32 (const char *s) |
32-bit Adler algorithm implementation More... | |
void | test_adler32 () |
Test function for adler32. More... | |
uint32_t | crc32 (const char *s) |
32-bit CRC algorithm implementation More... | |
void | test_crc32 () |
Test function for crc32. More... | |
uint64_t | djb2 (const char *s) |
DJB2 algorithm implementation. More... | |
void | test_djb2 (void) |
Test function for djb2. More... | |
uint64_t | sdbm (const char *s) |
SDBM algorithm implementation. More... | |
void | test_sdbm () |
Test function for sdbm. More... | |
uint8_t | xor8 (const char *s) |
8-bit XOR algorithm implementation More... | |
void | test_xor8 () |
Test function for xor8. More... | |
uint32_t adler32 | ( | const char * | s | ) |
32-bit Adler algorithm implementation
s | NULL terminated ASCII string to hash |
uint32_t crc32 | ( | const char * | s | ) |
32-bit CRC algorithm implementation
s | NULL terminated ASCII string to hash |
uint64_t djb2 | ( | const char * | s | ) |
DJB2 algorithm implementation.
s | NULL terminated string to hash |
uint64_t sdbm | ( | const char * | s | ) |
SDBM algorithm implementation.
s | NULL terminated string to hash |
void test_adler32 | ( | ) |
Test function for adler32.
void test_crc32 | ( | ) |
Test function for crc32.
void test_djb2 | ( | void | ) |
Test function for djb2.
void test_sdbm | ( | ) |
Test function for sdbm.
void test_xor8 | ( | ) |
Test function for xor8.
uint8_t xor8 | ( | const char * | s | ) |
8-bit XOR algorithm implementation
s | NULL terminated ASCII string to hash |