Lines Matching defs:ctxp
931 EVP_MD_CTX *ctxp;
933 ctxp = EVP_MD_CTX_create();
937 EVP_DigestInit_ex(ctxp, EVP_md4(), NULL);
938 EVP_DigestUpdate(ctxp,
941 EVP_DigestFinal_ex(ctxp, hashhash, NULL);
945 EVP_DigestInit_ex(ctxp, EVP_sha1(), NULL);
946 EVP_DigestUpdate(ctxp, hashhash, sizeof(hashhash));
947 EVP_DigestUpdate(ctxp, answer.data, answer.length);
948 EVP_DigestUpdate(ctxp, ms_chap_v2_magic1,
950 EVP_DigestFinal_ex(ctxp, md, NULL);
952 EVP_DigestInit_ex(ctxp, EVP_sha1(), NULL);
953 EVP_DigestUpdate(ctxp, md, sizeof(md));
954 EVP_DigestUpdate(ctxp, challenge, 8);
955 EVP_DigestUpdate(ctxp, ms_chap_v2_magic2,
957 EVP_DigestFinal_ex(ctxp, md, NULL);
963 EVP_MD_CTX_destroy(ctxp);
972 EVP_MD_CTX_destroy(ctxp);
978 EVP_DigestInit_ex(ctxp, EVP_sha1(), NULL);
979 EVP_DigestUpdate(ctxp, hashhash, 16);
980 EVP_DigestUpdate(ctxp, answer.data, answer.length);
981 EVP_DigestUpdate(ctxp, ms_rfc3079_magic1,
983 EVP_DigestFinal_ex(ctxp, md, NULL);
987 EVP_MD_CTX_destroy(ctxp);