#2 Performance increase in rc4.c

Unstable_(example)
closed
nobody
None
5
2014-02-10
2010-01-25
Anonymous
No

change key_pass (rc4.c) function to run a range vs individual calls, shows a speedup of ~10,000 more passwords/sec for 128 bit encrypted files, and ~20,000 more for 40 bit encrypted files

Discussion

  • Patch file for rc4.c

     
    Attachments
  • Aaron Meurer
    Aaron Meurer
    2010-01-25

    It does indeed speed it up.

     
  • Henning Noren
    Henning Noren
    2014-02-10

    • status: open --> closed
    • Group: --> Unstable_(example)
     
  • Henning Noren
    Henning Noren
    2014-02-10

    Thank you for reporting!
    I tried it out but could not see any speedup that was consistent (it was in reality slower on my system).
    pdfcrack benchmarks are unfortunately not very reliable for small changes and it varies a lot depending on architecture and compiler setup (gcc 4.8 seems to make suboptimal register allocation in many cases for the current code for example).