File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 65
65
66
66
(defmethod vimcrypt-cfb-decrypt ((cfb vimcrypt-bad-cfb) data)
67
67
(loop with plain = nil
68
- with xor = (vimcrypt-swapped-encrypt (vimcrypt-cfb-cipher cfb)
69
- (vimcrypt-cfb-iv cfb))
68
+ with xor = (vimcrypt-swapped-encrypt (vimcrypt-bad- cfb-cipher cfb)
69
+ (vimcrypt-bad- cfb-iv cfb))
70
70
for i from 0 to (1- (length data))
71
71
if (and (>= i 64 ) (zerop (mod i 8 )))
72
- do (setf xor (vimcrypt-swapped-encrypt (vimcrypt-cfb-cipher cfb)
72
+ do (setf xor (vimcrypt-swapped-encrypt (vimcrypt-bad- cfb-cipher cfb)
73
73
(substring data (- i 64 ) (+ 8 (- i 64 )))))
74
74
collect (logxor (aref xor (mod i 8 )) (aref data i)) into plain
75
75
finally (return (apply #'string plain))))
80
80
for i from 0 to (1- (length data))
81
81
if (zerop (mod i 8 ))
82
82
do (progn
83
- (setf xor (vimcrypt-swapped-encrypt (vimcrypt-cfb-cipher cfb)
84
- (vimcrypt-cfb-iv cfb)))
85
- (setf (vimcrypt-cfb-iv cfb) (substring data i (+ i 8 ))))
83
+ (setf xor (vimcrypt-swapped-encrypt (vimcrypt-fixed- cfb-cipher cfb)
84
+ (vimcrypt-fixed- cfb-iv cfb)))
85
+ (setf (vimcrypt-fixed- cfb-iv cfb) (substring data i (+ i 8 ))))
86
86
collect (logxor (aref xor (mod i 8 )) (aref data i)) into plain
87
87
finally (return (apply #'string plain))))
88
88
You can’t perform that action at this time.
0 commit comments