Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^3: Crypt::CBC and varying the key

by jimbojones (Friar)
on Mar 17, 2006 at 20:14 UTC ( #537554=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Crypt::CBC and varying the key
in thread Crypt::CBC and varying the key

Hi

It looks like you'll have to modify CBC.pm. In my version (2.14), the 'finish' method deletes the current IV.
delete $self->{'civ'}; delete $self->{'buffer'}; return $result; }
You'll have to prevent that from happening, and then add a method to return the current (last) IV, instead of the initial IV
sub get_civ { return $self->{civ}; }
I have no idea if or how this affects the security of the two messages.

Hope this helps, J


Comment on Re^3: Crypt::CBC and varying the key
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://537554]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2015-07-04 17:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (60 votes), past polls