ripemd
RIPE Message Digest
TOC »
Documentation
An implementation of the RIPE cryptographic hash function.
See message-digest-primitive for more information.
RIPE 128 API
Component export
Usage
(import ripemd128-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
- init CTXprocedure
Initializes a RIPEMD128 CTX, with at least context-size byte size.
update
- update CTX OBJ LENprocedure
Accumulate LEN bytes from the Scheme OBJ into CTX.
raw-update
- raw-update CTX PTR LENprocedure
Accumulate LEN bytes from the byte PTR into CTX.
final
- final CTX OBJprocedure
Finalize the CTX into a Scheme OBJ with at least digest-length byte size. The target is usually a bytevector.
RIPE 128 Primitive
Packaged export
Usage
(import ripemd128-primitive)ripemd128-primitive
- ripemd128-primitiveprocedure
Returns the 128-bit RIPE message-digest-primitive object.
RIPE 160 API
Component export
Usage
(import ripemd160-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
- init CTXprocedure
Initializes a RIPEMD-160 CTX, with at least context-size byte size.
update
- update CTX OBJ LENprocedure
Accumulate LEN bytes from the Scheme OBJ into CTX.
raw-update
- raw-update CTX PTR LENprocedure
Accumulate LEN bytes from the byte PTR into CTX.
final
- final CTX OBJprocedure
Finalize the CTX into a Scheme OBJ with at least digest-length byte size. The target is usually a bytevector.
RIPE 160 Primitive
Packaged export
Usage
(import ripemd160-primitive)ripemd160-primitive
- ripemd160-primitiveprocedure
Returns the 160-bit RIPE message-digest-primitive object.
Usage
(import ripemd)Examples
- Note the message-digest-utils egg is a dependency for the example.
(import ripemd160-primitive message-digest-byte-vector) (message-digest-string (ripemd160-primitive) "abc") ;=> "8eb208f7e05d987a9b044a8e98c6b087f15a0bfc"
Notes
- The ...-primitive API is for use with the message-digest extensions. And the ...-api API implements the ...-primitive API. One packages the algorithm as a record, the other a module.
- RIPEMD-160 software written by Antoon Bosselaers, available at AB-9601.
Requirements
Author
Repository
This egg is hosted on the CHICKEN Subversion repository:
https://anonymous@code.call-cc.org/svn/chicken-eggs/release/5/ripemd
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
- 2.2.0
- CHICKEN 6 release.
License
Copyright (C) 2010-2026 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.
Copyright (c) Katholieke Universiteit Leuven 1996, All Rights Reserved
Conditions for use of the RIPEMD-160 Software
The RIPEMD-160 software is freely available for use under the terms and conditions described hereunder, which shall be deemed to be accepted by any user of the software and applicable on any use of the software:
1. K.U.Leuven Department of Electrical Engineering-ESAT/COSIC shall for
all purposes be considered the owner of the RIPEMD-160 software and of all copyright, trade secret, patent or other intellectual property rights therein.
2. The RIPEMD-160 software is provided on an "as is" basis without
warranty of any sort, express or implied. K.U.Leuven makes no representation that the use of the software will not infringe any patent or proprietary right of third parties. User will indemnify K.U.Leuven and hold K.U.Leuven harmless from any claims or liabilities which may arise as a result of its use of the software. In no circumstances K.U.Leuven R&D will be held liable for any deficiency, fault or other mishappening with regard to the use or performance of the software.
3. User agrees to give due credit to K.U.Leuven in scientific publications
or communications in relation with the use of the RIPEMD-160 software as follows: RIPEMD-160 software written by Antoon Bosselaers, available at http://www.esat.kuleuven.be/~cosicart/ps/AB-9601/.