Home
last modified time | relevance | path

Searched refs:ctxt (Results 1 – 2 of 2) sorted by relevance

/openssl/crypto/srp/
H A Dsrp_lib.c148 EVP_MD_CTX *ctxt; in SRP_Calc_x_ex() local
156 ctxt = EVP_MD_CTX_new(); in SRP_Calc_x_ex()
157 if (ctxt == NULL) in SRP_Calc_x_ex()
166 if (!EVP_DigestInit_ex(ctxt, sha1, NULL) in SRP_Calc_x_ex()
168 || !EVP_DigestUpdate(ctxt, ":", 1) in SRP_Calc_x_ex()
170 || !EVP_DigestFinal_ex(ctxt, dig, NULL) in SRP_Calc_x_ex()
171 || !EVP_DigestInit_ex(ctxt, sha1, NULL)) in SRP_Calc_x_ex()
175 if (!EVP_DigestUpdate(ctxt, cs, BN_num_bytes(s))) in SRP_Calc_x_ex()
178 if (!EVP_DigestUpdate(ctxt, dig, sizeof(dig)) in SRP_Calc_x_ex()
179 || !EVP_DigestFinal_ex(ctxt, dig, NULL)) in SRP_Calc_x_ex()
[all …]
H A Dsrp_vfy.c562 EVP_MD_CTX *ctxt = NULL; in SRP_VBASE_get1_by_user() local
590 ctxt = EVP_MD_CTX_new(); in SRP_VBASE_get1_by_user()
591 if (ctxt == NULL in SRP_VBASE_get1_by_user()
592 || !EVP_DigestInit_ex(ctxt, md, NULL) in SRP_VBASE_get1_by_user()
593 || !EVP_DigestUpdate(ctxt, vb->seed_key, strlen(vb->seed_key)) in SRP_VBASE_get1_by_user()
594 || !EVP_DigestUpdate(ctxt, username, strlen(username)) in SRP_VBASE_get1_by_user()
595 || !EVP_DigestFinal_ex(ctxt, digs, NULL)) in SRP_VBASE_get1_by_user()
597 EVP_MD_CTX_free(ctxt); in SRP_VBASE_get1_by_user()
598 ctxt = NULL; in SRP_VBASE_get1_by_user()
608 EVP_MD_CTX_free(ctxt); in SRP_VBASE_get1_by_user()

Completed in 9 milliseconds