Lines Matching defs:chacha20
159 struct crypto_sync_skcipher *chacha20 =
160 crypto_alloc_sync_skcipher("chacha20", 0, 0);
163 ret = PTR_ERR_OR_ZERO(chacha20);
165 pr_err("error requesting chacha20 cipher: %s", bch2_err_str(ret));
169 ret = crypto_skcipher_setkey(&chacha20->base,
176 ret = do_encrypt(chacha20, nonce, buf, len);
178 crypto_free_sync_skcipher(chacha20);
191 ret = do_encrypt(c->chacha20, nonce, key, sizeof(key));
246 return do_encrypt(c->chacha20, nonce, data, len);
340 ret = do_encrypt_sg(c->chacha20, nonce, sgl, bytes);
357 return do_encrypt_sg(c->chacha20, nonce, sgl, bytes);
655 if (c->chacha20)
658 struct crypto_sync_skcipher *chacha20 = crypto_alloc_sync_skcipher("chacha20", 0, 0);
659 int ret = PTR_ERR_OR_ZERO(chacha20);
661 bch_err(c, "error requesting chacha20 module: %s", bch2_err_str(ret));
669 crypto_free_sync_skcipher(chacha20);
673 c->chacha20 = chacha20;
743 ret = crypto_skcipher_setkey(&c->chacha20->base,
771 if (c->chacha20)
772 crypto_free_sync_skcipher(c->chacha20);
803 ret = crypto_skcipher_setkey(&c->chacha20->base,