((section 2 "Outdated egg!" (p "This is an egg for CHICKEN 4, the unsupported old release.  You're almost certainly looking for " (int-link "/eggref/5/sha2" "the CHICKEN 5 version of this egg") ", if it exists.") (p "If it does not exist, there may be equivalent functionality provided by another egg; have a look at the " (link "https://wiki.call-cc.org/chicken-projects/egg-index-5.html" "egg index") ". Otherwise, please consider porting this egg to the current version of CHICKEN.") (tags "egg")) (section 2 "sha2" (toc)) (section 2 "Documentation" (p "Computes SHA2 checksums") (section 3 "Digest Procedures" (p "Any Scheme-object can be the " (tt "SOURCE") " for a digest. See " (int-link "message-digest") " for more information.") (section 4 "sha256-primitive" (def (sig (procedure "(sha256-primitive)" (id sha256-primitive))) (p "Returns the 256-bit checksum primitive object."))) (section 4 "sha384-primitive" (def (sig (procedure "(sha384-primitive)" (id sha384-primitive))) (p "Returns the 384-bit checksum primitive object."))) (section 4 "sha512-primitive" (def (sig (procedure "(sha512-primitive)" (id sha512-primitive))) (p "Returns the 512-bit checksum primitive object.))"))))) (section 2 "Usage" (highlight scheme "(require-extension sha2)")) (section 2 "Examples" (highlight scheme "(use sha2 message-digest)\n\n(message-digest-string (sha256-primitive) \"abc\")\n ;=> \"ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad\"")) (section 2 "Requirements" (p (int-link "message-digest" "message-digest"))) (section 2 "Notes" (ul (li "For use with the " (int-link "message-digest" "message-digest") " extension."))) (section 2 "Author" (ul (li "Aaron D. Gifford, wrapped for Chicken by Daishi Kato") (li (int-link "/users/kon-lovett" "Kon Lovett")))) (section 2 "Version history" (dl (dt "3.2.0") (dd "Add raw-update. " (int-link "/users/kon-lovett" "Kon Lovett")) (dt "3.1.0") (dd "Add block-length. " (int-link "/users/kon-lovett" "Kon Lovett")) (dt "3.0.0") (dd "Remove deprecated procedures. " (int-link "/users/kon-lovett" "Kon Lovett")) (dt "2.1.1") (dd "Change deprecated " (tt "pointer") " foreign type specifier to " (tt "scheme-pointer") " to make it work under chickens newer than 4.6.0.") (dt "2.0.1") (dd "a " (tt "message-digest-primitive") " has no \"state\". " (int-link "/users/kon-lovett" "Kon Lovett")) (dt "2.0.1") (dd "fix for " (link "http://www.irp.oist.jp/trac/chicken/ticket/163" "#163") " (" (int-link "/users/mario-domenech-goulart" "Mario Domenech Goulart") ")") (dt "2.0.0") (dd "Initial Chicken 4 release " (int-link "/users/kon-lovett" "Kon Lovett")))) (section 2 "License" (pre "Copyright (c) 2000-2001, Aaron D. Gifford and Daishi Kato\nAll rights reserved.") (pre "Redistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions\nare met:") (pre "1. Redistributions of source code must retain the above copyright\n   notice, this list of conditions and the following disclaimer.\n2. Redistributions in binary form must reproduce the above copyright\n   notice, this list of conditions and the following disclaimer in the\n   documentation and/or other materials provided with the distribution.\n3. Neither the name of the copyright holder nor the names of contributors\n   may be used to endorse or promote products derived from this software\n   without specific prior written permission.") (pre "THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTOR(S) ``AS IS'' AND\nANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\nIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\nARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTOR(S) BE LIABLE\nFOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\nDAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS\nOR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\nHOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\nLIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY\nOUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF\nSUCH DAMAGE.")))