summaryrefslogtreecommitdiffstats
path: root/test/day-001.sh
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2014-07-08 12:50:03 +0200
committerLukas Fleischer <calcurse@cryptocrack.de>2014-07-08 12:54:03 +0200
commit9dc36589ae69f2938469b854b21ba1738469798b (patch)
treeeb001207a38b90a11144273cc7bd734198c27d6c /test/day-001.sh
parent0529b864b0b2ababd799ee18faf486dbcce68b97 (diff)
downloadcalcurse-9dc36589ae69f2938469b854b21ba1738469798b.tar.gz
calcurse-9dc36589ae69f2938469b854b21ba1738469798b.zip
Fix SHA1 calculation of long notes
sha1_update() modifies the input data, so we need to duplicate the input before calculating the hash. Otherwise, input data longer than 64 bytes will be garbled. Reported-by: Hakan Jerning <jerning@home.se> Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
Diffstat (limited to 'test/day-001.sh')
0 files changed, 0 insertions, 0 deletions