Lines Matching refs:mctx
37 EVP_MD_CTX *mctx = NULL; in sign() local
53 mctx = EVP_MD_CTX_new(); in sign()
54 if (mctx == NULL) { in sign()
64 if (EVP_DigestSignInit_ex(mctx, NULL, "SHA256", libctx, propq, in sign()
74 if (EVP_DigestSignUpdate(mctx, test_message, sizeof(test_message)) == 0) { in sign()
80 if (EVP_DigestSignFinal(mctx, NULL, sig_len) == 0) { in sign()
93 if (EVP_DigestSignFinal(mctx, *sig, sig_len) == 0) { in sign()
100 EVP_MD_CTX_free(mctx); in sign()
118 EVP_MD_CTX *mctx = NULL; in verify() local
131 mctx = EVP_MD_CTX_new(); in verify()
132 if (mctx == NULL) { in verify()
142 if (EVP_DigestVerifyInit_ex(mctx, NULL, "SHA256", libctx, propq, in verify()
152 if (EVP_DigestVerifyUpdate(mctx, test_message, sizeof(test_message)) == 0) { in verify()
158 if (EVP_DigestVerifyFinal(mctx, sig, sig_len) == 0) { in verify()
166 EVP_MD_CTX_free(mctx); in verify()