| Allegro CL version 8.2 Unrevised from 8.1 to 8.2. 8.1 version |
Arguments: key src &key src-start sec-end dest dest-start external-format
rc4 encrypts or decrypts src, given a key context key (as created by rc4-set-key).
src can be a string or an usb8 vector. If src is a string, it will be internally converted to an usb8 array according to the external-format keyword argument (or the default external format, if the keyword argument is not supplied). The src-start and src-end keyword arguments indicate the subset of src that will be processed (as if with subseq). src-start defaults to 0 and src-end defaults to the length of src. If src is a string, the src-start/src-end are in terms of characters, otherwise, they are in terms of bytes.
If dest is supplied, it will be used as the output buffer for the encrypted/decryped data. If dest is not supplied, an usb8 array of suitable length will be created. dest-start, if supplied, indicates the offset (default: 0) into dest where the encrypted/decrypted data should be placed.
This function returns dest, if supplied, or the created usb8 array with the encrypted/decrypted data.
See MD5, SHA1, HMAC, and RC4 support in miscellaneous.htm.
Copyright (c) 1998-2016, Franz Inc. Oakland, CA., USA. All rights reserved.
This page was not revised from the 8.1 page.
Created 2010.1.21.
| Allegro CL version 8.2 Unrevised from 8.1 to 8.2. 8.1 version |