Wiki
Download
Manual
Eggs
API
Tests
Bugs
show
edit
You can edit this page using
wiki syntax
for markup.
Article contents:
[[tags: egg]] == 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 <enscript language=scheme> (import ripemd128-api) </enscript> ==== 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)</procedure> Initializes a RIPEMD128 {{CTX}}, with at least {{context-size}} byte size. ==== update <procedure>(update CTX OBJ LEN)</procedure> Accumulate {{LEN}} bytes from the Scheme {{OBJ}} into {{CTX}}. ==== raw-update <procedure>(raw-update CTX PTR LEN)</procedure> Accumulate {{LEN}} bytes from the byte {{PTR}} into {{CTX}}. ==== final <procedure>(final CTX OBJ)</procedure> 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 <enscript language=scheme> (import ripemd128-primitive) </enscript> ==== ripemd128-primitive <procedure>(ripemd128-primitive) -> message-digest-primitive</procedure> Returns the 128-bit RIPE {{message-digest-primitive}} object. === RIPE 160 API Component export ==== Usage <enscript language=scheme> (import ripemd160-api) </enscript> ==== 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)</procedure> Initializes a RIPEMD-160 {{CTX}}, with at least {{context-size}} byte size. ==== update <procedure>(update CTX OBJ LEN)</procedure> Accumulate {{LEN}} bytes from the Scheme {{OBJ}} into {{CTX}}. ==== raw-update <procedure>(raw-update CTX PTR LEN)</procedure> Accumulate {{LEN}} bytes from the byte {{PTR}} into {{CTX}}. ==== final <procedure>(final CTX OBJ)</procedure> 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 <enscript language=scheme> (import ripemd160-primitive) </enscript> ==== ripemd160-primitive <procedure>(ripemd160-primitive) -> message-digest-primitive</procedure> Returns the 160-bit RIPE {{message-digest-primitive}} object. == Usage <enscript language=scheme> (import ripemd) </enscript> == Examples * '''Note''' the {{message-digest-utils}} egg is a dependency for the example. <enscript highlight="scheme"> (import ripemd160-primitive message-digest-byte-vector) (message-digest-string (ripemd160-primitive) "abc") ;=> "8eb208f7e05d987a9b044a8e98c6b087f15a0bfc" </enscript> == 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 [[http://www.esat.kuleuven.be/~cosicart/ps/AB-9601|AB-9601]]. == Requirements [[message-digest-primitive]] == Author [[/users/kon-lovett|Kon Lovett]] == Repository This egg is hosted on the CHICKEN Subversion repository: [[https://anonymous@code.call-cc.org/svn/chicken-eggs/release/5/ripemd|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 [[/egg-svn-checkout|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/.
Description of your changes:
I would like to authenticate
Authentication
Username:
Password:
Spam control
What do you get when you add 7 to 15?