Subject: | Extend Crypt::ECB to allow passing Crypt:: objectes to the constructor |
I just uploaded Crypt::XTEA::LE, which extends Crypt::XTEA with an optional little_endian parameter and I would like to use it with Crypt::ECB.
Unfortunately, this isn't possible at the moment. I would like to adjust Crypt::ECB so it supports passing an already constructed Crypt:: object. That way the caller can set cycle count and any other optional parameters instead of having Crypt::ECB constructing the object internally. This is already possible with Crypt::CBC (for an example see https://metacpan.org/release/Crypt-XTEA-LE).
That would also mean that I will change sub new to call $object = Crypt::Something->new and then use that $object in all subsequent calls instead. This shouldn't affect the existing API or break working code.
Are you ok with incorporating these changes if I provide them?