Home
last modified time | relevance | path

Searched refs:key (Results 1 – 25 of 96) sorted by relevance

1234

/spdk/lib/keyring/
H A Dkeyring.c51 struct spdk_key *key; in keyring_find_key() local
53 TAILQ_FOREACH(key, &g_keyring.keys, tailq) { in keyring_find_key()
54 if (strcmp(keyring_get_key_name(key->name), in keyring_find_key()
56 return key; in keyring_find_key()
64 keyring_free_key(struct spdk_key *key) in keyring_free_key() argument
66 assert(key->refcnt == 0); in keyring_free_key()
68 free(key->name); in keyring_free_key()
69 free(key); in keyring_free_key()
73 keyring_put_key(struct spdk_key *key) in keyring_put_key() argument
75 assert(key in keyring_put_key()
92 struct spdk_key *key = NULL; spdk_keyring_add_key() local
143 keyring_remove_key(struct spdk_key * key) keyring_remove_key() argument
156 struct spdk_key *key; spdk_keyring_remove_key() local
174 struct spdk_key *key = NULL; keyring_probe_key() local
208 struct spdk_key *key; spdk_keyring_get_key() local
227 spdk_keyring_put_key(struct spdk_key * key) spdk_keyring_put_key() argument
244 spdk_key_dup(struct spdk_key * key) spdk_key_dup() argument
254 spdk_key_get_name(struct spdk_key * key) spdk_key_get_name() argument
260 spdk_key_get_key(struct spdk_key * key,void * buf,int len) spdk_key_get_key() argument
272 spdk_key_get_ctx(struct spdk_key * key) spdk_key_get_ctx() argument
279 spdk_key_get_module(struct spdk_key * key) spdk_key_get_module() argument
298 spdk_keyring_for_each_key(struct spdk_keyring * keyring,void * ctx,void (* fn)(void * ctx,struct spdk_key * key),uint32_t flags) spdk_keyring_for_each_key() argument
300 struct spdk_key *key, *tmp; spdk_keyring_for_each_key() local
323 keyring_dump_key_info(struct spdk_key * key,struct spdk_json_write_ctx * w) keyring_dump_key_info() argument
404 struct spdk_key *key; spdk_keyring_cleanup() local
[all...]
/spdk/test/blobfs/rocksdb/
H A Dpostprocess.py25 key = ThreadModule(fields[2], fields[3]) variable
26 thread_module_samples.setdefault(key, 0)
27 thread_module_samples[key] += int(fields[1])
28 key = FunctionModule(fields[5], fields[3]) variable
29 function_module_samples.setdefault(key, 0)
30 function_module_samples[key] += int(fields[1])
33 key = fields[3] variable
34 module_samples.setdefault(key, 0)
35 module_samples[key] += int(fields[1])
43 …for key, value in sorted(list(thread_module_samples.items()), key=operator.itemgetter(1), reverse=…
[all …]
/spdk/test/unit/lib/keyring/keyring.c/
H A Dkeyring_ut.c26 ut_keyring_add_key(struct spdk_key *key, void *ctx) in ut_keyring_add_key() argument
29 struct ut_key *utkey = spdk_key_get_ctx(key); in ut_keyring_add_key()
37 /* Use spdk_json_val's start/len to pass a buffer with the key */ in ut_keyring_add_key()
47 ut_keyring_remove_key(struct spdk_key *key) in ut_keyring_remove_key() argument
49 struct ut_key *utkey = spdk_key_get_ctx(key); in ut_keyring_remove_key()
56 ut_keyring_get_key(struct spdk_key *key, void *buf, int len) in ut_keyring_get_key() argument
58 struct ut_key *utkey = spdk_key_get_ctx(key); in ut_keyring_get_key()
85 struct spdk_key *key; in test_keyring_add_remove() local
91 /* Add a key */ in test_keyring_add_remove()
100 /* Get a reference to that key */ in test_keyring_add_remove()
179 struct spdk_key *key, *tmp; test_keyring_get_put() local
[all...]
/spdk/test/common/config/pkgdep/patches/qat/
H A D0001-strlcpy-to-strscpy.patch
/spdk/test/nvmf/target/
H A Dauth.sh49 local ctl key ckey dev timeout
51 ctl="$1" key="$2" ckey="$3" timeout="$4"
54 [[ -z "$key" ]] || echo "$key" > "$dev/dhchap_secret"
65 local digest dhgroup key ckey qpairs
67 digest="$1" dhgroup="$2" key="key$3"
68 ckey=(${ckeys[$3]:+--dhchap-ctrlr-key "ckey$3"})
70 rpc_cmd nvmf_subsystem_add_host "$subnqn" "$hostnqn" --dhchap-key "$key" "
[all...]
/spdk/module/keyring/file/
H A Dkeyring.c31 SPDK_ERRLOG("Could not stat key file '%s': %s\n", path, spdk_strerror(errsv)); in keyring_file_check_path()
36 SPDK_ERRLOG("Invalid permissions for key file '%s': 0%o\n", path, st.st_mode); in keyring_file_check_path()
48 keyring_file_write_key_config(void *ctx, struct spdk_key *key) in keyring_file_write_key_config()
53 if (spdk_key_get_module(key) != &g_keyring_file) { in keyring_file_write_key_config()
57 kkey = spdk_key_get_ctx(key); in keyring_file_write_key_config()
62 spdk_json_write_named_string(w, "name", spdk_key_get_name(key)); in keyring_file_write_key_config()
75 keyring_file_dump_info(struct spdk_key *key, struct spdk_json_write_ctx *w) in keyring_file_dump_info()
77 struct keyring_file_key *kkey = spdk_key_get_ctx(key); in keyring_file_dump_info()
89 keyring_file_get_key(struct spdk_key *key, void *buf, int len) in keyring_file_get_key()
91 struct keyring_file_key *kkey = spdk_key_get_ctx(key); in keyring_file_get_key()
46 keyring_file_write_key_config(void * ctx,struct spdk_key * key) keyring_file_write_key_config() argument
73 keyring_file_dump_info(struct spdk_key * key,struct spdk_json_write_ctx * w) keyring_file_dump_info() argument
87 keyring_file_get_key(struct spdk_key * key,void * buf,int len) keyring_file_get_key() argument
123 keyring_file_remove_key(struct spdk_key * key) keyring_file_remove_key() argument
131 keyring_file_add_key(struct spdk_key * key,void * ctx) keyring_file_add_key() argument
[all...]
/spdk/lib/iscsi/
H A Dparam.c39 free(param->key); in iscsi_param_free()
45 iscsi_find_key_in_array(const char *key, const char *array[]) in iscsi_find_key_in_array() argument
50 if (strcasecmp(key, array[i]) == 0) { in iscsi_find_key_in_array()
58 iscsi_param_find(struct iscsi_param *params, const char *key) in iscsi_param_find() argument
62 if (params == NULL || key == NULL) { in iscsi_param_find()
66 if (param->key != NULL && param->key[0] == key[0] in iscsi_param_find()
67 && strcasecmp(param->key, key) == 0) { in iscsi_param_find()
75 iscsi_param_del(struct iscsi_param **params, const char *key) in iscsi_param_del() argument
79 SPDK_DEBUGLOG(iscsi, "del %s\n", key); in iscsi_param_del()
80 if (params == NULL || key == NULL) { in iscsi_param_del()
[all …]
H A Dparam.h28 char *key; member
37 iscsi_param_find(struct iscsi_param *params, const char *key);
38 int iscsi_param_del(struct iscsi_param **params, const char *key);
39 int iscsi_param_add(struct iscsi_param **params, const char *key,
41 int iscsi_param_set(struct iscsi_param *params, const char *key,
43 int iscsi_param_set_int(struct iscsi_param *params, const char *key, uint32_t val);
46 char *iscsi_param_get_val(struct iscsi_param *params, const char *key);
47 int iscsi_param_eq_val(struct iscsi_param *params, const char *key,
/spdk/lib/conf/
H A Dconf.c20 char *key; member
98 if (ip->key != NULL) { in free_conf_item()
99 free(ip->key); in free_conf_item()
261 find_cf_nitem(struct spdk_conf_section *sp, const char *key, int idx) in find_cf_nitem() argument
266 if (key == NULL || key[0] == '\0') { in find_cf_nitem()
272 if (ip->key != NULL && ip->key[0] == key[0] in find_cf_nitem()
273 && strcasecmp(ip->key, key) == 0) { in find_cf_nitem()
341 spdk_conf_section_get_nmval(struct spdk_conf_section *sp, const char *key, int idx1, int idx2) in spdk_conf_section_get_nmval() argument
347 ip = find_cf_nitem(sp, key, idx1); in spdk_conf_section_get_nmval()
367 spdk_conf_section_get_nval(struct spdk_conf_section *sp, const char *key, int idx) in spdk_conf_section_get_nval() argument
[all …]
/spdk/python/spdk/rpc/
H A Dcmd_parser.py16 for key, value in kwargs.items():
18 keys.append(key)
20 for key in keys:
21 kwargs.pop(key, None)
25 for key, value in defaults.items():
26 if key not in kwargs:
27 kwargs[key] = value
/spdk/module/keyring/linux/
H A Dkeyring.c71 linux_add_key(struct spdk_key *key, void *ctx) in linux_add_key() argument
73 struct linux_key *lkey = spdk_key_get_ctx(key); in linux_add_key()
75 return linux_find_key(spdk_key_get_name(key), &lkey->sn); in linux_add_key()
79 linux_remove_key(struct spdk_key *key) in linux_remove_key() argument
85 linux_get_key(struct spdk_key *key, void *buf, int len) in linux_get_key() argument
87 struct linux_key *lkey = spdk_key_get_ctx(key); in linux_get_key()
93 SPDK_ERRLOG("Failed to read key '%s': %s\n", spdk_key_get_name(key), in linux_get_key()
99 SPDK_ERRLOG("Failed to read key '%s': buffer to small\n", spdk_key_get_name(key)); in linux_get_key()
113 linux_dump_info(struct spdk_key *key, struct spdk_json_write_ctx *w) in linux_dump_info() argument
115 struct linux_key *lkey = spdk_key_get_ctx(key); in linux_dump_info()
/spdk/module/bdev/crypto/
H A Dvbdev_crypto_rpc.c54 create_crypto_opts(struct rpc_construct_crypto *rpc, struct spdk_accel_crypto_key *key, in create_crypto_opts() argument
74 opts->key = key; in create_crypto_opts()
90 struct spdk_accel_crypto_key *key = NULL; in rpc_bdev_crypto_create() local
110 key = spdk_accel_crypto_key_get(req.param.key_name); in rpc_bdev_crypto_create()
111 if (key) { in rpc_bdev_crypto_create()
120 if (!key) { in rpc_bdev_crypto_create()
149 key = spdk_accel_crypto_key_get(req.param.key_name); in rpc_bdev_crypto_create()
150 if (key) { in rpc_bdev_crypto_create()
155 key = spdk_accel_crypto_key_get(req.param.key_name); in rpc_bdev_crypto_create()
156 created_key = key; in rpc_bdev_crypto_create()
[all …]
/spdk/include/spdk/
H A Dkeyring.h38 void spdk_keyring_put_key(struct spdk_key *key);
47 const char *spdk_key_get_name(struct spdk_key *key);
58 int spdk_key_get_key(struct spdk_key *key, void *buf, int len);
68 struct spdk_key *spdk_key_dup(struct spdk_key *key);
98 void (*fn)(void *ctx, struct spdk_key *key), uint32_t flags);
/spdk/test/nvmf/host/
H A Dauth.sh42 local digest dhgroup keyid key ckey
45 key=$(< "${keys[keyid]}")
50 echo "$key" > "$nvmet_host/dhchap_key"
58 ckey=(${ckeys[keyid]:+--dhchap-ctrlr-key "ckey${keyid}"})
63 --dhchap-key "key${keyid}" "${ckey[@]}"
72 # Set host/ctrlr key pairs with one combination w/o bidirectional authentication
81 rpc_cmd keyring_file_add_key "key$i" "${keys[i]}"
99 # Check all digest/dhgroup/key combinations
109 # Ensure that a missing key result
[all...]
/spdk/lib/nvme/
H A Dnvme.c1224 parse_next_key(const char **str, char *key, char *val, size_t key_buf_size, size_t val_buf_size) in parse_next_key()
1254 memcpy(key, *str, key_len); in spdk_nvme_transport_id_parse()
1255 key[key_len] = '\0'; in spdk_nvme_transport_id_parse()
1257 *str += key_len + 1; /* Skip key: */ in spdk_nvme_transport_id_parse()
1282 char key[32]; in spdk_nvme_transport_id_parse()
1291 val_len = parse_next_key(&str, key, val, sizeof(key), sizeof(val)); in spdk_nvme_transport_id_parse()
1298 if (strcasecmp(key, "trtype") == 0) { in spdk_nvme_transport_id_parse()
1307 } else if (strcasecmp(key, "adrfam") == 0) { in spdk_nvme_transport_id_parse()
1312 } else if (strcasecmp(key, "tradd in spdk_nvme_transport_id_parse()
1186 parse_next_key(const char ** str,char * key,char * val,size_t key_buf_size,size_t val_buf_size) parse_next_key() argument
1244 char key[32]; spdk_nvme_transport_id_parse() local
1341 char key[key_size]; spdk_nvme_host_id_parse() local
1458 char key[32]; spdk_nvme_prchk_flags_parse() local
[all...]
H A Dnvme_auth.c213 nvme_auth_transform_key(struct spdk_key *key, int hash, const char *nqn, in nvme_auth_transform_key() argument
224 SPDK_ERRLOG("Key buffer too small: %zu < %zu (key=%s)\n", outlen, keylen, in nvme_auth_transform_key()
225 spdk_key_get_name(key)); in nvme_auth_transform_key()
235 SPDK_ERRLOG("Unsupported key hash: 0x%x (key=%s)\n", hash, spdk_key_get_name(key)); in nvme_auth_transform_key()
277 nvme_auth_get_key(struct spdk_key *key, const char *nqn, void *buf, size_t buflen) in nvme_auth_get_key() argument
285 rc = spdk_key_get_key(key, keystr, NVME_AUTH_CHAP_KEY_MAX_SIZE); in nvme_auth_get_key()
287 SPDK_ERRLOG("Failed to load key=%s: %s\n", spdk_key_get_name(key), in nvme_auth_get_key()
339 nvme_auth_augment_challenge(const void * cval,size_t clen,const void * key,size_t keylen,void * caval,size_t * calen,enum spdk_nvmf_dhchap_hash hash) nvme_auth_augment_challenge() argument
403 spdk_nvme_dhchap_calculate(struct spdk_key * key,enum spdk_nvmf_dhchap_hash hash,const char * type,uint32_t seq,uint16_t tid,uint8_t scc,const char * nqn1,const char * nqn2,const void * dhkey,size_t dhlen,const void * cval,void * rval) spdk_nvme_dhchap_calculate() argument
487 EVP_PKEY *key = NULL; spdk_nvme_dhchap_generate_dhkey() local
515 spdk_nvme_dhchap_dhkey_free(struct spdk_nvme_dhchap_dhkey ** key) spdk_nvme_dhchap_dhkey_free() argument
528 EVP_PKEY *key = (EVP_PKEY *)dhkey; spdk_nvme_dhchap_dhkey_get_pubkey() local
565 EVP_PKEY *result = NULL, *key = NULL; nvme_auth_get_peerkey() local
618 EVP_PKEY *key = (EVP_PKEY *)dhkey; spdk_nvme_dhchap_dhkey_derive_secret() local
[all...]
/spdk/module/accel/dpdk_cryptodev/
H A Daccel_dpdk_cryptodev.c128 void *session_encrypt; /* encryption session for this key */
129 void *session_decrypt; /* decryption session for this key */
130 struct rte_crypto_sym_xform cipher_xform; /* crypto control struct for this key */
147 /* Array of qpairs for each available device. The specific device will be selected depending on the crypto key */
437 struct accel_dpdk_cryptodev_key_priv *key) in accel_dpdk_find_key_handle_in_channel()
441 if (key->driver == ACCEL_DPDK_CRYPTODEV_DRIVER_MLX5_PCI) { in accel_dpdk_find_key_handle_in_channel()
442 /* Crypto key is registered on all available devices while io_channel opens CQ/QP on a single device. in accel_dpdk_find_key_handle_in_channel()
443 * We need to iterate a list of key entries to find a suitable device */ in accel_dpdk_find_key_handle_in_channel()
444 TAILQ_FOREACH(key_handle, &key->dev_keys, link) { in accel_dpdk_find_key_handle_in_channel()
452 return TAILQ_FIRST(&key in accel_dpdk_find_key_handle_in_channel()
436 accel_dpdk_find_key_handle_in_channel(struct accel_dpdk_cryptodev_io_channel * crypto_ch,struct accel_dpdk_cryptodev_key_priv * key) accel_dpdk_find_key_handle_in_channel() argument
1349 accel_dpdk_cryptodev_key_handle_configure(struct spdk_accel_crypto_key * key,struct accel_dpdk_cryptodev_key_handle * key_handle) accel_dpdk_cryptodev_key_handle_configure() argument
1395 accel_dpdk_cryptodev_key_deinit(struct spdk_accel_crypto_key * key) accel_dpdk_cryptodev_key_deinit() argument
1443 accel_dpdk_cryptodev_key_init(struct spdk_accel_crypto_key * key) accel_dpdk_cryptodev_key_init() argument
[all...]
/spdk/python/spdk/sma/volume/
H A Dcrypto_bdev.py29 def setup(self, volume_id, key, cipher, key2=None, tweak_mode=None): argument
38 'key': key,
69 def verify(self, volume_id, key, cipher, key2=None, tweak_mode=None): argument
72 if ((key is None and crypto_bdev is not None) or (key is not None and crypto_bdev is None)):
75 if key is None:
89 if crypto_key['key'].lower() != key.lower():
H A Dcrypto.py26 def setup(self, volume_id, key, cipher, key2=None, tweak_mode=None): argument
37 def verify(self, volume_id, key, cipher, key2=None, tweak_mode=None): argument
40 volume. If key is None, this method ensures that the volume doesn't use crypto. If
59 def setup(self, volume_id, key, cipher, key2=None, tweak_mode=None): argument
65 def verify(self, volume_id, key, cipher, key2=None, tweak_mode=None): argument
/spdk/test/keyring/
H A Dcommon.sh15 local name key digest path
17 name="$1" key="$2" digest="$3"
20 format_interchange_psk "$key" "$digest" > "$path"
/spdk/scripts/
H A Drpc_http_proxy.py76 key = "" variable in ServerHandler
95 if self.headers['Authorization'] != 'Basic ' + self.key:
134 key = base64.b64encode((args.user+':'+args.password).encode(encoding='ascii')).decode('ascii')
137 ServerHandler.key = key
H A Dgenconfig.py46 for key, value in sorted(defs.items()):
48 print("#undef {0}".format(key))
50 print("#define {0} {1}".format(key, value))
/spdk/test/nvmf/fips/
H A Dfips.sh22 local key=$1
31 keyring_file_add_key key0 "$key"
137 key="NVMeTLSkey-1:01:VRLbtnN9AQb2WXW3c9+wEf/DRLz0QuLdbYvEhwtdWwNf9LrZ:"
139 echo -n "$key" > $key_path
/spdk/test/json_config/
H A Dconfig_filter.py18 for key in sorted(o.keys()):
19 sorted_o[key] = sort_json_object(o[key])
/spdk/lib/json/
H A Djson_util.c538 json_value(struct spdk_json_val *key) in json_value() argument
540 return key->type == SPDK_JSON_VAL_NAME ? key + 1 : NULL; in json_value()
544 spdk_json_find(struct spdk_json_val *object, const char *key_name, struct spdk_json_val **key, in spdk_json_find() argument
584 if (key) { in spdk_json_find()
585 *key = _key; in spdk_json_find()
597 struct spdk_json_val **key, struct spdk_json_val **val) in spdk_json_find_string() argument
599 return spdk_json_find(object, key_name, key, val, SPDK_JSON_VAL_STRING); in spdk_json_find_string()
604 struct spdk_json_val **key, struct spdk_json_val **val) in spdk_json_find_array() argument
606 return spdk_json_find(object, key_name, key, val, SPDK_JSON_VAL_ARRAY_BEGIN); in spdk_json_find_array()

1234