Lines Matching refs:md2
322 EVP_MD_CTX *md = NULL, *md2 = NULL; in md5crypt() local
387 md2 = EVP_MD_CTX_new(); in md5crypt()
388 if (md2 == NULL in md5crypt()
389 || !EVP_DigestInit_ex(md2, EVP_md5(), NULL) in md5crypt()
390 || !EVP_DigestUpdate(md2, passwd, passwd_len) in md5crypt()
391 || !EVP_DigestUpdate(md2, ascii_salt, salt_len) in md5crypt()
392 || !EVP_DigestUpdate(md2, passwd, passwd_len) in md5crypt()
393 || !EVP_DigestFinal_ex(md2, buf, NULL)) in md5crypt()
413 if (!EVP_DigestInit_ex(md2, EVP_md5(), NULL)) in md5crypt()
415 if (!EVP_DigestUpdate(md2, in md5crypt()
420 if (!EVP_DigestUpdate(md2, ascii_salt, salt_len)) in md5crypt()
424 if (!EVP_DigestUpdate(md2, passwd, passwd_len)) in md5crypt()
427 if (!EVP_DigestUpdate(md2, in md5crypt()
431 if (!EVP_DigestFinal_ex(md2, buf, NULL)) in md5crypt()
434 EVP_MD_CTX_free(md2); in md5crypt()
436 md2 = NULL; in md5crypt()
483 EVP_MD_CTX_free(md2); in md5crypt()
515 EVP_MD_CTX *md = NULL, *md2 = NULL; in shacrypt() local
611 md2 = EVP_MD_CTX_new(); in shacrypt()
612 if (md2 == NULL in shacrypt()
613 || !EVP_DigestInit_ex(md2, sha, NULL) in shacrypt()
614 || !EVP_DigestUpdate(md2, passwd, passwd_len) in shacrypt()
615 || !EVP_DigestUpdate(md2, ascii_salt, salt_len) in shacrypt()
616 || !EVP_DigestUpdate(md2, passwd, passwd_len) in shacrypt()
617 || !EVP_DigestFinal_ex(md2, buf, NULL)) in shacrypt()
639 if (!EVP_DigestInit_ex(md2, sha, NULL)) in shacrypt()
643 if (!EVP_DigestUpdate(md2, passwd, passwd_len)) in shacrypt()
646 if (!EVP_DigestFinal_ex(md2, temp_buf, NULL)) in shacrypt()
656 if (!EVP_DigestInit_ex(md2, sha, NULL)) in shacrypt()
660 if (!EVP_DigestUpdate(md2, ascii_salt, salt_len)) in shacrypt()
663 if (!EVP_DigestFinal_ex(md2, temp_buf, NULL)) in shacrypt()
673 if (!EVP_DigestInit_ex(md2, sha, NULL)) in shacrypt()
675 if (!EVP_DigestUpdate(md2, in shacrypt()
680 if (!EVP_DigestUpdate(md2, s_bytes, salt_len)) in shacrypt()
684 if (!EVP_DigestUpdate(md2, p_bytes, passwd_len)) in shacrypt()
687 if (!EVP_DigestUpdate(md2, in shacrypt()
691 if (!EVP_DigestFinal_ex(md2, buf, NULL)) in shacrypt()
694 EVP_MD_CTX_free(md2); in shacrypt()
696 md2 = NULL; in shacrypt()
766 EVP_MD_CTX_free(md2); in shacrypt()