Converts from a hash digest (exactly HashDigits digits) to a hash_t.
Checks whether str is a hash digest.
Creates a hash digest string from a hash_t.
Converts from a hex string to a hash_t.
Constant defining the number of hexadecimal digits needed to represent a hash_t.
Boost Software License Version 1.0. See LICENSE_BOOST.txt for details. Alternatively, this file may be distributed under the terms of the Tango 3-Clause BSD License (see LICENSE_BSD.txt for details).
Copyright (c) 2009-2016 dunnhumby Germany GmbH. All rights reserved.
Utility functions for converting hash_t <-> hexadecimal strings.
A few different types of data are handled: * Hex strings: strings of variable length containing valid hexadecimal digits (case insensitive), optionally prepended by the hex radix specifier ("0x") * Hash digests: hex strings of exactly hash_t.sizeof * 2 digits * hash_t