Qore Programming Language Reference Manual
0.8.11.1
|
Functions | |
binary | Qore::blowfish_decrypt_cbc (binary data, data key, data iv=Qore::DefaultIV) |
Decrypts data using the Cipher Block Chaining function for the blowfish algorithm and returns a binary object of the decrypted data. More... | |
string | Qore::blowfish_decrypt_cbc_to_string (binary data, data key, data iv=Qore::DefaultIV, *string encoding) |
Decrypts data using the Cipher Block Chaining function for the blowfish algorithm and returns a string of the decrypted data. More... | |
binary | Qore::blowfish_encrypt_cbc (data data, data key, data iv=Qore::DefaultIV) |
Encrypts data using the Cipher Block Chaining function for the blowfish algorithm More... | |
binary | Qore::cast5_decrypt_cbc (binary data, data key, data iv=Qore::DefaultIV) |
Decrypts data using the Cipher Block Chaining function for the CAST5 algorithm using a variable-length key and an optional 8-byte initialization vector. More... | |
string | Qore::cast5_decrypt_cbc_to_string (binary data, data key, data iv=Qore::DefaultIV, *string encoding) |
Decrypts data using the Cipher Block Chaining function for the CAST5 algorithm using a variable-length key and an optional 8-byte initialization vector. More... | |
binary | Qore::cast5_encrypt_cbc (data data, data key, data iv=Qore::DefaultIV) |
Encrypts data using the Cipher Block Chaining function for the CAST5 algorithm using a variable-length key and an optional 8-byte initialization vector. More... | |
binary | Qore::des_decrypt_cbc (binary data, data key, data iv=Qore::DefaultIV) |
Decrypts data using the Cipher Block Chaining function for the DES algorithm using an 8-byte key. More... | |
string | Qore::des_decrypt_cbc_to_string (binary data, data key, data iv=Qore::DefaultIV, *string encoding) |
Decrypts data using the Cipher Block Chaining function for the DES algorithm using an 8-byte key. More... | |
binary | Qore::des_ede3_decrypt_cbc (data data, data key, data iv=Qore::DefaultIV) |
Decrypts data using the Cipher Block Chaining function for the three-key triple DES algorithm using three 8-byte keys (set by a single 24-byte key argument) and an optional 8-byte initialization vector. More... | |
string | Qore::des_ede3_decrypt_cbc_to_string (binary data, data key, data iv=Qore::DefaultIV, *string encoding) |
Decrypts data using the Cipher Block Chaining function for the three-key triple DES algorithm using three 8-byte keys (set by a single 24-byte key argument) and an optional 8-byte initialization vector. More... | |
binary | Qore::des_ede3_encrypt_cbc (data data, data key, data iv=Qore::DefaultIV) |
Encrypts data using the Cipher Block Chaining function for the three-key triple DES algorithm using three 8-byte keys (set by a single 24-byte key argument) and an optional 8-byte initialization vector. More... | |
binary | Qore::des_ede_decrypt_cbc (binary data, data key, data iv=Qore::DefaultIV) |
Decrypts data using the Cipher Block Chaining function for the two-key triple DES algorithm using two eight-byte keys (set by a single 16-byte key argument) More... | |
string | Qore::des_ede_decrypt_cbc_to_string (binary data, data key, data iv=Qore::DefaultIV, *string encoding) |
Decrypts data using the Cipher Block Chaining function for the two-key triple DES algorithm using two eight-byte keys (set by a single 16-byte key argument) More... | |
binary | Qore::des_ede_encrypt_cbc (data data, data key, data iv=Qore::DefaultIV) |
Encrypts data using the Cipher Block Chaining function for the two-key triple DES algorithm using two eight-byte keys (set by a single 16-byte key argument) More... | |
binary | Qore::des_encrypt_cbc (data data, data key, data iv=Qore::DefaultIV) |
Encrypts data using the Cipher Block Chaining function for the DES algorithm using an 8-byte key. More... | |
binary | Qore::des_random_key () |
Returns a binary object of a random key for the DES algorithm More... | |
binary | Qore::desx_decrypt_cbc (binary data, data key, data iv=Qore::DefaultIV) |
Decrypts data using the Cipher Block Chaining function for RSA's DESX algorithm using a 24-byte key and an optional 8-byte initialization vector. More... | |
string | Qore::desx_decrypt_cbc_to_string (binary data, data key, data iv=Qore::DefaultIV, *string encoding) |
Decrypts data using the Cipher Block Chaining function for RSA's DESX algorithm using a 24-byte key and an optional 8-byte initialization vector. More... | |
binary | Qore::desx_encrypt_cbc (data data, data key, data iv=Qore::DefaultIV) |
Encrypts data using the Cipher Block Chaining function for RSA's DESX algorithm using a 24-byte key and an optional 8-byte initialization vector. More... | |
binary | Qore::rc2_decrypt_cbc (binary data, data key, data iv=Qore::DefaultIV) |
Decrypts data using the Cipher Block Chaining function for RSA's RC2(tm) algorithm using a variable-length key and an optional 8-byte initialization vector. More... | |
string | Qore::rc2_decrypt_cbc_to_string (binary data, data key, data iv=Qore::DefaultIV, *string encoding) |
Decrypts data using the Cipher Block Chaining function for RSA's RC2(tm) algorithm using a variable-length key and an optional 8-byte initialization vector. More... | |
binary | Qore::rc2_encrypt_cbc (data data, data key, data iv=Qore::DefaultIV) |
Encrypts data using the Cipher Block Chaining function for RSA's RC2(tm) algorithm using a variable-length key and an optional 8-byte initialization vector. More... | |
binary | Qore::rc4_decrypt (binary data, data key, data iv=Qore::DefaultIV) |
Decrypts data using the Alleged RC4 cipher algorithm, which should be compatible with RSA's RC4(tm) algorithm using a variable-length key and an optional 8-byte initialization vector. More... | |
string | Qore::rc4_decrypt_to_string (binary data, data key, data iv=Qore::DefaultIV, *string encoding) |
Decrypts data using the Alleged RC4 cipher algorithm, which should be compatible with RSA's RC4(tm) algorithm using a variable-length key and an optional 8-byte initialization vector. More... | |
binary | Qore::rc4_encrypt (data data, data key, data iv=Qore::DefaultIV) |
Encrypts data using the Alleged RC4 cipher algorithm, which should be compatible with RSA's RC4(tm) algorithm using a variable-length key and an optional 8-byte initialization vector. More... | |
binary | Qore::rc5_decrypt_cbc (binary data, data key, data iv=Qore::DefaultIV) |
Decrypts data using the Cipher Block Chaining function for RSA's RC2(tm) algorithm using a variable-length key and an optional 8-byte initialization vector. More... | |
string | Qore::rc5_decrypt_cbc_to_string (binary data, data key, data iv=Qore::DefaultIV, *string encoding) |
Decrypts data using the Cipher Block Chaining function for RSA's RC2(tm) algorithm using a variable-length key and an optional 8-byte initialization vector. More... | |
binary | Qore::rc5_encrypt_cbc (data data, data key, data iv=Qore::DefaultIV) |
Encrypts data using the Cipher Block Chaining function for RSA's RC2(tm) algorithm using a variable-length key and an optional 8-byte initialization vector. More... | |
Qore's cryptography support is provided by the OpenSSL library. Each of the encryption and decryption functions in this section accept an optional initialization vector, which is data used as initial input for the first block in chained encryption algorithms. Subsequent blocks take input from the last block encrypted/decrypted. If an initialization vector is not supplied, a default value of 8 zero bytes will be used (see Qore::DefaultIV).
See also:
Some functions require fixed-length keys, and some allow the use of variable-length keys. For functions requiring fixed-length keys any excess bytes are ignored. The same applies to initialization vector arguments.
The following is an example of a function that uses /dev/random
on UNIX to read in a random key for use with encryption functions:
binary Qore::blowfish_decrypt_cbc | ( | binary | data, |
data | key, | ||
data | iv = Qore::DefaultIV |
||
) |
Decrypts data using the Cipher Block Chaining function for the blowfish algorithm and returns a binary object of the decrypted data.
data | the data to be decrypted |
key | a variable-length key (recommended 16 bytes or more) |
iv | the initialization vector must be at least 8 bytes long if present |
BLOWFISH-DECRYPT-PARAM-ERROR | invalid initialization vector (less than 8 bytes) |
DECRYPT-ERROR | processing error decrypting the data (for example invalid data) |
string Qore::blowfish_decrypt_cbc_to_string | ( | binary | data, |
data | key, | ||
data | iv = Qore::DefaultIV , |
||
*string | encoding | ||
) |
Decrypts data using the Cipher Block Chaining function for the blowfish algorithm and returns a string of the decrypted data.
data | the data to be decrypted |
key | a variable-length key (recommended 16 bytes or more) |
iv | the initialization vector must be at least 8 bytes long if present |
encoding | the character encoding tag for the string return value; if not present, the default character encoding is assumed |
BLOWFISH-DECRYPT-PARAM-ERROR | invalid initialization vector (less than 8 bytes) |
DECRYPT-ERROR | processing error decrypting the data (for example invalid data) |
binary Qore::blowfish_encrypt_cbc | ( | data | data, |
data | key, | ||
data | iv = Qore::DefaultIV |
||
) |
Encrypts data using the Cipher Block Chaining function for the blowfish algorithm
data | the data to be encrypted |
key | a variable-length key (recommended 16 bytes or more) |
iv | the initialization vector must be at least 8 bytes long if present |
BLOWFISH-ENCRYPT-PARAM-ERROR | invalid initialization vector (less than 8 bytes) |
ENCRYPT-ERROR | processing error encrypting the data (should not normally happen) |
binary Qore::cast5_decrypt_cbc | ( | binary | data, |
data | key, | ||
data | iv = Qore::DefaultIV |
||
) |
Decrypts data using the Cipher Block Chaining function for the CAST5 algorithm using a variable-length key and an optional 8-byte initialization vector.
data | the data to be decrypted |
key | a variable-width decryption key |
iv | the initialization vector must be at least 8 bytes long if present |
CAST5-DECRYPT-PARAM-ERROR | invalid initialization vector (less than 8 bytes) |
DECRYPT-ERROR | processing error decrypting the data (for example invalid data) |
string Qore::cast5_decrypt_cbc_to_string | ( | binary | data, |
data | key, | ||
data | iv = Qore::DefaultIV , |
||
*string | encoding | ||
) |
Decrypts data using the Cipher Block Chaining function for the CAST5 algorithm using a variable-length key and an optional 8-byte initialization vector.
data | the data to be decrypted |
key | a variable-width decryption key |
iv | the initialization vector must be at least 8 bytes long if present |
encoding | the character encoding tag for the string return value; if not present, the default character encoding is assumed |
CAST5-DECRYPT-PARAM-ERROR | invalid initialization vector (less than 8 bytes) |
DECRYPT-ERROR | processing error decrypting the data (for example invalid data) |
binary Qore::cast5_encrypt_cbc | ( | data | data, |
data | key, | ||
data | iv = Qore::DefaultIV |
||
) |
Encrypts data using the Cipher Block Chaining function for the CAST5 algorithm using a variable-length key and an optional 8-byte initialization vector.
data | the data to be encrypted |
key | a variable-width encryption key |
iv | the initialization vector must be at least 8 bytes long if present |
CAST5-ENCRYPT-PARAM-ERROR | invalid initialization vector (less than 8 bytes) |
ENCRYPT-ERROR | processing error encrypting the data (should not normally happen) |
binary Qore::des_decrypt_cbc | ( | binary | data, |
data | key, | ||
data | iv = Qore::DefaultIV |
||
) |
Decrypts data using the Cipher Block Chaining function for the DES algorithm using an 8-byte key.
data | the data to be decrypted |
key | the decryption key must be at least 8 bytes long (only the first 8 bytes will be used) |
iv | the initialization vector must be at least 8 bytes long if present |
DES-DECRYPT-PARAM-ERROR | invalid initialization vector (less than 8 bytes) |
DES-KEY-ERROR | invalid key (too short) |
DECRYPT-ERROR | processing error decrypting the data (for example invalid data) |
string Qore::des_decrypt_cbc_to_string | ( | binary | data, |
data | key, | ||
data | iv = Qore::DefaultIV , |
||
*string | encoding | ||
) |
Decrypts data using the Cipher Block Chaining function for the DES algorithm using an 8-byte key.
data | the data to be decrypted |
key | the decryption key must be at least 8 bytes long (only the first 8 bytes will be used) |
iv | the initialization vector must be at least 8 bytes long if present |
encoding | the character encoding tag for the string return value; if not present, the default character encoding is assumed |
DES-DECRYPT-PARAM-ERROR | invalid initialization vector (less than 8 bytes) |
DES-KEY-ERROR | invalid key (too short) |
DECRYPT-ERROR | processing error decrypting the data (for example invalid data) |
binary Qore::des_ede3_decrypt_cbc | ( | data | data, |
data | key, | ||
data | iv = Qore::DefaultIV |
||
) |
Decrypts data using the Cipher Block Chaining function for the three-key triple DES algorithm using three 8-byte keys (set by a single 24-byte key argument) and an optional 8-byte initialization vector.
data | the data to be decrypted |
key | the decryption key must be at least 24 bytes long (only the first 24 bytes will be used for the three 8-byte keys) |
iv | the initialization vector must be at least 8 bytes long if present |
DES-DECRYPT-PARAM-ERROR | invalid initialization vector (less than 8 bytes) |
DES-KEY-ERROR | invalid key (too short) |
DECRYPT-ERROR | processing error decrypting the data (for example invalid data) |
string Qore::des_ede3_decrypt_cbc_to_string | ( | binary | data, |
data | key, | ||
data | iv = Qore::DefaultIV , |
||
*string | encoding | ||
) |
Decrypts data using the Cipher Block Chaining function for the three-key triple DES algorithm using three 8-byte keys (set by a single 24-byte key argument) and an optional 8-byte initialization vector.
data | the data to be decrypted |
key | the decryption key must be at least 24 bytes long (only the first 24 bytes will be used for the three 8-byte keys) |
iv | the initialization vector must be at least 8 bytes long if present |
encoding | the character encoding tag for the string return value; if not present, the default character encoding is assumed |
DES-DECRYPT-PARAM-ERROR | invalid initialization vector (less than 8 bytes) |
DES-KEY-ERROR | invalid key (too short) |
DECRYPT-ERROR | processing error decrypting the data (for example invalid data) |
binary Qore::des_ede3_encrypt_cbc | ( | data | data, |
data | key, | ||
data | iv = Qore::DefaultIV |
||
) |
Encrypts data using the Cipher Block Chaining function for the three-key triple DES algorithm using three 8-byte keys (set by a single 24-byte key argument) and an optional 8-byte initialization vector.
data | the data to be encrypted |
key | the encryption key must be at least 24 bytes long (only the first 24 bytes will be used for the three 8-byte keys) |
iv | the initialization vector must be at least 8 bytes long if present |
DES-ENCRYPT-PARAM-ERROR | invalid initialization vector (less than 8 bytes) |
DES-KEY-ERROR | invalid key (too short) |
ENCRYPT-ERROR | processing error encrypting the data (should not normally happen) |
binary Qore::des_ede_decrypt_cbc | ( | binary | data, |
data | key, | ||
data | iv = Qore::DefaultIV |
||
) |
Decrypts data using the Cipher Block Chaining function for the two-key triple DES algorithm using two eight-byte keys (set by a single 16-byte key argument)
data | the data to be decrypted |
key | the decryption key must be at least 16 bytes long (only the first 16 bytes will be used for the two 8-byte keys) |
iv | the initialization vector must be at least 8 bytes long if present |
DES-ENCRYPT-PARAM-ERROR | invalid initialization vector (less than 8 bytes) |
DES-KEY-ERROR | invalid key (too short) |
DECRYPT-ERROR | processing error decrypting the data (for example invalid data) |
string Qore::des_ede_decrypt_cbc_to_string | ( | binary | data, |
data | key, | ||
data | iv = Qore::DefaultIV , |
||
*string | encoding | ||
) |
Decrypts data using the Cipher Block Chaining function for the two-key triple DES algorithm using two eight-byte keys (set by a single 16-byte key argument)
data | the data to be decrypted |
key | the decryption key must be at least 16 bytes long (only the first 16 bytes will be used for the two 8-byte keys) |
iv | the initialization vector must be at least 8 bytes long if present |
encoding | the character encoding tag for the string return value; if not present, the default character encoding is assumed |
DES-ENCRYPT-PARAM-ERROR | invalid initialization vector (less than 8 bytes) |
DES-KEY-ERROR | invalid key (too short) |
DECRYPT-ERROR | processing error decrypting the data (for example invalid data) |
binary Qore::des_ede_encrypt_cbc | ( | data | data, |
data | key, | ||
data | iv = Qore::DefaultIV |
||
) |
Encrypts data using the Cipher Block Chaining function for the two-key triple DES algorithm using two eight-byte keys (set by a single 16-byte key argument)
data | the data to be encrypted |
key | the encryption key must be at least 16 bytes long (only the first 16 bytes will be used for the two 8-byte keys) |
iv | the initialization vector must be at least 8 bytes long if present |
DES-ENCRYPT-PARAM-ERROR | invalid initialization vector (less than 8 bytes) |
DES-KEY-ERROR | invalid key (too short) |
ENCRYPT-ERROR | processing error encrypting the data (should not normally happen) |
binary Qore::des_encrypt_cbc | ( | data | data, |
data | key, | ||
data | iv = Qore::DefaultIV |
||
) |
Encrypts data using the Cipher Block Chaining function for the DES algorithm using an 8-byte key.
data | the data to be encrypted |
key | the encryption key must be at least 8 bytes long (only the first 8 bytes will be used) |
iv | the initialization vector must be at least 8 bytes long if present |
DES-ENCRYPT-PARAM-ERROR | invalid initialization vector (less than 8 bytes) |
DES-KEY-ERROR | invalid key (too short) |
ENCRYPT-ERROR | processing error encrypting the data (should not normally happen) |
binary Qore::des_random_key | ( | ) |
Returns a binary object of a random key for the DES algorithm
binary Qore::desx_decrypt_cbc | ( | binary | data, |
data | key, | ||
data | iv = Qore::DefaultIV |
||
) |
Decrypts data using the Cipher Block Chaining function for RSA's DESX algorithm using a 24-byte key and an optional 8-byte initialization vector.
data | the data to be decrypted |
key | the decryption key must be at least 24 bytes long (only the first 24 bytes will be used) |
iv | the initialization vector must be at least 8 bytes long if present |
DESX-DECRYPT-PARAM-ERROR | invalid initialization vector (less than 8 bytes) |
DESX-KEY-ERROR | invalid key (too short) |
DECRYPT-ERROR | processing error decrypting the data (for example invalid data) |
string Qore::desx_decrypt_cbc_to_string | ( | binary | data, |
data | key, | ||
data | iv = Qore::DefaultIV , |
||
*string | encoding | ||
) |
Decrypts data using the Cipher Block Chaining function for RSA's DESX algorithm using a 24-byte key and an optional 8-byte initialization vector.
data | the data to be decrypted |
key | the decryption key must be at least 24 bytes long (only the first 24 bytes will be used) |
iv | the initialization vector must be at least 8 bytes long if present |
encoding | the character encoding tag for the string return value; if not present, the default character encoding is assumed |
DESX-DECRYPT-PARAM-ERROR | invalid initialization vector (less than 8 bytes) |
DESX-KEY-ERROR | invalid key (too short) |
DECRYPT-ERROR | processing error decrypting the data (for example invalid data) |
binary Qore::desx_encrypt_cbc | ( | data | data, |
data | key, | ||
data | iv = Qore::DefaultIV |
||
) |
Encrypts data using the Cipher Block Chaining function for RSA's DESX algorithm using a 24-byte key and an optional 8-byte initialization vector.
data | the data to be encrypted |
key | the encryption key must be at least 24 bytes long (only the first 24 bytes will be used) |
iv | the initialization vector must be at least 8 bytes long if present |
DESX-ENCRYPT-PARAM-ERROR | invalid initialization vector (less than 8 bytes) |
DESX-KEY-ERROR | invalid key (too short) |
ENCRYPT-ERROR | processing error encrypting the data (should not normally happen) |
binary Qore::rc2_decrypt_cbc | ( | binary | data, |
data | key, | ||
data | iv = Qore::DefaultIV |
||
) |
Decrypts data using the Cipher Block Chaining function for RSA's RC2(tm) algorithm using a variable-length key and an optional 8-byte initialization vector.
data | the data to be decrypted |
key | a variable-width decryption key |
iv | the initialization vector must be at least 8 bytes long if present |
RC2-DECRYPT-PARAM-ERROR | invalid initialization vector (less than 8 bytes) |
DECRYPT-ERROR | processing error decrypting the data (for example invalid data) |
string Qore::rc2_decrypt_cbc_to_string | ( | binary | data, |
data | key, | ||
data | iv = Qore::DefaultIV , |
||
*string | encoding | ||
) |
Decrypts data using the Cipher Block Chaining function for RSA's RC2(tm) algorithm using a variable-length key and an optional 8-byte initialization vector.
data | the data to be decrypted |
key | a variable-width decryption key |
iv | the initialization vector must be at least 8 bytes long if present |
encoding | the character encoding tag for the string return value; if not present, the default character encoding is assumed |
RC2-DECRYPT-PARAM-ERROR | invalid initialization vector (less than 8 bytes) |
DECRYPT-ERROR | processing error decrypting the data (for example invalid data) |
binary Qore::rc2_encrypt_cbc | ( | data | data, |
data | key, | ||
data | iv = Qore::DefaultIV |
||
) |
Encrypts data using the Cipher Block Chaining function for RSA's RC2(tm) algorithm using a variable-length key and an optional 8-byte initialization vector.
data | the data to be encrypted |
key | a variable-width encryption key |
iv | the initialization vector must be at least 8 bytes long if present |
RC2-ENCRYPT-PARAM-ERROR | invalid initialization vector (less than 8 bytes) |
ENCRYPT-ERROR | processing error encrypting the data (should not normally happen) |
binary Qore::rc4_decrypt | ( | binary | data, |
data | key, | ||
data | iv = Qore::DefaultIV |
||
) |
Decrypts data using the Alleged RC4 cipher algorithm, which should be compatible with RSA's RC4(tm) algorithm using a variable-length key and an optional 8-byte initialization vector.
data | the data to be decrypted |
key | a variable-width decryption key |
iv | the initialization vector must be at least 8 bytes long if present |
RC4-DECRYPT-PARAM-ERROR | invalid initialization vector (less than 8 bytes) |
DECRYPT-ERROR | processing error decrypting the data (for example invalid data) |
string Qore::rc4_decrypt_to_string | ( | binary | data, |
data | key, | ||
data | iv = Qore::DefaultIV , |
||
*string | encoding | ||
) |
Decrypts data using the Alleged RC4 cipher algorithm, which should be compatible with RSA's RC4(tm) algorithm using a variable-length key and an optional 8-byte initialization vector.
data | the data to be decrypted |
key | a variable-width decryption key |
iv | the initialization vector must be at least 8 bytes long if present |
encoding | the character encoding tag for the string return value; if not present, the default character encoding is assumed |
RC4-DECRYPT-PARAM-ERROR | invalid initialization vector (less than 8 bytes) |
DECRYPT-ERROR | processing error decrypting the data (for example invalid data) |
binary Qore::rc4_encrypt | ( | data | data, |
data | key, | ||
data | iv = Qore::DefaultIV |
||
) |
Encrypts data using the Alleged RC4 cipher algorithm, which should be compatible with RSA's RC4(tm) algorithm using a variable-length key and an optional 8-byte initialization vector.
data | the data to be encrypted |
key | a variable-width encryption key |
iv | the initialization vector must be at least 8 bytes long if present |
RC4-ENCRYPT-PARAM-ERROR | invalid initialization vector (less than 8 bytes) |
ENCRYPT-ERROR | processing error encrypting the data (should not normally happen) |
binary Qore::rc5_decrypt_cbc | ( | binary | data, |
data | key, | ||
data | iv = Qore::DefaultIV |
||
) |
Decrypts data using the Cipher Block Chaining function for RSA's RC2(tm) algorithm using a variable-length key and an optional 8-byte initialization vector.
data | the data to be decrypted |
key | a variable-width decryption key |
iv | the initialization vector must be at least 8 bytes long if present |
RC5-DECRYPT-PARAM-ERROR | invalid initialization vector (less than 8 bytes) |
DECRYPT-ERROR | processing error decrypting the data (for example invalid data) |
string Qore::rc5_decrypt_cbc_to_string | ( | binary | data, |
data | key, | ||
data | iv = Qore::DefaultIV , |
||
*string | encoding | ||
) |
Decrypts data using the Cipher Block Chaining function for RSA's RC2(tm) algorithm using a variable-length key and an optional 8-byte initialization vector.
data | the data to be decrypted |
key | a variable-width decryption key |
iv | the initialization vector must be at least 8 bytes long if present |
encoding | the character encoding tag for the string return value; if not present, the default character encoding is assumed |
RC5-DECRYPT-PARAM-ERROR | invalid initialization vector (less than 8 bytes) |
DECRYPT-ERROR | processing error decrypting the data (for example invalid data) |
binary Qore::rc5_encrypt_cbc | ( | data | data, |
data | key, | ||
data | iv = Qore::DefaultIV |
||
) |
Encrypts data using the Cipher Block Chaining function for RSA's RC2(tm) algorithm using a variable-length key and an optional 8-byte initialization vector.
data | the data to be encrypted |
key | a variable-width encryption key |
iv | the initialization vector must be at least 8 bytes long if present |
RC5-ENCRYPT-PARAM-ERROR | invalid initialization vector (less than 8 bytes) |
ENCRYPT-ERROR | processing error encrypting the data (should not normally happen) |