Home
last modified time | relevance | path

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

/system/extras/verity/
Dhash_tree_builder.cpp140 EVP_MD_CTX* mdctx = EVP_MD_CTX_create(); in HashBlock() local
141 CHECK(mdctx != nullptr); in HashBlock()
142 ret &= EVP_DigestInit_ex(mdctx, md_, nullptr); in HashBlock()
143 ret &= EVP_DigestUpdate(mdctx, salt_.data(), salt_.size()); in HashBlock()
144 ret &= EVP_DigestUpdate(mdctx, block, block_size_); in HashBlock()
145 ret &= EVP_DigestFinal_ex(mdctx, out, &s); in HashBlock()
146 EVP_MD_CTX_destroy(mdctx); in HashBlock()
/system/extras/libfec/
Dfec_verity.cpp127 auto mdctx = EVP_MD_CTX_new(); in get_hash()
128 check(mdctx) in get_hash()
130 EVP_DigestInit_ex(mdctx, md, nullptr); in get_hash()
131 EVP_DigestUpdate(mdctx, salt.data(), salt.size()); in get_hash()
132 EVP_DigestUpdate(mdctx, block, FEC_BLOCKSIZE); in get_hash()
134 EVP_DigestFinal_ex(mdctx, hash, &hash_size); in get_hash()
135 EVP_MD_CTX_free(mdctx); in get_hash()