Browse Source

Merge pull request #2586 from babarosaM33/master

crypto: md5 hash works without hmac mode
pull/2604/head
Max Lv 5 years ago
committed by GitHub
parent
commit
8811ec27af
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. 2
      src/crypto.c

2
src/crypto.c

@ -223,7 +223,7 @@ crypto_derive_key(const char *pass, uint8_t *key, size_t key_len)
if (pass == NULL)
return key_len;
if (mbedtls_md_setup(&c, md, 1))
if (mbedtls_md_setup(&c, md, 0))
return 0;
for (j = 0, addmd = 0; j < key_len; addmd++) {

Loading…
Cancel
Save