Lines Matching refs:ctxp
926 EVP_MD_CTX *ctxp;
928 ctxp = EVP_MD_CTX_create();
932 EVP_DigestInit_ex(ctxp, EVP_md4(), NULL);
933 EVP_DigestUpdate(ctxp,
936 EVP_DigestFinal_ex(ctxp, hashhash, NULL);
940 EVP_DigestInit_ex(ctxp, EVP_sha1(), NULL);
941 EVP_DigestUpdate(ctxp, hashhash, sizeof(hashhash));
942 EVP_DigestUpdate(ctxp, answer.data, answer.length);
943 EVP_DigestUpdate(ctxp, ms_chap_v2_magic1,
945 EVP_DigestFinal_ex(ctxp, md, NULL);
947 EVP_DigestInit_ex(ctxp, EVP_sha1(), NULL);
948 EVP_DigestUpdate(ctxp, md, sizeof(md));
949 EVP_DigestUpdate(ctxp, challange, 8);
950 EVP_DigestUpdate(ctxp, ms_chap_v2_magic2,
952 EVP_DigestFinal_ex(ctxp, md, NULL);
958 EVP_MD_CTX_destroy(ctxp);
967 EVP_MD_CTX_destroy(ctxp);
973 EVP_DigestInit_ex(ctxp, EVP_sha1(), NULL);
974 EVP_DigestUpdate(ctxp, hashhash, 16);
975 EVP_DigestUpdate(ctxp, answer.data, answer.length);
976 EVP_DigestUpdate(ctxp, ms_rfc3079_magic1,
978 EVP_DigestFinal_ex(ctxp, md, NULL);
982 EVP_MD_CTX_destroy(ctxp);