Lines Matching refs:cache
18 if (!hash_cache->cache) { in hash_cache_calc()
19 hash_cache->cache = (u8 *)memalign(CONFIG_SYS_CACHELINE_SIZE, in hash_cache_calc()
21 if (!hash_cache->cache) in hash_cache_calc()
34 memcpy(hash_cache->cache + hash_cache->cache_size, data, in hash_cache_calc()
45 hash_cache->cache, in hash_cache_calc()
60 memcpy(hash_cache->cache + hash_cache->cache_size, in hash_cache_calc()
63 ret = direct_calc(hash_cache->user_data, hash_cache->cache, in hash_cache_calc()
121 if (hash_cache->cache) in crypto_hash_cache_free()
122 free(hash_cache->cache); in crypto_hash_cache_free()
190 if (hash_cache->cache) { in crypto_hash_update_with_cache()
191 free(hash_cache->cache); in crypto_hash_update_with_cache()
192 hash_cache->cache = NULL; in crypto_hash_update_with_cache()