Qore Programming Language Reference Manual  1.9.1
ql_crypto.dox.h
1 
3 namespace Qore {
37 
40 
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 
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 
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 {
915 
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 
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 {
1559 
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 
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 {
2196 
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 {
2367 
2370  const DefaultIV = <0000000000000000>;
2372 }
2373 
2375 namespace Qore {
2393 
2396 
2398  const CRYPTO_DIGEST_DSS = "dss";
2400 
2402  const CRYPTO_DIGEST_DSS1 = "dss1";
2404 
2406  const CRYPTO_DIGEST_MD2 = "md2";
2408 
2410  const CRYPTO_DIGEST_MD4 = "md4";
2412 
2414  const CRYPTO_DIGEST_MD5 = "md5";
2416 
2418  const CRYPTO_DIGEST_MDC2 = "mdc2";
2420 
2422  const CRYPTO_DIGEST_RIPEMD160 = "ripemd160";
2424 
2426  const CRYPTO_DIGEST_SHA = "sha";
2428 
2430  const CRYPTO_DIGEST_SHA1 = "sha1";
2432 
2434  const CRYPTO_DIGEST_SHA224 = "sha224";
2436 
2438  const CRYPTO_DIGEST_SHA256 = "sha256";
2440 
2442  const CRYPTO_DIGEST_SHA384 = "sha384";
2444 
2446  const CRYPTO_DIGEST_SHA512 = "sha512";
2448 
2454  const CipherMap = qore(init_cipher_map_hash());
2456 
2461  const DigestMap = qore(init_digest_map_hash());
2463 }
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 initialization vector is simply a 8-byte string of nulls.
Definition: ql_crypto.dox.h:2370
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:2442
const DigestMap
A hash keyed by supported digest name where each value is True.
Definition: ql_crypto.dox.h:2461
const CRYPTO_DIGEST_SHA224
specifies the SHA-224 message digest (a variant of SHA-2)
Definition: ql_crypto.dox.h:2434
const CRYPTO_DIGEST_SHA1
specifies the SHA1 message digest
Definition: ql_crypto.dox.h:2430
const CRYPTO_DIGEST_MD2
specifies the MD2 message digest
Definition: ql_crypto.dox.h:2406
const CRYPTO_DIGEST_SHA512
specifies the SHA-512 message digest (a variant of SHA-2)
Definition: ql_crypto.dox.h:2446
const CRYPTO_DIGEST_DSS
specifies the DSS message digest (based on SHA-0 and DSA)
Definition: ql_crypto.dox.h:2398
const CipherMap
A hash keyed by supported cipher name where each value is an informational hash.
Definition: ql_crypto.dox.h:2454
const CRYPTO_DIGEST_MDC2
specifies the MDC2 message digest
Definition: ql_crypto.dox.h:2418
const CRYPTO_DIGEST_RIPEMD160
specifies the RIPEMD message digest
Definition: ql_crypto.dox.h:2422
const CRYPTO_DIGEST_SHA256
specifies the SHA-256 message digest (a variant of SHA-2)
Definition: ql_crypto.dox.h:2438
const CRYPTO_DIGEST_MD4
specifies the MD4 message digest
Definition: ql_crypto.dox.h:2410
const CRYPTO_DIGEST_DSS1
specifies the DSS1 message digest (based on SHA1 and DSA)
Definition: ql_crypto.dox.h:2402
const CRYPTO_DIGEST_SHA
specifies the insecure and outdated SHA-0 message digest; only supplied for compatibility purposes
Definition: ql_crypto.dox.h:2426
const CRYPTO_DIGEST_MD5
specifies the MD5 message digest
Definition: ql_crypto.dox.h:2414
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.
list< string > get_digests()
Returns a list of supported digest algorithms for hmac()
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.
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...
*hash< auto > get_cipher_info(string cipher)
Returns information about the given cipher or NOTHING if the cipher is unknown.
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.
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.
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.
hash< auto > get_crypto_info()
Returns a hash of information about each cryptographic algorithmn supported by the current build of Q...
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.
binary binary()
Always returns an empty binary object (of zero length)
main Qore-language namespace
Definition: Pseudo_QC_All.dox.h:3