| Allegro CL version 6.2 This page is new in 6.2 |
Arguments: encrypted &key key end context (pad t) string in-place
This function decrypts encrypted, which should be an (unsigned-byte 8) array returned by a call to blowfish-encrypt.
This function returns one or two values, as the string keyword argument is true or false. If string is true, a string is returned as the only returned value. If string is false, an (unsigned-byte 8) array representing the decryption and an integer specifying how many bytes there are in the decrypted result are returned. The second returned value is the length of the array returned as the first returned value when the in-place keyword argument is false, and is a value less than or equal to the length when in-place is true.
The arguments are:
nil
.
If an integer, the length of the encrypted portion of
encrypted (the same value as the second value
returned by blowfish-encrypt). If nil
, then the whole of encrypted
is used. (The in-place argument to both this function and
to blowfish-encrypt 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 actual encrypted portion and ignore the remainder of the
array.)
t
): the
value should be the same as the value of the pad
argument passed to blowfish-encrypt. It tells whether the
encrypted value was padded out to have an octet length that is a
multiple of 8.
:utf-8
external format, and the resulting string is
returned as the single returned value. If nil
, the raw (unsigned-byte 8) array is returned as
the first value and the length of the decrypted portion in the array
is returned as the second value.
nil
, the
second returned value (the number of bytes in the decryption) may be
less than the length of the first returned value.
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 |