Home
last modified time | relevance | path

Searched refs:nkey (Results 1 – 25 of 45) sorted by relevance

12

/openbmc/qemu/tests/unit/
H A Dtest-crypto-pbkdf.c38 size_t nkey; member
59 .nkey = 8,
73 .nkey = 8,
87 .nkey = 8,
101 .nkey = 8,
116 .nkey = 64,
145 .nkey = 4,
161 .nkey = 8,
173 .nkey = 8,
185 .nkey = 8,
[all …]
H A Dtest-crypto-ivgen.c33 size_t nkey; member
100 .nkey = 16,
114 .nkey = 16,
128 .nkey = 16,
152 data->nkey, in test_ivgen()
H A Dtest-crypto-cipher.c656 size_t nkey, niv = 0, nciphertext = 0, nplaintext = 0; in test_cipher() local
661 nkey = unhex_string(data->key, &key); in test_cipher()
678 key, nkey, in test_cipher()
693 g_assert_cmpint(keysize * 2, ==, nkey); in test_cipher()
695 g_assert_cmpint(keysize, ==, nkey); in test_cipher()
/openbmc/qemu/crypto/
H A Dpbkdf-nettle.c44 const uint8_t *key, size_t nkey, in qcrypto_pbkdf2() argument
69 hmac_md5_set_key(&ctx.md5, nkey, key); in qcrypto_pbkdf2()
75 hmac_sha1_set_key(&ctx.sha1, nkey, key); in qcrypto_pbkdf2()
81 hmac_sha224_set_key(&ctx.sha224, nkey, key); in qcrypto_pbkdf2()
87 hmac_sha256_set_key(&ctx.sha256, nkey, key); in qcrypto_pbkdf2()
93 hmac_sha384_set_key(&ctx.sha384, nkey, key); in qcrypto_pbkdf2()
99 hmac_sha512_set_key(&ctx.sha512, nkey, key); in qcrypto_pbkdf2()
105 hmac_ripemd160_set_key(&ctx.ripemd160, nkey, key); in qcrypto_pbkdf2()
H A Dcipher.c106 size_t nkey, in qcrypto_cipher_validate_key_length() argument
121 if (nkey % 2) { in qcrypto_cipher_validate_key_length()
126 if (alg_key_len[alg] != (nkey / 2)) { in qcrypto_cipher_validate_key_length()
128 nkey, alg_key_len[alg] * 2); in qcrypto_cipher_validate_key_length()
132 if (alg_key_len[alg] != nkey) { in qcrypto_cipher_validate_key_length()
134 nkey, alg_key_len[alg]); in qcrypto_cipher_validate_key_length()
153 const uint8_t *key, size_t nkey, in qcrypto_cipher_new() argument
159 cipher = qcrypto_afalg_cipher_ctx_new(alg, mode, key, nkey, NULL); in qcrypto_cipher_new()
163 cipher = qcrypto_cipher_ctx_new(alg, mode, key, nkey, errp); in qcrypto_cipher_new()
H A Dpbkdf.c92 size_t nkey; member
105 size_t nkey = iters_data->nkey; in threaded_qcrypto_pbkdf2_count_iters() local
121 key, nkey, in threaded_qcrypto_pbkdf2_count_iters()
157 const uint8_t *key, size_t nkey, in qcrypto_pbkdf2_count_iters() argument
163 hash, key, nkey, salt, nsalt, nout, 0, errp in qcrypto_pbkdf2_count_iters()
H A Dcipher-gnutls.c.inc68 size_t nkey; /* ECB mode */
115 gnutls_datum_t gkey = { (unsigned char *)ctx->key, ctx->nkey };
176 gnutls_datum_t gkey = { (unsigned char *)ctx->key, ctx->nkey };
235 size_t nkey,
239 gnutls_datum_t gkey = { (unsigned char *)key, nkey };
292 if (!qcrypto_cipher_validate_key_length(alg, mode, nkey, errp)) {
300 ctx->key = g_new0(guint8, nkey);
301 memcpy(ctx->key, key, nkey);
302 ctx->nkey = nkey;
H A Dcipher-nettle.c.inc495 size_t nkey,
580 nkey /= 2;
609 nkey /= 2;
638 nkey /= 2;
672 cast5_set_key(&ctx->key, nkey, key);
695 nkey /= 2;
696 serpent_set_key(&ctx->key_xts, nkey, key + nkey);
701 serpent_set_key(&ctx->key, nkey, key);
724 nkey /= 2;
725 twofish_set_key(&ctx->key_xts, nkey, key + nkey);
[all …]
H A Dhash-afalg.c69 const uint8_t *key, size_t nkey, in qcrypto_afalg_hash_hmac_ctx_new() argument
91 key, nkey) != 0) { in qcrypto_afalg_hash_hmac_ctx_new()
110 const uint8_t *key, size_t nkey, in qcrypto_afalg_hmac_ctx_new() argument
113 return qcrypto_afalg_hash_hmac_ctx_new(alg, key, nkey, true, errp); in qcrypto_afalg_hmac_ctx_new()
H A Dhmacpriv.h32 const uint8_t *key, size_t nkey,
41 const uint8_t *key, size_t nkey,
H A Dhmac.c87 const uint8_t *key, size_t nkey, in qcrypto_hmac_new() argument
95 ctx = qcrypto_afalg_hmac_ctx_new(alg, key, nkey, NULL); in qcrypto_hmac_new()
102 ctx = qcrypto_hmac_ctx_new(alg, key, nkey, errp); in qcrypto_hmac_new()
H A Dpbkdf-gcrypt.c43 const uint8_t *key, size_t nkey, in qcrypto_pbkdf2() argument
75 ret = gcry_kdf_derive(key, nkey, GCRY_KDF_PBKDF2, in qcrypto_pbkdf2()
H A Dpbkdf-gnutls.c43 const uint8_t *key, size_t nkey, in qcrypto_pbkdf2() argument
59 const gnutls_datum_t gkey = { (unsigned char *)key, nkey }; in qcrypto_pbkdf2()
H A Divgen.c33 const uint8_t *key, size_t nkey, in qcrypto_ivgen_new() argument
58 if (ivgen->driver->init(ivgen, key, nkey, errp) < 0) { in qcrypto_ivgen_new()
H A Dhmac-glib.c46 const uint8_t *key, size_t nkey, in qcrypto_hmac_ctx_new() argument
60 (const uint8_t *)key, nkey); in qcrypto_hmac_ctx_new()
H A Dblock.c248 block->nkey, errp); in qcrypto_block_pop_cipher()
272 const uint8_t *key, size_t nkey, in qcrypto_block_init_cipher() argument
283 block->key = g_memdup2(key, nkey); in qcrypto_block_init_cipher()
284 block->nkey = nkey; in qcrypto_block_init_cipher()
H A Divgen-essiv.c31 const uint8_t *key, size_t nkey, in qcrypto_ivgen_essiv_init() argument
46 if (qcrypto_hash_bytes(ivgen->hash, (const gchar *)key, nkey, in qcrypto_ivgen_essiv_init()
H A Dhmac-gnutls.c56 const uint8_t *key, size_t nkey, in qcrypto_hmac_ctx_new() argument
72 (const void *)key, nkey); in qcrypto_hmac_ctx_new()
H A Dhmac-gcrypt.c47 const uint8_t *key, size_t nkey, in qcrypto_hmac_ctx_new() argument
69 err = gcry_mac_setkey(ctx->handle, (const void *)key, nkey); in qcrypto_hmac_ctx_new()
H A Dblockpriv.h39 size_t nkey; member
137 const uint8_t *key, size_t nkey,
/openbmc/qemu/tests/bench/
H A Dbenchmark-crypto-cipher.c26 size_t nkey; in test_cipher_speed() local
35 nkey = qcrypto_cipher_get_key_len(alg); in test_cipher_speed()
38 nkey *= 2; in test_cipher_speed()
41 key = g_new0(uint8_t, nkey); in test_cipher_speed()
42 memset(key, g_test_rand_int(), nkey); in test_cipher_speed()
53 key, nkey, &err); in test_cipher_speed()
/openbmc/qemu/include/crypto/
H A Dpbkdf.h123 const uint8_t *key, size_t nkey,
151 const uint8_t *key, size_t nkey,
/openbmc/linux/drivers/input/
H A Djoydev.c49 int nkey; member
100 if (client->startup == joydev->nabs + joydev->nkey) { in joydev_pass_event()
301 if (client->startup < joydev->nkey) { in joydev_generate_startup_event()
308 event->number = client->startup - joydev->nkey; in joydev_generate_startup_event()
501 for (i = 0; i < joydev->nkey; i++) in joydev_handle_JSIOCSBTNMAP()
956 joydev->keymap[i] = joydev->nkey; in joydev_connect()
957 joydev->keypam[joydev->nkey] = i + BTN_MISC; in joydev_connect()
958 joydev->nkey++; in joydev_connect()
963 joydev->keymap[i] = joydev->nkey; in joydev_connect()
964 joydev->keypam[joydev->nkey] = i + BTN_MISC; in joydev_connect()
[all …]
/openbmc/openbmc/poky/bitbake/lib/bb/
H A DCOW.py61 nkey = key + MUTABLE
63 return cls.__dict__[nkey]
67 value = getattr(cls, nkey)
77 setattr(cls, nkey, value)
/openbmc/qemu/hw/net/rocker/
H A Drocker_of_dpa.c2300 RockerOfDpaFlowKey *nkey; in of_dpa_flow_fill() local
2310 nkey = nflow->key = g_malloc0(sizeof(*nkey)); in of_dpa_flow_fill()
2316 nkey->priority = flow->priority; in of_dpa_flow_fill()
2317 nkey->tbl_id = key->tbl_id; in of_dpa_flow_fill()
2320 nkey->has_in_pport = true; in of_dpa_flow_fill()
2321 nkey->in_pport = key->in_pport; in of_dpa_flow_fill()
2330 nkey->has_vlan_id = true; in of_dpa_flow_fill()
2340 nkey->has_tunnel_id = true; in of_dpa_flow_fill()
2341 nkey->tunnel_id = key->tunnel_id; in of_dpa_flow_fill()
2369 nkey->has_eth_type = true; in of_dpa_flow_fill()
[all …]

12