Qore Programming Language Reference Manual 2.0.0
Loading...
Searching...
No Matches
ql_crypto.dox.h
1
3namespace Qore {
38
40
67
69
98string blowfish_decrypt_cbc_to_string(binary data, data key, data iv = Qore::DefaultIV, *string encoding);
99
101
127binary blowfish_encrypt_cbc(data data, data key, data iv = Qore::DefaultIV);
128
130
157
159
188string cast5_decrypt_cbc_to_string(binary data, data key, data iv = Qore::DefaultIV, *string encoding);
189
191
217binary cast5_encrypt_cbc(data data, data key, data iv = Qore::DefaultIV);
218
220
247binary des_decrypt_cbc(binary data, data key, data iv = Qore::DefaultIV);
248
250
280string des_decrypt_cbc_to_string(binary data, data key, data iv = Qore::DefaultIV, *string encoding);
281
283
310binary des_ede3_decrypt_cbc(data data, data key, data iv = Qore::DefaultIV);
311
313
343string des_ede3_decrypt_cbc_to_string(binary data, data key, data iv = Qore::DefaultIV, *string encoding);
344
346
373binary des_ede3_encrypt_cbc(data data, data key, data iv = Qore::DefaultIV);
374
376
404
406
436string des_ede_decrypt_cbc_to_string(binary data, data key, data iv = Qore::DefaultIV, *string encoding);
437
439
466binary des_ede_encrypt_cbc(data data, data key, data iv = Qore::DefaultIV);
467
469
496binary des_encrypt_cbc(data data, data key, data iv = Qore::DefaultIV);
497
499
510
512
540
542
572string desx_decrypt_cbc_to_string(binary data, data key, data iv = Qore::DefaultIV, *string encoding);
573
575
602binary desx_encrypt_cbc(data data, data key, data iv = Qore::DefaultIV);
603
605
631binary rc2_decrypt_cbc(binary data, data key, data iv = Qore::DefaultIV);
632
634
663string rc2_decrypt_cbc_to_string(binary data, data key, data iv = Qore::DefaultIV, *string encoding);
664
666
692binary rc2_encrypt_cbc(data data, data key, data iv = Qore::DefaultIV);
693
695
723binary rc4_decrypt(binary data, data key, data iv = Qore::DefaultIV);
724
726
757string rc4_decrypt_to_string(binary data, data key, data iv = Qore::DefaultIV, *string encoding);
758
760
788binary rc4_encrypt(data data, data key, data iv = Qore::DefaultIV);
789
791
821binary rc5_decrypt_cbc(binary data, data key, data iv = Qore::DefaultIV);
822
824
857string rc5_decrypt_cbc_to_string(binary data, data key, data iv = Qore::DefaultIV, *string encoding);
858
860
890binary rc5_encrypt_cbc(data data, data key, data iv = Qore::DefaultIV);
891
893}
894
896namespace Qore {
916
918
938string DSS(data data);
939
941
961string DSS1(data data);
962
964
984binary DSS1_bin(data data);
985
987
1007binary DSS_bin(data data);
1008
1010
1028string MD2(data data);
1029
1031
1053binary MD2_bin(data data);
1054
1056
1074string MD4(data data);
1075
1077
1095binary MD4_bin(data data);
1096
1098
1120string MD5(data data);
1121
1123
1141binary MD5_bin(data data);
1142
1144
1166string MDC2(data data);
1167
1169
1191binary MDC2_bin(data data);
1192
1194
1212string RIPEMD160(data data);
1213
1215
1234
1236
1256string SHA(data data);
1257
1259
1279string SHA1(data data);
1280
1282
1300binary SHA1_bin(data data);
1301
1303
1327string SHA224(data data);
1328
1330
1353
1355
1379string SHA256(data data);
1380
1382
1405
1407
1431string SHA384(data data);
1432
1434
1457
1459
1483string SHA512(data data);
1484
1486
1509
1511
1531binary SHA_bin(data data);
1532
1534}
1535
1537namespace Qore {
1560
1562
1579string DSS1_hmac(data data, data key);
1580
1582
1599string DSS_hmac(data data, data key);
1600
1602
1622string MD2_hmac(data data, data key);
1623
1625
1640string MD4_hmac(data data, data key);
1641
1643
1660string MD5_hmac(data data, data key);
1661
1663
1678string MDC2_hmac(data data, data key);
1679
1681
1696string RIPEMD160_hmac(data data, data key);
1697
1699
1716string SHA1_hmac(data data, data key);
1717
1719
1737string SHA224_hmac(data data, data key);
1738
1740
1758string SHA256_hmac(data data, data key);
1759
1761
1779string SHA384_hmac(data data, data key);
1780
1782
1800string SHA512_hmac(data data, data key);
1801
1803
1820string SHA_hmac(data data, data key);
1821
1823
1855binary decrypt_to_binary(string alg, data data, data key, data iv = Qore::DefaultIV, *data mac, *data aad);
1856
1858
1891string decrypt_to_string(string alg, data data, data key, data iv = Qore::DefaultIV, *data mac, *data aad, *string encoding);
1892
1894
1917binary digest(string digest, data data);
1918
1920
1954binary encrypt(string alg, data data, data key, data iv = Qore::DefaultIV, *reference<binary> mac, *int mac_size, *data aad);
1955
1957
1974
1976
2008
2010
2042Transform get_decryptor(string alg, data key, data iv = Qore::DefaultIV, *data mac, *data aad);
2043
2045
2063
2065
2099Transform get_encryptor(string alg, data key, data iv = Qore::DefaultIV, *reference<binary> mac, *int mac_size, *data aad);
2100
2102
2121
2123
2139bool has_digest(string digest);
2140
2142
2168binary hmac(string digest, data data, data key);
2169
2171}
2172
2174namespace 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
2361namespace Qore {
2368
2370 const DefaultIV = <0000000000000000>;
2372 const DefaultIV16 = <00000000000000000000000000000000>;
2374}
2375
2377namespace 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}
Marker interface for transformations usable in TransformOutputStream and TransformInputStream.
Definition QC_Transform.dox.h:12
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
const DefaultIV
The default 8-byte initialization vector is simply a 8-byte string of nulls.
Definition ql_crypto.dox.h:2370
const DefaultIV16
The default 16-byte initialization vector is simply a 16-byte string of nulls.
Definition ql_crypto.dox.h:2372
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...
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...
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...
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...
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_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 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...
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 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 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...
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...
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.
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...
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...
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...
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 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...
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 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...
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...
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...
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.
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 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 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...
binary des_random_key()
Returns a binary value of a random key for the DES algorithm
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...
const CRYPTO_DIGEST_SHA384
specifies the SHA-384 message digest (a variant of SHA-2)
Definition ql_crypto.dox.h:2444
const DigestMap
A hash keyed by supported digest name where each value is True.
Definition ql_crypto.dox.h:2463
const CRYPTO_DIGEST_SHA224
specifies the SHA-224 message digest (a variant of SHA-2)
Definition ql_crypto.dox.h:2436
const CRYPTO_DIGEST_SHA1
specifies the SHA1 message digest
Definition ql_crypto.dox.h:2432
const CRYPTO_DIGEST_MD2
specifies the MD2 message digest
Definition ql_crypto.dox.h:2408
const CRYPTO_DIGEST_SHA512
specifies the SHA-512 message digest (a variant of SHA-2)
Definition ql_crypto.dox.h:2448
const CRYPTO_DIGEST_DSS
specifies the DSS message digest (based on SHA-0 and DSA)
Definition ql_crypto.dox.h:2400
const CipherMap
A hash keyed by supported cipher name where each value is an informational hash.
Definition ql_crypto.dox.h:2456
const CRYPTO_DIGEST_MDC2
specifies the MDC2 message digest
Definition ql_crypto.dox.h:2420
const CRYPTO_DIGEST_RIPEMD160
specifies the RIPEMD message digest
Definition ql_crypto.dox.h:2424
const CRYPTO_DIGEST_SHA256
specifies the SHA-256 message digest (a variant of SHA-2)
Definition ql_crypto.dox.h:2440
const CRYPTO_DIGEST_MD4
specifies the MD4 message digest
Definition ql_crypto.dox.h:2412
const CRYPTO_DIGEST_DSS1
specifies the DSS1 message digest (based on SHA1 and DSA)
Definition ql_crypto.dox.h:2404
const CRYPTO_DIGEST_SHA
specifies the insecure and outdated SHA-0 message digest; only supplied for compatibility purposes
Definition ql_crypto.dox.h:2428
const CRYPTO_DIGEST_MD5
specifies the MD5 message digest
Definition ql_crypto.dox.h:2416
binary SHA512_bin(data data)
Returns the SHA-512 message digest (a variant of SHA-2) of the supplied argument as a binary value.
binary DSS_bin(data data)
Returns the DSS message digest (based on SHA-0 and DSA) of the supplied argument as a binary value.
string SHA256(data data)
Returns the SHA-256 message digest (a variant of SHA-2) 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 RIPEMD160(data data)
Returns the RIPEMD message digest of the supplied argument as a hex string.
binary SHA256_bin(data data)
Returns the SHA-256 message digest (a variant of SHA-2) of the supplied argument as a binary value.
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 value.
string MD4(data data)
Returns the MD4 message digest 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 value.
binary SHA1_bin(data data)
Returns the SHA1 message digest of the supplied argument as a binary value.
string SHA512(data data)
Returns the SHA-512 message digest (a variant of SHA-2) 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 MDC2_bin(data data)
Returns the MDC2 message digest of the supplied argument as a binary value.
binary MD2_bin(data data)
Returns the MD2 message digest of the supplied argument as binary value.
string SHA1(data data)
Returns the SHA1 message digest of the supplied argument as a hex string.
string MDC2(data data)
Returns the MDC2 message digest of the supplied argument as a hex string.
string MD2(data data)
Returns the MD2 message digest of the supplied argument as a hex string.
string DSS(data data)
Returns the DSS message digest (based on SHA-0 and DSA) 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 value.
binary SHA_bin(data data)
Returns the SHA (outdated SHA-0) message digest of the supplied argument as a binary value.
string SHA384(data data)
Returns the SHA-384 message digest (a variant of SHA-2) 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 value.
binary SHA224_bin(data data)
Returns the SHA-224 message digest (a variant of SHA-2) of the supplied argument as a binary value.
string SHA(data data)
Returns the SHA (outdated SHA-0) message digest of the supplied argument as a hex string.
binary MD5_bin(data data)
Returns the MD5 message digest of the supplied argument as a binary value.
string MDC2_hmac(data data, data key)
Returns the MDC2 based HMAC of the supplied argument as a hex string.
bool has_digest(string digest)
Returns True if the given digest is supported, False if not.
string DSS1_hmac(data data, data key)
Returns the DSS1 (SHA-1 and DSA) based HMAC of the supplied argument as a hex string.
string SHA512_hmac(data data, data key)
Returns the SHA512 based HMAC of the supplied argument as a hex string.
*hash< auto > get_cipher_info(string cipher)
Returns information about the given cipher or NOTHING if the cipher is unknown.
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...
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...
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...
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.
list< string > get_digests()
Returns a list of supported digest algorithms for hmac()
string MD4_hmac(data data, data key)
Returns the MD4 based HMAC of the supplied argument as a hex string.
binary get_random_bytes(int size)
returns a binary value of random bytes using openssl
string SHA384_hmac(data data, data key)
Returns the SHA384 based HMAC of the supplied argument as a hex string.
string MD5_hmac(data data, data key)
Returns the MD5 based HMAC of the supplied argument as a hex string.
string SHA_hmac(data data, data key)
Returns the SHA based HMAC of the supplied argument as a hex string.
hash< auto > get_crypto_info()
Returns a hash of information about each cryptographic algorithmn supported by the current build of Q...
string DSS_hmac(data data, data key)
Returns the DSS (SHA-0 and DSA) based HMAC of the supplied argument as a hex string.
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...
string RIPEMD160_hmac(data data, data key)
Returns the RIPEMD based HMAC of the supplied argument as a hex string.
string MD2_hmac(data data, data key)
Returns the MD2 based HMAC of the supplied argument as a hex string.
binary digest(string digest, data data)
Returns the digest of the supplied arguments as a binary value.
string SHA1_hmac(data data, data key)
Returns the SHA1 based HMAC of the supplied argument as a hex string.
string SHA224_hmac(data data, data key)
Returns the SHA224 based HMAC of the supplied argument as a hex string.
binary hmac(string digest, data data, data key)
Returns the digest-based HMAC of the supplied arguments as a binary value.
string SHA256_hmac(data data, data key)
Returns the SHA256 based HMAC of the supplied argument as a hex string.
hash< auto > hash()
Always returns the same hash passed.
list< auto > list(...)
Returns a list of the arguments passed at the top level.
binary binary()
Always returns an empty binary object (of zero length)
main Qore-language namespace
Definition Pseudo_QC_All.dox.h:3