Lines Matching refs:hash
67 static int kdf_alloc(struct crypto_shash **hash, char *hashname) in kdf_alloc() argument
83 *hash = tfm; in kdf_alloc()
88 static void kdf_dealloc(struct crypto_shash *hash) in kdf_dealloc() argument
90 if (hash) in kdf_dealloc()
91 crypto_free_shash(hash); in kdf_dealloc()
94 static int keyctl_dh_compute_kdf(struct crypto_shash *hash, in keyctl_dh_compute_kdf() argument
101 size_t outbuf_len = roundup(buflen, crypto_shash_digestsize(hash)); in keyctl_dh_compute_kdf()
109 ret = crypto_kdf108_ctr_generate(hash, &kbuf_iov, 1, outbuf, outbuf_len); in keyctl_dh_compute_kdf()
138 struct crypto_shash *hash = NULL; in __keyctl_dh_compute() local
171 ret = kdf_alloc(&hash, hashname); in __keyctl_dh_compute()
277 ret = keyctl_dh_compute_kdf(hash, buffer, buflen, outbuf, in __keyctl_dh_compute()
296 kdf_dealloc(hash); in __keyctl_dh_compute()