Qore Programming Language Reference Manual  0.8.9
 All Classes Namespaces Functions Variables Groups Pages
ql_crypto.dox.h
1 
3 namespace Qore {
30 
32 
49 binary blowfish_decrypt_cbc(binary data, data key, data iv = Qore::DefaultIV);
50 
52 
72 string blowfish_decrypt_cbc_to_string(binary data, data key, data iv = Qore::DefaultIV, *string encoding);
73 
75 
92 binary blowfish_encrypt_cbc(data data, data key, data iv = Qore::DefaultIV);
93 
95 
112 binary cast5_decrypt_cbc(binary data, data key, data iv = Qore::DefaultIV);
113 
115 
135 string cast5_decrypt_cbc_to_string(binary data, data key, data iv = Qore::DefaultIV, *string encoding);
136 
138 
155 binary cast5_encrypt_cbc(data data, data key, data iv = Qore::DefaultIV);
156 
158 
176 binary des_decrypt_cbc(binary data, data key, data iv = Qore::DefaultIV);
177 
179 
200 string des_decrypt_cbc_to_string(binary data, data key, data iv = Qore::DefaultIV, *string encoding);
201 
203 
221 binary des_ede3_decrypt_cbc(data data, data key, data iv = Qore::DefaultIV);
222 
224 
245 string des_ede3_decrypt_cbc_to_string(binary data, data key, data iv = Qore::DefaultIV, *string encoding);
246 
248 
266 binary des_ede3_encrypt_cbc(data data, data key, data iv = Qore::DefaultIV);
267 
269 
287 binary des_ede_decrypt_cbc(binary data, data key, data iv = Qore::DefaultIV);
288 
290 
311 string des_ede_decrypt_cbc_to_string(binary data, data key, data iv = Qore::DefaultIV, *string encoding);
312 
314 
332 binary des_ede_encrypt_cbc(data data, data key, data iv = Qore::DefaultIV);
333 
335 
353 binary des_encrypt_cbc(data data, data key, data iv = Qore::DefaultIV);
354 
356 
367 
369 
387 binary desx_decrypt_cbc(binary data, data key, data iv = Qore::DefaultIV);
388 
390 
411 string desx_decrypt_cbc_to_string(binary data, data key, data iv = Qore::DefaultIV, *string encoding);
412 
414 
432 binary desx_encrypt_cbc(data data, data key, data iv = Qore::DefaultIV);
433 
435 
452 binary rc2_decrypt_cbc(binary data, data key, data iv = Qore::DefaultIV);
453 
455 
475 string rc2_decrypt_cbc_to_string(binary data, data key, data iv = Qore::DefaultIV, *string encoding);
476 
478 
495 binary rc2_encrypt_cbc(data data, data key, data iv = Qore::DefaultIV);
496 
498 
515 binary rc4_decrypt(binary data, data key, data iv = Qore::DefaultIV);
516 
518 
538 string rc4_decrypt_to_string(binary data, data key, data iv = Qore::DefaultIV, *string encoding);
539 
541 
558 binary rc4_encrypt(data data, data key, data iv = Qore::DefaultIV);
559 
561 
581 binary rc5_decrypt_cbc(binary data, data key, data iv = Qore::DefaultIV);
582 
584 
607 string rc5_decrypt_cbc_to_string(binary data, data key, data iv = Qore::DefaultIV, *string encoding);
608 
610 
630 binary rc5_encrypt_cbc(data data, data key, data iv = Qore::DefaultIV);
631 
633 };
634 
636 namespace Qore {
656 
658 
676 string DSS(data data);
677 
679 
697 string DSS1(data data);
698 
700 
718 binary DSS1_bin(data data);
719 
721 
739 binary DSS_bin(data data);
740 
742 
758 string MD2(data data);
759 
761 
780 binary MD2_bin(data data);
781 
783 
799 string MD4(data data);
800 
802 
818 binary MD4_bin(data data);
819 
821 
841 string MD5(data data);
842 
844 
860 binary MD5_bin(data data);
861 
863 
882 string MDC2(data data);
883 
885 
904 binary MDC2_bin(data data);
905 
907 
923 string RIPEMD160(data data);
924 
926 
942 binary RIPEMD160_binary(data data);
943 
945 
963 string SHA(data data);
964 
966 
984 string SHA1(data data);
985 
987 
1003 binary SHA1_bin(data data);
1004 
1006 
1027 string SHA224(data data);
1028 
1030 
1049 binary SHA224_bin(data data);
1050 
1052 
1073 string SHA256(data data);
1074 
1076 
1095 binary SHA256_bin(data data);
1096 
1098 
1119 string SHA384(data data);
1120 
1122 
1141 binary SHA384_bin(data data);
1142 
1144 
1165 string SHA512(data data);
1166 
1168 
1187 binary SHA512_bin(data data);
1188 
1190 
1208 binary SHA_bin(data data);
1209 
1211 };
1212 
1214 namespace Qore {
1237 
1239 
1254 string DSS1_hmac(data data, string key);
1255 
1257 
1272 string DSS_hmac(data data, string key);
1273 
1275 
1293 string MD2_hmac(data data, string key);
1294 
1296 
1309 string MD4_hmac(data data, string key);
1310 
1312 
1327 string MD5_hmac(data data, string key);
1328 
1330 
1343 string MDC2_hmac(data data, string key);
1344 
1346 
1359 string RIPEMD160_hmac(data data, string key);
1360 
1362 
1377 string SHA1_hmac(data data, string key);
1378 
1380 
1396 string SHA224_hmac(data data, string key);
1397 
1399 
1415 string SHA256_hmac(data data, string key);
1416 
1418 
1434 string SHA384_hmac(data data, string key);
1435 
1437 
1453 string SHA512_hmac(data data, string key);
1454 
1456 
1471 string SHA_hmac(data data, string key);
1472 
1474 };
1475 
1477 namespace Qore {
1482 
1484  const DefaultIV = <0000000000000000>;
1486 };
string DSS1(data data)
Returns the DSS1 message digest (based on SHA1 and DSA) of the supplied argument as a hex string...
binary SHA384_bin(data data)
Returns the SHA-384 message digest (a variant of SHA-2) of the supplied argument as a binary object...
string 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&#39;s DESX algorithm using a 24-byte key a...
const DefaultIV
The default initialization vector is simply a 8-byte string of nulls.
Definition: ql_crypto.dox.h:1484
binary SHA256_bin(data data)
Returns the SHA-256 message digest (a variant of SHA-2) of the supplied argument as a binary object...
string MD4_hmac(data data, string key)
Returns the MD4 based HMAC of the supplied argument as a hex string.
string SHA(data data)
Returns the SHA (outdated SHA-0) message digest of the supplied argument as a hex string...
string SHA512(data data)
Returns the SHA-512 message digest (a variant of SHA-2) of the supplied argument as a hex string...
binary RIPEMD160_binary(data data)
Returns the RIPEMD message digest of the supplied argument as a binary object.
string SHA256(data data)
Returns the SHA-256 message digest (a variant of SHA-2) of the supplied argument as a hex string...
string SHA1_hmac(data data, string key)
Returns the SHA1 based HMAC of the supplied argument as a hex string.
string MD4(data data)
Returns the MD4 message digest of the supplied argument as a hex string.
binary 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...
binary des_random_key()
Returns a binary object of a random key for the DES algorithm
string 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 strin...
string DSS(data data)
Returns the DSS message digest (based on SHA-0 and DSA) of the supplied argument as a hex string...
string 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-lengt...
binary rc5_decrypt_cbc(binary data, data key, data iv=Qore::DefaultIV)
Decrypts data using the Cipher Block Chaining function for RSA&#39;s RC2(tm) algorithm using a variable-l...
string 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&#39;s RC4(tm) a...
binary rc2_decrypt_cbc(binary data, data key, data iv=Qore::DefaultIV)
Decrypts data using the Cipher Block Chaining function for RSA&#39;s RC2(tm) algorithm using a variable-l...
binary rc4_decrypt(binary data, data key, data iv=Qore::DefaultIV)
Decrypts data using the Alleged RC4 cipher algorithm, which should be compatible with RSA&#39;s RC4(tm) a...
string MD5_hmac(data data, string key)
Returns the MD5 based HMAC of the supplied argument as a hex string.
binary binary()
Always returns an empty binary object (of zero length)
binary rc5_encrypt_cbc(data data, data key, data iv=Qore::DefaultIV)
Encrypts data using the Cipher Block Chaining function for RSA&#39;s RC2(tm) algorithm using a variable-l...
binary MD5_bin(data data)
Returns the MD5 message digest of the supplied argument as a binary object.
string SHA512_hmac(data data, string key)
Returns the SHA512 based HMAC of the supplied argument as a hex string.
binary blowfish_encrypt_cbc(data data, data key, data iv=Qore::DefaultIV)
Encrypts data using the Cipher Block Chaining function for the blowfish algorithm ...
binary 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 t...
string RIPEMD160(data data)
Returns the RIPEMD message digest of the supplied argument as a hex string.
string MD5(data data)
Returns the MD5 message digest of the supplied argument as a hex string.
binary SHA512_bin(data data)
Returns the SHA-512 message digest (a variant of SHA-2) of the supplied argument as a binary object...
binary desx_encrypt_cbc(data data, data key, data iv=Qore::DefaultIV)
Encrypts data using the Cipher Block Chaining function for RSA&#39;s DESX algorithm using a 24-byte key a...
binary SHA_bin(data data)
Returns the SHA (outdated SHA-0) message digest of the supplied argument as a binary object...
binary MDC2_bin(data data)
Returns the MDC2 message digest of the supplied argument as a binary object.
binary 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...
string SHA384_hmac(data data, string key)
Returns the SHA384 based HMAC of the supplied argument as a hex string.
binary DSS1_bin(data data)
Returns the DSS1 message digest (based on SHA-0 and DSA) of the supplied argument as a binary object...
binary MD2_bin(data data)
Returns the MD2 message digest of the supplied argument as binary object.
string DSS_hmac(data data, string key)
Returns the DSS (SHA-0 and DSA) based HMAC of the supplied argument as a hex string.
string SHA384(data data)
Returns the SHA-384 message digest (a variant of SHA-2) of the supplied argument as a hex string...
string SHA256_hmac(data data, string key)
Returns the SHA256 based HMAC of the supplied argument as a hex string.
binary DSS_bin(data data)
Returns the DSS message digest (based on SHA-0 and DSA) of the supplied argument as a binary object...
string DSS1_hmac(data data, string key)
Returns the DSS1 (SHA-1 and DSA) based HMAC of the supplied argument as a hex string.
binary 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-lengt...
binary rc2_encrypt_cbc(data data, data key, data iv=Qore::DefaultIV)
Encrypts data using the Cipher Block Chaining function for RSA&#39;s RC2(tm) algorithm using a variable-l...
string 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&#39;s RC2(tm) algorithm using a variable-l...
string MD2_hmac(data data, string key)
Returns the MD2 based HMAC of the supplied argument as a hex string.
binary 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 binar...
binary rc4_encrypt(data data, data key, data iv=Qore::DefaultIV)
Encrypts data using the Alleged RC4 cipher algorithm, which should be compatible with RSA&#39;s RC4(tm) a...
string 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...
string MD2(data data)
Returns the MD2 message digest of the supplied argument as a hex string.
string 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&#39;s RC2(tm) algorithm using a variable-l...
string SHA224_hmac(data data, string key)
Returns the SHA224 based HMAC of the supplied argument as a hex string.
string SHA_hmac(data data, string key)
Returns the SHA based HMAC of the supplied argument as a hex string.
string SHA1(data data)
Returns the SHA1 message digest of the supplied argument as a hex string.
string RIPEMD160_hmac(data data, string key)
Returns the RIPEMD based HMAC of the supplied argument as a hex string.
binary MD4_bin(data data)
Returns the MD4 message digest of the supplied argument as a binary object.
binary SHA1_bin(data data)
Returns the SHA1 message digest of the supplied argument as a binary object.
string MDC2(data data)
Returns the MDC2 message digest of the supplied argument as a hex string.
string SHA224(data data)
Returns the SHA-224 message digest (a variant of SHA-2) of the supplied argument as a hex string...
string MDC2_hmac(data data, string key)
Returns the MDC2 based HMAC of the supplied argument as a hex string.
string 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 t...
binary desx_decrypt_cbc(binary data, data key, data iv=Qore::DefaultIV)
Decrypts data using the Cipher Block Chaining function for RSA&#39;s DESX algorithm using a 24-byte key a...
binary SHA224_bin(data data)
Returns the SHA-224 message digest (a variant of SHA-2) of the supplied argument as a binary object...
binary 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-lengt...
binary 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...
binary 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 t...
binary 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...
string 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...