The hmac option does not use salting or hashing; it just uses the passphrase directly as a key. See apps/dgst.cin the source distribution:
else if (!strcmp(*argv,"-hmac"))
{
if (--argc < 1)
break;
hmac_key=*++argv;
}
...
if (hmac_key)
{
sigkey = EVP_PKEY_new_mac_key(EVP_PKEY_HMAC, e,
(unsigned char *)hmac_key, -1);
if (!sigkey)
goto end;
}
enc, , , . apps/enc.c, , , :
if (str != NULL)
{
EVP_BytesToKey ( crypto/evp/evp_key.c) . , -, , , , , .
- OpenSSL 1.0.0.