Daniel Kahn Gillmor dkg@fifthhorseman.net writes:
You'd need to have some flag to remember if it's been initialized, but you need that anyway for the is_encrypt method, right?
i'm not sure i see the parallel. is_encrypt() says whether the Crypt::Nettle::Cipher object was initialized as an encrypting cipher or a decrypting cipher.
I was just thinking of the internal book-keeping, which I imagine would be the same (but with three possible states rather than two).
Is the revision control for Nettle publicly visible?
Yes. A little bit awkward, in that you need to get the complete lsh tree, but follow the instructions at http://www.lysator.liu.se/~nisse/nettle/ and it should work.
Regards, /Niels