You are looking at historical revision 45084 of this page. It may differ significantly from its current revision.
rabbit
Documentation
The rabbit library is an implementation of the Rabbit stream cipher.
Procedure make-context creates an encryption context:
[procedure] make-context:: KEY -> CTXwhere KEY is a bytevector containing the encryption key.
[procedure] destroy-context!:: CTX -> VOIDDestroys the encryption context.
[procedure] encode!:: CTX * BYTEVECTOR -> BYTEVECTOREncrypts the given bytevector. This procedure modifies its argument and returns the modified bytevector.
[procedure] decode!:: CTX * BYTEVECTOR -> BYTEVECTORDecrypts the given bytevector. This procedure modifies its argument and returns the modified bytevector.
Examples
(import (chicken bytevector)
(rabbit))
(let* ((key (string->utf8 "password"))
(data (string->utf8 "important data"))
(ctx (make-context key)))
(encode! ctx data))
About this egg
Author
Repository
https://git.linuxposting.xyz/afiw/chicken-rabbit/
Version history
- 3.0
- Ported to CHICKEN 6
- 2.0
- Ported to CHICKEN 5
- 1.0
- Initial release
License
Martin Boesgaard, Mette Vesterager, Thomas Christensen and Erik Zenner; adapted to CHICKEN Scheme by Ivan Raikov; adapted to CHICKEN 6 by Lilianna Smólska.
This library is released in the public domain.