aboutsummaryrefslogtreecommitdiffstats
ModeNameSize
-rw-r--r--.gitignore607logstatsplainblame
-rw-r--r--.mailmap3657logstatsplainblame
-rw-r--r--COPYING18693logstatsplainblame
-rw-r--r--CREDITS92105logstatsplainblame
d---------Documentation8487logstatsplain
-rw-r--r--Kbuild1596logstatsplainblame
-rw-r--r--MAINTAINERS95066logstatsplainblame
-rw-r--r--Makefile51535logstatsplainblame
-rw-r--r--README16930logstatsplainblame
-rw-r--r--REPORTING-BUGS3119logstatsplainblame
d---------arch823logstatsplain
d---------block583logstatsplain
d---------crypto2044logstatsplain
d---------drivers2324logstatsplain
d---------fs4688logstatsplain
d---------include1402logstatsplain
d---------init469logstatsplain
d---------ipc391logstatsplain
d---------kernel3456logstatsplain
d---------lib3648logstatsplain
d---------mm1970logstatsplain
d---------net1546logstatsplain
d---------scripts2071logstatsplain
d---------security362logstatsplain
d---------sound752logstatsplain
d---------usr196logstatsplain
d">crypto_ahash_get_flags(struct crypto_ahash *tfm) { return crypto_tfm_get_flags(crypto_ahash_tfm(tfm)); } static inline void crypto_ahash_set_flags(struct crypto_ahash *tfm, u32 flags) { crypto_tfm_set_flags(crypto_ahash_tfm(tfm), flags); } static inline void crypto_ahash_clear_flags(struct crypto_ahash *tfm, u32 flags) { crypto_tfm_clear_flags(crypto_ahash_tfm(tfm), flags); } static inline struct crypto_ahash *crypto_ahash_reqtfm( struct ahash_request *req) { return __crypto_ahash_cast(req->base.tfm); } static inline unsigned int crypto_ahash_reqsize(struct crypto_ahash *tfm) { return crypto_ahash_crt(tfm)->reqsize; } static inline void *ahash_request_ctx(struct ahash_request *req) { return req->__ctx; } static inline int crypto_ahash_setkey(struct crypto_ahash *tfm, const u8 *key, unsigned int keylen) { struct ahash_tfm *crt = crypto_ahash_crt(tfm); return crt->setkey(tfm, key, keylen); } static inline int crypto_ahash_digest(struct ahash_request *req) { struct ahash_tfm *crt = crypto_ahash_crt(crypto_ahash_reqtfm(req)); return crt->digest(req); } static inline void crypto_ahash_export(struct ahash_request *req, u8 *out) { memcpy(out, ahash_request_ctx(req), crypto_ahash_reqsize(crypto_ahash_reqtfm(req))); } int crypto_ahash_import(struct ahash_request *req, const u8 *in); static inline int crypto_ahash_init(struct ahash_request *req) { struct ahash_tfm *crt = crypto_ahash_crt(crypto_ahash_reqtfm(req)); return crt->init(req); } static inline int crypto_ahash_update(struct ahash_request *req) { struct ahash_tfm *crt = crypto_ahash_crt(crypto_ahash_reqtfm(req)); return crt->update(req); } static inline int crypto_ahash_final(struct ahash_request *req) { struct ahash_tfm *crt = crypto_ahash_crt(crypto_ahash_reqtfm(req)); return crt->final(req); } static inline void ahash_request_set_tfm(struct ahash_request *req, struct crypto_ahash *tfm) { req->base.tfm = crypto_ahash_tfm(tfm); } static inline struct ahash_request *ahash_request_alloc( struct crypto_ahash *tfm, gfp_t gfp) { struct ahash_request *req; req = kmalloc(sizeof(struct ahash_request) + crypto_ahash_reqsize(tfm), gfp); if (likely(req)) ahash_request_set_tfm(req, tfm); return req; } static inline void ahash_request_free(struct ahash_request *req) { kzfree(req); } static inline struct ahash_request *ahash_request_cast( struct crypto_async_request *req) { return container_of(req, struct ahash_request, base); } static inline void ahash_request_set_callback(struct ahash_request *req, u32 flags, crypto_completion_t complete, void *data) { req->base.complete = complete; req->base.data = data;