From 1807b7d221cf815aad9576fdab2172915cb86e06 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Sat, 8 Jul 2023 13:09:19 -0700 Subject: Adding SHA-1 hash. * chksums/sha1.c, chksums/sha1.h: New files. * LICENSE, METALICENSE: Mention new code. * chksum.c (sha1_ctx_s, sha1_ctx_cls): New static variables. (chksum_init): Register sha-ctx symbol, and sha_ctx_s COBJ class. Register sha1-stream, sha1, sha1-begin, sha1-hash and sha1-end intrinsics. (sha1_stream_impl, sha1_stream, sha1_szmax_upd, sha1_buf, sha1_str, sha1, sha1_ops, sha1_begin, sha1_utf8_byte_callback, sha1_hash, sha1_end): These functions and variables are generated by a call to the cksum_impl macro. * Makefile (OBJS): add chksums/sha1.o object file. --- METALICENSE | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'METALICENSE') diff --git a/METALICENSE b/METALICENSE index 122ad00c..9e763a04 100644 --- a/METALICENSE +++ b/METALICENSE @@ -29,6 +29,10 @@ and md5.h files. The permission is compatible with the BSD license, as it allows unfettered redistribution and use, without any advertizing clauses. +SHA-1 routines used in TXR are derived from code written by Jun-ichiro Itoh +in the 1990s. Their copyright notice attributes them to the WIDE project, +and licenses them under a three-clause BSD license. + SHA-256 routines used in TXR are derived from code which is Copyright 2005 Colin Percival, and available under the same two-clause BSD license as TXR. -- cgit v1.2.3