Home
last modified time | relevance | path

Searched refs:rhash (Results 1 – 3 of 3) sorted by relevance

/crypto/
Dcrypto_user_stat.c134 struct crypto_stat_hash rhash; in crypto_report_ahash() local
136 memset(&rhash, 0, sizeof(rhash)); in crypto_report_ahash()
138 strscpy(rhash.type, "ahash", sizeof(rhash.type)); in crypto_report_ahash()
140 rhash.stat_hash_cnt = atomic64_read(&alg->stats.hash.hash_cnt); in crypto_report_ahash()
141 rhash.stat_hash_tlen = atomic64_read(&alg->stats.hash.hash_tlen); in crypto_report_ahash()
142 rhash.stat_err_cnt = atomic64_read(&alg->stats.hash.err_cnt); in crypto_report_ahash()
144 return nla_put(skb, CRYPTOCFGA_STAT_HASH, sizeof(rhash), &rhash); in crypto_report_ahash()
149 struct crypto_stat_hash rhash; in crypto_report_shash() local
151 memset(&rhash, 0, sizeof(rhash)); in crypto_report_shash()
153 strscpy(rhash.type, "shash", sizeof(rhash.type)); in crypto_report_shash()
[all …]
Dshash.c404 struct crypto_report_hash rhash; in crypto_shash_report() local
407 memset(&rhash, 0, sizeof(rhash)); in crypto_shash_report()
409 strscpy(rhash.type, "shash", sizeof(rhash.type)); in crypto_shash_report()
411 rhash.blocksize = alg->cra_blocksize; in crypto_shash_report()
412 rhash.digestsize = salg->digestsize; in crypto_shash_report()
414 return nla_put(skb, CRYPTOCFGA_REPORT_HASH, sizeof(rhash), &rhash); in crypto_shash_report()
Dahash.c515 struct crypto_report_hash rhash; in crypto_ahash_report() local
517 memset(&rhash, 0, sizeof(rhash)); in crypto_ahash_report()
519 strscpy(rhash.type, "ahash", sizeof(rhash.type)); in crypto_ahash_report()
521 rhash.blocksize = alg->cra_blocksize; in crypto_ahash_report()
522 rhash.digestsize = __crypto_hash_alg_common(alg)->digestsize; in crypto_ahash_report()
524 return nla_put(skb, CRYPTOCFGA_REPORT_HASH, sizeof(rhash), &rhash); in crypto_ahash_report()