/freebsd-11-stable/sys/geom/eli/ |
H A D | g_eli_key.c | 55 g_eli_mkey_verify(const unsigned char *mkey, const unsigned char *key) argument 66 odhmac = mkey + G_ELI_DATAIVKEYLEN; 69 g_eli_crypto_hmac(hmkey, sizeof(hmkey), mkey, G_ELI_DATAIVKEYLEN, 85 g_eli_mkey_hmac(unsigned char *mkey, const unsigned char *key) argument 95 odhmac = mkey + G_ELI_DATAIVKEYLEN; 97 g_eli_crypto_hmac(hmkey, sizeof(hmkey), mkey, G_ELI_DATAIVKEYLEN, 109 unsigned char *mkey, unsigned nkey) 137 bcopy(tmpmkey, mkey, G_ELI_DATAIVKEYLEN); 155 const unsigned char *key, unsigned char *mkey, unsigned *nkeyp) 164 error = g_eli_mkey_decrypt(md, key, mkey, nke 108 g_eli_mkey_decrypt(const struct g_eli_metadata *md, const unsigned char *key, unsigned char *mkey, unsigned nkey) argument 154 g_eli_mkey_decrypt_any(const struct g_eli_metadata *md, const unsigned char *key, unsigned char *mkey, unsigned *nkeyp) argument 182 g_eli_mkey_encrypt(unsigned algo, const unsigned char *key, unsigned keylen, unsigned char *mkey) argument 215 g_eli_mkey_propagate(struct g_eli_softc *sc, const unsigned char *mkey) argument [all...] |
H A D | g_eli_ctl.c | 59 u_char *key, mkey[G_ELI_DATAIVKEYLEN]; local 147 error = g_eli_mkey_decrypt_any(&md, key, mkey, &nkey); 149 error = g_eli_mkey_decrypt(&md, key, mkey, nkey); 168 g_eli_create(req, mp, pp, &md, mkey, nkey); 169 explicit_bzero(mkey, sizeof(mkey)); 264 u_char mkey[G_ELI_DATAIVKEYLEN]; local 353 arc4rand(mkey, sizeof(mkey), 0); 390 g_eli_create(req, mp, pp, &md, mkey, 956 u_char *key, mkey[G_ELI_DATAIVKEYLEN]; local [all...] |
H A D | g_eli_key_cache.c | 183 uint8_t *mkey; local 187 mkey = sc->sc_mkey + sizeof(sc->sc_ivkey); 189 bcopy(mkey, sc->sc_ekey, G_ELI_DATAKEYLEN); 194 g_eli_crypto_hmac(mkey, G_ELI_MAXKEYLEN, "\x10", 1,
|
/freebsd-11-stable/crypto/heimdal/lib/hdb/ |
H A D | mkey.c | 46 hdb_free_master_key(krb5_context context, hdb_master_key mkey) argument 49 while(mkey) { 50 krb5_kt_free_entry(context, &mkey->keytab); 51 if (mkey->crypto) 52 krb5_crypto_destroy(context, mkey->crypto); 53 ptr = mkey; 54 mkey = mkey->next; 62 hdb_master_key *mkey) 66 *mkey 60 hdb_process_master_key(krb5_context context, int kvno, krb5_keyblock *key, krb5_enctype etype, hdb_master_key *mkey) argument 111 read_master_keytab(krb5_context context, const char *filename, hdb_master_key *mkey) argument 148 read_master_mit(krb5_context context, const char *filename, int byteorder, hdb_master_key *mkey) argument 194 read_master_encryptionkey(krb5_context context, const char *filename, hdb_master_key *mkey) argument 241 read_master_krb4(krb5_context context, const char *filename, hdb_master_key *mkey) argument 285 hdb_read_master_key(krb5_context context, const char *filename, hdb_master_key *mkey) argument 342 hdb_write_master_key(krb5_context context, const char *filename, hdb_master_key mkey) argument 366 _hdb_find_master_key(uint32_t *mkvno, hdb_master_key mkey) argument 383 _hdb_mkey_version(hdb_master_key mkey) argument 407 hdb_unseal_key_mkey(krb5_context context, Key *k, hdb_master_key mkey) argument 460 hdb_unseal_keys_mkey(krb5_context context, hdb_entry *ent, hdb_master_key mkey) argument 491 hdb_seal_key_mkey(krb5_context context, Key *k, hdb_master_key mkey) argument 527 hdb_seal_keys_mkey(krb5_context context, hdb_entry *ent, hdb_master_key mkey) argument 564 hdb_master_key mkey; local [all...] |
H A D | keytab.c | 40 char *mkey; member in struct:hdb_data 52 * HDB:[HDBFORMAT:database-specific-data[:mkey=mkey-file]] 59 const char *db, *mkey; local 67 mkey = strstr(name, ":mkey="); 68 if(mkey == NULL || mkey[5] == '\0') { 79 d->mkey = NULL; 81 d->dbname = malloc(mkey 134 find_db(krb5_context context, char **dbname, char **mkey, krb5_const_principal principal) argument 184 const char *mkey = d->mkey; local 269 const char *mkey = d->mkey; local [all...] |
/freebsd-11-stable/sys/dev/mlx5/mlx5_core/ |
H A D | mlx5_mr.c | 52 struct mlx5_core_mr *mkey, 91 mkey->iova = MLX5_GET64(mkc, mkc, start_addr); 92 mkey->size = MLX5_GET64(mkc, mkc, len); 93 mkey->key = mlx5_idx_to_mkey(mkey_index) | key; 94 mkey->pd = MLX5_GET(mkc, mkc, pd); 96 mlx5_core_dbg(dev, "out 0x%x, key 0x%x, mkey 0x%x\n", 97 mkey_index, key, mkey->key); 101 err = radix_tree_insert(&table->tree, mlx5_mkey_to_idx(mkey->key), mkey); 105 mkey 51 mlx5_core_create_mkey_cb(struct mlx5_core_dev *dev, struct mlx5_core_mr *mkey, struct mlx5_async_ctx *async_ctx, u32 *in, int inlen, u32 *out, int outlen, mlx5_async_cbk_t callback, struct mlx5_async_work *context) argument 113 mlx5_core_create_mkey(struct mlx5_core_dev *dev, struct mlx5_core_mr *mkey, u32 *in, int inlen) argument 122 mlx5_core_destroy_mkey(struct mlx5_core_dev *dev, struct mlx5_core_mr *mkey) argument 145 mlx5_core_query_mkey(struct mlx5_core_dev *dev, struct mlx5_core_mr *mkey, u32 *out, int outlen) argument 158 mlx5_core_dump_fill_mkey(struct mlx5_core_dev *dev, struct mlx5_core_mr *_mkey, u32 *mkey) argument [all...] |
/freebsd-11-stable/stand/libsa/geli/ |
H A D | geliboot.c | 100 geli_findkey(struct geli_dev *gdev, u_char *mkey) argument 107 mkey, &keynum) == 0) { 113 if (g_eli_mkey_decrypt_any(&gdev->md, saved_keys[i], mkey, 224 u_char key[G_ELI_USERKEYLEN], mkey[G_ELI_DATAIVKEYLEN], *mkp; local 230 memcpy(&mkey, mkeyp, G_ELI_DATAIVKEYLEN); 235 if (geli_findkey(gdev, mkey) == 0) { 265 error = g_eli_mkey_decrypt_any(&gdev->md, key, mkey, &keynum); 267 explicit_bzero(mkey, sizeof(mkey)); 272 explicit_bzero(mkey, sizeo 363 u_char mkey[G_ELI_DATAIVKEYLEN]; local [all...] |
/freebsd-11-stable/crypto/heimdal/kadmin/ |
H A D | stash.c | 47 hdb_master_key mkey; local 66 ret = hdb_read_master_key(context, opt->key_file_string, &mkey); 101 hdb_free_master_key(context, mkey); 106 ret = hdb_add_master_key(context, &key, &mkey); 124 ret = hdb_write_master_key(context, new, mkey); 149 hdb_free_master_key(context, mkey);
|
/freebsd-11-stable/lib/libc/rpc/ |
H A D | getpublickey.c | 95 char *mkey; local 142 mkey = strsep(&res, "\t "); 143 if (mkey == NULL) { 156 if (strcmp(mkey, key) == 0) {
|
H A D | netnamer.c | 237 char *mkey; local 297 mkey = strsep(&res, "\t "); 298 if (mkey == NULL) { 311 if (strcmp(mkey, key) == 0) {
|
/freebsd-11-stable/crypto/heimdal/kdc/ |
H A D | kstash.c | 72 hdb_master_key mkey; local 94 ret = hdb_read_master_key(context, keyfile, &mkey); 128 ret = hdb_add_master_key(context, &key, &mkey); 143 ret = hdb_write_master_key(context, new, mkey); 168 hdb_free_master_key(context, mkey);
|
/freebsd-11-stable/contrib/ofed/libibmad/ |
H A D | smp.c | 50 void smp_mkey_set(struct ibmad_port *srcport, uint64_t mkey) argument 52 srcport->smp_mkey = mkey; 81 rpc.mkey = srcport->smp_mkey; 120 rpc.mkey = srcport->smp_mkey;
|
/freebsd-11-stable/sys/geom/bde/ |
H A D | g_bde_lock.c | 195 bcopy(gl->mkey, p, sizeof gl->mkey); 196 p += sizeof gl->mkey; 265 bcopy(p, gl->mkey, sizeof gl->mkey); 266 p += sizeof gl->mkey; 425 for (i = 0; i < (int)sizeof(gl->mkey); i++) 426 q1 += gl->mkey[i];
|
H A D | g_bde.h | 116 uint8_t mkey[G_BDE_MKEYLEN]; member in struct:g_bde_key
|
/freebsd-11-stable/contrib/ofed/libmlx5/ |
H A D | wqe.h | 101 uint32_t mkey; member in struct:mlx5_wqe_umr_klm_seg 147 uint32_t mkey; member in struct:mlx5_seg_set_psv
|
H A D | qp.c | 431 data->klm.mkey = htobe32(bind_info->mr->lkey); 445 struct mlx5_wqe_mkey_context_seg *mkey = *seg; local 447 mkey->qpn_mkey = htobe32((rkey & 0xFF) | 452 mkey->access_flags = 0; 453 mkey->free = 0; 455 mkey->access_flags |= 458 mkey->access_flags |= 461 mkey->access_flags |= 464 mkey->access_flags |= 467 mkey [all...] |
/freebsd-11-stable/contrib/ofed/libibumad/ |
H A D | umad_sm.h | 118 __be64 mkey; member in struct:umad_smp
|
/freebsd-11-stable/contrib/ofed/opensm/opensm/ |
H A D | osm_db_pack.c | 92 static inline void pack_mkey(uint64_t mkey, char *p_mkey_str) argument 94 sprintf(p_mkey_str, "0x%016" PRIx64, mkey); 245 IN uint64_t mkey) 251 pack_mkey(mkey, mkey_str); 244 osm_db_guid2mkey_set(IN osm_db_domain_t * p_g2m, IN uint64_t guid, IN uint64_t mkey) argument
|
/freebsd-11-stable/sys/ofed/include/rdma/ |
H A D | ib_smi.h | 59 __be64 mkey; member in struct:ib_smp 89 __be64 mkey; member in struct:ib_port_info
|
H A D | opa_smi.h | 67 __be64 mkey; member in struct:opa_smp
|
/freebsd-11-stable/contrib/ofed/opensm/include/opensm/ |
H A D | osm_db_pack.h | 301 * Get the mkey for the given guid. 316 * [out] Pointer to the resulting mkey in host order. 331 * Set the mkey for the given guid. 336 IN uint64_t mkey); 345 * mkey 346 * [in] The mkey value to set, in host order
|
/freebsd-11-stable/sys/dev/mlx5/mlx5_fpga/ |
H A D | core.h | 72 struct mlx5_core_mkey mkey; member in struct:mlx5_fpga_device::__anon4930
|
/freebsd-11-stable/contrib/ofed/libibnetdisc/ |
H A D | query_smp.c | 145 smp->rpc.mkey = engine->cfg->mkey;
|
/freebsd-11-stable/sys/dev/mlx5/ |
H A D | driver.h | 602 /* protect mkey key part */ 986 struct mlx5_core_mr *mkey, 994 int mlx5_core_destroy_mkey(struct mlx5_core_dev *dev, struct mlx5_core_mr *mkey); 995 int mlx5_core_query_mkey(struct mlx5_core_dev *dev, struct mlx5_core_mr *mkey, 998 u32 *mkey); 1108 static inline u32 mlx5_mkey_to_idx(u32 mkey) argument 1110 return mkey >> 8; 1118 static inline u8 mlx5_mkey_variant(u32 mkey) argument 1120 return mkey & 0xff;
|
/freebsd-11-stable/crypto/openssl/ssl/ |
H A D | ssl_ciph.c | 726 static void ssl_cipher_get_disabled(unsigned long *mkey, unsigned long *auth, argument 730 *mkey = 0; 737 *mkey |= SSL_kRSA; 744 *mkey |= SSL_kDHr | SSL_kDHd | SSL_kEDH; 748 *mkey |= SSL_kKRB5; 755 *mkey |= SSL_kECDHe | SSL_kECDHr; 759 *mkey |= SSL_kPSK; 763 *mkey |= SSL_kSRP; 779 *mkey |= SSL_kGOST;
|