Lines Matching refs:hash

33     EVP_MD_CTX *hash = NULL;  in ossl_sm2_compute_z_digest()  local
52 hash = EVP_MD_CTX_new(); in ossl_sm2_compute_z_digest()
53 if (hash == NULL) { in ossl_sm2_compute_z_digest()
76 if (!EVP_DigestInit(hash, digest)) { in ossl_sm2_compute_z_digest()
92 if (!EVP_DigestUpdate(hash, &e_byte, 1)) { in ossl_sm2_compute_z_digest()
97 if (!EVP_DigestUpdate(hash, &e_byte, 1)) { in ossl_sm2_compute_z_digest()
102 if (id_len > 0 && !EVP_DigestUpdate(hash, id, id_len)) { in ossl_sm2_compute_z_digest()
118 || !EVP_DigestUpdate(hash, buf, p_bytes) in ossl_sm2_compute_z_digest()
120 || !EVP_DigestUpdate(hash, buf, p_bytes) in ossl_sm2_compute_z_digest()
125 || !EVP_DigestUpdate(hash, buf, p_bytes) in ossl_sm2_compute_z_digest()
127 || !EVP_DigestUpdate(hash, buf, p_bytes) in ossl_sm2_compute_z_digest()
132 || !EVP_DigestUpdate(hash, buf, p_bytes) in ossl_sm2_compute_z_digest()
134 || !EVP_DigestUpdate(hash, buf, p_bytes) in ossl_sm2_compute_z_digest()
135 || !EVP_DigestFinal(hash, out, NULL)) { in ossl_sm2_compute_z_digest()
145 EVP_MD_CTX_free(hash); in ossl_sm2_compute_z_digest()
155 EVP_MD_CTX *hash = EVP_MD_CTX_new(); in sm2_compute_msg_hash() local
167 if (hash == NULL) { in sm2_compute_msg_hash()
187 if (!EVP_DigestInit(hash, fetched_digest) in sm2_compute_msg_hash()
188 || !EVP_DigestUpdate(hash, z, md_size) in sm2_compute_msg_hash()
189 || !EVP_DigestUpdate(hash, msg, msg_len) in sm2_compute_msg_hash()
191 || !EVP_DigestFinal(hash, z, NULL)) { in sm2_compute_msg_hash()
203 EVP_MD_CTX_free(hash); in sm2_compute_msg_hash()