hash.h (52861c7cd711fac97b37ae0f4842a9ad26ecae72) hash.h (4dc10c0142ce0af8c20ec44dc6928ae63ad4f73a)
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)

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

98
99int crypto_init_shash_ops_async(struct crypto_tfm *tfm);
100
101static inline void *crypto_ahash_ctx(struct crypto_ahash *tfm)
102{
103 return crypto_tfm_ctx(crypto_ahash_tfm(tfm));
104}
105
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)

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

98
99int crypto_init_shash_ops_async(struct crypto_tfm *tfm);
100
101static inline void *crypto_ahash_ctx(struct crypto_ahash *tfm)
102{
103 return crypto_tfm_ctx(crypto_ahash_tfm(tfm));
104}
105
106static inline struct ahash_alg *__crypto_ahash_alg(struct crypto_alg *alg)
107{
108 return container_of(__crypto_hash_alg_common(alg), struct ahash_alg,
109 halg);
110}
111
106static inline struct old_ahash_alg *crypto_old_ahash_alg(
107 struct crypto_ahash *tfm)
108{
109 return &crypto_ahash_tfm(tfm)->__crt_alg->cra_ahash;
110}
111
112static inline void crypto_ahash_set_reqsize(struct crypto_ahash *tfm,
113 unsigned int reqsize)

--- 104 unchanged lines hidden ---
112static inline struct old_ahash_alg *crypto_old_ahash_alg(
113 struct crypto_ahash *tfm)
114{
115 return &crypto_ahash_tfm(tfm)->__crt_alg->cra_ahash;
116}
117
118static inline void crypto_ahash_set_reqsize(struct crypto_ahash *tfm,
119 unsigned int reqsize)

--- 104 unchanged lines hidden ---