summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTim Burke <tim.burke@gmail.com>2017-07-06 00:21:01 +0000
committerTim Burke <tim.burke@gmail.com>2017-07-06 17:40:38 +0000
commita9b20ae6a38073afe91ae2b7d789ddfb7dabade8 (patch)
tree5453dc1088cf5504c64dbb6e90d68500090fbef3 /include
parent9b4d8bcf8dc97d7edad3dc1443b317ecb5a0a254 (diff)
downloadliberasurecode-a9b20ae6a38073afe91ae2b7d789ddfb7dabade8.tar.gz
Use zlib for CRC-32
Previously, we had our own CRC that was almost but not quite like zlib's implementation. However, * it hasn't been subjected to the same rigor with regard to error-detection properties and * it may not even get used, depending upon whether zlib happens to get loaded before or after liberasurecode. Now, we'll use zlib's CRC-32 when writing new frags, while still tolerating frags that were created with the old implementation. Change-Id: Ib5ea2a830c7c23d66bf2ca404a3eb84ad00c5bc5 Closes-Bug: 1666320
Diffstat (limited to 'include')
-rw-r--r--include/erasurecode/alg_sig.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/erasurecode/alg_sig.h b/include/erasurecode/alg_sig.h
index 52554a9..e250fb3 100644
--- a/include/erasurecode/alg_sig.h
+++ b/include/erasurecode/alg_sig.h
@@ -57,8 +57,7 @@ alg_sig_t *init_alg_sig(int sig_len, int gf_w);
void destroy_alg_sig(alg_sig_t* alg_sig_handle);
int compute_alg_sig(alg_sig_t* alg_sig_handle, char *buf, int len, char *sig);
-int crc32_build_fast_table();
-int crc32(int crc, const void *buf, int size);
+int liberasurecode_crc32_alt(int crc, const void *buf, int size);
#endif