+
+/**
+ * A convenience one-shot function for CRC.
+ * It is equivalent to this snippet of code:
+ *
+ * crc32_context ctx;
+ * crc32_init(&ctx, CRC_MODE_DEFAULT);
+ * crc32_update(&ctx, buf, len);
+ * return crc32_final(&ctx);
+ */
+u32 crc32_hash_buffer(const byte *buf, uint len);
+
+#endif