source: project/wiki/eggref/5/sha1 @ 35962

Last change on this file since 35962 was 35962, checked in by kon, 4 months ago

fix ex

File size: 1.7 KB
Line 
1[[tags: egg]]
2
3== sha1
4
5[[toc:]]
6
7
8== Documentation
9
10Computes SHA1 (FIPS-180-1) checksums
11
12See [[message-digest-primitive]] for more information.
13
14==== sha1-primitive
15
16<procedure>(sha1-primitive) -> message-digest-primitive</procedure>
17
18Returns the SHA1 checksum digest primitive object.
19
20
21== Usage
22
23<enscript language=scheme>
24(use sha1)
25</enscript>
26
27
28== Examples
29
30<enscript highlight="scheme">
31(use sha1 message-digest-byte-vector)
32
33(message-digest-string (sha1-primitive) "abc")
34 ;=> "a9993e364706816aba3e25717850c26c9cd0d89d"
35</enscript>
36
37
38== Requirements
39
40[[message-digest-primitive|message-digest-primitive]]
41
42
43== Notes
44
45* For use with the [[message-digest|message-digest]] extensions.
46
47
48== Author
49
50Steve Reid, packaged for Chicken by Peter Bex, C5 by [[kon lovett]]
51
52
53== Version history
54
55; 4.0.0 : CHICKEN 5 release.
56; 3.2.0 : Add raw-update. [[/users/kon-lovett|Kon Lovett]]
57; 3.1.0 : Add block-length. [[/users/kon-lovett|Kon Lovett]]
58; 3.0.0 : Remove deprecated procedures. [[/users/kon-lovett|Kon Lovett]]
59; 2.3 : Make function declarations {{static}} in order to avoid conflicts with those from libc if the OS supplies them. This makes SHA-1 work on OpenBSD (thanks to Alan Post and Christian Kellermann)
60; 2.2.2 : Change deprecated {{pointer}} foreign type specifier to {{scheme-pointer}} to make it work under chickens newer than 4.6.0.
61; 2.2.1 : Fix for test, wrong context allocation size. [[/users/kon-lovett|Kon Lovett]]
62; 2.2 : a {{message-digest-primitive}} has no "state". [[/users/kon-lovett|Kon Lovett]]
63; 2.1 : Replaced GPL code with common public domain code.
64; 2.0.0 : Initial Chicken 4 release [[/users/kon-lovett|Kon Lovett]]
65
66
67== License
68
69  SHA-1 in C
70  By Steve Reid <steve@edmweb.com>
71  100% Public Domain
Note: See TracBrowser for help on using the repository browser.