diff options
author | Juanma Barranquero <lekktu@gmail.com> | 2008-11-01 01:24:33 +0000 |
---|---|---|
committer | Juanma Barranquero <lekktu@gmail.com> | 2008-11-01 01:24:33 +0000 |
commit | 6cda144ffe7e8da08b15430072f3b112967d5281 (patch) | |
tree | b1427bb1647e69581099a031db5321e6dc3b4b78 /lisp/md4.el | |
parent | 322ca65006295d1d7d405188fa324f66b4d3ec17 (diff) | |
download | emacs-6cda144ffe7e8da08b15430072f3b112967d5281.tar.gz |
Fix typos in docstrings.
* cus-edit.el (customize-apropos-options, custom-comment)
(custom-comment-tag, custom-face-edit-attribute-tag):
Fix typos in docstrings.
(custom-buffer-done-kill): Remove * from defcustom docstring.
(custom-file): Fix typo in doc of defcustom choice.
* frame.el (display-visual-class): Fix typo in docstring.
(initial-frame-alist, minibuffer-frame-alist, pop-up-frame-alist)
(special-display-frame-alist, show-trailing-whitespace)
(auto-hscroll-mode, blink-cursor-delay, blink-cursor-interval)
(display-hourglass, hourglass-delay, cursor-in-non-selected-windows):
Remove * from defcustom docstrings.
* md4.el (md4-buffer): Fix typo in docstring.
(md4, md4-64): Doc fixes.
(md4-pack-int32): Reflow docstring.
* paths.el (rmail-file-name): Remove * from defcustom docstring.
(prune-directory-list, gnus-nntp-service): Fix typos in docstrings.
* rect.el (open-rectangle): Reflow docstring.
(spaces-string): Fix docstring typo. Use "?\s" instead of "? ".
* select.el (x-get-cut-buffer): Fix typo in docstring.
* timezone.el (timezone-zone-to-minute, timezone-time-from-absolute)
(timezone-time-zone-from-absolute, timezone-leap-year-p):
Fix typos in docstrings.
* emacs-lisp/assoc.el (asort, aelement, aput, aget, amake):
Fix typos in docstrings.
Diffstat (limited to 'lisp/md4.el')
-rw-r--r-- | lisp/md4.el | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/lisp/md4.el b/lisp/md4.el index aab839318e6..58d246ec006 100644 --- a/lisp/md4.el +++ b/lisp/md4.el @@ -28,11 +28,12 @@ ;;; MD4 hash calculation (defvar md4-buffer (make-vector 4 '(0 . 0)) - "work buffer of four 32-bit integers") + "Work buffer of four 32-bit integers.") (defun md4 (in n) - "Returns the MD4 hash string of 16 bytes long for a string IN of N -bytes long. N is required to handle strings containing character 0." + "Return the MD4 hash for a string IN of length N bytes. +The returned hash is 16 bytes long. N is required to handle +strings containing the character 0." (let (m (b (cons 0 (* n 8))) (i 0) @@ -115,8 +116,9 @@ bytes long. N is required to handle strings containing character 0." (cons (logand (car x) (car y)) (logand (cdr x) (cdr y)))) (defun md4-64 (m) - "Calculate md4 of 64 bytes chunk M which is represented as 16 pairs of -32 bits integers. The resulting md4 value is placed in md4-buffer." + "Calculate MD4 hash of M. +M is a 64-bytes chunk, represented as 16 pairs of 32-bit integers. +The resulting MD4 value is placed in `md4-buffer'." (let ((a (aref md4-buffer 0)) (b (aref md4-buffer 1)) (c (aref md4-buffer 2)) @@ -199,8 +201,9 @@ bytes long. N is required to handle strings containing character 0." str)) (defun md4-pack-int32 (int32) - "Pack 32 bits integer in a 4 bytes string as little endian. A 32 bits -integer is represented as a pair of two 16 bits integers (cons high low)." + "Pack 32 bits integer in a 4 bytes string as little endian. +A 32 bits integer is represented as a pair of two 16 bits +integers (cons high low)." (let ((str (make-string 4 0)) (h (car int32)) (l (cdr int32))) (aset str 0 (logand l 255)) |