Home
last modified time | relevance | path

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

12345

/linux-6.1.9/include/crypto/ !
Dchacha20poly1305.h20 const u64 nonce,
25 const u8 *ad, const size_t ad_len, const u64 nonce,
30 const u8 nonce[XCHACHA20POLY1305_NONCE_SIZE],
35 const size_t ad_len, const u8 nonce[XCHACHA20POLY1305_NONCE_SIZE],
40 const u64 nonce,
45 const u64 nonce,
/linux-6.1.9/lib/crypto/ !
Dchacha20poly1305.c36 static void xchacha_init(u32 *chacha_state, const u8 *key, const u8 *nonce) in xchacha_init() argument
42 memcpy(iv + 8, nonce + 16, 8); in xchacha_init()
47 chacha_init(chacha_state, k, nonce); in xchacha_init()
92 const u64 nonce, in chacha20poly1305_encrypt() argument
102 iv[1] = cpu_to_le64(nonce); in chacha20poly1305_encrypt()
114 const u8 nonce[XCHACHA20POLY1305_NONCE_SIZE], in xchacha20poly1305_encrypt()
119 xchacha_init(chacha_state, key, nonce); in xchacha20poly1305_encrypt()
170 const u64 nonce, in chacha20poly1305_decrypt() argument
181 iv[1] = cpu_to_le64(nonce); in chacha20poly1305_decrypt()
196 const u8 nonce[XCHACHA20POLY1305_NONCE_SIZE], in xchacha20poly1305_decrypt()
[all …]
Dpoly1305-donna64.c113 void poly1305_core_emit(const struct poly1305_state *state, const u32 nonce[4], in poly1305_core_emit()
164 if (likely(nonce)) { in poly1305_core_emit()
166 t0 = ((u64)nonce[1] << 32) | nonce[0]; in poly1305_core_emit()
167 t1 = ((u64)nonce[3] << 32) | nonce[2]; in poly1305_core_emit()
Dpoly1305-donna32.c120 void poly1305_core_emit(const struct poly1305_state *state, const u32 nonce[4], in poly1305_core_emit()
188 if (likely(nonce)) { in poly1305_core_emit()
190 f = (u64)h0 + nonce[0]; in poly1305_core_emit()
192 f = (u64)h1 + nonce[1] + (f >> 32); in poly1305_core_emit()
194 f = (u64)h2 + nonce[2] + (f >> 32); in poly1305_core_emit()
196 f = (u64)h3 + nonce[3] + (f >> 32); in poly1305_core_emit()
/linux-6.1.9/net/ceph/ !
Ddecode.c28 ceph_decode_copy_safe(p, end, &addr->nonce, sizeof(addr->nonce), bad); in ceph_decode_entity_addr_versioned()
63 ceph_decode_copy_safe(p, end, &addr->nonce, sizeof(addr->nonce), bad); in ceph_decode_entity_addr_legacy()
185 sizeof(addr->nonce) + in ceph_encode_entity_addr()
188 ceph_encode_copy(p, &addr->nonce, sizeof(addr->nonce)); in ceph_encode_entity_addr()
/linux-6.1.9/include/net/ !
Damt.h117 __be32 nonce; member
132 __be32 nonce; member
152 __be32 nonce; member
173 __be32 nonce; member
190 __be32 nonce; member
249 __be32 nonce; member
356 __be32 nonce; member
/linux-6.1.9/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()
442 char *nonce = nx_ctx->priv.gcm.nonce; in gcm4106_aes_nx_encrypt() local
444 memcpy(iv, nonce, NX_GCM4106_NONCE_LEN); in gcm4106_aes_nx_encrypt()
459 char *nonce = nx_ctx->priv.gcm.nonce; in gcm4106_aes_nx_decrypt() local
461 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()
121 memcpy(iv, nx_ctx->priv.ctr.nonce, CTR_RFC3686_NONCE_SIZE); in ctr3686_aes_nx_crypt()
/linux-6.1.9/fs/crypto/ !
Dpolicy.c101 if (mode->ivsize < offsetofend(union fscrypt_iv, nonce)) { in supported_direct_key_modes()
291 const u8 nonce[FSCRYPT_FILE_NONCE_SIZE]) in fscrypt_new_context()
309 memcpy(ctx->nonce, nonce, FSCRYPT_FILE_NONCE_SIZE); in fscrypt_new_context()
325 memcpy(ctx->nonce, nonce, FSCRYPT_FILE_NONCE_SIZE); in fscrypt_new_context()
421 u8 nonce[FSCRYPT_FILE_NONCE_SIZE]; in set_encryption_policy() local
459 get_random_bytes(nonce, FSCRYPT_FILE_NONCE_SIZE); in set_encryption_policy()
460 ctxsize = fscrypt_new_context(&ctx, policy, nonce); in set_encryption_policy()
Dfscrypt_private.h42 u8 nonce[FSCRYPT_FILE_NONCE_SIZE]; member
52 u8 nonce[FSCRYPT_FILE_NONCE_SIZE]; member
100 return ctx->v1.nonce; in fscrypt_context_nonce()
102 return ctx->v2.nonce; in fscrypt_context_nonce()
290 u8 nonce[FSCRYPT_FILE_NONCE_SIZE]; member
Dkeysetup.c521 const u8 nonce[FSCRYPT_FILE_NONCE_SIZE], in fscrypt_setup_encryption_info()
539 memcpy(crypt_info->ci_nonce, nonce, FSCRYPT_FILE_NONCE_SIZE); in fscrypt_setup_encryption_info()
671 u8 nonce[FSCRYPT_FILE_NONCE_SIZE]; in fscrypt_prepare_new_inode() local
693 get_random_bytes(nonce, FSCRYPT_FILE_NONCE_SIZE); in fscrypt_prepare_new_inode()
694 return fscrypt_setup_encryption_info(inode, policy, nonce, in fscrypt_prepare_new_inode()
/linux-6.1.9/drivers/gpu/drm/radeon/ !
Dvce_v1_0.c47 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()
/linux-6.1.9/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()
386 const bool is_rfc3686, u32 *nonce, in cnstr_shdsc_aead_decap() argument
390 init_sh_desc_key_aead(desc, cdata, adata, is_rfc3686, nonce, era); in cnstr_shdsc_aead_decap()
503 u32 *nonce, const u32 ctx1_iv_off, in cnstr_shdsc_aead_givencap() argument
510 init_sh_desc_key_aead(desc, cdata, adata, is_rfc3686, nonce, era); in cnstr_shdsc_aead_givencap()
1398 const u8 *nonce = cdata->key_virt + cdata->keylen; in cnstr_shdsc_skcipher_encap() local
1400 append_load_as_imm(desc, nonce, CTR_RFC3686_NONCE_SIZE, in cnstr_shdsc_skcipher_encap()
[all …]
/linux-6.1.9/arch/x86/crypto/ !
Dpoly1305_glue.c23 const u32 nonce[4]);
25 const u32 nonce[4]);
124 const u32 nonce[4]) in poly1305_simd_emit()
127 poly1305_emit_x86_64(ctx, mac, nonce); in poly1305_simd_emit()
129 poly1305_emit_avx(ctx, mac, nonce); in poly1305_simd_emit()
/linux-6.1.9/include/linux/ceph/ !
Dmsgr.h86 __le32 nonce; /* unique id for process (e.g. pid) */ member
94 lhs->nonce == rhs->nonce; in ceph_addr_equal_no_type()
/linux-6.1.9/arch/powerpc/perf/ !
Dhv-24x7.c535 int nonce) in event_to_attr() argument
552 if (!nonce) in event_to_attr()
557 (int)event_name_len, ev_name, nonce); in event_to_attr()
575 int nonce) in event_to_desc_attr() argument
585 return device_str_attr_create(name, nl, nonce, desc, dl); in event_to_desc_attr()
589 event_to_long_desc_attr(struct hv_24x7_event_data *event, int nonce) in event_to_long_desc_attr() argument
599 return device_str_attr_create(name, nl, nonce, desc, dl); in event_to_long_desc_attr()
603 struct hv_24x7_event_data *event, int nonce) in event_data_to_attrs() argument
605 *attrs = event_to_attr(ix, event, event->domain, nonce); in event_data_to_attrs()
959 int nonce; in create_events_from_catalog() local
[all …]
/linux-6.1.9/net/dccp/ !
Dackvec.h130 nonce:1; member
134 int dccp_ackvec_parsed_add(struct list_head *head, u8 *vec, u8 len, u8 nonce);
/linux-6.1.9/net/mac80211/ !
Daes_gmac.c17 int ieee80211_aes_gmac(struct crypto_aead *tfm, const u8 *aad, u8 *nonce, in ieee80211_aes_gmac() argument
55 memcpy(iv, nonce, GMAC_NONCE_LEN); in ieee80211_aes_gmac()
/linux-6.1.9/tools/testing/selftests/tpm2/ !
Dtpm2.py251 def __init__(self, session_handle=TPM2_RS_PW, nonce=bytes(), argument
254 self.nonce = nonce
259 fmt = '>I H%us B H%us' % (len(self.nonce), len(self.hmac))
260 return struct.pack(fmt, self.session_handle, len(self.nonce),
261 self.nonce, self.session_attributes, len(self.hmac),
265 fmt = '>I H%us B H%us' % (len(self.nonce), len(self.hmac))
/linux-6.1.9/drivers/net/wireguard/ !
Dsend.c208 header->counter = cpu_to_le64(PACKET_CB(skb)->nonce); in encrypt_packet()
217 PACKET_CB(skb)->nonce, in encrypt_packet()
378 PACKET_CB(skb)->nonce = in wg_packet_send_staged_packets()
380 if (unlikely(PACKET_CB(skb)->nonce >= REJECT_AFTER_MESSAGES)) in wg_packet_send_staged_packets()
/linux-6.1.9/crypto/ !
Dvmac.c71 } nonce; member
501 memcpy(&dctx->nonce.bytes[dctx->nonce_size], p, n); in vmac_update()
578 if (dctx->nonce.bytes[0] & 0x80) in vmac_final()
586 index = dctx->nonce.bytes[VMAC_NONCEBYTES - 1] & 1; in vmac_final()
587 dctx->nonce.bytes[VMAC_NONCEBYTES - 1] &= ~1; in vmac_final()
588 crypto_cipher_encrypt_one(tctx->cipher, dctx->nonce.bytes, in vmac_final()
589 dctx->nonce.bytes); in vmac_final()
590 pad = be64_to_cpu(dctx->nonce.pads[index]); in vmac_final()
/linux-6.1.9/arch/mips/crypto/ !
Dpoly1305-mips.pl447 my ($ctx,$mac,$nonce) = ($a0,$a1,$a2);
488 lwu $tmp0,0($nonce) # load nonce
489 lwu $tmp1,4($nonce)
490 lwu $tmp2,8($nonce)
491 lwu $tmp3,12($nonce)
1153 my ($ctx,$mac,$nonce,$tmp4) = ($a0,$a1,$a2,$a3);
1210 lw $tmp0,0($nonce) # load nonce
1211 lw $tmp1,4($nonce)
1212 lw $tmp2,8($nonce)
1213 lw $tmp3,12($nonce)
/linux-6.1.9/drivers/net/ !
Damt.c662 amtd->nonce = amt->nonce; in amt_send_discovery()
753 amtrh->nonce = amt->nonce; in amt_send_request()
932 get_random_bytes(&amt->nonce, sizeof(__be32)); in amt_event_send_discovery()
966 amt->nonce = 0; in amt_event_send_request()
973 get_random_bytes(&amt->nonce, sizeof(__be32)); in amt_event_send_request()
1033 amtmu->nonce = amt->nonce; in amt_send_membership_update()
1148 amtmq->nonce = tunnel->nonce; in amt_send_membership_query()
2267 amt->nonce != amta->nonce) in amt_advertisement_handler()
2362 if (amtmq->nonce != amt->nonce) in amt_membership_query_handler()
2471 if ((amtmu->nonce == tunnel->nonce && in amt_update_handler()
[all …]

12345