Lines Matching refs:data
80 static int shash_update_unaligned(struct shash_desc *desc, const u8 *data, in shash_update_unaligned() argument
87 ((unsigned long)data & alignmask); in shash_update_unaligned()
102 memcpy(buf, data, unaligned_len); in shash_update_unaligned()
107 shash->update(desc, data + unaligned_len, len - unaligned_len); in shash_update_unaligned()
110 int crypto_shash_update(struct shash_desc *desc, const u8 *data, in crypto_shash_update() argument
117 if ((unsigned long)data & alignmask) in crypto_shash_update()
118 return shash_update_unaligned(desc, data, len); in crypto_shash_update()
120 return shash->update(desc, data, len); in crypto_shash_update()
165 static int shash_finup_unaligned(struct shash_desc *desc, const u8 *data, in shash_finup_unaligned() argument
168 return crypto_shash_update(desc, data, len) ?: in shash_finup_unaligned()
172 int crypto_shash_finup(struct shash_desc *desc, const u8 *data, in crypto_shash_finup() argument
179 if (((unsigned long)data | (unsigned long)out) & alignmask) in crypto_shash_finup()
180 return shash_finup_unaligned(desc, data, len, out); in crypto_shash_finup()
182 return shash->finup(desc, data, len, out); in crypto_shash_finup()
186 static int shash_digest_unaligned(struct shash_desc *desc, const u8 *data, in shash_digest_unaligned() argument
190 crypto_shash_finup(desc, data, len, out); in shash_digest_unaligned()
193 int crypto_shash_digest(struct shash_desc *desc, const u8 *data, in crypto_shash_digest() argument
203 if (((unsigned long)data | (unsigned long)out) & alignmask) in crypto_shash_digest()
204 return shash_digest_unaligned(desc, data, len, out); in crypto_shash_digest()
206 return shash->digest(desc, data, len, out); in crypto_shash_digest()
247 nbytes = crypto_shash_update(desc, walk.data, nbytes); in shash_ahash_update()
274 crypto_shash_finup(desc, walk.data, nbytes, in shash_ahash_finup()
276 crypto_shash_update(desc, walk.data, nbytes); in shash_ahash_finup()
304 void *data; in shash_ahash_digest() local
306 data = kmap_atomic(sg_page(sg)); in shash_ahash_digest()
307 err = crypto_shash_digest(desc, data + offset, nbytes, in shash_ahash_digest()
309 kunmap_atomic(data); in shash_ahash_digest()