diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2019-08-29 06:58:27 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2019-08-29 06:58:27 -0700 |
commit | b5c9b7ffd95b2934e503e8524ac0f571ed2b9f91 (patch) | |
tree | ebbaaf5b94e21eb7fed1bd07363d264209ad7f9e /txr.1 | |
parent | 0689ed6d0d0d74f9ca62057290db3bda8622afba (diff) | |
download | txr-b5c9b7ffd95b2934e503e8524ac0f571ed2b9f91.tar.gz txr-b5c9b7ffd95b2934e503e8524ac0f571ed2b9f91.tar.bz2 txr-b5c9b7ffd95b2934e503e8524ac0f571ed2b9f91.zip |
sha256/md5: allow characters and byte values.
* chksum.c (sha256_utf8_byte_callback, md5_utf8_byte_callback):
New static functions.
(sha256_hash, md5_hash): Support character and integer
objects.
* txr.1: Documented.
Diffstat (limited to 'txr.1')
-rw-r--r-- | txr.1 | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -52411,8 +52411,9 @@ by including .meta obj into the digest calculation. The .meta obj -argument may be a character string, whose UTF-8 representation is digested, -or a buffer object, whose contents are digested. +argument may be: a character or character string, whose UTF-8 representation is +digested; a buffer object, whose contents are digested; or an integer, +representing a byte value in the range 0 to 255 included in the digest. The .code sha256-hash function may be called multiple times to include any mixture of @@ -52467,8 +52468,9 @@ by including .meta obj into the digest calculation. The .meta obj -argument may be a character string, whose UTF-8 representation is digested, -or a buffer object, whose contents are digested. +argument may be: a character or character string, whose UTF-8 representation is +digested; a buffer object, whose contents are digested; or an integer, +representing a byte value in the range 0 to 255 included in the digest. The .code md5-hash function may be called multiple times to include any mixture of |