hash.h (cb1f34ddccb46f7c1bb61e98b7d44751a20c7e49) | hash.h (cd6ed77ad5d223dc6299fb58f62e0f5267f7e2ba) |
---|---|
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) --- 76 unchanged lines hidden (view full) --- 85int shash_no_setkey(struct crypto_shash *tfm, const u8 *key, 86 unsigned int keylen); 87 88static inline bool crypto_shash_alg_has_setkey(struct shash_alg *alg) 89{ 90 return alg->setkey != shash_no_setkey; 91} 92 | 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) --- 76 unchanged lines hidden (view full) --- 85int shash_no_setkey(struct crypto_shash *tfm, const u8 *key, 86 unsigned int keylen); 87 88static inline bool crypto_shash_alg_has_setkey(struct shash_alg *alg) 89{ 90 return alg->setkey != shash_no_setkey; 91} 92 |
93bool crypto_hash_alg_has_setkey(struct hash_alg_common *halg); 94 |
|
93int crypto_init_ahash_spawn(struct crypto_ahash_spawn *spawn, 94 struct hash_alg_common *alg, 95 struct crypto_instance *inst); 96 97static inline void crypto_drop_ahash(struct crypto_ahash_spawn *spawn) 98{ 99 crypto_drop_spawn(&spawn->base); 100} --- 160 unchanged lines hidden --- | 95int crypto_init_ahash_spawn(struct crypto_ahash_spawn *spawn, 96 struct hash_alg_common *alg, 97 struct crypto_instance *inst); 98 99static inline void crypto_drop_ahash(struct crypto_ahash_spawn *spawn) 100{ 101 crypto_drop_spawn(&spawn->base); 102} --- 160 unchanged lines hidden --- |