Add support for CRC-32C (Castagnoli polynomial) to lib/crypto_backend

This commit is contained in:
Pavel Tobias
2022-03-15 01:54:07 +01:00
committed by Milan Broz
parent 1ffc9d967c
commit 1d5d6d73a5
2 changed files with 71 additions and 1 deletions

View File

@@ -88,6 +88,7 @@ int crypt_pbkdf_perf(const char *kdf, const char *hash,
/* CRC32 */
uint32_t crypt_crc32(uint32_t seed, const unsigned char *buf, size_t len);
uint32_t crypt_crc32c(uint32_t seed, const unsigned char *buf, size_t len);
/* Base64 */
int crypt_base64_encode(char **out, size_t *out_length, const char *in, size_t in_length);