| Qore Programming Language Reference Manual 2.2.0

Loading...
Searching...
No Matches
ql_crypto.dox.h
1
3 namespace Qore {
38
40
66 binary blowfish_decrypt_cbc(binary data, data key, data iv = Qore::DefaultIV);
67
69
98 string blowfish_decrypt_cbc_to_string(binary data, data key, data iv = Qore::DefaultIV, *string encoding);
99
101
127 binary blowfish_encrypt_cbc(data data, data key, data iv = Qore::DefaultIV);
128
130
156 binary cast5_decrypt_cbc(binary data, data key, data iv = Qore::DefaultIV);
157
159
188 string cast5_decrypt_cbc_to_string(binary data, data key, data iv = Qore::DefaultIV, *string encoding);
189
191
217 binary cast5_encrypt_cbc(data data, data key, data iv = Qore::DefaultIV);
218
220
247 binary des_decrypt_cbc(binary data, data key, data iv = Qore::DefaultIV);
248
250
280 string des_decrypt_cbc_to_string(binary data, data key, data iv = Qore::DefaultIV, *string encoding);
281
283
310 binary des_ede3_decrypt_cbc(data data, data key, data iv = Qore::DefaultIV);
311
313
343 string des_ede3_decrypt_cbc_to_string(binary data, data key, data iv = Qore::DefaultIV, *string encoding);
344
346
373 binary des_ede3_encrypt_cbc(data data, data key, data iv = Qore::DefaultIV);
374
376
403 binary des_ede_decrypt_cbc(binary data, data key, data iv = Qore::DefaultIV);
404
406
436 string des_ede_decrypt_cbc_to_string(binary data, data key, data iv = Qore::DefaultIV, *string encoding);
437
439
466 binary des_ede_encrypt_cbc(data data, data key, data iv = Qore::DefaultIV);
467
469
496 binary des_encrypt_cbc(data data, data key, data iv = Qore::DefaultIV);
497
499
509 binary des_random_key();
510
512
539 binary desx_decrypt_cbc(binary data, data key, data iv = Qore::DefaultIV);
540
542
572 string desx_decrypt_cbc_to_string(binary data, data key, data iv = Qore::DefaultIV, *string encoding);
573
575
602 binary desx_encrypt_cbc(data data, data key, data iv = Qore::DefaultIV);
603
605
631 binary rc2_decrypt_cbc(binary data, data key, data iv = Qore::DefaultIV);
632
634
663 string rc2_decrypt_cbc_to_string(binary data, data key, data iv = Qore::DefaultIV, *string encoding);
664
666
692 binary rc2_encrypt_cbc(data data, data key, data iv = Qore::DefaultIV);
693
695
723 binary rc4_decrypt(binary data, data key, data iv = Qore::DefaultIV);
724
726
757 string rc4_decrypt_to_string(binary data, data key, data iv = Qore::DefaultIV, *string encoding);
758
760
788 binary rc4_encrypt(data data, data key, data iv = Qore::DefaultIV);
789
791
821 binary rc5_decrypt_cbc(binary data, data key, data iv = Qore::DefaultIV);
822
824
857 string rc5_decrypt_cbc_to_string(binary data, data key, data iv = Qore::DefaultIV, *string encoding);
858
860
890 binary rc5_encrypt_cbc(data data, data key, data iv = Qore::DefaultIV);
891
893}
894
896 namespace Qore {
916
918
938 string DSS(data data);
939
941
961 string DSS1(data data);
962
964
984 binary DSS1_bin(data data);
985
987
1007 binary DSS_bin(data data);
1008
1010
1028 string MD2(data data);
1029
1031
1053 binary MD2_bin(data data);
1054
1056
1074 string MD4(data data);
1075
1077
1095 binary MD4_bin(data data);
1096
1098
1120 string MD5(data data);
1121
1123
1141 binary MD5_bin(data data);
1142
1144
1166 string MDC2(data data);
1167
1169
1191 binary MDC2_bin(data data);
1192
1194
1212 string RIPEMD160(data data);
1213
1215
1233 binary RIPEMD160_binary(data data);
1234
1236
1256 string SHA(data data);
1257
1259
1279 string SHA1(data data);
1280
1282
1300 binary SHA1_bin(data data);
1301
1303
1327 string SHA224(data data);
1328
1330
1352 binary SHA224_bin(data data);
1353
1355
1379 string SHA256(data data);
1380
1382
1404 binary SHA256_bin(data data);
1405
1407
1431 string SHA384(data data);
1432
1434
1456 binary SHA384_bin(data data);
1457
1459
1483 string SHA512(data data);
1484
1486
1508 binary SHA512_bin(data data);
1509
1511
1531 binary SHA_bin(data data);
1532
1534}
1535
1537 namespace Qore {
1560
1562
1579 string DSS1_hmac(data data, data key);
1580
1582
1599 string DSS_hmac(data data, data key);
1600
1602
1622 string MD2_hmac(data data, data key);
1623
1625
1640 string MD4_hmac(data data, data key);
1641
1643
1660 string MD5_hmac(data data, data key);
1661
1663
1678 string MDC2_hmac(data data, data key);
1679
1681
1696 string RIPEMD160_hmac(data data, data key);
1697
1699
1716 string SHA1_hmac(data data, data key);
1717
1719
1737 string SHA224_hmac(data data, data key);
1738
1740
1758 string SHA256_hmac(data data, data key);
1759
1761
1779 string SHA384_hmac(data data, data key);
1780
1782
1800 string SHA512_hmac(data data, data key);
1801
1803
1820 string SHA_hmac(data data, data key);
1821
1823
1855 binary decrypt_to_binary(string alg, data data, data key, data iv = Qore::DefaultIV, *data mac, *data aad);
1856
1858
1891 string decrypt_to_string(string alg, data data, data key, data iv = Qore::DefaultIV, *data mac, *data aad, *string encoding);
1892
1894
1917 binary digest(string digest, data data);
1918
1920
1954 binary encrypt(string alg, data data, data key, data iv = Qore::DefaultIV, *reference<binary> mac, *int mac_size, *data aad);
1955
1957
1973*hash<auto> get_cipher_info(string cipher);
1974
1976
2007 hash<auto> get_crypto_info();
2008
2010
2042 Transform get_decryptor(string alg, data key, data iv = Qore::DefaultIV, *data mac, *data aad);
2043
2045
2062 list<string> get_digests();
2063
2065
2099 Transform get_encryptor(string alg, data key, data iv = Qore::DefaultIV, *reference<binary> mac, *int mac_size, *data aad);
2100
2102
2120 binary get_random_bytes(int size);
2121
2123
2139 bool has_digest(string digest);
2140
2142
2168 binary hmac(string digest, data data, data key);
2169
2171}
2172
2174 namespace Qore {
2197
2199
2206 const CRYPTO_ALG_AES_128 = "aes128";
2208
2215 const CRYPTO_ALG_AES_192 = "aes192";
2217
2224 const CRYPTO_ALG_AES_256 = "aes256";
2226
2228 const CRYPTO_ALG_BLOWFISH = "blowfish";
2230
2232 const CRYPTO_ALG_BLOWFISH_CFB = "blowfish-cfb";
2234
2236 const CRYPTO_ALG_BLOWFISH_OFB = "blowfish-ofb";
2238
2240 const CRYPTO_ALG_CAST5 = "cast5";
2242
2244 const CRYPTO_ALG_CAST5_CFB = "cast5-cfb";
2246
2248 const CRYPTO_ALG_CAST5_OFB = "cast5-ofb";
2250
2254 const CRYPTO_ALG_DES = "des";
2256
2260 const CRYPTO_ALG_DESX = "desx";
2262
2266 const CRYPTO_ALG_DES_CFB = "des-cfb";
2268
2272 const CRYPTO_ALG_DES_EDE = "desede";
2274
2278 const CRYPTO_ALG_DES_EDE3 = "desede3";
2280
2284 const CRYPTO_ALG_DES_EDE3_CFB = "desede3-cfb";
2286
2290 const CRYPTO_ALG_DES_EDE3_OFB = "desede3-ofb";
2292
2296 const CRYPTO_ALG_DES_EDE_CFB = "desede-cfb";
2298
2302 const CRYPTO_ALG_DES_EDE_OFB = "desede-ofb";
2304
2308 const CRYPTO_ALG_DES_OFB = "des-ofb";
2310
2313 const CRYPTO_ALG_RC2 = "rc2";
2315
2318 const CRYPTO_ALG_RC2_CFB = "rc2-cfb";
2320
2323 const CRYPTO_ALG_RC2_OFB = "rc2-ofb";
2325
2329 const CRYPTO_ALG_RC4 = "rc4";
2331
2338 const CRYPTO_ALG_RC5 = "rc5";
2340
2347 const CRYPTO_ALG_RC5_CFB = "rc5-cfb";
2349
2356 const CRYPTO_ALG_RC5_OFB = "rc5-ofb";
2358}
2359
2361 namespace Qore {
2368
2370 const DefaultIV = <0000000000000000>;
2372 const DefaultIV16 = <00000000000000000000000000000000>;
2374}
2375
2377 namespace Qore {
2396
2398
2400 const CRYPTO_DIGEST_DSS = "dss";
2402
2404 const CRYPTO_DIGEST_DSS1 = "dss1";
2406
2408 const CRYPTO_DIGEST_MD2 = "md2";
2410
2412 const CRYPTO_DIGEST_MD4 = "md4";
2414
2416 const CRYPTO_DIGEST_MD5 = "md5";
2418
2420 const CRYPTO_DIGEST_MDC2 = "mdc2";
2422
2424 const CRYPTO_DIGEST_RIPEMD160 = "ripemd160";
2426
2428 const CRYPTO_DIGEST_SHA = "sha";
2430
2432 const CRYPTO_DIGEST_SHA1 = "sha1";
2434
2436 const CRYPTO_DIGEST_SHA224 = "sha224";
2438
2440 const CRYPTO_DIGEST_SHA256 = "sha256";
2442
2444 const CRYPTO_DIGEST_SHA384 = "sha384";
2446
2448 const CRYPTO_DIGEST_SHA512 = "sha512";
2450
2456 const CipherMap = qore(init_cipher_map_hash());
2458
2463 const DigestMap = qore(init_digest_map_hash());
2465}
Qore::Transform
Marker interface for transformations usable in TransformOutputStream and TransformInputStream.
Definition QC_Transform.dox.h:12
Qore::CRYPTO_ALG_AES_192
const CRYPTO_ALG_AES_192
Identifies the AES cryptographic algorithm in Galois Counter Mode (GCM) with a 192-bit (24 byte) key.
Definition ql_crypto.dox.h:2215
Qore::CRYPTO_ALG_DES_EDE3
const CRYPTO_ALG_DES_EDE3
Identifies the three-key triple DES algorithm in Cipher Block Chaining (CBC) mode with a 192-bit (24 ...
Definition ql_crypto.dox.h:2278
Qore::CRYPTO_ALG_RC2_OFB
const CRYPTO_ALG_RC2_OFB
Identifies RSA's RC2(tm) cryptographic algorithm in Output Feedback (OFB) mode with a variable-length...
Definition ql_crypto.dox.h:2323
Qore::CRYPTO_ALG_BLOWFISH_OFB
const CRYPTO_ALG_BLOWFISH_OFB
Identifies the blowfish cryptographic algorithm in Output Feedback (OFB) mode with a variable-length ...
Definition ql_crypto.dox.h:2236
Qore::CRYPTO_ALG_BLOWFISH_CFB
const CRYPTO_ALG_BLOWFISH_CFB
Identifies the blowfish cryptographic algorithm in Cipher Feedback (CFB) mode with a variable-length ...
Definition ql_crypto.dox.h:2232
Qore::CRYPTO_ALG_DES_CFB
const CRYPTO_ALG_DES_CFB
Identifies the DES cryptographic algorithm in Cipher Feedback (CFB) mode with a 64-bit (8 byte) key.
Definition ql_crypto.dox.h:2266
Qore::CRYPTO_ALG_DES_EDE_CFB
const CRYPTO_ALG_DES_EDE_CFB
Identifies the two-key triple DES algorithm in Cipher Feedback (CFB) mode with a 128-bit (16 byte) ke...
Definition ql_crypto.dox.h:2296
Qore::CRYPTO_ALG_BLOWFISH
const CRYPTO_ALG_BLOWFISH
Identifies the blowfish cryptographic algorithm in Cipher Block Chaining (CBC) mode with a variable-l...
Definition ql_crypto.dox.h:2228
Qore::CRYPTO_ALG_AES_256
const CRYPTO_ALG_AES_256
Identifies the AES cryptographic algorithm in Galois Counter Mode (GCM) with a 256-bit (32 byte) key.
Definition ql_crypto.dox.h:2224
Qore::CRYPTO_ALG_RC2
const CRYPTO_ALG_RC2
Identifies RSA's RC2(tm) cryptographic algorithm in Cipher Block Chaining (CBC) mode with a variable-...
Definition ql_crypto.dox.h:2313
Qore::CRYPTO_ALG_CAST5_CFB
const CRYPTO_ALG_CAST5_CFB
Identifies the CAST5 cryptographic algorithm in Cipher Feedback (CFB) mode with a variable-length key...
Definition ql_crypto.dox.h:2244
Qore::CRYPTO_ALG_DES_EDE_OFB
const CRYPTO_ALG_DES_EDE_OFB
Identifies the two-key triple DES algorithm in Output Feedback (OFB) mode with a 128-bit (16 byte) ke...
Definition ql_crypto.dox.h:2302
Qore::CRYPTO_ALG_AES_128
const CRYPTO_ALG_AES_128
Identifies the AES cryptographic algorithm in Galois Counter Mode (GCM) with a 128-bit (16 byte) key.
Definition ql_crypto.dox.h:2206
Qore::CRYPTO_ALG_RC2_CFB
const CRYPTO_ALG_RC2_CFB
Identifies RSA's RC2(tm) cryptographic algorithm in Cipher Feedback (CFB) mode with a variable-length...
Definition ql_crypto.dox.h:2318
Qore::CRYPTO_ALG_DESX
const CRYPTO_ALG_DESX
Identifies RSA's DESX cryptographic algorithm in Cipher Block Chaining (CBC) mode with a 192-bit (24 ...
Definition ql_crypto.dox.h:2260
Qore::CRYPTO_ALG_RC4
const CRYPTO_ALG_RC4
Identifies the Alleged RC4 cryptographic algorithm, which should be compatible with RSA's RC4(TM) alg...
Definition ql_crypto.dox.h:2329
Qore::CRYPTO_ALG_RC5_CFB
const CRYPTO_ALG_RC5_CFB
Identifies the RC5 cryptographic algorithm in Cipher Feedback (CFB) mode with a variable-length key.
Definition ql_crypto.dox.h:2347
Qore::CRYPTO_ALG_DES
const CRYPTO_ALG_DES
Identifies the DES cryptographic algorithm in Cipher Block Chaining (CBC) mode with a 64-bit (8 byte)...
Definition ql_crypto.dox.h:2254
Qore::CRYPTO_ALG_CAST5_OFB
const CRYPTO_ALG_CAST5_OFB
Identifies the CAST5 cryptographic algorithm in Output Feedback (OFB) mode with a variable-length key...
Definition ql_crypto.dox.h:2248
Qore::CRYPTO_ALG_CAST5
const CRYPTO_ALG_CAST5
Identifies the CAST5 cryptographic algorithm in Cipher Block Chaining (CBC) mode with a variable-leng...
Definition ql_crypto.dox.h:2240
Qore::CRYPTO_ALG_DES_OFB
const CRYPTO_ALG_DES_OFB
Identifies the DES cryptographic algorithm in Output Feedback (OFB) mode with a 64-bit (8 byte) key.
Definition ql_crypto.dox.h:2308
Qore::CRYPTO_ALG_DES_EDE3_OFB
const CRYPTO_ALG_DES_EDE3_OFB
Identifies the three-key triple DES algorithm in Output Feedback (OFB) mode with a 192-bit (24 byte) ...
Definition ql_crypto.dox.h:2290
Qore::CRYPTO_ALG_DES_EDE3_CFB
const CRYPTO_ALG_DES_EDE3_CFB
Identifies the three-key triple DES algorithm in Cipher Feedback (CFB) mode with a 192-bit (24 byte) ...
Definition ql_crypto.dox.h:2284
Qore::CRYPTO_ALG_RC5_OFB
const CRYPTO_ALG_RC5_OFB
Identifies the RC5 cryptographic algorithm in Output Feedback (OFB) mode with a variable-length key.
Definition ql_crypto.dox.h:2356
Qore::CRYPTO_ALG_DES_EDE
const CRYPTO_ALG_DES_EDE
Identifies the two-key triple DES algorithm in Cipher Block Chaining (CBC) mode with a 128-bit (16 by...
Definition ql_crypto.dox.h:2272
Qore::CRYPTO_ALG_RC5
const CRYPTO_ALG_RC5
Identifies the RC5 cryptographic algorithm in Cipher Block Chaining (CBC) mode with a variable-length...
Definition ql_crypto.dox.h:2338
Qore::DefaultIV
const DefaultIV
The default 8-byte initialization vector is simply a 8-byte string of nulls.
Definition ql_crypto.dox.h:2370
Qore::DefaultIV16
const DefaultIV16
The default 16-byte initialization vector is simply a 16-byte string of nulls.
Definition ql_crypto.dox.h:2372
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 RC5(tm) algorithm using a variable-l...
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::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::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::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_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::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::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::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::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::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::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_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::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::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 RC5(tm) algorithm using a variable-l...
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::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::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::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 RC5(tm) algorithm using a variable-l...
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::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::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.
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::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::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::des_random_key
binary des_random_key()
Returns a binary value of a random key for the DES algorithm
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::CRYPTO_DIGEST_SHA384
const CRYPTO_DIGEST_SHA384
specifies the SHA-384 message digest (a variant of SHA-2)
Definition ql_crypto.dox.h:2444
Qore::DigestMap
const DigestMap
A hash keyed by supported digest name where each value is True.
Definition ql_crypto.dox.h:2463
Qore::CRYPTO_DIGEST_SHA224
const CRYPTO_DIGEST_SHA224
specifies the SHA-224 message digest (a variant of SHA-2)
Definition ql_crypto.dox.h:2436
Qore::CRYPTO_DIGEST_SHA1
const CRYPTO_DIGEST_SHA1
specifies the SHA1 message digest
Definition ql_crypto.dox.h:2432
Qore::CRYPTO_DIGEST_MD2
const CRYPTO_DIGEST_MD2
specifies the MD2 message digest
Definition ql_crypto.dox.h:2408
Qore::CRYPTO_DIGEST_SHA512
const CRYPTO_DIGEST_SHA512
specifies the SHA-512 message digest (a variant of SHA-2)
Definition ql_crypto.dox.h:2448
Qore::CRYPTO_DIGEST_DSS
const CRYPTO_DIGEST_DSS
specifies the DSS message digest (based on SHA-0 and DSA)
Definition ql_crypto.dox.h:2400
Qore::CipherMap
const CipherMap
A hash keyed by supported cipher name where each value is an informational hash.
Definition ql_crypto.dox.h:2456
Qore::CRYPTO_DIGEST_MDC2
const CRYPTO_DIGEST_MDC2
specifies the MDC2 message digest
Definition ql_crypto.dox.h:2420
Qore::CRYPTO_DIGEST_RIPEMD160
const CRYPTO_DIGEST_RIPEMD160
specifies the RIPEMD message digest
Definition ql_crypto.dox.h:2424
Qore::CRYPTO_DIGEST_SHA256
const CRYPTO_DIGEST_SHA256
specifies the SHA-256 message digest (a variant of SHA-2)
Definition ql_crypto.dox.h:2440
Qore::CRYPTO_DIGEST_MD4
const CRYPTO_DIGEST_MD4
specifies the MD4 message digest
Definition ql_crypto.dox.h:2412
Qore::CRYPTO_DIGEST_DSS1
const CRYPTO_DIGEST_DSS1
specifies the DSS1 message digest (based on SHA1 and DSA)
Definition ql_crypto.dox.h:2404
Qore::CRYPTO_DIGEST_SHA
const CRYPTO_DIGEST_SHA
specifies the insecure and outdated SHA-0 message digest; only supplied for compatibility purposes
Definition ql_crypto.dox.h:2428
Qore::CRYPTO_DIGEST_MD5
const CRYPTO_DIGEST_MD5
specifies the MD5 message digest
Definition ql_crypto.dox.h:2416
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 value.
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 value.
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::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::RIPEMD160
string RIPEMD160(data data)
Returns the RIPEMD message digest of the supplied argument as a hex string.
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 value.
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 value.
Qore::MD4
string MD4(data data)
Returns the MD4 message digest 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 value.
Qore::SHA1_bin
binary SHA1_bin(data data)
Returns the SHA1 message digest of the supplied argument as a binary value.
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::MD5
string MD5(data data)
Returns the MD5 message digest of the supplied argument as a hex string.
Qore::MDC2_bin
binary MDC2_bin(data data)
Returns the MDC2 message digest of the supplied argument as a binary value.
Qore::MD2_bin
binary MD2_bin(data data)
Returns the MD2 message digest of the supplied argument as binary value.
Qore::SHA1
string SHA1(data data)
Returns the SHA1 message digest of the supplied argument as a hex string.
Qore::MDC2
string MDC2(data data)
Returns the MDC2 message digest of the supplied argument as a hex string.
Qore::MD2
string MD2(data data)
Returns the MD2 message digest of the supplied argument as a hex string.
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::MD4_bin
binary MD4_bin(data data)
Returns the MD4 message digest of the supplied argument as a binary value.
Qore::SHA_bin
binary SHA_bin(data data)
Returns the SHA (outdated SHA-0) message digest of the supplied argument as a binary value.
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::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 value.
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 value.
Qore::SHA
string SHA(data data)
Returns the SHA (outdated SHA-0) message digest of the supplied argument as a hex string.
Qore::MD5_bin
binary MD5_bin(data data)
Returns the MD5 message digest of the supplied argument as a binary value.
Qore::MDC2_hmac
string MDC2_hmac(data data, data key)
Returns the MDC2 based HMAC of the supplied argument as a hex string.
Qore::has_digest
bool has_digest(string digest)
Returns True if the given digest is supported, False if not.
Qore::DSS1_hmac
string DSS1_hmac(data data, data key)
Returns the DSS1 (SHA-1 and DSA) based HMAC of the supplied argument as a hex string.
Qore::SHA512_hmac
string SHA512_hmac(data data, data key)
Returns the SHA512 based HMAC of the supplied argument as a hex string.
Qore::get_cipher_info
*hash< auto > get_cipher_info(string cipher)
Returns information about the given cipher or NOTHING if the cipher is unknown.
Qore::get_encryptor
Transform get_encryptor(string alg, data key, data iv=Qore::DefaultIV, *reference< binary > mac, *int mac_size, *data aad)
Returns a Transform object for encrypting data using the given algorithm for use with TransformInputS...
Qore::encrypt
binary encrypt(string alg, data data, data key, data iv=Qore::DefaultIV, *reference< binary > mac, *int mac_size, *data aad)
Returns a binary value of encrypted data corresponding to the input arguments inluding the given algo...
Qore::get_decryptor
Transform get_decryptor(string alg, data key, data iv=Qore::DefaultIV, *data mac, *data aad)
Returns a Transform object for decrypting data using the given algorithm for use with TransformInputS...
Qore::decrypt_to_string
string decrypt_to_string(string alg, data data, data key, data iv=Qore::DefaultIV, *data mac, *data aad, *string encoding)
Returns a string of decrypted data corresponding to the input arguments inluding the given algorithm.
Qore::get_digests
list< string > get_digests()
Returns a list of supported digest algorithms for hmac()
Qore::MD4_hmac
string MD4_hmac(data data, data key)
Returns the MD4 based HMAC of the supplied argument as a hex string.
Qore::get_random_bytes
binary get_random_bytes(int size)
returns a binary value of random bytes using openssl
Qore::SHA384_hmac
string SHA384_hmac(data data, data key)
Returns the SHA384 based HMAC of the supplied argument as a hex string.
Qore::MD5_hmac
string MD5_hmac(data data, data key)
Returns the MD5 based HMAC of the supplied argument as a hex string.
Qore::SHA_hmac
string SHA_hmac(data data, data key)
Returns the SHA based HMAC of the supplied argument as a hex string.
Qore::get_crypto_info
hash< auto > get_crypto_info()
Returns a hash of information about each cryptographic algorithmn supported by the current build of Q...
Qore::DSS_hmac
string DSS_hmac(data data, data key)
Returns the DSS (SHA-0 and DSA) based HMAC of the supplied argument as a hex string.
Qore::decrypt_to_binary
binary decrypt_to_binary(string alg, data data, data key, data iv=Qore::DefaultIV, *data mac, *data aad)
Returns a binary value of decrypted data corresponding to the input arguments inluding the given algo...
Qore::RIPEMD160_hmac
string RIPEMD160_hmac(data data, data key)
Returns the RIPEMD based HMAC of the supplied argument as a hex string.
Qore::MD2_hmac
string MD2_hmac(data data, data key)
Returns the MD2 based HMAC of the supplied argument as a hex string.
Qore::digest
binary digest(string digest, data data)
Returns the digest of the supplied arguments as a binary value.
Qore::SHA1_hmac
string SHA1_hmac(data data, data key)
Returns the SHA1 based HMAC of the supplied argument as a hex string.
Qore::SHA224_hmac
string SHA224_hmac(data data, data key)
Returns the SHA224 based HMAC of the supplied argument as a hex string.
Qore::hmac
binary hmac(string digest, data data, data key)
Returns the digest-based HMAC of the supplied arguments as a binary value.
Qore::SHA256_hmac
string SHA256_hmac(data data, data key)
Returns the SHA256 based HMAC of the supplied argument as a hex string.
Qore::hash
hash< auto > hash(object obj)
Returns a hash of an object's members.
Qore::list
list< auto > list(...)
Returns a list of the arguments passed at the top level.
Qore::binary
binary binary()
Always returns an empty binary object (of zero length)
Qore
main Qore-language namespace
Definition Pseudo_QC_All.dox.h:3