Searched refs:nonce (Results 1 - 25 of 145) sorted by relevance

123456

/linux-master/fs/bcachefs/
H A Dchecksum.h34 struct bch_csum bch2_checksum(struct bch_fs *, unsigned, struct nonce,
72 int bch2_chacha_encrypt_key(struct bch_key *, struct nonce, void *, size_t);
78 int bch2_encrypt(struct bch_fs *, unsigned, struct nonce,
82 struct nonce, struct bio *);
91 struct nonce, struct bio *);
94 struct nonce nonce, struct bio *bio)
97 ? __bch2_encrypt_bio(c, type, nonce, bio)
174 static inline struct nonce nonce_add(struct nonce nonc argument
197 struct nonce nonce = (struct nonce) {{ local
[all...]
H A Dchecksum.c98 struct nonce nonce,
105 skcipher_request_set_crypt(req, sg, sg, len, nonce.d);
115 struct nonce nonce,
127 return do_encrypt_sg(tfm, nonce, &sg, len);
149 ret = do_encrypt_sg(tfm, nonce, sg, orig_len);
155 int bch2_chacha_encrypt_key(struct bch_key *key, struct nonce nonce, argument
175 ret = do_encrypt(chacha20, nonce, bu
97 do_encrypt_sg(struct crypto_sync_skcipher *tfm, struct nonce nonce, struct scatterlist *sg, size_t len) argument
114 do_encrypt(struct crypto_sync_skcipher *tfm, struct nonce nonce, void *buf, size_t len) argument
181 gen_poly_key(struct bch_fs *c, struct shash_desc *desc, struct nonce nonce) argument
200 bch2_checksum(struct bch_fs *c, unsigned type, struct nonce nonce, const void *data, size_t len) argument
239 bch2_encrypt(struct bch_fs *c, unsigned type, struct nonce nonce, void *data, size_t len) argument
248 __bch2_checksum_bio(struct bch_fs *c, unsigned type, struct nonce nonce, struct bio *bio, struct bvec_iter *iter) argument
313 bch2_checksum_bio(struct bch_fs *c, unsigned type, struct nonce nonce, struct bio *bio) argument
321 __bch2_encrypt_bio(struct bch_fs *c, unsigned type, struct nonce nonce, struct bio *bio) argument
391 struct nonce nonce = extent_nonce(version, crc_old); local
[all...]
H A Dextents_types.h17 u16 nonce; member in struct:bch_extent_crc_unpacked
H A Dbtree_io.h93 static inline struct nonce btree_nonce(struct bset *i, unsigned offset)
95 return (struct nonce) {{
105 struct nonce nonce = btree_nonce(i, offset); local
112 ret = bch2_encrypt(c, BSET_CSUM_TYPE(i), nonce,
117 nonce = nonce_add(nonce, round_up(bytes, CHACHA_BLOCK_SIZE));
120 return bch2_encrypt(c, BSET_CSUM_TYPE(i), nonce, i->_data,
H A Dextents_format.h123 nonce:10, member in struct:bch_extent_crc64
131 nonce:10,
149 nonce:13, member in struct:bch_extent_crc128
155 nonce:13,
/linux-master/include/crypto/
H A 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-master/net/mac80211/
H A Daes_gmac.h17 int ieee80211_aes_gmac(struct crypto_aead *tfm, const u8 *aad, u8 *nonce,
H A Daes_gmac.c17 int ieee80211_aes_gmac(struct crypto_aead *tfm, const u8 *aad, u8 *nonce, argument
55 memcpy(iv, nonce, GMAC_NONCE_LEN);
/linux-master/include/crypto/internal/
H A Dpoly1305.h16 * full blocks, or 0 for the final block if it had to be padded. If 'nonce' is
31 void poly1305_core_emit(const struct poly1305_state *state, const u32 nonce[4],
/linux-master/drivers/md/dm-vdo/indexer/
H A Dconfig.h42 /* Index owner's nonce */
43 u64 nonce; member in struct:uds_configuration
81 /* Index owner's nonce */
82 u64 nonce; member in struct:uds_configuration_8_02
107 /* Index owner's nonce */
108 u64 nonce; member in struct:uds_configuration_6_02
H A Dconfig.c82 if (saved_config->nonce != user->nonce) {
84 (unsigned long long) saved_config->nonce,
85 (unsigned long long) user->nonce);
135 decode_u64_le(buffer, &offset, &config.nonce);
211 encode_u64_le(buffer, &offset, config->nonce);
346 config->nonce = params->nonce;
375 vdo_log_debug(" Nonce: %llu", (unsigned long long) config->nonce);
/linux-master/net/ceph/
H A Ddecode.c28 ceph_decode_copy_safe(p, end, &addr->nonce, sizeof(addr->nonce), bad);
63 ceph_decode_copy_safe(p, end, &addr->nonce, sizeof(addr->nonce), bad);
185 sizeof(addr->nonce) +
188 ceph_encode_copy(p, &addr->nonce, sizeof(addr->nonce));
H A Dauth_x.h35 u64 nonce; member in struct:ceph_x_authorizer
H A Dauth_x_protocol.h73 __le64 nonce; member in struct:ceph_x_authorize_b
/linux-master/lib/crypto/
H A Dchacha20poly1305.c36 static void xchacha_init(u32 *chacha_state, const u8 *key, const u8 *nonce) argument
42 memcpy(iv + 8, nonce + 16, 8);
46 /* Compute the subkey given the original key and first 128 nonce bits */
47 chacha_init(chacha_state, k, nonce);
92 const u64 nonce,
102 iv[1] = cpu_to_le64(nonce);
114 const u8 nonce[XCHACHA20POLY1305_NONCE_SIZE],
119 xchacha_init(chacha_state, key, nonce);
170 const u64 nonce,
181 iv[1] = cpu_to_le64(nonce);
90 chacha20poly1305_encrypt(u8 *dst, const u8 *src, const size_t src_len, const u8 *ad, const size_t ad_len, const u64 nonce, const u8 key[CHACHA20POLY1305_KEY_SIZE]) argument
112 xchacha20poly1305_encrypt(u8 *dst, const u8 *src, const size_t src_len, const u8 *ad, const size_t ad_len, const u8 nonce[XCHACHA20POLY1305_NONCE_SIZE], const u8 key[CHACHA20POLY1305_KEY_SIZE]) argument
168 chacha20poly1305_decrypt(u8 *dst, const u8 *src, const size_t src_len, const u8 *ad, const size_t ad_len, const u64 nonce, const u8 key[CHACHA20POLY1305_KEY_SIZE]) argument
194 xchacha20poly1305_decrypt(u8 *dst, const u8 *src, const size_t src_len, const u8 *ad, const size_t ad_len, const u8 nonce[XCHACHA20POLY1305_NONCE_SIZE], const u8 key[CHACHA20POLY1305_KEY_SIZE]) argument
208 chacha20poly1305_crypt_sg_inplace(struct scatterlist *src, const size_t src_len, const u8 *ad, const size_t ad_len, const u64 nonce, const u8 key[CHACHA20POLY1305_KEY_SIZE], int encrypt) argument
333 chacha20poly1305_encrypt_sg_inplace(struct scatterlist *src, size_t src_len, const u8 *ad, const size_t ad_len, const u64 nonce, const u8 key[CHACHA20POLY1305_KEY_SIZE]) argument
343 chacha20poly1305_decrypt_sg_inplace(struct scatterlist *src, size_t src_len, const u8 *ad, const size_t ad_len, const u64 nonce, const u8 key[CHACHA20POLY1305_KEY_SIZE]) argument
[all...]
H A Dpoly1305-donna64.c111 void poly1305_core_emit(const struct poly1305_state *state, const u32 nonce[4], argument
162 if (likely(nonce)) {
163 /* h = (h + nonce) */
164 t0 = ((u64)nonce[1] << 32) | nonce[0];
165 t1 = ((u64)nonce[3] << 32) | nonce[2];
H A Dpoly1305-donna32.c120 void poly1305_core_emit(const struct poly1305_state *state, const u32 nonce[4], argument
188 if (likely(nonce)) {
189 /* mac = (h + nonce) % (2^128) */
190 f = (u64)h0 + nonce[0];
192 f = (u64)h1 + nonce[1] + (f >> 32);
194 f = (u64)h2 + nonce[2] + (f >> 32);
196 f = (u64)h3 + nonce[3] + (f >> 32);
/linux-master/tools/crypto/ccp/
H A Ddbc.c34 memcpy(nonce_out, tmp.nonce, sizeof(tmp.nonce));
/linux-master/include/net/
H A Damt.h117 __be32 nonce; member in struct:amt_header_discovery
132 __be32 nonce; member in struct:amt_header_advertisement
152 __be32 nonce; member in struct:amt_header_request
173 __be32 nonce; member in struct:amt_header_membership_query
190 __be32 nonce; member in struct:amt_header_membership_update
249 __be32 nonce; member in struct:amt_tunnel_list
356 __be32 nonce; member in struct:amt_dev
/linux-master/include/uapi/linux/
H A Dpsp-dbc.h26 * 0: no authentication, PSP will return single use nonce.
27 * 1: authentication: PSP will return multi-use nonce.
28 * @nonce: 8 byte value used for future authentication (output).
30 * previous nonce (input).
34 __u8 nonce[DBC_NONCE_SIZE]; member in struct:dbc_user_nonce
41 * @signature: 32 byte signature created by software using a previous nonce
54 * using a previous nonce (input)
87 * DBCIOCNONCE - Fetch a nonce from the PSP for authenticating commands.
88 * If a nonce is fetched without authentication it can only
90 * If a nonce i
[all...]
/linux-master/net/dccp/
H A Dackvec.h62 * @av_buf_nonce: ECN nonce sums, each covering subsequent segments of up to
122 * @nonce: whether @vec had an ECN nonce of 0 or 1
130 nonce:1; member in struct:dccp_ackvec_parsed
134 int dccp_ackvec_parsed_add(struct list_head *head, u8 *vec, u8 len, u8 nonce);
/linux-master/drivers/md/dm-vdo/
H A Dencodings.h95 /* The nonce of this volume */
96 nonce_t nonce; member in struct:volume_geometry
111 /* The nonce of this volume */
112 nonce_t nonce; member in struct:volume_geometry_4_0
154 __le64 nonce; member in struct:block_map_page_header
312 nonce_t nonce; /* A given VDO instance's nonce */ member in struct:recovery_block_header
335 /* A given VDO instance's 64-bit nonce */
336 __le64 nonce; member in struct:packed_journal_header
475 /* The nonce fo
476 nonce_t nonce; member in struct:slab_journal_block_header
499 __le64 nonce; member in struct:packed_slab_journal_block_header
617 nonce_t nonce; member in struct:vdo_component
641 __le64 nonce; member in struct:packed_vdo_component_41_0
[all...]
/linux-master/drivers/crypto/caam/
H A 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,
/linux-master/include/linux/ceph/
H A Dmsgr.h86 __le32 nonce; /* unique id for process (e.g. pid) */ member in struct:ceph_entity_addr
94 lhs->nonce == rhs->nonce;
/linux-master/drivers/crypto/nx/
H A Dnx.h92 u8 nonce[NX_GCM4106_NONCE_LEN]; member in struct:nx_gcm_priv
106 u8 nonce[NX_CCM4309_NONCE_LEN]; member in struct:nx_ccm_priv
114 u8 nonce[CTR_RFC3686_NONCE_SIZE]; member in struct:nx_ctr_priv

Completed in 214 milliseconds

123456