sha1

  1. sha1
  2. Documentation
    1. sha1-primitive
  3. Usage
  4. Examples
  5. Requirements
  6. Notes
  7. Author
  8. Version history
  9. License

Documentation

Computes SHA1 (FIPS-180-1) checksums

sha1-primitive

[procedure] (sha1-primitive)

Returns the SHA1 checksum digest primitive object.

Usage

(use sha1)

Examples

(use sha1 message-digest)

(message-digest-string (sha1-primitive) "abc")
 ;=> "a9993e364706816aba3e25717850c26c9cd0d89d"

Requirements

message-digest

Notes

Author

Steve Reid, packaged for Chicken by Peter Bex

Version history

3.1.0
Add block-length. Kon Lovett
3.0.0
Remove deprecated procedures. Kon Lovett
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)
2.2.2
Change deprecated pointer foreign type specifier to scheme-pointer to make it work under chickens newer than 4.6.0.
2.2.1
Fix for test, wrong context allocation size. Kon Lovett
2.2
a message-digest-primitive has no "state". Kon Lovett
2.1
Replaced GPL code with common public domain code.
2.0.0
Initial Chicken 4 release Kon Lovett

License

 SHA-1 in C
 By Steve Reid <steve@edmweb.com>
 100% Public Domain