Home
last modified time | relevance | path

Searched refs:ds (Results 1 – 4 of 4) sorted by relevance

/crypto/
Dhmac.c44 int ds = crypto_shash_digestsize(parent); in hmac_setkey() local
63 keylen = ds; in hmac_setkey()
116 int ds = crypto_shash_digestsize(parent); in hmac_final() local
123 crypto_shash_finup(desc, out, ds, out); in hmac_final()
131 int ds = crypto_shash_digestsize(parent); in hmac_finup() local
138 crypto_shash_finup(desc, out, ds, out); in hmac_finup()
176 int ds; in hmac_create() local
193 ds = salg->digestsize; in hmac_create()
195 if (ds > alg->cra_blocksize || in hmac_create()
214 inst->alg.digestsize = ds; in hmac_create()
Dalgif_hash.c34 unsigned ds; in hash_alloc_result() local
39 ds = crypto_ahash_digestsize(crypto_ahash_reqtfm(&ctx->req)); in hash_alloc_result()
41 ctx->result = sock_kmalloc(sk, ds, GFP_KERNEL); in hash_alloc_result()
45 memset(ctx->result, 0, ds); in hash_alloc_result()
52 unsigned ds; in hash_free_result() local
57 ds = crypto_ahash_digestsize(crypto_ahash_reqtfm(&ctx->req)); in hash_free_result()
59 sock_kzfree_s(sk, ctx->result, ds); in hash_free_result()
189 unsigned ds = crypto_ahash_digestsize(crypto_ahash_reqtfm(&ctx->req)); in hash_recvmsg() local
193 if (len > ds) in hash_recvmsg()
194 len = ds; in hash_recvmsg()
[all …]
Dshash.c129 unsigned int ds = crypto_shash_digestsize(tfm); in shash_final_unaligned() local
138 if (WARN_ON(buf + ds > ubuf + sizeof(ubuf))) in shash_final_unaligned()
145 memcpy(out, buf, ds); in shash_final_unaligned()
148 memset(buf, 0, ds); in shash_final_unaligned()
Dahash.c234 unsigned int ds = crypto_ahash_digestsize(tfm); in ahash_save_req() local
237 priv = kmalloc(sizeof(*priv) + ahash_align_buffer_size(ds, alignmask), in ahash_save_req()