Lines Matching refs:req
129 int (*encrypt)(struct skcipher_request *req);
130 int (*decrypt)(struct skcipher_request *req);
413 * @req: skcipher_request out of which the cipher handle is to be obtained
421 struct skcipher_request *req)
423 return __crypto_skcipher_cast(req->base.tfm);
427 struct skcipher_request *req)
429 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
436 * @req: reference to the skcipher_request handle that holds all information
445 int crypto_skcipher_encrypt(struct skcipher_request *req);
449 * @req: reference to the skcipher_request handle that holds all information
458 int crypto_skcipher_decrypt(struct skcipher_request *req);
484 * @req: request handle to be modified
490 static inline void skcipher_request_set_tfm(struct skcipher_request *req,
493 req->base.tfm = crypto_skcipher_tfm(tfm);
496 static inline void skcipher_request_set_sync_tfm(struct skcipher_request *req,
499 skcipher_request_set_tfm(req, &tfm->base);
503 struct crypto_async_request *req)
505 return container_of(req, struct skcipher_request, base);
522 struct skcipher_request *req;
524 req = kmalloc(sizeof(struct skcipher_request) +
527 if (likely(req))
528 skcipher_request_set_tfm(req, tfm);
530 return req;
535 * @req: request data structure cipher handle to be freed
537 static inline void skcipher_request_free(struct skcipher_request *req)
539 kfree_sensitive(req);
542 static inline void skcipher_request_zero(struct skcipher_request *req)
544 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
546 memzero_explicit(req, sizeof(*req) + crypto_skcipher_reqsize(tfm));
551 * @req: request handle
572 * void callback_function(struct crypto_async_request *req, int error)
574 static inline void skcipher_request_set_callback(struct skcipher_request *req,
579 req->base.complete = compl;
580 req->base.data = data;
581 req->base.flags = flags;
586 * @req: request handle
601 struct skcipher_request *req,
605 req->src = src;
606 req->dst = dst;
607 req->cryptlen = cryptlen;
608 req->iv = iv;