/linux-master/net/rxrpc/ |
H A D | rxkad.c | 638 get_random_bytes(&conn->rxkad.nonce, sizeof(conn->rxkad.nonce)); 641 challenge.nonce = htonl(conn->rxkad.nonce); 795 u32 version, nonce, min_level; local 815 nonce = ntohl(challenge.nonce); 818 trace_rxrpc_rx_challenge(conn, sp->hdr.serial, version, nonce, min_level); 839 resp->encrypted.inc_nonce = htonl(nonce + 1); 1154 if (ntohl(response->encrypted.inc_nonce) != conn->rxkad.nonce [all...] |
/linux-master/fs/bcachefs/ |
H A D | btree_node_scan.c | 140 struct nonce nonce = btree_nonce(&bn->keys, 0); local 143 bch2_encrypt(c, BSET_CSUM_TYPE(&bn->keys), nonce, &bn->flags, bytes);
|
H A D | journal_io.c | 51 static struct nonce journal_nonce(const struct jset *jset) 53 return (struct nonce) {{
|
H A D | btree_io.c | 1040 struct nonce nonce; local 1053 nonce = btree_nonce(i, b->written << 9); 1055 struct bch_csum csum = csum_vstruct(c, BSET_CSUM_TYPE(i), nonce, b->data); 1095 nonce = btree_nonce(i, b->written << 9); 1096 struct bch_csum csum = csum_vstruct(c, BSET_CSUM_TYPE(i), nonce, bne); 1977 struct nonce nonce; local 2146 nonce = btree_nonce(i, b->written << 9); 2149 bn->csum = csum_vstruct(c, BSET_CSUM_TYPE(i), nonce, b [all...] |
H A D | bcachefs_format.h | 637 struct nonce { struct
|
H A D | backpointers.c | 486 struct nonce nonce = extent_nonce(extent.k->version, p.crc); local 487 struct bch_csum csum = bch2_checksum(c, p.crc.csum_type, nonce, data_buf, bytes);
|
H A D | extents.c | 293 lp.crc.nonce != rp.crc.nonce) 304 lp.crc.nonce != rp.crc.nonce || 436 l.nonce != r.nonce || 535 dst->crc64.nonce = src.nonce; 541 dst->crc128.nonce = src.nonce; 1127 unsigned nonce = UINT_MAX; local [all...] |
H A D | checksum.c | 98 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 D | checksum.h | 34 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 D | debug.c | 225 struct nonce nonce; local 239 nonce = btree_nonce(i, offset << 9); 240 csum = csum_vstruct(c, BSET_CSUM_TYPE(i), nonce, n_ondisk); 264 nonce = btree_nonce(i, offset << 9); 265 csum = csum_vstruct(c, BSET_CSUM_TYPE(i), nonce, bne);
|
H A D | data_update.c | 244 * Check for nonce offset inconsistency: 571 m->op.nonce = p.crc.nonce + p.crc.offset;
|
H A D | extents.h | 181 .nonce = crc->crc64.nonce, 192 .nonce = crc->crc128.nonce,
|
H A D | io_write.c | 692 crc.nonce) 780 struct nonce nonce = extent_nonce(op->version, op->crc); local 793 csum = bch2_checksum_bio(c, op->crc.csum_type, nonce, &op->wbio.bio); 797 ret = bch2_encrypt_bio(c, op->crc.csum_type, nonce, &op->wbio.bio); 976 crc.nonce = op->nonce; 977 op->nonce += src_len >> 9; 986 u16 nonce = crc.nonce; local [all...] |
H A D | io_read.c | 549 struct nonce nonce = extent_nonce(rbio->version, crc); local 565 csum = bch2_checksum_bio(c, crc.csum_type, nonce, src); 587 ret = bch2_encrypt_bio(c, crc.csum_type, nonce, src); 596 nonce = nonce_add(nonce, crc.offset << 9); 602 ret = bch2_encrypt_bio(c, crc.csum_type, nonce, src); 618 ret = bch2_encrypt_bio(c, crc.csum_type, nonce, src);
|
/linux-master/net/tls/ |
H A D | tls.h | 55 unsigned int nonce; member in struct:tls_cipher_desc 347 /* we cover nonce explicit here as well, so buf should be of 355 /* we can use IV for nonce explicit according to spec */
|
H A D | tls_sw.c | 1528 /* For CCM based ciphers, first byte of nonce+iv is a constant */ 2661 u16 nonce_size = cipher_desc->nonce;
|
/linux-master/net/ipv6/ |
H A D | addrconf.c | 4073 u64 nonce; local 4081 nonce = 0; 4085 get_random_bytes(&nonce, 6); 4086 while (nonce == 0); 4088 ifp->dad_nonce = nonce;
|
/linux-master/net/mptcp/ |
H A D | subflow.c | 68 /* validate received token and create truncated hmac and nonce for SYN-ACK */ 207 subflow_req->remote_nonce = mp_opt.nonce; 536 subflow->remote_nonce = mp_opt.nonce;
|
/linux-master/include/uapi/linux/usb/ |
H A D | ch9.h | 1161 __u8 nonce[16]; member in struct:usb_handshake
|
/linux-master/drivers/net/wireguard/ |
H A D | receive.c | 259 PACKET_CB(skb)->nonce = 279 PACKET_CB(skb)->nonce, 462 PACKET_CB(skb)->nonce))) { 463 net_dbg_ratelimited("%s: Packet has invalid nonce %llu (max %llu)\n", 465 PACKET_CB(skb)->nonce,
|
/linux-master/include/linux/platform_data/ |
H A D | cros_ec_commands.h | 6169 * The salt is *only* ever used for key derivation. The nonce is unique, 6172 uint8_t nonce[FP_CONTEXT_NONCE_BYTES]; member in struct:ec_fp_template_encryption_metadata
|
/linux-master/drivers/md/dm-vdo/ |
H A D | slab-depot.c | 2420 (header.nonce == slab->allocator->nonce)) { 2853 if ((header.nonce != slab->allocator->nonce) || 3699 journal->tail_header.nonce = slab->allocator->nonce; 4001 .nonce = vdo->states.vdo.nonce,
|
H A D | slab-depot.h | 375 /* The nonce of the VDO */ 376 nonce_t nonce; member in struct:block_allocator
|
H A D | repair.c | 1187 if ((header->nonce != journal->nonce) ||
|
H A D | recovery-journal.c | 694 * @nonce: The nonce of the VDO. 703 int vdo_decode_recovery_journal(struct recovery_journal_state_7_0 state, nonce_t nonce, argument 725 journal->nonce = nonce; 957 .nonce = journal->nonce,
|