Home
last modified time | relevance | path

Searched refs:nonce (Results 1 – 25 of 26) sorted by relevance

12

/drivers/crypto/nx/
Dnx-aes-gcm.c67 char *nonce = nx_ctx->priv.gcm.nonce; in gcm4106_aes_nx_set_key() local
79 memcpy(nonce, in_key + key_len, 4); in gcm4106_aes_nx_set_key()
446 char *nonce = nx_ctx->priv.gcm.nonce; in gcm4106_aes_nx_encrypt() local
448 memcpy(iv, nonce, NX_GCM4106_NONCE_LEN); in gcm4106_aes_nx_encrypt()
463 char *nonce = nx_ctx->priv.gcm.nonce; in gcm4106_aes_nx_decrypt() local
465 memcpy(iv, nonce, NX_GCM4106_NONCE_LEN); in gcm4106_aes_nx_decrypt()
Dnx.h92 u8 nonce[NX_GCM4106_NONCE_LEN]; member
106 u8 nonce[NX_CCM4309_NONCE_LEN]; member
114 u8 nonce[CTR_RFC3686_NONCE_SIZE]; member
Dnx-aes-ctr.c63 memcpy(nx_ctx->priv.ctr.nonce, in ctr3686_aes_nx_set_key()
124 memcpy(iv, nx_ctx->priv.ctr.nonce, CTR_RFC3686_IV_SIZE); in ctr3686_aes_nx_crypt()
Dnx-aes-ccm.c64 memcpy(nx_ctx->priv.ccm.nonce, in_key + key_len, 3); in ccm4309_aes_nx_set_key()
488 memcpy(iv + 1, nx_ctx->priv.ccm.nonce, 3); in ccm4309_aes_nx_encrypt()
518 memcpy(iv + 1, nx_ctx->priv.ccm.nonce, 3); in ccm4309_aes_nx_decrypt()
/drivers/gpu/drm/radeon/
Dvce_v1_0.c46 uint32_t nonce[4]; member
190 data[0] = sign->val[i].nonce[0]; in vce_v1_0_load_fw()
191 data[1] = sign->val[i].nonce[1]; in vce_v1_0_load_fw()
192 data[2] = sign->val[i].nonce[2]; in vce_v1_0_load_fw()
193 data[3] = sign->val[i].nonce[3]; in vce_v1_0_load_fw()
/drivers/staging/wusbcore/
Dsecurity.c380 get_random_bytes(&hs[0].nonce, sizeof(hs[0].nonce)); in wusb_dev_4way_handshake()
435 memcpy(keydvt_in.hnonce, hs[0].nonce, sizeof(keydvt_in.hnonce)); in wusb_dev_4way_handshake()
436 memcpy(keydvt_in.dnonce, hs[1].nonce, sizeof(keydvt_in.dnonce)); in wusb_dev_4way_handshake()
463 memcpy(hs[2].nonce, hs[0].nonce, sizeof(hs[2].nonce)); in wusb_dev_4way_handshake()
Dcrypto.c315 .nonce = { 0x20, 0x21, 0x22, 0x23, 0x24, 0x25, in wusb_oob_mic_verify()
/drivers/crypto/caam/
Dcaamalg_desc.h60 u32 *nonce, const u32 ctx1_iv_off,
66 const bool is_rfc3686, u32 *nonce,
72 u32 *nonce, const u32 ctx1_iv_off,
Dcaamalg_desc.c213 const bool is_rfc3686, u32 *nonce, int era) in init_sh_desc_key_aead() argument
255 append_load_as_imm(desc, nonce, CTR_RFC3686_NONCE_SIZE, in init_sh_desc_key_aead()
291 u32 *nonce, const u32 ctx1_iv_off, const bool is_qi, in cnstr_shdsc_aead_encap() argument
295 init_sh_desc_key_aead(desc, cdata, adata, is_rfc3686, nonce, era); in cnstr_shdsc_aead_encap()
385 const bool is_rfc3686, u32 *nonce, in cnstr_shdsc_aead_decap() argument
389 init_sh_desc_key_aead(desc, cdata, adata, is_rfc3686, nonce, era); in cnstr_shdsc_aead_decap()
502 u32 *nonce, const u32 ctx1_iv_off, in cnstr_shdsc_aead_givencap() argument
509 init_sh_desc_key_aead(desc, cdata, adata, is_rfc3686, nonce, era); in cnstr_shdsc_aead_givencap()
1394 const u8 *nonce = cdata->key_virt + cdata->keylen; in cnstr_shdsc_skcipher_encap() local
1396 append_load_as_imm(desc, nonce, CTR_RFC3686_NONCE_SIZE, in cnstr_shdsc_skcipher_encap()
[all …]
Dpdb.h276 u32 nonce; member
288 u32 nonce; member
Dcaamalg_qi.c79 u32 *nonce = NULL; in aead_set_sh_desc() local
104 nonce = (u32 *)((void *)ctx->key + ctx->adata.keylen_pad + in aead_set_sh_desc()
137 ivsize, ctx->authsize, is_rfc3686, nonce, in aead_set_sh_desc()
153 is_rfc3686, nonce, ctx1_iv_off, true, in aead_set_sh_desc()
170 ivsize, ctx->authsize, is_rfc3686, nonce, in aead_set_sh_desc()
Dcaamalg.c176 u32 *desc, *nonce = NULL; in aead_set_sh_desc() local
204 nonce = (u32 *)((void *)ctx->key + ctx->adata.keylen_pad + in aead_set_sh_desc()
242 ctx->authsize, is_rfc3686, nonce, ctx1_iv_off, in aead_set_sh_desc()
265 nonce, ctx1_iv_off, false, ctrlpriv->era); in aead_set_sh_desc()
288 ctx->authsize, is_rfc3686, nonce, in aead_set_sh_desc()
Dcaamalg_qi2.c174 u32 *nonce = NULL; in aead_set_sh_desc() local
198 nonce = (u32 *)((void *)ctx->key + ctx->adata.keylen_pad + in aead_set_sh_desc()
234 nonce, ctx1_iv_off, true, in aead_set_sh_desc()
238 ivsize, ctx->authsize, is_rfc3686, nonce, in aead_set_sh_desc()
260 is_rfc3686, nonce, ctx1_iv_off, true, in aead_set_sh_desc()
/drivers/crypto/chelsio/
Dchcr_crypto.h179 u8 nonce[4]; member
233 u8 nonce[4]; member
Dchcr_algo.c963 memcpy(ablkctx->nonce, key + (keylen - CTR_RFC3686_NONCE_SIZE), in chcr_aes_rfc3686_setkey()
1252 memcpy(reqctx->iv, ablkctx->nonce, CTR_RFC3686_NONCE_SIZE); in process_cipher()
2436 memcpy(ivptr, aeadctx->nonce, CTR_RFC3686_NONCE_SIZE); in create_authenc_wr()
3444 memcpy(aeadctx->nonce, keys.enckey + (keys.enckeylen in chcr_authenc_setkey()
3569 memcpy(aeadctx->nonce, keys.enckey + (keys.enckeylen in chcr_aead_digest_null_setkey()
/drivers/crypto/
Domap-aes-gcm.c356 memcpy(rctx->iv, ctx->nonce, 4); in omap_aes_4106gcm_encrypt()
367 memcpy(rctx->iv, ctx->nonce, 4); in omap_aes_4106gcm_decrypt()
401 memcpy(ctx->nonce, key + keylen, 4); in omap_aes_4106gcm_setkey()
Domap-aes.h99 u8 nonce[4]; member
Dixp4xx_crypto.c182 u8 nonce[CTR_RFC3686_NONCE_SIZE]; member
864 memcpy(ctx->nonce, key + (key_len - CTR_RFC3686_NONCE_SIZE), in ablk_rfc3686_setkey()
963 memcpy(iv, ctx->nonce, CTR_RFC3686_NONCE_SIZE); in ablk_rfc3686_crypt()
Ds5p-sss.c255 u8 nonce[CTR_RFC3686_NONCE_SIZE]; member
/drivers/platform/olpc/
Dolpc-xo175-ec.c295 u8 nonce[] = {0xA5, 0x5A}; in olpc_xo175_ec_read_packet() local
297 olpc_xo175_ec_send_command(priv, nonce, sizeof(nonce)); in olpc_xo175_ec_read_packet()
/drivers/crypto/ccp/
Dccp-crypto-aes.c160 memcpy(ctx->u.aes.nonce, key + key_len, CTR_RFC3686_NONCE_SIZE); in ccp_aes_rfc3686_setkey()
173 memcpy(iv, ctx->u.aes.nonce, CTR_RFC3686_NONCE_SIZE); in ccp_aes_rfc3686_crypt()
Dccp-crypto.h101 u8 nonce[CTR_RFC3686_NONCE_SIZE]; member
/drivers/char/tpm/
Dtpm2-cmd.c392 const u8 *nonce, u16 nonce_len, in tpm2_buf_append_auth() argument
400 if (nonce && nonce_len) in tpm2_buf_append_auth()
401 tpm_buf_append(buf, nonce, nonce_len); in tpm2_buf_append_auth()
/drivers/crypto/inside-secure/
Dsafexcel_cipher.c48 u32 nonce; member
77 cdesc->control_data.token[0] = ctx->nonce; in safexcel_cipher_token()
323 ctx->nonce = *(u32 *)(keys.enckey + keys.enckeylen - in safexcel_aead_setkey()
1287 ctx->nonce = *(u32 *)(key + len - CTR_RFC3686_NONCE_SIZE); in safexcel_skcipher_aesctr_setkey()
/drivers/net/wireless/ath/wil6210/
Dtxrx.c796 u32 *nonce, i; in wil_skb_is_eap_4() local
802 nonce = (u32 *)key->key_nonce; in wil_skb_is_eap_4()
803 for (i = 0; i < WIL_EAP_NONCE_LEN / sizeof(u32); i++, nonce++) { in wil_skb_is_eap_4()
804 if (*nonce != 0) { in wil_skb_is_eap_4()

12