Skip Menu |

This queue is for tickets about the Crypt-OpenPGP CPAN distribution.

Report information
The Basics
Id: 82315
Status: new
Priority: 0/
Queue: Crypt-OpenPGP

People
Owner: Nobody in particular
Requestors: sandals [...] crustytoothpaste.net
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



Subject: [PATCH] Add support for Crypt::CAST5
Currently, Crypt::OpenPGP uses Crypt::CAST5_PP to support CAST5. Some people might have Crypt::CAST5 instead; this can also be significantly faster. Attached is a patch that allows using Crypt::CAST5 if Crypt::CAST5_PP is not available. I have a branch for this at git://github.com/bk2204/Crypt-OpenPGP.git crypt-cast5. Please note that this is based on my non-pari branch, not current master, so you'll want to use the patch if you're not interested in merging non-pari at this time. The testsuite continues to pass on Debian amd64/sid.
Subject: crypt-cast5.patch
diff --git a/lib/Crypt/OpenPGP/Cipher.pm b/lib/Crypt/OpenPGP/Cipher.pm index 8476657..4b11aa2 100644 --- a/lib/Crypt/OpenPGP/Cipher.pm +++ b/lib/Crypt/OpenPGP/Cipher.pm @@ -111,7 +111,7 @@ package Crypt::OpenPGP::Cipher::CAST5; use strict; use base qw( Crypt::OpenPGP::Cipher ); -sub crypt_class { 'Crypt::CAST5_PP' } +sub crypt_class { ['Crypt::CAST5_PP', 'Crypt::CAST5'] } sub keysize { 16 } sub blocksize { 8 }