Lines Matching refs:hash

33     EVP_MD_CTX *hash = NULL;  in ossl_sm2_compute_z_digest()  local
46 hash = EVP_MD_CTX_new(); in ossl_sm2_compute_z_digest()
48 if (hash == NULL || ctx == NULL) { in ossl_sm2_compute_z_digest()
66 if (!EVP_DigestInit(hash, digest)) { in ossl_sm2_compute_z_digest()
82 if (!EVP_DigestUpdate(hash, &e_byte, 1)) { in ossl_sm2_compute_z_digest()
87 if (!EVP_DigestUpdate(hash, &e_byte, 1)) { in ossl_sm2_compute_z_digest()
92 if (id_len > 0 && !EVP_DigestUpdate(hash, id, id_len)) { in ossl_sm2_compute_z_digest()
110 || !EVP_DigestUpdate(hash, buf, p_bytes) in ossl_sm2_compute_z_digest()
112 || !EVP_DigestUpdate(hash, buf, p_bytes) in ossl_sm2_compute_z_digest()
117 || !EVP_DigestUpdate(hash, buf, p_bytes) in ossl_sm2_compute_z_digest()
119 || !EVP_DigestUpdate(hash, buf, p_bytes) in ossl_sm2_compute_z_digest()
124 || !EVP_DigestUpdate(hash, buf, p_bytes) in ossl_sm2_compute_z_digest()
126 || !EVP_DigestUpdate(hash, buf, p_bytes) in ossl_sm2_compute_z_digest()
127 || !EVP_DigestFinal(hash, out, NULL)) { in ossl_sm2_compute_z_digest()
137 EVP_MD_CTX_free(hash); in ossl_sm2_compute_z_digest()
147 EVP_MD_CTX *hash = EVP_MD_CTX_new(); in sm2_compute_msg_hash() local
161 if (hash == NULL || z == NULL) { in sm2_compute_msg_hash()
177 if (!EVP_DigestInit(hash, fetched_digest) in sm2_compute_msg_hash()
178 || !EVP_DigestUpdate(hash, z, md_size) in sm2_compute_msg_hash()
179 || !EVP_DigestUpdate(hash, msg, msg_len) in sm2_compute_msg_hash()
181 || !EVP_DigestFinal(hash, z, NULL)) { in sm2_compute_msg_hash()
193 EVP_MD_CTX_free(hash); in sm2_compute_msg_hash()