Boost C++ Libraries of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards


Chapter 10. Boost.CRC 1.5

Daryle Walker

Distributed under the Boost Software License, Version 1.0. (See the accompanying file LICENSE_1_0.txt or a copy at

Table of Contents

What is Boost.CRC?
Theoretical CRC Computer
Optimized CRC Computer
CRC Function
Augmented-CRC Function
Pre-Defined CRC Samples
End Matter
Header <boost/crc.hpp>

CRCs (cyclic redundancy codes) is one common technique to confirming data integrity after transmission. The Boost.CRC library provides access to two styles of CRC computation, one as a function template, the other as a function template and two computation object class templates, where the two class templates differ in speed.