Lines Matching refs:nonce
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,
175 ret = do_encrypt(chacha20, nonce, buf, len);
182 struct nonce nonce)
187 nonce.d[3] ^= BCH_NONCE_POLY;
190 ret = do_encrypt(c->chacha20, nonce, key, sizeof(key));
201 struct nonce nonce, const void *data, size_t len)
226 gen_poly_key(c, desc, nonce);
240 struct nonce nonce, void *data, size_t len)
245 return do_encrypt(c->chacha20, nonce, data, len);
249 struct nonce nonce, struct bio *bio,
288 gen_poly_key(c, desc, nonce);
314 struct nonce nonce, struct bio *bio)
318 return __bch2_checksum_bio(c, type, nonce, bio, &iter);
322 struct nonce nonce, struct bio *bio)
339 ret = do_encrypt_sg(c->chacha20, nonce, sgl, bytes);
343 nonce = nonce_add(nonce, bytes);
355 return do_encrypt_sg(c->chacha20, nonce, sgl, bytes);
391 struct nonce nonce = extent_nonce(version, crc_old);
405 unsigned crc_nonce = crc_old.nonce;
417 nonce, bio, &iter);
420 nonce = nonce_add(nonce, i->len << 9);
458 .nonce = crc_nonce,