Lines Matching refs:skcipher_request
21 * struct skcipher_request - Symmetric key cipher request
29 struct skcipher_request {
129 int (*encrypt)(struct skcipher_request *req);
130 int (*decrypt)(struct skcipher_request *req);
153 char __##name##_desc[sizeof(struct skcipher_request) + \
158 struct skcipher_request *name = (void *)__##name##_desc
176 * information is given by filling in the skcipher_request data structure.
413 * @req: skcipher_request out of which the cipher handle is to be obtained
415 * Return the crypto_skcipher handle when furnishing an skcipher_request
421 struct skcipher_request *req)
427 struct skcipher_request *req)
436 * @req: reference to the skcipher_request handle that holds all information
439 * Encrypt plaintext data using the skcipher_request handle. That data
445 int crypto_skcipher_encrypt(struct skcipher_request *req);
449 * @req: reference to the skcipher_request handle that holds all information
452 * Decrypt ciphertext data using the skcipher_request handle. That data
458 int crypto_skcipher_decrypt(struct skcipher_request *req);
463 * The skcipher_request data structure contains all pointers to data
465 * handle (which can be used by multiple skcipher_request instances), pointer
490 static inline void skcipher_request_set_tfm(struct skcipher_request *req,
496 static inline void skcipher_request_set_sync_tfm(struct skcipher_request *req,
502 static inline struct skcipher_request *skcipher_request_cast(
505 return container_of(req, struct skcipher_request, base);
519 static inline struct skcipher_request *skcipher_request_alloc(
522 struct skcipher_request *req;
524 req = kmalloc(sizeof(struct skcipher_request) +
537 static inline void skcipher_request_free(struct skcipher_request *req)
542 static inline void skcipher_request_zero(struct skcipher_request *req)
569 * The callback function is registered with the skcipher_request handle and
574 static inline void skcipher_request_set_callback(struct skcipher_request *req,
601 struct skcipher_request *req,