2005/7/29, NAKAMURA, Hiroshi <nakahiro / sarion.co.jp>:
>       if (base & 1).nonzero?
>         crc |= bitmask;
>       else
>         crc &= ~bitmask;
>       end

No one must find extra semicolon at the end of line.  :-(

>   require 'zlib'
>   p Zlib.crc32("12345")

>   require 'pgp/util'
>   p PGP::Util.crc24(msg)

FYI: You can find these implementations "RAA source code search" with
'crc'.  cf. http://raa.ruby-lang.org/gonzui/search?q=crc

Regards,
// NaHi