/Linux-v5.4/crypto/asymmetric_keys/ |
D | pkcs7_key_type.c | 31 struct key_preparsed_payload *prep = ctx; in pkcs7_view_content() local 36 saved_prep_data = prep->data; in pkcs7_view_content() 37 saved_prep_datalen = prep->datalen; in pkcs7_view_content() 38 prep->data = data; in pkcs7_view_content() 39 prep->datalen = len; in pkcs7_view_content() 41 ret = user_preparse(prep); in pkcs7_view_content() 43 prep->data = saved_prep_data; in pkcs7_view_content() 44 prep->datalen = saved_prep_datalen; in pkcs7_view_content() 51 static int pkcs7_preparse(struct key_preparsed_payload *prep) in pkcs7_preparse() argument 61 prep->data, prep->datalen, in pkcs7_preparse() [all …]
|
D | tpm_parser.c | 56 static int tpm_key_preparse(struct key_preparsed_payload *prep) in tpm_key_preparse() argument 64 if (prep->datalen > 256 * 4) in tpm_key_preparse() 67 tk = tpm_parse(prep->data, prep->datalen); in tpm_key_preparse() 74 prep->payload.data[asym_subtype] = &asym_tpm_subtype; in tpm_key_preparse() 75 prep->payload.data[asym_key_ids] = NULL; in tpm_key_preparse() 76 prep->payload.data[asym_crypto] = tk; in tpm_key_preparse() 77 prep->payload.data[asym_auth] = NULL; in tpm_key_preparse() 78 prep->quotalen = 100; in tpm_key_preparse()
|
D | pkcs8_parser.c | 136 static int pkcs8_key_preparse(struct key_preparsed_payload *prep) in pkcs8_key_preparse() argument 140 pub = pkcs8_parse(prep->data, prep->datalen); in pkcs8_key_preparse() 149 prep->payload.data[asym_subtype] = &public_key_subtype; in pkcs8_key_preparse() 150 prep->payload.data[asym_key_ids] = NULL; in pkcs8_key_preparse() 151 prep->payload.data[asym_crypto] = pub; in pkcs8_key_preparse() 152 prep->payload.data[asym_auth] = NULL; in pkcs8_key_preparse() 153 prep->quotalen = 100; in pkcs8_key_preparse()
|
D | x509_public_key.c | 156 static int x509_key_preparse(struct key_preparsed_payload *prep) in x509_key_preparse() argument 165 cert = x509_cert_parse(prep->data, prep->datalen); in x509_key_preparse() 224 prep->payload.data[asym_subtype] = &public_key_subtype; in x509_key_preparse() 225 prep->payload.data[asym_key_ids] = kids; in x509_key_preparse() 226 prep->payload.data[asym_crypto] = cert->pub; in x509_key_preparse() 227 prep->payload.data[asym_auth] = cert->sig; in x509_key_preparse() 228 prep->description = desc; in x509_key_preparse() 229 prep->quotalen = 100; in x509_key_preparse()
|
D | asymmetric_type.c | 369 static int asymmetric_key_preparse(struct key_preparsed_payload *prep) in asymmetric_key_preparse() argument 376 if (prep->datalen == 0) in asymmetric_key_preparse() 385 ret = parser->parse(prep); in asymmetric_key_preparse() 415 static void asymmetric_key_free_preparse(struct key_preparsed_payload *prep) in asymmetric_key_free_preparse() argument 417 struct asymmetric_key_subtype *subtype = prep->payload.data[asym_subtype]; in asymmetric_key_free_preparse() 418 struct asymmetric_key_ids *kids = prep->payload.data[asym_key_ids]; in asymmetric_key_free_preparse() 423 subtype->destroy(prep->payload.data[asym_crypto], in asymmetric_key_free_preparse() 424 prep->payload.data[asym_auth]); in asymmetric_key_free_preparse() 428 kfree(prep->description); in asymmetric_key_free_preparse()
|
/Linux-v5.4/security/keys/ |
D | user_defined.c | 59 int user_preparse(struct key_preparsed_payload *prep) in user_preparse() argument 62 size_t datalen = prep->datalen; in user_preparse() 64 if (datalen <= 0 || datalen > 32767 || !prep->data) in user_preparse() 72 prep->quotalen = datalen; in user_preparse() 73 prep->payload.data[0] = upayload; in user_preparse() 75 memcpy(upayload->data, prep->data, datalen); in user_preparse() 83 void user_free_preparse(struct key_preparsed_payload *prep) in user_free_preparse() argument 85 kzfree(prep->payload.data[0]); in user_free_preparse() 101 int user_update(struct key *key, struct key_preparsed_payload *prep) in user_update() argument 107 ret = key_payload_reserve(key, prep->datalen); in user_update() [all …]
|
D | key.c | 422 struct key_preparsed_payload *prep, in __key_instantiate_and_link() argument 440 ret = key->type->instantiate(key, prep); in __key_instantiate_and_link() 462 if (prep->expiry != TIME64_MAX) { in __key_instantiate_and_link() 463 key->expiry = prep->expiry; in __key_instantiate_and_link() 464 key_schedule_gc(prep->expiry + key_gc_delay); in __key_instantiate_and_link() 500 struct key_preparsed_payload prep; in key_instantiate_and_link() local 504 memset(&prep, 0, sizeof(prep)); in key_instantiate_and_link() 505 prep.data = data; in key_instantiate_and_link() 506 prep.datalen = datalen; in key_instantiate_and_link() 507 prep.quotalen = key->type->def_datalen; in key_instantiate_and_link() [all …]
|
D | big_key.c | 200 int big_key_preparse(struct key_preparsed_payload *prep) in big_key_preparse() argument 203 struct path *path = (struct path *)&prep->payload.data[big_key_path]; in big_key_preparse() 207 size_t datalen = prep->datalen, enclen = datalen + ENC_AUTHTAG_SIZE; in big_key_preparse() 210 if (datalen <= 0 || datalen > 1024 * 1024 || !prep->data) in big_key_preparse() 214 prep->quotalen = 16; in big_key_preparse() 216 prep->payload.data[big_key_len] = (void *)(unsigned long)datalen; in big_key_preparse() 229 memcpy(buf->virt, prep->data, datalen); in big_key_preparse() 264 prep->payload.data[big_key_data] = enckey; in big_key_preparse() 276 prep->payload.data[big_key_data] = data; in big_key_preparse() 277 memcpy(data, prep->data, prep->datalen); in big_key_preparse() [all …]
|
D | request_key_auth.c | 42 static int request_key_auth_preparse(struct key_preparsed_payload *prep) in request_key_auth_preparse() argument 47 static void request_key_auth_free_preparse(struct key_preparsed_payload *prep) in request_key_auth_free_preparse() argument 55 struct key_preparsed_payload *prep) in request_key_auth_instantiate() argument 57 rcu_assign_keypointer(key, (struct request_key_auth *)prep->data); in request_key_auth_instantiate()
|
D | trusted.c | 967 struct key_preparsed_payload *prep) in trusted_instantiate() argument 971 size_t datalen = prep->datalen; in trusted_instantiate() 982 if (datalen <= 0 || datalen > 32767 || !prep->data) in trusted_instantiate() 988 memcpy(datablob, prep->data, datalen); in trusted_instantiate() 1068 static int trusted_update(struct key *key, struct key_preparsed_payload *prep) in trusted_update() argument 1073 size_t datalen = prep->datalen; in trusted_update() 1082 if (datalen <= 0 || datalen > 32767 || !prep->data) in trusted_update() 1099 memcpy(datablob, prep->data, datalen); in trusted_update()
|
D | keyring.c | 74 static int keyring_preparse(struct key_preparsed_payload *prep); 75 static void keyring_free_preparse(struct key_preparsed_payload *prep); 77 struct key_preparsed_payload *prep); 123 static int keyring_preparse(struct key_preparsed_payload *prep) in keyring_preparse() argument 125 return prep->datalen != 0 ? -EINVAL : 0; in keyring_preparse() 131 static void keyring_free_preparse(struct key_preparsed_payload *prep) in keyring_free_preparse() argument 141 struct key_preparsed_payload *prep) in keyring_instantiate() argument
|
/Linux-v5.4/net/rxrpc/ |
D | key.c | 88 static int rxrpc_preparse_xdr_rxkad(struct key_preparsed_payload *prep, in rxrpc_preparse_xdr_rxkad() argument 111 prep->quotalen = datalen + plen; in rxrpc_preparse_xdr_rxkad() 152 prep->payload.data[1] = (void *)((unsigned long)prep->payload.data[1] + 1); in rxrpc_preparse_xdr_rxkad() 155 for (pptoken = (struct rxrpc_key_token **)&prep->payload.data[0]; in rxrpc_preparse_xdr_rxkad() 161 if (expiry < prep->expiry) in rxrpc_preparse_xdr_rxkad() 162 prep->expiry = expiry; in rxrpc_preparse_xdr_rxkad() 429 static int rxrpc_preparse_xdr_rxk5(struct key_preparsed_payload *prep, in rxrpc_preparse_xdr_rxk5() argument 445 prep->quotalen = datalen + toklen; in rxrpc_preparse_xdr_rxk5() 532 for (pptoken = (struct rxrpc_key_token **)&prep->payload.data[0]; in rxrpc_preparse_xdr_rxk5() 538 if (expiry < prep->expiry) in rxrpc_preparse_xdr_rxk5() [all …]
|
/Linux-v5.4/net/dns_resolver/ |
D | dns_key.c | 92 dns_resolver_preparse(struct key_preparsed_payload *prep) in dns_resolver_preparse() argument 98 int datalen = prep->datalen, result_len = 0; in dns_resolver_preparse() 99 const char *data = prep->data, *end, *opt; in dns_resolver_preparse() 189 prep->payload.data[dns_key_error] = ERR_PTR(-derrno); in dns_resolver_preparse() 202 if (prep->payload.data[dns_key_error]) { in dns_resolver_preparse() 203 kleave(" = 0 [h_error %ld]", PTR_ERR(prep->payload.data[dns_key_error])); in dns_resolver_preparse() 209 prep->quotalen = result_len; in dns_resolver_preparse() 221 prep->payload.data[dns_key_data] = upayload; in dns_resolver_preparse() 229 static void dns_resolver_free_preparse(struct key_preparsed_payload *prep) in dns_resolver_free_preparse() argument 233 kfree(prep->payload.data[dns_key_data]); in dns_resolver_free_preparse()
|
/Linux-v5.4/include/linux/ |
D | key-type.h | 83 int (*preparse)(struct key_preparsed_payload *prep); 87 void (*free_preparse)(struct key_preparsed_payload *prep); 93 int (*instantiate)(struct key *key, struct key_preparsed_payload *prep); 100 int (*update)(struct key *key, struct key_preparsed_payload *prep); 189 extern int generic_key_instantiate(struct key *key, struct key_preparsed_payload *prep);
|
/Linux-v5.4/net/ceph/ |
D | crypto.c | 297 static int ceph_key_preparse(struct key_preparsed_payload *prep) in ceph_key_preparse() argument 300 size_t datalen = prep->datalen; in ceph_key_preparse() 305 if (datalen <= 0 || datalen > 32767 || !prep->data) in ceph_key_preparse() 314 p = (void *)prep->data; in ceph_key_preparse() 315 ret = ceph_crypto_key_decode(ckey, &p, (char*)prep->data+datalen); in ceph_key_preparse() 319 prep->payload.data[0] = ckey; in ceph_key_preparse() 320 prep->quotalen = datalen; in ceph_key_preparse() 329 static void ceph_key_free_preparse(struct key_preparsed_payload *prep) in ceph_key_free_preparse() argument 331 struct ceph_crypto_key *ckey = prep->payload.data[0]; in ceph_key_free_preparse()
|
/Linux-v5.4/net/smc/ |
D | smc_tx.h | 23 union smc_host_cursor sent, prep; in smc_tx_prepared_sends() local 26 smc_curs_copy(&prep, &conn->tx_curs_prep, conn); in smc_tx_prepared_sends() 27 return smc_curs_diff(conn->sndbuf_desc->len, &sent, &prep); in smc_tx_prepared_sends()
|
D | smc_tx.c | 138 union smc_host_cursor prep; in smc_tx_sendmsg() local 182 smc_curs_copy(&prep, &conn->tx_curs_prep, conn); in smc_tx_sendmsg() 183 tx_cnt_prep = prep.count; in smc_tx_sendmsg() 212 smc_curs_add(conn->sndbuf_desc->len, &prep, copylen); in smc_tx_sendmsg() 213 smc_curs_copy(&conn->tx_curs_prep, &prep, conn); in smc_tx_sendmsg() 406 union smc_host_cursor sent, prep, prod, cons; in smc_tx_rdma_writes() local 413 smc_curs_copy(&prep, &conn->tx_curs_prep, conn); in smc_tx_rdma_writes() 415 to_send = smc_curs_diff(conn->sndbuf_desc->len, &sent, &prep); in smc_tx_rdma_writes()
|
/Linux-v5.4/include/keys/ |
D | user-type.h | 38 extern int user_preparse(struct key_preparsed_payload *prep); 39 extern void user_free_preparse(struct key_preparsed_payload *prep); 40 extern int user_update(struct key *key, struct key_preparsed_payload *prep);
|
D | big_key-type.h | 15 extern int big_key_preparse(struct key_preparsed_payload *prep); 16 extern void big_key_free_preparse(struct key_preparsed_payload *prep);
|
D | asymmetric-parser.h | 27 int (*parse)(struct key_preparsed_payload *prep);
|
/Linux-v5.4/certs/ |
D | blacklist.c | 54 static int blacklist_preparse(struct key_preparsed_payload *prep) in blacklist_preparse() argument 56 if (prep->datalen > 0) in blacklist_preparse() 61 static void blacklist_free_preparse(struct key_preparsed_payload *prep) in blacklist_free_preparse() argument
|
/Linux-v5.4/fs/cifs/ |
D | cifs_spnego.c | 37 cifs_spnego_key_instantiate(struct key *key, struct key_preparsed_payload *prep) in cifs_spnego_key_instantiate() argument 43 payload = kmemdup(prep->data, prep->datalen, GFP_KERNEL); in cifs_spnego_key_instantiate()
|
/Linux-v5.4/drivers/soundwire/ |
D | stream.c | 418 bool prep) in sdw_prep_deprep_slave_ports() argument 440 prep_ch.prepare = prep; in sdw_prep_deprep_slave_ports() 452 if (prep && intr) { in sdw_prep_deprep_slave_ports() 453 ret = sdw_configure_dpn_intr(s_rt->slave, p_rt->num, prep, in sdw_prep_deprep_slave_ports() 466 if (prep) in sdw_prep_deprep_slave_ports() 496 if (!prep && intr) in sdw_prep_deprep_slave_ports() 497 ret = sdw_configure_dpn_intr(s_rt->slave, p_rt->num, prep, in sdw_prep_deprep_slave_ports() 505 bool prep) in sdw_prep_deprep_master_ports() argument 515 prep_ch.prepare = prep; /* Prepare/De-prepare */ in sdw_prep_deprep_master_ports() 538 static int sdw_prep_deprep_ports(struct sdw_master_runtime *m_rt, bool prep) in sdw_prep_deprep_ports() argument [all …]
|
/Linux-v5.4/security/keys/encrypted-keys/ |
D | encrypted.c | 794 struct key_preparsed_payload *prep) in encrypted_instantiate() argument 802 size_t datalen = prep->datalen; in encrypted_instantiate() 805 if (datalen <= 0 || datalen > 32767 || !prep->data) in encrypted_instantiate() 812 memcpy(datablob, prep->data, datalen); in encrypted_instantiate() 854 static int encrypted_update(struct key *key, struct key_preparsed_payload *prep) in encrypted_update() argument 861 size_t datalen = prep->datalen; in encrypted_update() 866 if (datalen <= 0 || datalen > 32767 || !prep->data) in encrypted_update() 874 memcpy(buf, prep->data, datalen); in encrypted_update()
|
/Linux-v5.4/drivers/dma/ioat/ |
D | Makefile | 3 ioatdma-y := init.o dma.o prep.o dca.o sysfs.o
|