Home
last modified time | relevance | path

Searched refs:digest_context (Results 1 – 3 of 3) sorted by relevance

/openssl/demos/digest/
H A DEVP_MD_demo.c85 EVP_MD_CTX *digest_context = NULL; in demonstrate_digest() local
123 digest_context = EVP_MD_CTX_new(); in demonstrate_digest()
124 if (digest_context == NULL) { in demonstrate_digest()
132 if (EVP_DigestInit(digest_context, message_digest) != 1) { in demonstrate_digest()
137 if (EVP_DigestUpdate(digest_context, hamlet_1, strlen(hamlet_1)) != 1) { in demonstrate_digest()
141 if (EVP_DigestUpdate(digest_context, hamlet_2, strlen(hamlet_2)) != 1) { in demonstrate_digest()
145 if (EVP_DigestFinal(digest_context, digest_value, &digest_length) != 1) { in demonstrate_digest()
171 EVP_MD_CTX_free(digest_context); in demonstrate_digest()
H A DEVP_MD_stdin.c40 EVP_MD_CTX *digest_context = NULL; in demonstrate_digest() local
81 digest_context = EVP_MD_CTX_new(); in demonstrate_digest()
82 if (digest_context == NULL) { in demonstrate_digest()
91 if (EVP_DigestInit(digest_context, message_digest) != 1) { in demonstrate_digest()
97 if (EVP_DigestUpdate(digest_context, buffer, ii) != 1) { in demonstrate_digest()
102 if (EVP_DigestFinal(digest_context, digest_value, &digest_length) != 1) { in demonstrate_digest()
116 EVP_MD_CTX_free(digest_context); in demonstrate_digest()
/openssl/demos/mac/
H A Dhmac-sha512.c82 EVP_MD_CTX *digest_context = NULL; in main() local
161 EVP_MD_CTX_free(digest_context); in main()

Completed in 5 milliseconds