Home
last modified time | relevance | path

Searched refs:padlen (Results 1 – 25 of 46) sorted by relevance

12

/linux/arch/sparc/crypto/
A Dsha512_glue.c102 unsigned int i, index, padlen; in sha512_sparc64_final() local
113 padlen = (index < 112) ? (112 - index) : ((SHA512_BLOCK_SIZE+112) - index); in sha512_sparc64_final()
116 if (padlen <= 112) { in sha512_sparc64_final()
117 if ((sctx->count[0] += padlen) < padlen) in sha512_sparc64_final()
119 memcpy(sctx->buf + index, padding, padlen); in sha512_sparc64_final()
121 __sha512_sparc64_update(sctx, padding, padlen, index); in sha512_sparc64_final()
A Dsha1_glue.c81 unsigned int i, index, padlen; in sha1_sparc64_final() local
90 padlen = (index < 56) ? (56 - index) : ((SHA1_BLOCK_SIZE+56) - index); in sha1_sparc64_final()
93 if (padlen <= 56) { in sha1_sparc64_final()
94 sctx->count += padlen; in sha1_sparc64_final()
95 memcpy(sctx->buffer + index, padding, padlen); in sha1_sparc64_final()
97 __sha1_sparc64_update(sctx, padding, padlen, index); in sha1_sparc64_final()
A Dmd5_glue.c87 unsigned int i, index, padlen; in md5_sparc64_final() local
96 padlen = (index < 56) ? (56 - index) : ((MD5_HMAC_BLOCK_SIZE+56) - index); in md5_sparc64_final()
99 if (padlen <= 56) { in md5_sparc64_final()
100 sctx->byte_count += padlen; in md5_sparc64_final()
101 memcpy((u8 *)sctx->block + index, padding, padlen); in md5_sparc64_final()
103 __md5_sparc64_update(sctx, padding, padlen, index); in md5_sparc64_final()
A Dsha256_glue.c101 unsigned int i, index, padlen; in sha256_sparc64_final() local
110 padlen = (index < 56) ? (56 - index) : ((SHA256_BLOCK_SIZE+56) - index); in sha256_sparc64_final()
113 if (padlen <= 56) { in sha256_sparc64_final()
114 sctx->count += padlen; in sha256_sparc64_final()
115 memcpy(sctx->buf + index, padding, padlen); in sha256_sparc64_final()
117 __sha256_sparc64_update(sctx, padding, padlen, index); in sha256_sparc64_final()
/linux/arch/powerpc/crypto/
A Dsha1-spe-glue.c121 int padlen; in ppc_spe_sha1_final() local
125 padlen = 55 - offset; in ppc_spe_sha1_final()
130 if (padlen < 0) { in ppc_spe_sha1_final()
131 memset(p, 0x00, padlen + sizeof (u64)); in ppc_spe_sha1_final()
134 padlen = 56; in ppc_spe_sha1_final()
137 memset(p, 0, padlen); in ppc_spe_sha1_final()
A Dmd5-glue.c81 int padlen = 55 - offset; in ppc_md5_final() local
87 if (padlen < 0) { in ppc_md5_final()
88 memset(p, 0x00, padlen + sizeof (u64)); in ppc_md5_final()
91 padlen = 56; in ppc_md5_final()
94 memset(p, 0, padlen); in ppc_md5_final()
A Dsha256-spe-glue.c143 int padlen; in ppc_spe_sha256_final() local
147 padlen = 55 - offset; in ppc_spe_sha256_final()
152 if (padlen < 0) { in ppc_spe_sha256_final()
153 memset(p, 0x00, padlen + sizeof (u64)); in ppc_spe_sha256_final()
156 padlen = 56; in ppc_spe_sha256_final()
159 memset(p, 0, padlen); in ppc_spe_sha256_final()
A Dsha1.c75 u32 i, index, padlen; in powerpc_sha1_final() local
83 padlen = (index < 56) ? (56 - index) : ((64+56) - index); in powerpc_sha1_final()
84 powerpc_sha1_update(desc, padding, padlen); in powerpc_sha1_final()
/linux/drivers/net/usb/
A Dcdc_eem.c95 int padlen = 0; in eem_tx_fixup() local
104 padlen += 2; in eem_tx_fixup()
110 if ((tailroom >= ETH_FCS_LEN + padlen) && in eem_tx_fixup()
115 > (EEM_HEAD + ETH_FCS_LEN + padlen)) { in eem_tx_fixup()
125 skb2 = skb_copy_expand(skb, EEM_HEAD, ETH_FCS_LEN + padlen, flags); in eem_tx_fixup()
148 if (padlen) in eem_tx_fixup()
A Dgl620a.c138 int padlen; in genelink_tx_fixup() local
146 padlen = ((skb->len + (4 + 4*1)) % 64) ? 0 : 1; in genelink_tx_fixup()
149 && ((headroom + tailroom) >= (padlen + (4 + 4*1)))) { in genelink_tx_fixup()
150 if ((headroom < (4 + 4*1)) || (tailroom < padlen)) { in genelink_tx_fixup()
157 skb2 = skb_copy_expand(skb, (4 + 4*1) , padlen, flags); in genelink_tx_fixup()
A Dzaurus.c47 int padlen; in zaurus_tx_fixup() local
50 padlen = 2; in zaurus_tx_fixup()
53 if ((padlen + 4) <= tailroom) in zaurus_tx_fixup()
56 skb2 = skb_copy_expand(skb, 0, 4 + padlen, flags); in zaurus_tx_fixup()
A Dnet1080.c419 int padlen = sizeof (struct nc_trailer); in net1080_tx_fixup() local
422 if (!((len + padlen + sizeof (struct nc_header)) & 0x01)) in net1080_tx_fixup()
423 padlen++; in net1080_tx_fixup()
428 if (padlen <= tailroom && in net1080_tx_fixup()
433 if ((sizeof (struct nc_header) + padlen) < in net1080_tx_fixup()
447 padlen, in net1080_tx_fixup()
A Dkalmia.c164 u8 remainder, padlen = 0; in kalmia_tx_fixup() local
211 padlen = KALMIA_ALIGN_SIZE - remainder; in kalmia_tx_fixup()
212 skb_put_zero(skb, padlen); in kalmia_tx_fixup()
217 content_len, padlen, header_start); in kalmia_tx_fixup()
A Dasix_common.c244 int padlen; in asix_tx_fixup() local
251 padlen = ((skb->len + 4) & (dev->maxpacket - 1)) ? 0 : 4; in asix_tx_fixup()
266 !(padlen && skb_cloned(skb)) && in asix_tx_fixup()
267 headroom + tailroom >= 4 + padlen) { in asix_tx_fixup()
270 tailroom < padlen) { in asix_tx_fixup()
277 skb2 = skb_copy_expand(skb, 4, padlen, flags); in asix_tx_fixup()
288 if (padlen) { in asix_tx_fixup()
A Dsr9800.c117 int padlen; in sr_tx_fixup() local
120 padlen = ((skb->len + 4) % (dev->maxpacket - 1)) ? 0 : 4; in sr_tx_fixup()
122 if ((!skb_cloned(skb)) && ((headroom + tailroom) >= (4 + padlen))) { in sr_tx_fixup()
123 if ((headroom < 4) || (tailroom < padlen)) { in sr_tx_fixup()
130 skb2 = skb_copy_expand(skb, 4, padlen, flags); in sr_tx_fixup()
141 if (padlen) { in sr_tx_fixup()
/linux/scripts/
A Dcheckstack.pl155 my $padlen = 56 - length($intro);
156 while ($padlen > 0) {
158 $padlen -= 8;
/linux/net/ipv6/
A Dmip6.c31 static inline void *mip6_padn(__u8 *data, __u8 padlen) in mip6_padn() argument
35 if (padlen == 1) { in mip6_padn()
37 } else if (padlen > 1) { in mip6_padn()
39 data[1] = padlen - 2; in mip6_padn()
40 if (padlen > 2) in mip6_padn()
43 return data + padlen; in mip6_padn()
/linux/fs/orangefs/
A Ddir.c194 __u32 *len, padlen; in fill_from_part() local
218 padlen = (sizeof *len + *len + 1) + in fill_from_part()
220 if (part->len < i + padlen + sizeof *khandle) in fill_from_part()
225 khandle = (void *)part + offset + i + padlen; in fill_from_part()
230 i += padlen + sizeof *khandle; in fill_from_part()
/linux/scripts/dtc/
A Dflattree.c355 int padlen = 0; in dt_to_blob() local
377 padlen = minsize - fdt32_to_cpu(fdt.totalsize); in dt_to_blob()
378 if (padlen < 0) { in dt_to_blob()
379 padlen = 0; in dt_to_blob()
388 padlen = padsize; in dt_to_blob()
391 padlen = ALIGN(fdt32_to_cpu(fdt.totalsize) + padlen, alignsize) in dt_to_blob()
394 if (padlen > 0) { in dt_to_blob()
396 tsize += padlen; in dt_to_blob()
415 if (padlen > 0) in dt_to_blob()
416 blob = data_append_zeroes(blob, padlen); in dt_to_blob()
/linux/fs/udf/
A Ddirectory.c163 int padlen; in udf_get_fileident() local
191 padlen = lengthThisIdent % UDF_NAME_PAD; in udf_get_fileident()
192 if (padlen) in udf_get_fileident()
193 lengthThisIdent += (UDF_NAME_PAD - padlen); in udf_get_fileident()
/linux/drivers/crypto/
A Dpadlock-sha.c332 unsigned int partial, padlen; in padlock_sha1_final_nano() local
340 padlen = (partial < 56) ? (56 - partial) : ((64+56) - partial); in padlock_sha1_final_nano()
341 padlock_sha1_update_nano(desc, padding, padlen); in padlock_sha1_final_nano()
417 unsigned int partial, padlen; in padlock_sha256_final_nano() local
425 padlen = (partial < 56) ? (56 - partial) : ((64+56) - partial); in padlock_sha256_final_nano()
426 padlock_sha256_update_nano(desc, padding, padlen); in padlock_sha256_final_nano()
A Datmel-aes-regs.h81 #define AES_EMR_PADLEN(padlen) (((padlen) << AES_EMR_PADLEN_OFFSET) &\ argument
/linux/crypto/
A Dchacha20poly1305.c204 unsigned int padlen; in poly_cipherpad() local
207 padlen = -rctx->cryptlen % POLY1305_BLOCK_SIZE; in poly_cipherpad()
209 sg_init_one(preq->src, preq->pad, padlen); in poly_cipherpad()
214 ahash_request_set_crypt(&preq->req, preq->src, NULL, padlen); in poly_cipherpad()
263 unsigned int padlen; in poly_adpad() local
266 padlen = -rctx->assoclen % POLY1305_BLOCK_SIZE; in poly_adpad()
268 sg_init_one(preq->src, preq->pad, padlen); in poly_adpad()
273 ahash_request_set_crypt(&preq->req, preq->src, NULL, padlen); in poly_adpad()
/linux/drivers/usb/gadget/function/
A Df_eem.c345 int headroom, tailroom, padlen = 0; in eem_wrap() local
359 padlen += 2; in eem_wrap()
361 if ((tailroom >= (ETH_FCS_LEN + padlen)) && in eem_wrap()
365 skb2 = skb_copy_expand(skb, EEM_HLEN, ETH_FCS_LEN + padlen, GFP_ATOMIC); in eem_wrap()
384 if (padlen) in eem_wrap()
/linux/net/xfrm/
A Dxfrm_output.c254 ph->padlen = 4 - (optlen & 4); in xfrm4_beet_encap_add()
257 if (ph->padlen) in xfrm4_beet_encap_add()
258 memset(ph + 1, IPOPT_NOP, ph->padlen); in xfrm4_beet_encap_add()
380 ph->padlen = 4 - (optlen & 4); in xfrm6_beet_encap_add()
383 if (ph->padlen) in xfrm6_beet_encap_add()
384 memset(ph + 1, IPOPT_NOP, ph->padlen); in xfrm6_beet_encap_add()

Completed in 36 milliseconds

12