Home
last modified time | relevance | path

Searched refs:buffer (Results 1 – 20 of 20) sorted by relevance

/crypto/asymmetric_keys/
Dmscode_parser.c44 char buffer[50]; in mscode_note_content_type() local
46 sprint_oid(value, vlen, buffer, sizeof(buffer)); in mscode_note_content_type()
47 pr_err("Unknown OID: %s\n", buffer); in mscode_note_content_type()
73 char buffer[50]; in mscode_note_digest_algo() local
101 sprint_oid(value, vlen, buffer, sizeof(buffer)); in mscode_note_digest_algo()
102 pr_err("Unknown OID: %s\n", buffer); in mscode_note_digest_algo()
Dx509_cert_parser.c163 char buffer[50]; in x509_note_OID() local
164 sprint_oid(value, vlen, buffer, sizeof(buffer)); in x509_note_OID()
166 (unsigned long)value - ctx->data, buffer); in x509_note_OID()
334 char *buffer; in x509_fabricate_name() local
341 buffer = kmalloc(1, GFP_KERNEL); in x509_fabricate_name()
342 if (!buffer) in x509_fabricate_name()
344 buffer[0] = 0; in x509_fabricate_name()
363 buffer = kmalloc(ctx->o_size + 2 + ctx->cn_size + 1, in x509_fabricate_name()
365 if (!buffer) in x509_fabricate_name()
368 memcpy(buffer, in x509_fabricate_name()
[all …]
Dpkcs8_parser.c41 char buffer[50]; in pkcs8_note_OID() local
43 sprint_oid(value, vlen, buffer, sizeof(buffer)); in pkcs8_note_OID()
45 (unsigned long)value - ctx->data, buffer); in pkcs8_note_OID()
Dpkcs7_parser.c212 char buffer[50]; in pkcs7_note_OID() local
213 sprint_oid(value, vlen, buffer, sizeof(buffer)); in pkcs7_note_OID()
215 (unsigned long)value - ctx->data, buffer); in pkcs7_note_OID()
/crypto/
Dwp512.c40 u8 buffer[WP512_BLOCK_SIZE]; member
788 const __be64 *buffer = (const __be64 *)wctx->buffer; in wp512_process_buffer() local
791 block[i] = be64_to_cpu(buffer[i]); in wp512_process_buffer()
995 wctx->buffer[0] = 0; in wp512_init()
1013 u8 *buffer = wctx->buffer; in wp512_update() local
1028 buffer[bufferPos++] |= (u8)(b >> bufferRem); in wp512_update()
1034 buffer[bufferPos] = b << (8 - bufferRem); in wp512_update()
1041 buffer[bufferPos] |= b >> bufferRem; in wp512_update()
1055 buffer[bufferPos] = b << (8 - bufferRem); in wp512_update()
1069 u8 *buffer = wctx->buffer; in wp512_final() local
[all …]
Dcipher.c25 u8 *buffer, *alignbuffer; in setkey_unaligned() local
29 buffer = kmalloc(absize, GFP_ATOMIC); in setkey_unaligned()
30 if (!buffer) in setkey_unaligned()
33 alignbuffer = (u8 *)ALIGN((unsigned long)buffer, alignmask + 1); in setkey_unaligned()
37 kfree(buffer); in setkey_unaligned()
66 u8 buffer[MAX_CIPHER_BLOCKSIZE + MAX_CIPHER_ALIGNMASK]; in cipher_crypt_unaligned() local
67 u8 *tmp = (u8 *)ALIGN((unsigned long)buffer, alignmask + 1); in cipher_crypt_unaligned()
Dblkcipher.c73 addr = (u8 *)ALIGN((unsigned long)walk->buffer, walk->alignmask + 1); in blkcipher_done_slow()
131 if (walk->buffer != walk->page) in blkcipher_walk_done()
132 kfree(walk->buffer); in blkcipher_walk_done()
147 if (walk->buffer) in blkcipher_next_slow()
150 walk->buffer = walk->page; in blkcipher_next_slow()
151 if (walk->buffer) in blkcipher_next_slow()
156 walk->buffer = kmalloc(n, GFP_ATOMIC); in blkcipher_next_slow()
157 if (!walk->buffer) in blkcipher_next_slow()
161 walk->dst.virt.addr = (u8 *)ALIGN((unsigned long)walk->buffer, in blkcipher_next_slow()
279 walk->buffer = kmalloc(size, GFP_ATOMIC); in blkcipher_copy_iv()
[all …]
Dskcipher.c39 u8 buffer[]; member
97 addr = (u8 *)ALIGN((unsigned long)walk->buffer, walk->alignmask + 1); in skcipher_done_slow()
163 if (!((unsigned long)walk->buffer | (unsigned long)walk->page)) in skcipher_walk_done()
171 if (walk->buffer != walk->page) in skcipher_walk_done()
172 kfree(walk->buffer); in skcipher_walk_done()
193 data = PTR_ALIGN(&p->buffer[0], walk->alignmask + 1); in skcipher_walk_complete()
210 if (walk->buffer != walk->page) in skcipher_walk_complete()
211 kfree(walk->buffer); in skcipher_walk_complete()
231 u8 *buffer; in skcipher_next_slow() local
235 if (!walk->buffer) in skcipher_next_slow()
[all …]
Drmd256.c23 __le32 buffer[16]; member
243 memset(rctx->buffer, 0, sizeof(rctx->buffer)); in rmd256_init()
252 const u32 avail = sizeof(rctx->buffer) - (rctx->byte_count & 0x3f); in rmd256_update()
258 memcpy((char *)rctx->buffer + (sizeof(rctx->buffer) - avail), in rmd256_update()
263 memcpy((char *)rctx->buffer + (sizeof(rctx->buffer) - avail), in rmd256_update()
266 rmd256_transform(rctx->state, rctx->buffer); in rmd256_update()
270 while (len >= sizeof(rctx->buffer)) { in rmd256_update()
271 memcpy(rctx->buffer, data, sizeof(rctx->buffer)); in rmd256_update()
272 rmd256_transform(rctx->state, rctx->buffer); in rmd256_update()
273 data += sizeof(rctx->buffer); in rmd256_update()
[all …]
Drmd128.c23 __le32 buffer[16]; member
224 memset(rctx->buffer, 0, sizeof(rctx->buffer)); in rmd128_init()
233 const u32 avail = sizeof(rctx->buffer) - (rctx->byte_count & 0x3f); in rmd128_update()
239 memcpy((char *)rctx->buffer + (sizeof(rctx->buffer) - avail), in rmd128_update()
244 memcpy((char *)rctx->buffer + (sizeof(rctx->buffer) - avail), in rmd128_update()
247 rmd128_transform(rctx->state, rctx->buffer); in rmd128_update()
251 while (len >= sizeof(rctx->buffer)) { in rmd128_update()
252 memcpy(rctx->buffer, data, sizeof(rctx->buffer)); in rmd128_update()
253 rmd128_transform(rctx->state, rctx->buffer); in rmd128_update()
254 data += sizeof(rctx->buffer); in rmd128_update()
[all …]
Drmd160.c23 __le32 buffer[16]; member
268 memset(rctx->buffer, 0, sizeof(rctx->buffer)); in rmd160_init()
277 const u32 avail = sizeof(rctx->buffer) - (rctx->byte_count & 0x3f); in rmd160_update()
283 memcpy((char *)rctx->buffer + (sizeof(rctx->buffer) - avail), in rmd160_update()
288 memcpy((char *)rctx->buffer + (sizeof(rctx->buffer) - avail), in rmd160_update()
291 rmd160_transform(rctx->state, rctx->buffer); in rmd160_update()
295 while (len >= sizeof(rctx->buffer)) { in rmd160_update()
296 memcpy(rctx->buffer, data, sizeof(rctx->buffer)); in rmd160_update()
297 rmd160_transform(rctx->state, rctx->buffer); in rmd160_update()
298 data += sizeof(rctx->buffer); in rmd160_update()
[all …]
Drmd320.c23 __le32 buffer[16]; member
292 memset(rctx->buffer, 0, sizeof(rctx->buffer)); in rmd320_init()
301 const u32 avail = sizeof(rctx->buffer) - (rctx->byte_count & 0x3f); in rmd320_update()
307 memcpy((char *)rctx->buffer + (sizeof(rctx->buffer) - avail), in rmd320_update()
312 memcpy((char *)rctx->buffer + (sizeof(rctx->buffer) - avail), in rmd320_update()
315 rmd320_transform(rctx->state, rctx->buffer); in rmd320_update()
319 while (len >= sizeof(rctx->buffer)) { in rmd320_update()
320 memcpy(rctx->buffer, data, sizeof(rctx->buffer)); in rmd320_update()
321 rmd320_transform(rctx->state, rctx->buffer); in rmd320_update()
322 data += sizeof(rctx->buffer); in rmd320_update()
[all …]
Dcrct10dif_common.c70 __u16 crc_t10dif_generic(__u16 crc, const unsigned char *buffer, size_t len) in crc_t10dif_generic() argument
75 crc = (crc << 8) ^ t10_dif_crc_table[((crc >> 8) ^ buffer[i]) & 0xff]; in crc_t10dif_generic()
Dnhpoly1305.c164 memcpy(&state->buffer[state->buflen], src, bytes); in crypto_nhpoly1305_update_helper()
168 nhpoly1305_units(state, key, state->buffer, NH_MESSAGE_UNIT, in crypto_nhpoly1305_update_helper()
183 memcpy(state->buffer, src, srclen); in crypto_nhpoly1305_update_helper()
203 memset(&state->buffer[state->buflen], 0, in crypto_nhpoly1305_final_helper()
205 nhpoly1305_units(state, key, state->buffer, NH_MESSAGE_UNIT, in crypto_nhpoly1305_final_helper()
Dstreebog_generic.c927 memset(ctx->buffer + ctx->fillsize, 0, in streebog_pad()
928 sizeof(ctx->buffer) - ctx->fillsize); in streebog_pad()
930 ctx->buffer[ctx->fillsize] = 1; in streebog_pad()
1012 memcpy(&ctx->buffer[ctx->fillsize], data, chunksize); in streebog_update()
1018 streebog_stage2(ctx, ctx->buffer); in streebog_update()
1030 memcpy(&ctx->buffer, data, len); in streebog_update()
Dghash-generic.c85 u8 *dst = dctx->buffer; in ghash_update()
119 u8 *dst = dctx->buffer; in ghash_flush()
137 u8 *buf = dctx->buffer; in ghash_final()
Dablkcipher.c301 u8 *buffer, *alignbuffer; in setkey_unaligned() local
305 buffer = kmalloc(absize, GFP_ATOMIC); in setkey_unaligned()
306 if (!buffer) in setkey_unaligned()
309 alignbuffer = (u8 *)ALIGN((unsigned long)buffer, alignmask + 1); in setkey_unaligned()
313 kfree(buffer); in setkey_unaligned()
Daead.c32 u8 *buffer, *alignbuffer; in setkey_unaligned() local
36 buffer = kmalloc(absize, GFP_ATOMIC); in setkey_unaligned()
37 if (!buffer) in setkey_unaligned()
40 alignbuffer = (u8 *)ALIGN((unsigned long)buffer, alignmask + 1); in setkey_unaligned()
44 kfree(buffer); in setkey_unaligned()
Dshash.c36 u8 *buffer, *alignbuffer; in shash_setkey_unaligned() local
40 buffer = kmalloc(absize, GFP_ATOMIC); in shash_setkey_unaligned()
41 if (!buffer) in shash_setkey_unaligned()
44 alignbuffer = (u8 *)ALIGN((unsigned long)buffer, alignmask + 1); in shash_setkey_unaligned()
47 kzfree(buffer); in shash_setkey_unaligned()
Dahash.c173 u8 *buffer, *alignbuffer; in ahash_setkey_unaligned() local
177 buffer = kmalloc(absize, GFP_KERNEL); in ahash_setkey_unaligned()
178 if (!buffer) in ahash_setkey_unaligned()
181 alignbuffer = (u8 *)ALIGN((unsigned long)buffer, alignmask + 1); in ahash_setkey_unaligned()
184 kzfree(buffer); in ahash_setkey_unaligned()