Home
last modified time | relevance | path

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

/external/boringssl/src/crypto/evp/
Ddigestsign.c153 EVP_MD_CTX tmp_ctx; in EVP_DigestSignFinal() local
157 EVP_MD_CTX_init(&tmp_ctx); in EVP_DigestSignFinal()
158 if (!EVP_MD_CTX_copy_ex(&tmp_ctx, ctx)) { in EVP_DigestSignFinal()
162 r = tmp_ctx.pctx->pmeth->signctx(tmp_ctx.pctx, out_sig, out_sig_len, &tmp_ctx); in EVP_DigestSignFinal()
164 r = EVP_DigestFinal_ex(&tmp_ctx, md, &mdlen); in EVP_DigestSignFinal()
169 EVP_MD_CTX_cleanup(&tmp_ctx); in EVP_DigestSignFinal()
183 EVP_MD_CTX tmp_ctx; in EVP_DigestVerifyFinal() local
188 EVP_MD_CTX_init(&tmp_ctx); in EVP_DigestVerifyFinal()
189 if (!EVP_MD_CTX_copy_ex(&tmp_ctx, ctx)) { in EVP_DigestVerifyFinal()
193 r = tmp_ctx.pctx->pmeth->verifyctx(tmp_ctx.pctx, sig, sig_len, &tmp_ctx); in EVP_DigestVerifyFinal()
[all …]
Dsign.c82 EVP_MD_CTX tmp_ctx; in EVP_SignFinal() local
87 EVP_MD_CTX_init(&tmp_ctx); in EVP_SignFinal()
88 if (!EVP_MD_CTX_copy_ex(&tmp_ctx, ctx) || in EVP_SignFinal()
89 !EVP_DigestFinal_ex(&tmp_ctx, m, &m_len)) { in EVP_SignFinal()
92 EVP_MD_CTX_cleanup(&tmp_ctx); in EVP_SignFinal()
128 EVP_MD_CTX tmp_ctx; in EVP_VerifyFinal() local
131 EVP_MD_CTX_init(&tmp_ctx); in EVP_VerifyFinal()
132 if (!EVP_MD_CTX_copy_ex(&tmp_ctx, ctx) || in EVP_VerifyFinal()
133 !EVP_DigestFinal_ex(&tmp_ctx, m, &m_len)) { in EVP_VerifyFinal()
134 EVP_MD_CTX_cleanup(&tmp_ctx); in EVP_VerifyFinal()
[all …]