tiger-hash

  1. tiger-hash
  2. Documentation
    1. Tiger API
      1. Usage
      2. Constants
      3. init
      4. update
      5. raw-update
      6. final
    2. Tiger Primitive
      1. Usage
      2. tiger192-primitive
  3. Notes
  4. Usage
  5. Examples
  6. Notes
  7. Requirements
  8. Author
  9. Repository
  10. Version history
  11. License

Documentation

Computes the Tiger cryptographic hash function at the 192 bit digest size.

See message-digest-primitive for more information.

Tiger API

Component export

Usage

(use tiger-hash-api)

Constants

name
algorithm name ; symbol
version
algorithm version ; string
context-size
context byte length ; fixnum
digest-length
final byte length ; fixnum
block-length
buffer byte length ; fixnum

Note that block-length is informational only.

init

[procedure] (init CTX)

Initializes a 192-bit Tiger hash CTX, with at least context-size byte size.

update

[procedure] (update CTX OBJ LEN)

Accumulate LEN bytes from the Scheme OBJ into CTX.

raw-update

[procedure] (raw-update CTX PTR LEN)

Accumulate LEN bytes from the byte PTR into CTX.

final

[procedure] (final CTX OBJ)

Finalize the CTX into a Scheme OBJ with at least digest-length byte size. The target is usually a blob, u8vector, or string.

Tiger Primitive

Packaged export

Usage

(use tiger-hash-primitive)

tiger192-primitive

[procedure] (tiger192-primitive)

Returns the 192-bit Tiger hash primitive object.

Notes

Usage

(import tiger-hash)

Examples

(import tiger-hash message-digest-byte-vector)

(message-digest-string (tiger192-primitive) "abc")
;=> "2aab1484e8c158f2bfb8c5ff41b57a525129131c957b5f93"

Notes

Requirements

message-digest-primitive

Author

Tiger/192 by Ross Anderson and Eli Biham. Kon Lovett

Repository

This egg is hosted on the CHICKEN Subversion repository:

https://anonymous@code.call-cc.org/svn/chicken-eggs/release/5/tiger-hash

If you want to check out the source code repository of this egg and you are not familiar with Subversion, see this page.

Version history

4.1.0
Split into api & primitive modules.
4.0.0
CHICKEN 5 release.
3.2.0
Add raw-update. Kon Lovett
3.1.0
Add block-length. Kon Lovett
3.0.0
Remove deprecated procedures. Kon Lovett
2.0.2
a message-digest-primitive has no "state".
2.0.0
Initial release for Chicken 4

License

Copyright (C) 2009-2021 Kon Lovett. All rights reserved.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the Software), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED ASIS, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.