Searched refs:hash_cache (Results 1 – 4 of 4) sorted by relevance
| /OK3568_Linux_fs/u-boot/drivers/crypto/rockchip/ |
| H A D | crypto_hash_cache.c | 12 static int hash_cache_calc(struct crypto_hash_cache *hash_cache, const u8 *data, in hash_cache_calc() argument 15 crypto_hash_calc direct_calc = hash_cache->direct_calc; in hash_cache_calc() 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() 24 hash_cache->cache_size = 0; in hash_cache_calc() 30 if (hash_cache->cache_size + data_len <= HASH_CACHE_SIZE) { in hash_cache_calc() 34 memcpy(hash_cache->cache + hash_cache->cache_size, data, in hash_cache_calc() 36 hash_cache->cache_size += data_len; in hash_cache_calc() 42 hash_cache->cache_size); in hash_cache_calc() [all …]
|
| H A D | crypto_v1.c | 27 struct crypto_hash_cache *hash_cache; member 92 priv->hash_cache = crypto_hash_cache_alloc(rk_hash_direct_calc, in rockchip_crypto_sha_init() 96 if (!priv->hash_cache) in rockchip_crypto_sha_init() 157 ret = crypto_hash_update_with_cache(priv->hash_cache, p, in rockchip_crypto_sha_update() 164 ret = crypto_hash_update_with_cache(priv->hash_cache, p, in rockchip_crypto_sha_update() 169 crypto_hash_cache_free(priv->hash_cache); in rockchip_crypto_sha_update() 170 priv->hash_cache = NULL; in rockchip_crypto_sha_update() 205 crypto_hash_cache_free(priv->hash_cache); in rockchip_crypto_sha_final() 206 priv->hash_cache = NULL; in rockchip_crypto_sha_final()
|
| H A D | crypto_v2.c | 40 struct crypto_hash_cache *hash_cache; member 330 crypto_hash_cache_free(ctx->hash_cache); in hw_hash_clean_ctx() 493 ret = crypto_hash_update_with_cache(tmp_ctx->hash_cache, in rk_hash_update() 571 hash_ctx->hash_cache = crypto_hash_cache_alloc(rk_hash_direct_calc, in rockchip_crypto_sha_init() 575 if (!hash_ctx->hash_cache) in rockchip_crypto_sha_init() 678 hash_ctx->hash_cache = crypto_hash_cache_alloc(rk_hash_direct_calc, in rockchip_crypto_hmac_init() 682 if (!hash_ctx->hash_cache) in rockchip_crypto_hmac_init()
|
| /OK3568_Linux_fs/u-boot/include/rockchip/ |
| H A D | crypto_hash_cache.h | 32 void crypto_hash_cache_free(struct crypto_hash_cache *hash_cache); 33 int crypto_hash_update_with_cache(struct crypto_hash_cache *hash_cache,
|