Bug#648546: add OpenPGP ASCII armor checksum to Digest::CRC
Daniel Kahn Gillmor
dkg at fifthhorseman.net
Sat Nov 12 20:04:02 UTC 2011
Package: libdigest-crc-perl
Version: 0.17-1
Severity: wishlist
Tags: patch upstream
One common CRC used on the 'net today is the radix-64 armor checksum
specified in the OpenPGP standard:
https://tools.ietf.org/html/rfc4880#section-6
This is already possible to implement with Digest::CRC using the
following object:
my $ctx = Digest::CRC->new(width => 24, init=> 0xB704CE,
xorout => 0x000000, refout => 0,
poly => 0x864CFB, refin => 0,
cont => 1);
But this is kind of bulky and inconvenient to use.
The attached patch enhances Digest::CRC by adding a crcopenpgparmor
type, and exporting a function of the same name. It should apply to
version 0.17 of Digest::CRC.
I'd be happy to have this patch included upstream, and release it under
the same terms as the upstream source.
Thanks for Digest::CRC, it's very much appreciated.
Regards,
--dkg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: add-crcopenpgparmor.diff
Type: text/x-diff
Size: 2230 bytes
Desc: patch against 0.17 of Digest::CRC to add crcopenpgparmor
URL: <http://lists.alioth.debian.org/pipermail/pkg-perl-maintainers/attachments/20111112/e06d3bec/attachment.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 965 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-perl-maintainers/attachments/20111112/e06d3bec/attachment.pgp>
More information about the pkg-perl-maintainers
mailing list