(dst (make-string (/ len 2) 0))
(idx 0)(pos 0))
(while (< pos len)
-;;;; logior and lsh are not byte-coded.
-;;;; (aset dst idx (logior (lsh (hex-char-to-num (aref string pos)) 4)
-;;;; (hex-char-to-num (aref string (1+ pos)))))
+;;; logior and lsh are not byte-coded.
+;;; (aset dst idx (logior (lsh (hex-char-to-num (aref string pos)) 4)
+;;; (hex-char-to-num (aref string (1+ pos)))))
(aset dst idx (+ (* (hex-char-to-num (aref string pos)) 16)
(hex-char-to-num (aref string (1+ pos)))))
(setq idx (1+ idx)
(dst (make-string (* len 2) 0))
(idx 0)(pos 0))
(while (< pos len)
-;;;; logand and lsh are not byte-coded.
-;;;; (aset dst idx (num-to-hex-char (logand (lsh (aref string pos) -4) 15)))
+;;; logand and lsh are not byte-coded.
+;;; (aset dst idx (num-to-hex-char (logand (lsh (aref string pos) -4) 15)))
(aset dst idx (num-to-hex-char (/ (aref string pos) 16)))
(setq idx (1+ idx))
-;;;; (aset dst idx (num-to-hex-char (logand (aref string pos) 15)))
+;;; (aset dst idx (num-to-hex-char (logand (aref string pos) 15)))
(aset dst idx (num-to-hex-char (% (aref string pos) 16)))
(setq idx (1+ idx)
pos (1+ pos)))
(defconst sha1-K3-high 51810) ; (string-to-number "CA62" 16)
(defconst sha1-K3-low 49622) ; (string-to-number "C1D6" 16)
-;;;; original definition of sha1-F0.
-;;;; (defmacro sha1-F0 (B C D)
-;;;; (` (logior (logand (, B) (, C))
-;;;; (logand (lognot (, B)) (, D)))))
-;;;; a little optimization from GnuPG/cipher/sha1.c.
+;;; original definition of sha1-F0.
+;;; (defmacro sha1-F0 (B C D)
+;;; (` (logior (logand (, B) (, C))
+;;; (logand (lognot (, B)) (, D)))))
+;;; a little optimization from GnuPG/cipher/sha1.c.
(defmacro sha1-F0 (B C D)
(` (logxor (, D) (logand (, B) (logxor (, C) (, D))))))
(defmacro sha1-F1 (B C D)
(` (logxor (, B) (, C) (, D))))
-;;;; original definition of sha1-F2.
-;;;; (defmacro sha1-F2 (B C D)
-;;;; (` (logior (logand (, B) (, C))
-;;;; (logand (, B) (, D))
-;;;; (logand (, C) (, D)))))
-;;;; a little optimization from GnuPG/cipher/sha1.c.
+;;; original definition of sha1-F2.
+;;; (defmacro sha1-F2 (B C D)
+;;; (` (logior (logand (, B) (, C))
+;;; (logand (, B) (, D))
+;;; (logand (, C) (, D)))))
+;;; a little optimization from GnuPG/cipher/sha1.c.
(defmacro sha1-F2 (B C D)
(` (logior (logand (, B) (, C))
(logand (, D) (logior (, B) (, C))))))