/crypto/ |
D | scatterwalk.c | 25 static inline void memcpy_dir(void *buf, void *sgdata, size_t nbytes, int out) in memcpy_dir() argument 27 void *src = out ? buf : sgdata; in memcpy_dir() 28 void *dst = out ? sgdata : buf; in memcpy_dir() 76 void scatterwalk_copychunks(void *buf, struct scatter_walk *walk, in scatterwalk_copychunks() argument 87 memcpy_dir(buf, vaddr, len_this_page, out); in scatterwalk_copychunks() 95 buf += len_this_page; in scatterwalk_copychunks() 103 void scatterwalk_map_and_copy(void *buf, struct scatterlist *sg, in scatterwalk_map_and_copy() argument 123 scatterwalk_copychunks(buf, &walk, nbytes, out); in scatterwalk_map_and_copy()
|
D | rng.c | 34 u8 *buf = NULL; in rngapi_reset() local 38 buf = kmalloc(slen, GFP_KERNEL); in rngapi_reset() 39 if (!buf) in rngapi_reset() 42 get_random_bytes(buf, slen); in rngapi_reset() 43 seed = buf; in rngapi_reset() 48 kfree(buf); in rngapi_reset()
|
D | md5.c | 28 static inline void le32_to_cpu_array(u32 *buf, unsigned int words) in le32_to_cpu_array() argument 31 __le32_to_cpus(buf); in le32_to_cpu_array() 32 buf++; in le32_to_cpu_array() 36 static inline void cpu_to_le32_array(u32 *buf, unsigned int words) in cpu_to_le32_array() argument 39 __cpu_to_le32s(buf); in cpu_to_le32_array() 40 buf++; in cpu_to_le32_array()
|
D | ansi_cprng.c | 60 static void hexdump(char *note, unsigned char *buf, unsigned int len) in hexdump() argument 66 buf, len, false); in hexdump() 188 static int get_prng_bytes(char *buf, size_t nbytes, struct prng_context *ctx, in get_prng_bytes() argument 191 unsigned char *ptr = buf; in get_prng_bytes() 222 memset(buf, 0, nbytes); in get_prng_bytes() 249 memset(buf, 0, nbytes); in get_prng_bytes()
|
D | md4.c | 68 static inline void le32_to_cpu_array(u32 *buf, unsigned int words) in le32_to_cpu_array() argument 71 __le32_to_cpus(buf); in le32_to_cpu_array() 72 buf++; in le32_to_cpu_array() 76 static inline void cpu_to_le32_array(u32 *buf, unsigned int words) in cpu_to_le32_array() argument 79 __cpu_to_le32s(buf); in cpu_to_le32_array() 80 buf++; in cpu_to_le32_array()
|
D | salsa20_generic.c | 142 u8 buf[64]; in salsa20_encrypt_bytes() local 148 salsa20_wordtobyte(buf, ctx->input); in salsa20_encrypt_bytes() 155 crypto_xor(dst, buf, bytes); in salsa20_encrypt_bytes() 159 crypto_xor(dst, buf, 64); in salsa20_encrypt_bytes()
|
D | shash.c | 83 u8 *buf = PTR_ALIGN(&ubuf[0], alignmask + 1); in shash_update_unaligned() local 89 memcpy(buf, data, unaligned_len); in shash_update_unaligned() 90 err = shash->update(desc, buf, unaligned_len); in shash_update_unaligned() 91 memset(buf, 0, unaligned_len); in shash_update_unaligned() 119 u8 *buf = PTR_ALIGN(&ubuf[0], alignmask + 1); in shash_final_unaligned() local 122 err = shash->final(desc, buf); in shash_final_unaligned() 126 memcpy(out, buf, ds); in shash_final_unaligned() 129 memset(buf, 0, ds); in shash_final_unaligned()
|
D | ghash-generic.c | 123 u8 *buf = dctx->buffer; in ghash_final() local 129 memcpy(dst, buf, GHASH_BLOCK_SIZE); in ghash_final()
|
D | sha512_generic.c | 184 memcpy(&sctx->buf[index], data, part_len); in crypto_sha512_update() 185 sha512_transform(sctx->state, sctx->buf); in crypto_sha512_update() 196 memcpy(&sctx->buf[index], &data[i], len - i); in crypto_sha512_update()
|
D | testmgr.c | 129 static void hexdump(unsigned char *buf, unsigned int len) in hexdump() argument 133 buf, len, false); in hexdump() 147 static int testmgr_alloc_buf(char *buf[XBUFSIZE]) in testmgr_alloc_buf() 152 buf[i] = (void *)__get_free_page(GFP_KERNEL); in testmgr_alloc_buf() 153 if (!buf[i]) in testmgr_alloc_buf() 161 free_page((unsigned long)buf[i]); in testmgr_alloc_buf() 166 static void testmgr_free_buf(char *buf[XBUFSIZE]) in testmgr_free_buf() 171 free_page((unsigned long)buf[i]); in testmgr_free_buf()
|
D | sha256_generic.c | 264 memcpy(sctx->buf + partial, data, done + 64); in crypto_sha256_update() 265 src = sctx->buf; in crypto_sha256_update() 276 memcpy(sctx->buf + partial, src, len - done); in crypto_sha256_update()
|