Cryptographic hash functions from OpenSSL:
The functions return hexadecimal character strings in lower-case format.
Link this module against -lcrypto
.
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
integer, | public, | parameter | :: | CRYPTO_HASH_TYPE_NONE | = | 0 |
Invalid. |
integer, | public, | parameter | :: | CRYPTO_HASH_TYPE_MD4 | = | 1 |
MD4. |
integer, | public, | parameter | :: | CRYPTO_HASH_TYPE_MD5 | = | 2 |
MD5. |
integer, | public, | parameter | :: | CRYPTO_HASH_TYPE_RIPEMD160 | = | 3 |
RIPEMD-160. |
integer, | public, | parameter | :: | CRYPTO_HASH_TYPE_SHA1 | = | 4 |
SHA-1. |
integer, | public, | parameter | :: | CRYPTO_HASH_TYPE_SHA224 | = | 5 |
SHA-224. |
integer, | public, | parameter | :: | CRYPTO_HASH_TYPE_SHA256 | = | 6 |
SHA-256. |
integer, | public, | parameter | :: | CRYPTO_HASH_TYPE_SHA384 | = | 7 |
SHA-384. |
integer, | public, | parameter | :: | CRYPTO_HASH_TYPE_SHA512 | = | 8 |
SHA-512. |
integer, | public, | parameter | :: | CRYPTO_HASH_TYPE_LAST | = | 8 |
Never use this. |
integer, | public, | parameter | :: | CRYPTO_MD4_DIGEST_LEN | = | 16 | |
integer, | public, | parameter | :: | CRYPTO_MD5_DIGEST_LEN | = | 16 | |
integer, | public, | parameter | :: | CRYPTO_RIPEMD160_DIGEST_LEN | = | 20 | |
integer, | public, | parameter | :: | CRYPTO_SHA1_DIGEST_LEN | = | 20 | |
integer, | public, | parameter | :: | CRYPTO_SHA224_DIGEST_LEN | = | 28 | |
integer, | public, | parameter | :: | CRYPTO_SHA256_DIGEST_LEN | = | 32 | |
integer, | public, | parameter | :: | CRYPTO_SHA384_DIGEST_LEN | = | 48 | |
integer, | public, | parameter | :: | CRYPTO_SHA512_DIGEST_LEN | = | 64 | |
integer, | public, | parameter | :: | CRYPTO_MD4_HASH_LEN | = | 2*CRYPTO_MD4_DIGEST_LEN | |
integer, | public, | parameter | :: | CRYPTO_MD5_HASH_LEN | = | 2*CRYPTO_MD5_DIGEST_LEN | |
integer, | public, | parameter | :: | CRYPTO_RIPEMD160_HASH_LEN | = | 2*CRYPTO_RIPEMD160_DIGEST_LEN | |
integer, | public, | parameter | :: | CRYPTO_SHA1_HASH_LEN | = | 2*CRYPTO_SHA1_DIGEST_LEN | |
integer, | public, | parameter | :: | CRYPTO_SHA224_HASH_LEN | = | 2*CRYPTO_SHA224_DIGEST_LEN | |
integer, | public, | parameter | :: | CRYPTO_SHA256_HASH_LEN | = | 2*CRYPTO_SHA256_DIGEST_LEN | |
integer, | public, | parameter | :: | CRYPTO_SHA384_HASH_LEN | = | 2*CRYPTO_SHA384_DIGEST_LEN | |
integer, | public, | parameter | :: | CRYPTO_SHA512_HASH_LEN | = | 2*CRYPTO_SHA512_DIGEST_LEN |
MD4 cryptographic hash function with a 128 bit output.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | str |
Input string. |
Output hash.
MD5 cryptographic hash function with a 128 bit output.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | str |
Input string. |
Output hash.
RIPEMD-160 cryptographic hash function with a 160 bit output.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | str |
Input string. |
Output hash.
SHA-1 cryptographic hash function with a 160 bit output.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | str |
Input string. |
Output hash.
SHA-2 cryptographic hash function with a 224 bit output.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | str |
Input string. |
Output hash.
SHA-2 cryptographic hash function with a 256 bit output.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | str |
Input string. |
Output hash.
SHA-2 cryptographic hash function with a 384 bit output.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | str |
Input string. |
Output hash.
SHA-2 cryptographic hash function with a 512 bit output.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | str |
Input string. |
Output hash.