Lines Matching refs:req
107 int (*encrypt)(struct skcipher_request *req);
108 int (*decrypt)(struct skcipher_request *req);
387 * @req: skcipher_request out of which the cipher handle is to be obtained
395 struct skcipher_request *req)
397 return __crypto_skcipher_cast(req->base.tfm);
401 struct skcipher_request *req)
403 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
410 * @req: reference to the skcipher_request handle that holds all information
419 int crypto_skcipher_encrypt(struct skcipher_request *req);
423 * @req: reference to the skcipher_request handle that holds all information
432 int crypto_skcipher_decrypt(struct skcipher_request *req);
458 * @req: request handle to be modified
464 static inline void skcipher_request_set_tfm(struct skcipher_request *req,
467 req->base.tfm = crypto_skcipher_tfm(tfm);
470 static inline void skcipher_request_set_sync_tfm(struct skcipher_request *req,
473 skcipher_request_set_tfm(req, &tfm->base);
477 struct crypto_async_request *req)
479 return container_of(req, struct skcipher_request, base);
496 struct skcipher_request *req;
498 req = kmalloc(sizeof(struct skcipher_request) +
501 if (likely(req))
502 skcipher_request_set_tfm(req, tfm);
504 return req;
509 * @req: request data structure cipher handle to be freed
511 static inline void skcipher_request_free(struct skcipher_request *req)
513 kfree_sensitive(req);
516 static inline void skcipher_request_zero(struct skcipher_request *req)
518 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
520 memzero_explicit(req, sizeof(*req) + crypto_skcipher_reqsize(tfm));
525 * @req: request handle
546 * void callback_function(struct crypto_async_request *req, int error)
548 static inline void skcipher_request_set_callback(struct skcipher_request *req,
553 req->base.complete = compl;
554 req->base.data = data;
555 req->base.flags = flags;
560 * @req: request handle
575 struct skcipher_request *req,
579 req->src = src;
580 req->dst = dst;
581 req->cryptlen = cryptlen;
582 req->iv = iv;