Qore Programming Language Reference Manual: lib/ql_crypto.dox.h Source File

Qore Programming Language Reference Manual 0.8.11

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes

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
366 binary des_random_key();
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 };
Qore::DSS1
string DSS1(data data)
Returns the DSS1 message digest (based on SHA1 and DSA) of the supplied argument as a hex string...
Qore::SHA384_bin
binary SHA384_bin(data data)
Returns the SHA-384 message digest (a variant of SHA-2) of the supplied argument as a binary object...
Qore::desx_decrypt_cbc_to_string
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's DESX algorithm using a 24-byte key a...
Qore::DefaultIV
const DefaultIV
The default initialization vector is simply a 8-byte string of nulls.
Definition: ql_crypto.dox.h:1484
Qore::SHA256_bin
binary SHA256_bin(data data)
Returns the SHA-256 message digest (a variant of SHA-2) of the supplied argument as a binary object...
Qore::MD4_hmac
string MD4_hmac(data data, string key)
Returns the MD4 based HMAC of the supplied argument as a hex string.
Qore::SHA
string SHA(data data)
Returns the SHA (outdated SHA-0) message digest of the supplied argument as a hex string...
Qore::SHA512
string SHA512(data data)
Returns the SHA-512 message digest (a variant of SHA-2) of the supplied argument as a hex string...
Qore::RIPEMD160_binary
binary RIPEMD160_binary(data data)
Returns the RIPEMD message digest of the supplied argument as a binary object.
Qore::SHA256
string SHA256(data data)
Returns the SHA-256 message digest (a variant of SHA-2) of the supplied argument as a hex string...
Qore::SHA1_hmac
string SHA1_hmac(data data, string key)
Returns the SHA1 based HMAC of the supplied argument as a hex string.
Qore::MD4
string MD4(data data)
Returns the MD4 message digest of the supplied argument as a hex string.
Qore::des_ede_decrypt_cbc
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...
Qore::des_random_key
binary des_random_key()
Returns a binary object of a random key for the DES algorithm
Qore::blowfish_decrypt_cbc_to_string
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...
Qore::DSS
string DSS(data data)
Returns the DSS message digest (based on SHA-0 and DSA) of the supplied argument as a hex string...
Qore::cast5_decrypt_cbc_to_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...
Qore::rc5_decrypt_cbc
binary 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-l...
Qore::rc4_decrypt_to_string
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's RC4(tm) a...
Qore::rc2_decrypt_cbc
binary 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-l...
Qore::rc4_decrypt
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's RC4(tm) a...
Qore::MD5_hmac
string MD5_hmac(data data, string key)
Returns the MD5 based HMAC of the supplied argument as a hex string.
Qore::binary
binary binary()
Always returns an empty binary object (of zero length)
Qore::rc5_encrypt_cbc
binary 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-l...
Qore::MD5_bin
binary MD5_bin(data data)
Returns the MD5 message digest of the supplied argument as a binary object.
Qore::SHA512_hmac
string SHA512_hmac(data data, string key)
Returns the SHA512 based HMAC of the supplied argument as a hex string.
Qore::blowfish_encrypt_cbc
binary blowfish_encrypt_cbc(data data, data key, data iv=Qore::DefaultIV)
Encrypts data using the Cipher Block Chaining function for the blowfish algorithm ...
Qore::des_ede3_decrypt_cbc
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...
Qore::RIPEMD160
string RIPEMD160(data data)
Returns the RIPEMD message digest of the supplied argument as a hex string.
Qore::MD5
string MD5(data data)
Returns the MD5 message digest of the supplied argument as a hex string.
Qore::SHA512_bin
binary SHA512_bin(data data)
Returns the SHA-512 message digest (a variant of SHA-2) of the supplied argument as a binary object...
Qore::desx_encrypt_cbc
binary 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 a...
Qore::SHA_bin
binary SHA_bin(data data)
Returns the SHA (outdated SHA-0) message digest of the supplied argument as a binary object...
Qore::MDC2_bin
binary MDC2_bin(data data)
Returns the MDC2 message digest of the supplied argument as a binary object.
Qore::des_ede_encrypt_cbc
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...
Qore::SHA384_hmac
string SHA384_hmac(data data, string key)
Returns the SHA384 based HMAC of the supplied argument as a hex string.
Qore::DSS1_bin
binary DSS1_bin(data data)
Returns the DSS1 message digest (based on SHA-0 and DSA) of the supplied argument as a binary object...
Qore::MD2_bin
binary MD2_bin(data data)
Returns the MD2 message digest of the supplied argument as binary object.
Qore::DSS_hmac
string DSS_hmac(data data, string key)
Returns the DSS (SHA-0 and DSA) based HMAC of the supplied argument as a hex string.
Qore::SHA384
string SHA384(data data)
Returns the SHA-384 message digest (a variant of SHA-2) of the supplied argument as a hex string...
Qore::SHA256_hmac
string SHA256_hmac(data data, string key)
Returns the SHA256 based HMAC of the supplied argument as a hex string.
Qore::DSS_bin
binary DSS_bin(data data)
Returns the DSS message digest (based on SHA-0 and DSA) of the supplied argument as a binary object...
Qore::DSS1_hmac
string DSS1_hmac(data data, string key)
Returns the DSS1 (SHA-1 and DSA) based HMAC of the supplied argument as a hex string.
Qore::cast5_encrypt_cbc
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...
Qore::rc2_encrypt_cbc
binary 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-l...
Qore::rc5_decrypt_cbc_to_string
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's RC2(tm) algorithm using a variable-l...
Qore::MD2_hmac
string MD2_hmac(data data, string key)
Returns the MD2 based HMAC of the supplied argument as a hex string.
Qore::blowfish_decrypt_cbc
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...
Qore::rc4_encrypt
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's RC4(tm) a...
Qore::des_ede_decrypt_cbc_to_string
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...
Qore::MD2
string MD2(data data)
Returns the MD2 message digest of the supplied argument as a hex string.
Qore::rc2_decrypt_cbc_to_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's RC2(tm) algorithm using a variable-l...
Qore::SHA224_hmac
string SHA224_hmac(data data, string key)
Returns the SHA224 based HMAC of the supplied argument as a hex string.
Qore::SHA_hmac
string SHA_hmac(data data, string key)
Returns the SHA based HMAC of the supplied argument as a hex string.
Qore::SHA1
string SHA1(data data)
Returns the SHA1 message digest of the supplied argument as a hex string.
Qore::RIPEMD160_hmac
string RIPEMD160_hmac(data data, string key)
Returns the RIPEMD based HMAC of the supplied argument as a hex string.
Qore::MD4_bin
binary MD4_bin(data data)
Returns the MD4 message digest of the supplied argument as a binary object.
Qore::SHA1_bin
binary SHA1_bin(data data)
Returns the SHA1 message digest of the supplied argument as a binary object.
Qore::MDC2
string MDC2(data data)
Returns the MDC2 message digest of the supplied argument as a hex string.
Qore::SHA224
string SHA224(data data)
Returns the SHA-224 message digest (a variant of SHA-2) of the supplied argument as a hex string...
Qore::MDC2_hmac
string MDC2_hmac(data data, string key)
Returns the MDC2 based HMAC of the supplied argument as a hex string.
Qore::des_ede3_decrypt_cbc_to_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...
Qore::desx_decrypt_cbc
binary 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 a...
Qore::SHA224_bin
binary SHA224_bin(data data)
Returns the SHA-224 message digest (a variant of SHA-2) of the supplied argument as a binary object...
Qore::cast5_decrypt_cbc
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...
Qore::des_decrypt_cbc
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...
Qore::des_ede3_encrypt_cbc
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...
Qore::des_encrypt_cbc
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...
Qore::des_decrypt_cbc_to_string
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...