Qore Programming Language Reference Manual  1.7.0
Collaboration diagram for Crytographic Digest Algorithms:

Variables

const Qore::CRYPTO_DIGEST_DSS = "dss"
 specifies the DSS message digest (based on SHA-0 and DSA)
 
const Qore::CRYPTO_DIGEST_DSS1 = "dss1"
 specifies the DSS1 message digest (based on SHA1 and DSA)
 
const Qore::CRYPTO_DIGEST_MD2 = "md2"
 specifies the MD2 message digest
 
const Qore::CRYPTO_DIGEST_MD4 = "md4"
 specifies the MD4 message digest
 
const Qore::CRYPTO_DIGEST_MD5 = "md5"
 specifies the MD5 message digest
 
const Qore::CRYPTO_DIGEST_MDC2 = "mdc2"
 specifies the MDC2 message digest
 
const Qore::CRYPTO_DIGEST_RIPEMD160 = "ripemd160"
 specifies the RIPEMD message digest
 
const Qore::CRYPTO_DIGEST_SHA = "sha"
 specifies the insecure and outdated SHA-0 message digest; only supplied for compatibility purposes
 
const Qore::CRYPTO_DIGEST_SHA1 = "sha1"
 specifies the SHA1 message digest
 
const Qore::CRYPTO_DIGEST_SHA224 = "sha224"
 specifies the SHA-224 message digest (a variant of SHA-2)
 
const Qore::CRYPTO_DIGEST_SHA256 = "sha256"
 specifies the SHA-256 message digest (a variant of SHA-2)
 
const Qore::CRYPTO_DIGEST_SHA384 = "sha384"
 specifies the SHA-384 message digest (a variant of SHA-2)
 
const Qore::CRYPTO_DIGEST_SHA512 = "sha512"
 specifies the SHA-512 message digest (a variant of SHA-2)
 
const Qore::CipherMap = qore(init_cipher_map_hash())
 A hash keyed by supported cipher name where each value is an informational hash. More...
 
const Qore::DigestMap = qore(init_digest_map_hash())
 A hash keyed by supported digest name where each value is True. More...
 

Detailed Description

The following constants can be used with the digest() and hmac() functions to calculate cryptographic digests and HMACs on input data.

Example:
Qore::FileOutputStream of("my-file.txt");
This class implements the OutputStream interface for writing bytes to a file.
Definition: QC_FileOutputStream.dox.h:28
This class implements the OutputStream interface for writing bytes to another OutputStream while appl...
Definition: QC_TransformOutputStream.dox.h:16
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
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...

These constants are useful in the following functions:

Since
Qore 0.9.3

Variable Documentation

◆ CipherMap

const Qore::CipherMap = qore(init_cipher_map_hash())

A hash keyed by supported cipher name where each value is an informational hash.

Note
If Qore is compiled with OpenSSL 3+, it will use dynamic lookups of all ciphers known to the OpenSSL library, so cipher names not included as keys in this hash may also be recignized as aliases for known ciphers
Since
Qore 1.4

◆ DigestMap

const Qore::DigestMap = qore(init_digest_map_hash())

A hash keyed by supported digest name where each value is True.

Since
Qore 0.9.3
Note
If Qore is compiled with OpenSSL 3+, it will use dynamic lookups of all digests known to the OpenSSL library, so digest names not included as keys in this hash may also be recignized as aliases for known digests