Home
last modified time | relevance | path

Searched refs:ciph_key (Results 1 – 1 of 1) sorted by relevance

/linux-6.12.1/drivers/net/ethernet/netronome/nfp/crypto/
Dipsec.c89 u32 ciph_key[8]; /* Cipher Key */ member
464 if (key_len > sizeof(cfg->ciph_key)) { in nfp_net_xfrm_add_state()
474 key_offset = key_len / sizeof(cfg->ciph_key[0]) >> 1; in nfp_net_xfrm_add_state()
476 for (i = 0; i < key_len / sizeof(cfg->ciph_key[0]); i++) { in nfp_net_xfrm_add_state()
477 int index = (i + key_offset) % (key_len / sizeof(cfg->ciph_key[0])); in nfp_net_xfrm_add_state()
479 cfg->ciph_key[index] = get_unaligned_be32(x->aead->alg_key + in nfp_net_xfrm_add_state()
480 sizeof(cfg->ciph_key[0]) * i); in nfp_net_xfrm_add_state()
490 if (key_len > sizeof(cfg->ciph_key)) { in nfp_net_xfrm_add_state()
494 for (i = 0; i < key_len / sizeof(cfg->ciph_key[0]) ; i++) in nfp_net_xfrm_add_state()
495 cfg->ciph_key[i] = get_unaligned_be32(x->ealg->alg_key + in nfp_net_xfrm_add_state()
[all …]