]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - lib/crc32.c
Roll crc32 into hash infrastructure
[karo-tx-uboot.git] / lib / crc32.c
index 27335a3ed9095b19d533c33a742fd752935d4640..76205da4f3060028508d4f39974b673ea52c898a 100644 (file)
@@ -249,3 +249,12 @@ uint32_t ZEXPORT crc32_wd (uint32_t crc,
 
        return crc;
 }
+
+void crc32_wd_buf(const unsigned char *input, unsigned int ilen,
+               unsigned char *output, unsigned int chunk_sz)
+{
+       uint32_t crc;
+
+       crc = crc32_wd(0, input, ilen, chunk_sz);
+       memcpy(output, &crc, sizeof(crc));
+}