hash.h (5e2aa2ed08e2e280121dc7cf5609c87d464f12ef) hash.h (1e65b81a90df50bf450193065cc9073b706b8dda)
1/*
2 * Hash algorithms.
3 *
4 * Copyright (c) 2008 Herbert Xu <herbert@gondor.apana.org.au>
5 *
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the Free
8 * Software Foundation; either version 2 of the License, or (at your option)

--- 103 unchanged lines hidden (view full) ---

112}
113
114struct shash_alg *shash_attr_alg(struct rtattr *rta, u32 type, u32 mask);
115
116int shash_ahash_update(struct ahash_request *req, struct shash_desc *desc);
117int shash_ahash_finup(struct ahash_request *req, struct shash_desc *desc);
118int shash_ahash_digest(struct ahash_request *req, struct shash_desc *desc);
119
1/*
2 * Hash algorithms.
3 *
4 * Copyright (c) 2008 Herbert Xu <herbert@gondor.apana.org.au>
5 *
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the Free
8 * Software Foundation; either version 2 of the License, or (at your option)

--- 103 unchanged lines hidden (view full) ---

112}
113
114struct shash_alg *shash_attr_alg(struct rtattr *rta, u32 type, u32 mask);
115
116int shash_ahash_update(struct ahash_request *req, struct shash_desc *desc);
117int shash_ahash_finup(struct ahash_request *req, struct shash_desc *desc);
118int shash_ahash_digest(struct ahash_request *req, struct shash_desc *desc);
119
120int shash_ahash_mcryptd_update(struct ahash_request *req,
121 struct shash_desc *desc);
122int shash_ahash_mcryptd_final(struct ahash_request *req,
123 struct shash_desc *desc);
124int shash_ahash_mcryptd_finup(struct ahash_request *req,
125 struct shash_desc *desc);
126int shash_ahash_mcryptd_digest(struct ahash_request *req,
127 struct shash_desc *desc);
128
120int crypto_init_shash_ops_async(struct crypto_tfm *tfm);
121
122static inline void *crypto_ahash_ctx(struct crypto_ahash *tfm)
123{
124 return crypto_tfm_ctx(crypto_ahash_tfm(tfm));
125}
126
127static inline struct ahash_alg *__crypto_ahash_alg(struct crypto_alg *alg)

--- 111 unchanged lines hidden ---
129int crypto_init_shash_ops_async(struct crypto_tfm *tfm);
130
131static inline void *crypto_ahash_ctx(struct crypto_ahash *tfm)
132{
133 return crypto_tfm_ctx(crypto_ahash_tfm(tfm));
134}
135
136static inline struct ahash_alg *__crypto_ahash_alg(struct crypto_alg *alg)

--- 111 unchanged lines hidden ---