/Linux-v5.4/security/keys/ |
D | big_key.c | 100 static int big_key_crypt(enum big_key_op op, struct big_key_buf *buf, size_t datalen, u8 *key) in big_key_crypt() argument 117 aead_request_set_crypt(aead_req, buf->sg, buf->sg, datalen, zero_nonce); in big_key_crypt() 207 size_t datalen = prep->datalen, enclen = datalen + ENC_AUTHTAG_SIZE; in big_key_preparse() local 210 if (datalen <= 0 || datalen > 1024 * 1024 || !prep->data) in big_key_preparse() 216 prep->payload.data[big_key_len] = (void *)(unsigned long)datalen; in big_key_preparse() 218 if (datalen > BIG_KEY_FILE_THRESHOLD) { in big_key_preparse() 229 memcpy(buf->virt, prep->data, datalen); in big_key_preparse() 242 ret = big_key_crypt(BIG_KEY_ENC, buf, datalen, enckey); in big_key_preparse() 271 void *data = kmalloc(datalen, GFP_KERNEL); in big_key_preparse() 277 memcpy(data, prep->data, prep->datalen); in big_key_preparse() [all …]
|
D | user_defined.c | 62 size_t datalen = prep->datalen; in user_preparse() local 64 if (datalen <= 0 || datalen > 32767 || !prep->data) in user_preparse() 67 upayload = kmalloc(sizeof(*upayload) + datalen, GFP_KERNEL); in user_preparse() 72 prep->quotalen = datalen; in user_preparse() 74 upayload->datalen = datalen; in user_preparse() 75 memcpy(upayload->data, prep->data, datalen); in user_preparse() 107 ret = key_payload_reserve(key, prep->datalen); in user_update() 162 seq_printf(m, ": %u", key->datalen); in user_describe() 177 ret = upayload->datalen; in user_read() 181 if (buflen > upayload->datalen) in user_read() [all …]
|
D | trusted.c | 58 static int TSS_sha1(const unsigned char *data, unsigned int datalen, in TSS_sha1() argument 70 ret = crypto_shash_digest(&sdesc->shash, data, datalen, digest); in TSS_sha1() 469 const unsigned char *data, uint32_t datalen, in tpm_seal() argument 508 datsize = htonl(datalen); in tpm_seal() 523 sizeof(uint32_t), &datsize, datalen, data, 0, in tpm_seal() 532 &datsize, datalen, data, 0, 0); in tpm_seal() 540 store32(tb, TPM_SEAL_SIZE + pcrinfosize + datalen); in tpm_seal() 546 store32(tb, datalen); in tpm_seal() 547 storebytes(tb, data, datalen); in tpm_seal() 586 unsigned char *data, unsigned int *datalen) in tpm_unseal() argument [all …]
|
/Linux-v5.4/lib/ |
D | asn1_decoder.c | 57 static int asn1_find_indefinite_length(const unsigned char *data, size_t datalen, in asn1_find_indefinite_length() argument 66 if (unlikely(datalen - dp < 2)) { in asn1_find_indefinite_length() 67 if (datalen == dp) in asn1_find_indefinite_length() 88 if (unlikely(datalen - dp < 2)) in asn1_find_indefinite_length() 110 if (unlikely(n > datalen - dp)) in asn1_find_indefinite_length() 118 if (len > datalen - dp) in asn1_find_indefinite_length() 170 size_t datalen) in asn1_ber_decoder() argument 197 if (datalen > 65535) in asn1_ber_decoder() 202 pc, machlen, dp, datalen, csp, jsp); in asn1_ber_decoder() 217 (op & ASN1_OP_MATCH__SKIP && dp == datalen)) { in asn1_ber_decoder() [all …]
|
/Linux-v5.4/include/linux/netfilter/ |
D | nf_conntrack_sip.h | 45 const char **dptr, unsigned int *datalen, 49 const char **dptr, unsigned int *datalen, 115 unsigned int *datalen); 124 unsigned int *datalen, 133 unsigned int *datalen, 143 unsigned int *datalen, 152 unsigned int *datalen, 160 unsigned int *datalen, 170 unsigned int datalen, unsigned int *matchoff, 174 unsigned int dataoff, unsigned int datalen, [all …]
|
/Linux-v5.4/fs/jffs2/ |
D | compr.c | 75 unsigned char **cpage_out, u32 *datalen, u32 *cdatalen) in jffs2_selected_compress() argument 87 orig_slen = *datalen; in jffs2_selected_compress() 106 *datalen = orig_slen; in jffs2_selected_compress() 108 err = this->compress(data_in, output_buf, datalen, cdatalen); in jffs2_selected_compress() 116 this->stat_compr_orig_size += *datalen; in jffs2_selected_compress() 150 uint32_t *datalen, uint32_t *cdatalen) in jffs2_compress() argument 168 ret = jffs2_selected_compress(0, data_in, cpage_out, datalen, in jffs2_compress() 173 orig_slen = *datalen; in jffs2_compress() 204 *datalen = orig_slen; in jffs2_compress() 206 compr_ret = this->compress(data_in, this->compr_buf, datalen, cdatalen); in jffs2_compress() [all …]
|
D | write.c | 61 uint32_t datalen, int alloc_mode) in jffs2_write_dnode() argument 80 vecs[1].iov_len = datalen; in jffs2_write_dnode() 82 if (je32_to_cpu(ri->totlen) != sizeof(*ri) + datalen) { in jffs2_write_dnode() 85 sizeof(*ri), datalen); in jffs2_write_dnode() 93 if (!datalen || !data) in jffs2_write_dnode() 112 if (ret || (retlen != sizeof(*ri) + datalen)) { in jffs2_write_dnode() 114 sizeof(*ri) + datalen, flash_ofs, ret, retlen); in jffs2_write_dnode() 123 jffs2_add_physical_node_ref(c, flash_ofs | REF_OBSOLETE, PAD(sizeof(*ri)+datalen), NULL); in jffs2_write_dnode() 141 ret = jffs2_reserve_space_gc(c, sizeof(*ri) + datalen, &dummy, in jffs2_write_dnode() 148 ret = jffs2_reserve_space(c, sizeof(*ri) + datalen, &dummy, in jffs2_write_dnode() [all …]
|
/Linux-v5.4/net/netfilter/ |
D | nf_nat_sip.c | 36 const char **dptr, unsigned int *datalen, in mangle_packet() argument 66 *datalen += buflen - matchlen; in mangle_packet() 94 const char **dptr, unsigned int *datalen, in map_addr() argument 123 return mangle_packet(skb, protoff, dataoff, dptr, datalen, in map_addr() 129 const char **dptr, unsigned int *datalen, in map_sip_addr() argument 138 if (ct_sip_parse_header_uri(ct, *dptr, NULL, *datalen, type, NULL, in map_sip_addr() 141 return map_addr(skb, protoff, dataoff, dptr, datalen, in map_sip_addr() 147 const char **dptr, unsigned int *datalen) in nf_nat_sip() argument 161 if (ct_sip_parse_request(ct, *dptr, *datalen, in nf_nat_sip() 164 !map_addr(skb, protoff, dataoff, dptr, datalen, in nf_nat_sip() [all …]
|
D | nf_conntrack_sip.c | 238 const char *dptr, unsigned int datalen, in ct_sip_parse_request() argument 242 const char *start = dptr, *limit = dptr + datalen, *end; in ct_sip_parse_request() 368 unsigned int dataoff, unsigned int datalen, in ct_sip_get_header() argument 373 const char *start = dptr, *limit = dptr + datalen; in ct_sip_get_header() 436 unsigned int dataoff, unsigned int datalen, in ct_sip_next_header() argument 441 const char *start = dptr, *limit = dptr + datalen; in ct_sip_next_header() 466 unsigned int dataoff, unsigned int datalen, in ct_sip_walk_headers() argument 474 ret = ct_sip_next_header(ct, dptr, dataoff, datalen, in ct_sip_walk_headers() 486 ret = ct_sip_get_header(ct, dptr, dataoff, datalen, in ct_sip_walk_headers() 506 unsigned int *dataoff, unsigned int datalen, in ct_sip_parse_header_uri() argument [all …]
|
D | nf_nat_helper.c | 96 int oldlen, datalen; in __nf_nat_mangle_tcp_packet() local 112 datalen = skb->len - protoff; in __nf_nat_mangle_tcp_packet() 115 tcph, &tcph->check, datalen, oldlen); in __nf_nat_mangle_tcp_packet() 146 int datalen, oldlen; in nf_nat_mangle_udp_packet() local 163 datalen = skb->len - protoff; in nf_nat_mangle_udp_packet() 164 udph->len = htons(datalen); in nf_nat_mangle_udp_packet() 171 udph, &udph->check, datalen, oldlen); in nf_nat_mangle_udp_packet()
|
/Linux-v5.4/net/dns_resolver/ |
D | dns_key.c | 98 int datalen = prep->datalen, result_len = 0; in dns_resolver_preparse() local 101 if (datalen <= 1 || !data) in dns_resolver_preparse() 106 if (datalen <= sizeof(*bin)) in dns_resolver_preparse() 110 kenter("[%u,%u],%u", bin->content, bin->version, datalen); in dns_resolver_preparse() 125 result_len = datalen; in dns_resolver_preparse() 129 kenter("'%*.*s',%u", datalen, datalen, data, datalen); in dns_resolver_preparse() 131 if (!data || data[datalen - 1] != '\0') in dns_resolver_preparse() 133 datalen--; in dns_resolver_preparse() 136 end = data + datalen; in dns_resolver_preparse() 137 opt = memchr(data, '#', datalen); in dns_resolver_preparse() [all …]
|
/Linux-v5.4/include/linux/ |
D | devcoredump.h | 55 void dev_coredumpv(struct device *dev, void *data, size_t datalen, 59 void *data, size_t datalen, gfp_t gfp, 61 void *data, size_t datalen), 65 size_t datalen, gfp_t gfp); 68 size_t datalen, gfp_t gfp) in dev_coredumpv() argument 75 void *data, size_t datalen, gfp_t gfp, in dev_coredumpm() argument 77 void *data, size_t datalen), in dev_coredumpm() argument 84 size_t datalen, gfp_t gfp) in dev_coredumpsg() argument
|
/Linux-v5.4/include/uapi/linux/ |
D | tipc_config.h | 255 #define TLV_ALIGN(datalen) (((datalen)+(TLV_ALIGNTO-1)) & ~(TLV_ALIGNTO-1)) argument 256 #define TLV_LENGTH(datalen) (sizeof(struct tlv_desc) + (datalen)) argument 257 #define TLV_SPACE(datalen) (TLV_ALIGN(TLV_LENGTH(datalen))) argument 394 #define TCM_ALIGN(datalen) (((datalen)+3) & ~3) argument 395 #define TCM_LENGTH(datalen) (sizeof(struct tipc_cfg_msg_hdr) + datalen) argument 396 #define TCM_SPACE(datalen) (TCM_ALIGN(TCM_LENGTH(datalen))) argument
|
/Linux-v5.4/drivers/base/ |
D | devcoredump.c | 31 size_t datalen; member 34 void *data, size_t datalen); 81 return devcd->read(buffer, offset, count, devcd->data, devcd->datalen); in devcd_data_read() 165 void *data, size_t datalen) in devcd_readv() argument 167 return memory_read_from_buffer(buffer, count, &offset, data, datalen); in devcd_readv() 185 void dev_coredumpv(struct device *dev, void *data, size_t datalen, in dev_coredumpv() argument 188 dev_coredumpm(dev, NULL, data, datalen, gfp, devcd_readv, devcd_freev); in dev_coredumpv() 253 void *data, size_t datalen, gfp_t gfp, in dev_coredumpm() argument 255 void *data, size_t datalen), in dev_coredumpm() argument 281 devcd->datalen = datalen; in dev_coredumpm() [all …]
|
/Linux-v5.4/security/keys/encrypted-keys/ |
D | encrypted.c | 286 epayload->master_desc, epayload->datalen); in datablob_format() 321 *master_keylen = upayload->datalen; in request_user_key() 610 const char *datalen) in encrypted_key_alloc() argument 621 ret = kstrtol(datalen, 10, &dlen); in encrypted_key_alloc() 649 + strlen(datalen) + 1 + ivsize + 1 + encrypted_datalen; in encrypted_key_alloc() 726 const char *datalen) in __ekey_init() argument 733 epayload->datalen = epayload->master_desc + strlen(master_desc) + 1; in __ekey_init() 734 epayload->iv = epayload->datalen + strlen(datalen) + 1; in __ekey_init() 749 memcpy(epayload->datalen, datalen, strlen(datalen)); in __ekey_init() 760 const char *master_desc, const char *datalen, in encrypted_init() argument [all …]
|
/Linux-v5.4/fs/fscache/ |
D | fsdef.c | 15 uint16_t datalen, 76 uint16_t datalen, in fscache_fsdef_netfs_check_aux() argument 82 _enter("{%s},,%hu", netfs->name, datalen); in fscache_fsdef_netfs_check_aux() 84 if (datalen != sizeof(version)) { in fscache_fsdef_netfs_check_aux() 85 _leave(" = OBSOLETE [dl=%d v=%zu]", datalen, sizeof(version)); in fscache_fsdef_netfs_check_aux()
|
/Linux-v5.4/drivers/net/wireless/broadcom/brcm80211/brcmfmac/ |
D | fweh.c | 34 u32 datalen; member 240 emsg.datalen = be32_to_cpu(emsg_be->datalen); in brcmf_fweh_event_worker() 249 min_t(u32, emsg.datalen, 64), in brcmf_fweh_event_worker() 250 "event payload, len=%d\n", emsg.datalen); in brcmf_fweh_event_worker() 397 u32 datalen; in brcmf_fweh_process_event() local 401 datalen = get_unaligned_be32(&event_packet->msg.datalen); in brcmf_fweh_process_event() 410 if (datalen > BRCMF_DCMD_MAXLEN || in brcmf_fweh_process_event() 411 datalen + sizeof(*event_packet) > packet_len) in brcmf_fweh_process_event() 417 event = kzalloc(sizeof(*event) + datalen, alloc_flag); in brcmf_fweh_process_event() 426 memcpy(event->data, data, datalen); in brcmf_fweh_process_event() [all …]
|
D | fwil.c | 193 brcmf_create_iovar(char *name, const char *data, u32 datalen, in brcmf_create_iovar() argument 200 if ((len + datalen) > buflen) in brcmf_create_iovar() 206 if (data && datalen) in brcmf_create_iovar() 207 memcpy(&buf[len], data, datalen); in brcmf_create_iovar() 209 return len + datalen; in brcmf_create_iovar() 292 brcmf_create_bsscfg(s32 bsscfgidx, char *name, char *data, u32 datalen, in brcmf_create_bsscfg() argument 303 return brcmf_create_iovar(name, data, datalen, buf, buflen); in brcmf_create_bsscfg() 307 iolen = prefixlen + namelen + sizeof(bsscfgidx_le) + datalen; in brcmf_create_bsscfg() 330 if (datalen) in brcmf_create_bsscfg() 331 memcpy(p, data, datalen); in brcmf_create_bsscfg()
|
/Linux-v5.4/fs/cifs/ |
D | cache.c | 90 uint16_t datalen, in cifs_fscache_super_check_aux() argument 96 if (datalen != sizeof(auxdata)) in cifs_fscache_super_check_aux() 102 if (memcmp(data, &auxdata, datalen) != 0) in cifs_fscache_super_check_aux() 120 uint16_t datalen, in cifs_fscache_inode_check_aux() argument 126 if (datalen != sizeof(auxdata)) in cifs_fscache_inode_check_aux() 136 if (memcmp(data, &auxdata, datalen) != 0) in cifs_fscache_inode_check_aux()
|
/Linux-v5.4/drivers/net/wireless/ath/ath9k/ |
D | dfs.c | 101 int datalen, bool is_ctl, bool is_ext) in ath9k_check_chirping() argument 111 int num_fft_packets = datalen / sizeof(*fft); in ath9k_check_chirping() 116 datalen, num_fft_packets); in ath9k_check_chirping() 122 if ((datalen % sizeof(*fft)) == 2) { in ath9k_check_chirping() 134 int num_fft_packets = datalen / sizeof(*fft); in ath9k_check_chirping() 138 datalen, num_fft_packets); in ath9k_check_chirping() 293 u16 datalen; in ath9k_dfs_process_phyerr() local 309 datalen = rs->rs_datalen; in ath9k_dfs_process_phyerr() 310 if (datalen == 0) { in ath9k_dfs_process_phyerr() 327 vdata_end = data + datalen; in ath9k_dfs_process_phyerr() [all …]
|
/Linux-v5.4/net/rxrpc/ |
D | key.c | 89 size_t datalen, in rxrpc_preparse_xdr_rxkad() argument 111 prep->quotalen = datalen + plen; in rxrpc_preparse_xdr_rxkad() 430 size_t datalen, in rxrpc_preparse_xdr_rxk5() argument 445 prep->quotalen = datalen + toklen; in rxrpc_preparse_xdr_rxk5() 562 size_t datalen = prep->datalen; in rxrpc_preparse_xdr() local 567 prep->datalen); in rxrpc_preparse_xdr() 569 if (datalen > AFSTOKEN_LENGTH_MAX) in rxrpc_preparse_xdr() 573 if (datalen & 3) in rxrpc_preparse_xdr() 580 datalen -= 4; in rxrpc_preparse_xdr() 586 datalen -= 4; in rxrpc_preparse_xdr() [all …]
|
/Linux-v5.4/arch/s390/crypto/ |
D | crc32-vx.c | 50 unsigned char const *data, size_t datalen) \ 55 if (datalen < VX_MIN_LEN + VX_ALIGN_MASK) \ 56 return ___crc32_sw(crc, data, datalen); \ 61 datalen -= prealign; \ 66 aligned = datalen & ~VX_ALIGN_MASK; \ 67 remaining = datalen & VX_ALIGN_MASK; \ 191 unsigned int datalen, u8 *out) \ 194 data, datalen, out); \ 215 unsigned int datalen) \ 218 ctx->crc = func(ctx->crc, data, datalen); \
|
/Linux-v5.4/crypto/asymmetric_keys/ |
D | pkcs7_key_type.c | 37 saved_prep_datalen = prep->datalen; in pkcs7_view_content() 39 prep->datalen = len; in pkcs7_view_content() 44 prep->datalen = saved_prep_datalen; in pkcs7_view_content() 61 prep->data, prep->datalen, in pkcs7_preparse()
|
D | tpm_parser.c | 36 static struct tpm_key *tpm_parse(const void *data, size_t datalen) in tpm_parse() argument 44 ret = asn1_ber_decoder(&tpm_decoder, &ctx, data, datalen); in tpm_parse() 64 if (prep->datalen > 256 * 4) in tpm_key_preparse() 67 tk = tpm_parse(prep->data, prep->datalen); in tpm_key_preparse()
|
/Linux-v5.4/drivers/i2c/busses/ |
D | i2c-mlxcpld.c | 113 u8 *data, u8 datalen) in mlxcpld_i2c_read_comm() argument 117 switch (datalen) { in mlxcpld_i2c_read_comm() 132 mlxcpld_i2c_lpc_read_buf(data, datalen, addr); in mlxcpld_i2c_read_comm() 138 u8 *data, u8 datalen) in mlxcpld_i2c_write_comm() argument 142 switch (datalen) { in mlxcpld_i2c_write_comm() 157 mlxcpld_i2c_lpc_write_buf(data, datalen, addr); in mlxcpld_i2c_write_comm() 302 u8 datalen, val; in mlxcpld_i2c_wait_for_tc() local 339 &datalen, 1); in mlxcpld_i2c_wait_for_tc() 340 if (unlikely(datalen > (I2C_SMBUS_BLOCK_MAX + 1))) { in mlxcpld_i2c_wait_for_tc() 345 datalen = priv->xfer.data_len; in mlxcpld_i2c_wait_for_tc() [all …]
|