[mb-devel] DiscID calculation problem

Lukáš Lalinský lalinsky at gmail.com
Mon Dec 3 09:56:25 UTC 2007


On Po, 2007-12-03 at 10:38 +0100, Christian Pontesegger wrote:
> If I got things right we always have 2 + 100*4 = 402 bytes which we
> use for SHA-1 calculation

http://wiki.musicbrainz.org/DiscIDCalculation#head-21391a9ce724f2e16f8abb0780e788ef21249ef1

"Before the data is fed through the SHA-1 hash, it is converted to
upper-case hex ASCII using printf("%02X", value); for single-byte values
and printf("%08X", value); for 4-byte values."

So 2 + 2 + 100 * 8 = 804.

Lukas





More information about the MusicBrainz-devel mailing list