sha2 example added by klovett on Tue Sep 13 15:23:27 2022

#633 $ csi -n
CHICKEN
(c) 2008-2022, The CHICKEN Team
(c) 2000-2007, Felix L. Winkelmann
Version 5.3.1 (kinda-fixed) (rev 381cb79f)
macosx-unix-clang-x86-64 [ 64bit dload ptables ]

Type ,? for help.
#;1> (import sha256-primitive message-digest-byte-vector)
; loading /usr/local/chicken/5/lib/chicken/11/sha256-primitive.import.so ...
; loading /usr/local/chicken/5/lib/chicken/11/message-digest-byte-vector.import.so ...
; loading /usr/local/chicken/5/lib/chicken/11/sha256-primitive.so ...
; loading /usr/local/chicken/5/lib/chicken/11/message-digest-primitive.so ...
; loading /usr/local/chicken/5/lib/chicken/11/type-checks-basic.so ...
; loading /usr/local/chicken/5/lib/chicken/11/type-errors-basic.so ...
; loading /usr/local/chicken/5/lib/chicken/11/type-checks-structured.so ...
; loading /usr/local/chicken/5/lib/chicken/11/type-errors-structured.so ...
; loading /usr/local/chicken/5/lib/chicken/11/type-checks-numbers.fixnum.so ...
; loading /usr/local/chicken/5/lib/chicken/11/type-errors-numbers.fixnum.so ...
; loading /usr/local/chicken/5/lib/chicken/11/sha256-api.so ...
; loading /usr/local/chicken/5/lib/chicken/11/message-digest-byte-vector.so ...
; loading /usr/local/chicken/5/lib/chicken/11/srfi-13.so ...
; loading /usr/local/chicken/5/lib/chicken/11/srfi-14.so ...
; loading /usr/local/chicken/5/lib/chicken/11/check-errors.sys.so ...
; loading /usr/local/chicken/5/lib/chicken/11/type-checks-numbers.interval.so ...
; loading /usr/local/chicken/5/lib/chicken/11/type-errors-numbers.interval.so ...
; loading /usr/local/chicken/5/lib/chicken/11/message-digest-type.so ...
; loading /usr/local/chicken/5/lib/chicken/11/blob-hexadecimal.so ...
; loading /usr/local/chicken/5/lib/chicken/11/to-hex.so ...
; loading /usr/local/chicken/5/lib/chicken/11/string-hexadecimal.so ...
; loading /usr/local/chicken/5/lib/chicken/11/message-digest-support.so ...
#;2> (message-digest-string (sha256-primitive) "abc")
"ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad"