Lines Matching refs:nonce
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 nonce, unsigned offset)
178 le32_add_cpu(&nonce.d[0], offset / CHACHA_BLOCK_SIZE);
179 return nonce;
182 static inline struct nonce null_nonce(void)
184 struct nonce ret;
190 static inline struct nonce extent_nonce(struct bversion version,
197 struct nonce nonce = (struct nonce) {{
205 return nonce_add(nonce, crc.nonce << 9);
213 static inline struct nonce __bch2_sb_key_nonce(struct bch_sb *sb)
217 return (struct nonce) {{
225 static inline struct nonce bch2_sb_key_nonce(struct bch_fs *c)
229 return (struct nonce) {{