Lines Matching refs:mdctx
652 EVP_MD_CTX *mdctx; in initial_hash() local
668 mdctx = EVP_MD_CTX_create(); in initial_hash()
669 if (mdctx == NULL || EVP_DigestInit_ex(mdctx, ctx->md, NULL) != 1) in initial_hash()
674 if (EVP_DigestUpdate(mdctx, &value, sizeof(value)) != 1) in initial_hash()
679 if (EVP_DigestUpdate(mdctx, ctx->pwd, ctx->pwdlen) != 1) in initial_hash()
689 if (EVP_DigestUpdate(mdctx, &value, sizeof(value)) != 1) in initial_hash()
693 if (EVP_DigestUpdate(mdctx, ctx->salt, ctx->saltlen) != 1) in initial_hash()
697 if (EVP_DigestUpdate(mdctx, &value, sizeof(value)) != 1) in initial_hash()
701 if (EVP_DigestUpdate(mdctx, ctx->secret, ctx->secretlen) != 1) in initial_hash()
710 if (EVP_DigestUpdate(mdctx, &value, sizeof(value)) != 1) in initial_hash()
714 if (EVP_DigestUpdate(mdctx, ctx->ad, ctx->adlen) != 1) in initial_hash()
718 if (EVP_DigestFinal_ex(mdctx, blockhash, &tmp) != 1) in initial_hash()
722 EVP_MD_CTX_destroy(mdctx); in initial_hash()