diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2019-08-24 10:16:15 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2019-08-24 10:16:15 -0700 |
commit | 3c0df649d00d55a31e6f92c29bc3976fdba27f8e (patch) | |
tree | 757e2dd23ee7b2a72ea7e40b34c72ac06522b89c /struct.c | |
parent | 8a10829e5e35e5b0721260e0a7b31554ec21d766 (diff) | |
download | txr-3c0df649d00d55a31e6f92c29bc3976fdba27f8e.tar.gz txr-3c0df649d00d55a31e6f92c29bc3976fdba27f8e.tar.bz2 txr-3c0df649d00d55a31e6f92c29bc3976fdba27f8e.zip |
sha256/md5: hash string more efficiently.
* chksum.c (sha256_str, md5_str): Don't construct a byte input
stream for hashing a string. Just convert whole thing to
temporary UTF-8, hash, and free.
Diffstat (limited to 'struct.c')
0 files changed, 0 insertions, 0 deletions