Lines Matching refs:md2

325     EVP_MD_CTX *md = NULL, *md2 = NULL;  in md5crypt()  local
389 md2 = EVP_MD_CTX_new(); in md5crypt()
390 if (md2 == NULL in md5crypt()
391 || !EVP_DigestInit_ex(md2, EVP_md5(), NULL) in md5crypt()
392 || !EVP_DigestUpdate(md2, passwd, passwd_len) in md5crypt()
393 || !EVP_DigestUpdate(md2, ascii_salt, salt_len) in md5crypt()
394 || !EVP_DigestUpdate(md2, passwd, passwd_len) in md5crypt()
395 || !EVP_DigestFinal_ex(md2, buf, NULL)) in md5crypt()
415 if (!EVP_DigestInit_ex(md2, EVP_md5(), NULL)) in md5crypt()
417 if (!EVP_DigestUpdate(md2, in md5crypt()
422 if (!EVP_DigestUpdate(md2, ascii_salt, salt_len)) in md5crypt()
426 if (!EVP_DigestUpdate(md2, passwd, passwd_len)) in md5crypt()
429 if (!EVP_DigestUpdate(md2, in md5crypt()
433 if (!EVP_DigestFinal_ex(md2, buf, NULL)) in md5crypt()
436 EVP_MD_CTX_free(md2); in md5crypt()
438 md2 = NULL; in md5crypt()
485 EVP_MD_CTX_free(md2); in md5crypt()
517 EVP_MD_CTX *md = NULL, *md2 = NULL; in shacrypt() local
614 md2 = EVP_MD_CTX_new(); in shacrypt()
615 if (md2 == NULL in shacrypt()
616 || !EVP_DigestInit_ex(md2, sha, NULL) in shacrypt()
617 || !EVP_DigestUpdate(md2, passwd, passwd_len) in shacrypt()
618 || !EVP_DigestUpdate(md2, ascii_salt, salt_len) in shacrypt()
619 || !EVP_DigestUpdate(md2, passwd, passwd_len) in shacrypt()
620 || !EVP_DigestFinal_ex(md2, buf, NULL)) in shacrypt()
642 if (!EVP_DigestInit_ex(md2, sha, NULL)) in shacrypt()
646 if (!EVP_DigestUpdate(md2, passwd, passwd_len)) in shacrypt()
649 if (!EVP_DigestFinal_ex(md2, temp_buf, NULL)) in shacrypt()
659 if (!EVP_DigestInit_ex(md2, sha, NULL)) in shacrypt()
663 if (!EVP_DigestUpdate(md2, ascii_salt, salt_len)) in shacrypt()
666 if (!EVP_DigestFinal_ex(md2, temp_buf, NULL)) in shacrypt()
676 if (!EVP_DigestInit_ex(md2, sha, NULL)) in shacrypt()
678 if (!EVP_DigestUpdate(md2, in shacrypt()
683 if (!EVP_DigestUpdate(md2, s_bytes, salt_len)) in shacrypt()
687 if (!EVP_DigestUpdate(md2, p_bytes, passwd_len)) in shacrypt()
690 if (!EVP_DigestUpdate(md2, in shacrypt()
694 if (!EVP_DigestFinal_ex(md2, buf, NULL)) in shacrypt()
697 EVP_MD_CTX_free(md2); in shacrypt()
699 md2 = NULL; in shacrypt()
768 EVP_MD_CTX_free(md2); in shacrypt()