Home
last modified time | relevance | path

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

/openssl/demos/signature/
H A DEVP_EC_Signature_demo.c77 EVP_MD_CTX *sign_context = NULL; in demo_sign() local
90 sign_context = EVP_MD_CTX_new(); in demo_sign()
91 if (sign_context == NULL) { in demo_sign()
99 if (!EVP_DigestSignInit_ex(sign_context, NULL, sig_name, in demo_sign()
108 if (!EVP_DigestSignUpdate(sign_context, hamlet_1, strlen(hamlet_1))) { in demo_sign()
112 if (!EVP_DigestSignUpdate(sign_context, hamlet_2, strlen(hamlet_2))) { in demo_sign()
117 if (!EVP_DigestSignFinal(sign_context, NULL, &sig_len)) { in demo_sign()
130 if (!EVP_DigestSignFinal(sign_context, sig_value, &sig_len)) { in demo_sign()
146 EVP_MD_CTX_free(sign_context); in demo_sign()
H A DEVP_ED_Signature_demo.c37 EVP_MD_CTX *sign_context = NULL; in demo_sign() local
40 sign_context = EVP_MD_CTX_new(); in demo_sign()
41 if (sign_context == NULL) { in demo_sign()
54 if (!EVP_DigestSignInit_ex(sign_context, NULL, NULL, libctx, NULL, priv, NULL)) { in demo_sign()
60 if (!EVP_DigestSign(sign_context, NULL, &sig_len, tbs, tbs_len)) { in demo_sign()
70 if (!EVP_DigestSign(sign_context, sig_value, &sig_len, tbs, tbs_len)) { in demo_sign()
83 EVP_MD_CTX_free(sign_context); in demo_sign()

Completed in 5 milliseconds