File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change 84
84
(setq ls (cdr ls)))
85
85
v))
86
86
87
- (eval-when-compile
88
- (defmacro rfc2104-string-make-unibyte (string )
89
- " Return the unibyte equivalent of STRING.
90
- In XEmacs return just STRING."
91
- (if (featurep 'xemacs )
92
- string
93
- `(string-make-unibyte , string ))))
94
-
95
87
(defun rfc2104-hash (hash block-length hash-length key text )
96
88
(let* (; ; if key is longer than B, reset it to HASH(key)
97
89
(key (if (> (length key) block-length)
@@ -107,7 +99,7 @@ In XEmacs return just STRING."
107
99
(aset ipad i (logxor rfc2104-ipad c))
108
100
(aset opad i (logxor rfc2104-opad c)))
109
101
; ; Perform inner hash.
110
- (setq partial (rfc2104- string-make-unibyte
102
+ (setq partial (string-make-unibyte
111
103
(funcall hash (concat ipad text))))
112
104
; ; Pack latter part of opad.
113
105
(cl-do ((r 0 (+ 2 r))
@@ -117,7 +109,7 @@ In XEmacs return just STRING."
117
109
(+ (* 16 (aref rfc2104-nybbles (aref partial r)))
118
110
( aref rfc2104-nybbles (aref partial (1+ r))))))
119
111
; ; Perform outer hash.
120
- (rfc2104- string-make-unibyte (funcall hash opad))))
112
+ (string-make-unibyte (funcall hash opad))))
121
113
122
114
(provide 'rfc2104 )
123
115
You can’t perform that action at this time.
0 commit comments