• Home
  • Raw
  • Download

Lines Matching refs:req

108 static int ablkcipher_walk_next(struct ablkcipher_request *req,
111 int ablkcipher_walk_done(struct ablkcipher_request *req, in ablkcipher_walk_done() argument
114 struct crypto_tfm *tfm = req->base.tfm; in ablkcipher_walk_done()
140 crypto_yield(req->base.flags); in ablkcipher_walk_done()
141 return ablkcipher_walk_next(req, walk); in ablkcipher_walk_done()
144 if (walk->iv != req->info) in ablkcipher_walk_done()
145 memcpy(req->info, walk->iv, tfm->crt_ablkcipher.ivsize); in ablkcipher_walk_done()
152 static inline int ablkcipher_next_slow(struct ablkcipher_request *req, in ablkcipher_next_slow() argument
169 return ablkcipher_walk_done(req, walk, -ENOMEM); in ablkcipher_next_slow()
217 static inline int ablkcipher_next_fast(struct ablkcipher_request *req, in ablkcipher_next_fast() argument
228 static int ablkcipher_walk_next(struct ablkcipher_request *req, in ablkcipher_walk_next() argument
231 struct crypto_tfm *tfm = req->base.tfm; in ablkcipher_walk_next()
239 req->base.flags |= CRYPTO_TFM_RES_BAD_BLOCK_LEN; in ablkcipher_walk_next()
240 return ablkcipher_walk_done(req, walk, -EINVAL); in ablkcipher_walk_next()
253 err = ablkcipher_next_slow(req, walk, bsize, alignmask, in ablkcipher_walk_next()
260 return ablkcipher_next_fast(req, walk); in ablkcipher_walk_next()
273 static int ablkcipher_walk_first(struct ablkcipher_request *req, in ablkcipher_walk_first() argument
276 struct crypto_tfm *tfm = req->base.tfm; in ablkcipher_walk_first()
288 walk->iv = req->info; in ablkcipher_walk_first()
298 return ablkcipher_walk_next(req, walk); in ablkcipher_walk_first()
301 int ablkcipher_walk_phys(struct ablkcipher_request *req, in ablkcipher_walk_phys() argument
304 walk->blocksize = crypto_tfm_alg_blocksize(req->base.tfm); in ablkcipher_walk_phys()
305 return ablkcipher_walk_first(req, walk); in ablkcipher_walk_phys()
354 int skcipher_null_givencrypt(struct skcipher_givcrypt_request *req) in skcipher_null_givencrypt() argument
356 return crypto_ablkcipher_encrypt(&req->creq); in skcipher_null_givencrypt()
359 int skcipher_null_givdecrypt(struct skcipher_givcrypt_request *req) in skcipher_null_givdecrypt() argument
361 return crypto_ablkcipher_decrypt(&req->creq); in skcipher_null_givdecrypt()
441 static int no_givdecrypt(struct skcipher_givcrypt_request *req) in no_givdecrypt() argument