/drivers/crypto/nx/ |
D | nx-aes-gcm.c | 67 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()
|
D | nx.h | 92 u8 nonce[NX_GCM4106_NONCE_LEN]; member 106 u8 nonce[NX_CCM4309_NONCE_LEN]; member 114 u8 nonce[CTR_RFC3686_NONCE_SIZE]; member
|
D | nx-aes-ctr.c | 63 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()
|
D | nx-aes-ccm.c | 64 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/ |
D | vce_v1_0.c | 46 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/ |
D | security.c | 380 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()
|
D | crypto.c | 315 .nonce = { 0x20, 0x21, 0x22, 0x23, 0x24, 0x25, in wusb_oob_mic_verify()
|
/drivers/crypto/caam/ |
D | caamalg_desc.h | 60 u32 *nonce, const u32 ctx1_iv_off, 66 const bool is_rfc3686, u32 *nonce, 72 u32 *nonce, const u32 ctx1_iv_off,
|
D | caamalg_desc.c | 213 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 …]
|
D | pdb.h | 276 u32 nonce; member 288 u32 nonce; member
|
D | caamalg_qi.c | 79 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()
|
D | caamalg.c | 176 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()
|
D | caamalg_qi2.c | 174 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/ |
D | chcr_crypto.h | 179 u8 nonce[4]; member 233 u8 nonce[4]; member
|
D | chcr_algo.c | 963 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/ |
D | omap-aes-gcm.c | 356 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()
|
D | omap-aes.h | 99 u8 nonce[4]; member
|
D | ixp4xx_crypto.c | 182 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()
|
D | s5p-sss.c | 255 u8 nonce[CTR_RFC3686_NONCE_SIZE]; member
|
/drivers/platform/olpc/ |
D | olpc-xo175-ec.c | 295 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/ |
D | ccp-crypto-aes.c | 160 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()
|
D | ccp-crypto.h | 101 u8 nonce[CTR_RFC3686_NONCE_SIZE]; member
|
/drivers/char/tpm/ |
D | tpm2-cmd.c | 392 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/ |
D | safexcel_cipher.c | 48 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/ |
D | txrx.c | 796 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()
|