diff options
| -rw-r--r-- | lisp/net/rfc2104.el | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lisp/net/rfc2104.el b/lisp/net/rfc2104.el index 9d4957ddb5d..5de8401d5b6 100644 --- a/lisp/net/rfc2104.el +++ b/lisp/net/rfc2104.el | |||
| @@ -99,8 +99,7 @@ | |||
| 99 | (aset ipad i (logxor rfc2104-ipad c)) | 99 | (aset ipad i (logxor rfc2104-ipad c)) |
| 100 | (aset opad i (logxor rfc2104-opad c))) | 100 | (aset opad i (logxor rfc2104-opad c))) |
| 101 | ;; Perform inner hash. | 101 | ;; Perform inner hash. |
| 102 | (setq partial (string-make-unibyte | 102 | (setq partial (funcall hash (concat ipad text))) |
| 103 | (funcall hash (concat ipad text)))) | ||
| 104 | ;; Pack latter part of opad. | 103 | ;; Pack latter part of opad. |
| 105 | (cl-do ((r 0 (+ 2 r)) | 104 | (cl-do ((r 0 (+ 2 r)) |
| 106 | (w block-length (1+ w))) | 105 | (w block-length (1+ w))) |
| @@ -109,7 +108,7 @@ | |||
| 109 | (+ (* 16 (aref rfc2104-nybbles (aref partial r))) | 108 | (+ (* 16 (aref rfc2104-nybbles (aref partial r))) |
| 110 | ( aref rfc2104-nybbles (aref partial (1+ r)))))) | 109 | ( aref rfc2104-nybbles (aref partial (1+ r)))))) |
| 111 | ;; Perform outer hash. | 110 | ;; Perform outer hash. |
| 112 | (string-make-unibyte (funcall hash opad)))) | 111 | (funcall hash opad))) |
| 113 | 112 | ||
| 114 | (provide 'rfc2104) | 113 | (provide 'rfc2104) |
| 115 | 114 | ||