| /linux/include/linux/ |
| H A D | stringhash.h | 39 #define init_name_hash(salt) (unsigned long)(salt) argument 66 extern unsigned int __pure full_name_hash(const void *salt, const char *, unsigned int); 77 extern u64 __pure hashlen_string(const void *salt, const char *name);
|
| H A D | ecryptfs.h | 79 u8 salt[ECRYPTFS_SALT_SIZE]; member
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
| H A D | ktls_txrx.c | 16 salt = info->salt; \ 18 salt_sz = sizeof(info->salt); \ 29 char *salt, *rec_seq; in fill_static_params() local 59 memcpy(gcm_iv, salt, salt_sz); in fill_static_params()
|
| H A D | macsec.c | 67 salt_t salt; member 139 salt_t salt; member 269 salt_p = MLX5_ADDR_OF(macsec_offload_obj, obj, salt); in mlx5e_macsec_create_object() 271 memcpy((u32 *)salt_p + i, &attrs->salt.bytes[4 * (2 - i)], 4); in mlx5e_macsec_create_object() 384 memcpy(&obj_attrs.salt, &sa->salt, sizeof(sa->salt)); in mlx5e_macsec_init_sa() 498 sa->salt = key->salt; in update_macsec_epn()
|
| /linux/drivers/crypto/caam/ |
| H A D | pdb.h | 102 u8 salt[4]; member 114 u8 salt[4]; member 178 u8 salt[4]; member 188 u8 salt[4]; member 408 u16 salt[7]; member 423 u16 salt[7]; member
|
| /linux/net/tls/ |
| H A D | tls_device_fallback.c | 73 memcpy(iv + cipher_desc->salt, buf + TLS_HEADER_SIZE, cipher_desc->iv); in tls_enc_record() 305 void *buf, *iv, *aad, *dummy_buf, *salt; in tls_enc_skb() 317 buf_len = cipher_desc->salt + cipher_desc->iv + TLS_AAD_SPACE_SIZE + in tls_enc_skb() 324 salt = crypto_info_salt(&tls_ctx->crypto_send.info, cipher_desc); in tls_enc_skb() 325 memcpy(iv, salt, cipher_desc->salt); in tls_enc_skb() 326 aad = buf + cipher_desc->salt + cipher_desc->iv; in tls_enc_skb() 308 void *buf, *iv, *aad, *dummy_buf, *salt; tls_enc_skb() local
|
| /linux/drivers/net/ethernet/intel/ixgbevf/ |
| H A D | ipsec.h | 22 u32 salt; member 38 u32 salt; member
|
| /linux/drivers/net/ethernet/intel/ixgbe/ |
| H A D | ixgbe_ipsec.h | 36 u32 salt; member 53 u32 salt; member
|
| H A D | ixgbe_ipsec.c | 22 u32 key[], u32 salt) in ixgbe_ipsec_set_tx_sa() argument 30 IXGBE_WRITE_REG(hw, IXGBE_IPSTXSALT, (__force u32)cpu_to_be32(salt)); in ixgbe_ipsec_set_tx_sa() 74 u32 key[], u32 salt, u32 mode, u32 ip_idx) in ixgbe_ipsec_set_rx_sa() argument 90 IXGBE_WRITE_REG(hw, IXGBE_IPSRXSALT, (__force u32)cpu_to_be32(salt)); in ixgbe_ipsec_set_rx_sa() 327 r->key, r->salt, in ixgbe_ipsec_restore() 335 ixgbe_ipsec_set_tx_sa(hw, i, t->key, t->salt); in ixgbe_ipsec_restore() 621 ret = ixgbe_ipsec_parse_proto_keys(dev, xs, rsa.key, &rsa.salt); in ixgbe_ipsec_add_sa() 700 rsa.salt, rsa.mode, rsa.iptbl_ind); in ixgbe_ipsec_add_sa() 730 ret = ixgbe_ipsec_parse_proto_keys(dev, xs, tsa.key, &tsa.salt); in ixgbe_ipsec_add_sa() 740 ixgbe_ipsec_set_tx_sa(hw, sa_idx, tsa.key, tsa.salt); in ixgbe_ipsec_add_sa()
|
| /linux/fs/netfs/ |
| H A D | fscache_main.c | 50 unsigned int fscache_hash(unsigned int salt, const void *data, size_t len) in fscache_hash() argument 53 unsigned int a, x = 0, y = salt, n = len / sizeof(__le32); in fscache_hash()
|
| /linux/drivers/net/ethernet/fungible/funeth/ |
| H A D | funeth_ktls.c | 50 memcpy(req.salt, c->salt, sizeof(c->salt)); in fun_ktls_add()
|
| /linux/crypto/ |
| H A D | essiv.c | 70 u8 salt[HASH_MAX_DIGESTSIZE]; in essiv_skcipher_setkey() local 81 err = crypto_shash_tfm_digest(tctx->hash, key, keylen, salt); in essiv_skcipher_setkey() 89 return crypto_cipher_setkey(tctx->essiv_cipher, salt, in essiv_skcipher_setkey() 99 u8 salt[HASH_MAX_DIGESTSIZE]; in essiv_aead_setkey() local 115 crypto_shash_finup(desc, keys.authkey, keys.authkeylen, salt); in essiv_aead_setkey() 122 return crypto_cipher_setkey(tctx->essiv_cipher, salt, in essiv_aead_setkey()
|
| /linux/fs/verity/ |
| H A D | hash_algs.c | 56 const u8 *salt, size_t salt_size) in fsverity_prepare_hash_state() argument 74 memcpy(padded_salt, salt, salt_size); in fsverity_prepare_hash_state()
|
| /linux/net/tipc/ |
| H A D | crypto.c | 140 * @salt: the key's SALT value 156 u32 salt; member 593 memcpy(&tmp->salt, ukey->key + keylen, TIPC_AES_GCM_SALT_SIZE); in tipc_aead_init() 646 aead->salt = src->salt; in tipc_aead_clone() 734 u32 salt; in tipc_aead_encrypt() 781 salt = aead->salt; in tipc_aead_encrypt() 783 salt ^= __be32_to_cpu(ehdr->addr); in tipc_aead_encrypt() 785 salt in tipc_aead_encrypt() 736 u32 salt; tipc_aead_encrypt() local 888 u32 salt; tipc_aead_decrypt() local [all...] |
| /linux/net/sched/ |
| H A D | sch_sfb.c | 258 int *qerr, u32 *salt) in sfb_classify() argument 276 *salt = TC_H_MIN(res.classid); in sfb_classify() 320 u32 salt; in sfb_enqueue() local 323 if (!sfb_classify(skb, fl, &ret, &salt)) in sfb_enqueue() 325 sfbhash = siphash_1u32(salt, &q->bins[slot].perturbation); in sfb_enqueue()
|
| /linux/tools/include/uapi/linux/ |
| H A D | tls.h | 74 unsigned char salt[TLS_CIPHER_AES_GCM_128_SALT_SIZE]; member
|
| /linux/drivers/net/ethernet/chelsio/inline_crypto/ch_ipsec/ |
| H A D | chcr_ipsec.h | 52 char salt[MAX_SALT]; member
|
| /linux/drivers/net/ethernet/marvell/octeontx2/nic/ |
| H A D | cn10k_macsec.c | 357 u8 *sak, u8 *salt, ssci_t ssci) in cn10k_mcs_write_keys() argument 379 salt_rev[i] = salt[MACSEC_SALT_LEN - 1 - i]; in cn10k_mcs_write_keys() 398 u8 *salt = rxsc->salt[assoc_num]; in cn10k_mcs_write_rx_sa_plcy() local 419 salt, rxsc->ssci[assoc_num]); in cn10k_mcs_write_rx_sa_plcy() 637 u8 *salt = txsc->salt[assoc_num]; in cn10k_mcs_write_tx_sa_plcy() local 650 salt, txsc->ssci[assoc_num]); in cn10k_mcs_write_tx_sa_plcy() 1288 memcpy(&txsc->salt[sa_num], sw_tx_sa->key.salt.bytes, MACSEC_SALT_LEN); in cn10k_mdo_add_txsa() 1461 memcpy(&rxsc->salt[sa_num], rx_sa->key.salt.bytes, MACSEC_SALT_LEN); in cn10k_mdo_add_rxsa()
|
| /linux/Documentation/filesystems/ |
| H A D | ecryptfs.rst | 50 You should be prompted for a passphrase and a salt (the salt may be
|
| /linux/include/net/ |
| H A D | macsec.h | 40 typedef union salt { union 72 salt_t salt; member
|
| /linux/drivers/md/ |
| H A D | dm-verity-target.c | 143 crypto_shash_update(desc, v->salt, v->salt_size) ?: in verity_hash() 872 DMEMIT("%02x", v->salt[x]); in verity_status() 948 DMEMIT("%02x", v->salt[x]); in verity_status() 1075 kfree(v->salt); in verity_dtr() 1354 v->salt = kmalloc(v->salt_size, GFP_KERNEL); in verity_setup_salt_and_hashstate() 1355 if (!v->salt) { in verity_setup_salt_and_hashstate() 1360 hex2bin(v->salt, arg, v->salt_size)) { in verity_setup_salt_and_hashstate() 1375 v->salt, v->salt_size); in verity_setup_salt_and_hashstate() 1392 crypto_shash_update(desc, v->salt, v->salt_size) ?: in verity_setup_salt_and_hashstate()
|
| /linux/include/uapi/linux/ |
| H A D | fsverity.h | 59 __u8 salt[32]; /* salt prepended to each hashed block */ member
|
| /linux/drivers/net/phy/ |
| H A D | nxp-c45-tja11xx-macsec.c | 214 u16 salt; member 230 .salt = MACSEC_RXSA_A_SALT, 244 .salt = MACSEC_RXSA_B_SALT, 256 .salt = MACSEC_TXSA_A_SALT, 267 .salt = MACSEC_TXSA_B_SALT, 490 u8 *salt, ssci_t ssci) in nxp_c45_sa_set_key() argument 496 u32 *salt_u32 = (u32 *)salt; in nxp_c45_sa_set_key() 508 reg = sa_regs->salt + (2 - i) * 4; in nxp_c45_sa_set_key() 1211 nxp_c45_sa_set_key(ctx, sa->regs, rx_sa->key.salt.bytes, rx_sa->ssci); in nxp_c45_mdo_add_rxsa() 1300 nxp_c45_sa_set_key(ctx, sa->regs, tx_sa->key.salt.bytes, tx_sa->ssci); in nxp_c45_mdo_add_txsa()
|
| /linux/drivers/char/tpm/ |
| H A D | tpm2-sessions.c | 108 * the salt is only used across the session command/response 112 u8 salt[EC_PT_SZ]; member 523 dev_err(&chip->dev, "salt buffer too small needs %d\n", in tpm_buf_append_salt() 532 /* salt is now the public point of this private key */ in tpm_buf_append_salt() 549 * point and feed it through KDFe to get the final secret salt in tpm_buf_append_salt() 554 sg_init_one(d, auth->salt, EC_PT_SZ); in tpm_buf_append_salt() 561 * pass the shared secret through KDFe for salt. Note salt in tpm_buf_append_salt() 562 * area is used both for input shared secret and output salt. in tpm_buf_append_salt() 564 * writes the salt in tpm_buf_append_salt() [all...] |
| /linux/drivers/crypto/chelsio/ |
| H A D | chcr_core.h | 69 u8 salt[MAX_SALT]; member
|