Lines Matching refs:ds
39 unsigned ds; in hash_alloc_result() local
44 ds = crypto_ahash_digestsize(crypto_ahash_reqtfm(&ctx->req)); in hash_alloc_result()
46 ctx->result = sock_kmalloc(sk, ds, GFP_KERNEL); in hash_alloc_result()
50 memset(ctx->result, 0, ds); in hash_alloc_result()
57 unsigned ds; in hash_free_result() local
62 ds = crypto_ahash_digestsize(crypto_ahash_reqtfm(&ctx->req)); in hash_free_result()
64 sock_kzfree_s(sk, ctx->result, ds); in hash_free_result()
194 unsigned ds = crypto_ahash_digestsize(crypto_ahash_reqtfm(&ctx->req)); in hash_recvmsg() local
198 if (len > ds) in hash_recvmsg()
199 len = ds; in hash_recvmsg()
200 else if (len < ds) in hash_recvmsg()