| Allegro CL version 6.2 This page is new in 6.2 |
Arguments: value &key key end context pad in-place
This function encrypts value using the specified
key or context and returns
two values: an (unsigned-byte 8) array holding the encryption and an
integer specifying the index into that array just after the end of the
encrypted result (equivalently, the length of the encrypted
result). The second value will also be the length of the array
returned as the first value if the in-place is
nil
(which is its default). If
in-place is true, the second returned value will
be less than or equal to the length of the first returned value.
The arguments are:
nil
.
If an integer, the length of the portion of value
to be encrypted. If nil
, then the whole of
value is encrypted. (The
in-place argument to both this function and to
blowfish-decrypt allows
using an existing (unsigned-byte 8) array, which may be larger than
necessary to hold the encrypted value. This argument allows you to
specify the portion of interest and ignore the remainder of the
array.)
t
): if
pad is true then the value to be encrypted will
be padded out to have an octet length that is a multiple of 8. Also
information will be added at the end of the value specifying how much
padding was added so that when this value is decrypted the padding can
be removed. Thus if pad is true then at least
one and as many as eight more octets will be added to the returned
value. If pad is nil
then an error is signaled if the value to be encrypted doesn't have a
length that is a multiple of 8.
See Support for Blowfish encryption in miscellaneous.htm for information on Blowfish encryption and Blowfish encryption support in Allegro CL. There are examples of blowfish encryption and decryption in that section. Support for encryption in the same document discusses encryption support in Allegro CL in general.
Copyright (c) 1998-2002, Franz Inc. Oakland, CA., USA. All rights reserved.
Documentation for Allegro CL version 6.2. This page is new in the 6.2 release.
Created 2002.2.26.
| Allegro CL version 6.2 This page is new in 6.2 |