7

please explain these crypto functions

view full story
linux-howto

http://unix.stackexchange.com – crypto_hash_cast static inline struct crypto_hash *crypto_hash_cast(struct crypto_tfm *tfm) { BUG_ON((crypto_tfm_alg_type(tfm) ^ CRYPTO_ALG_TYPE_HASH) & CRYPTO_ALG_TYPE_HASH_MASK); return __crypto_hash_cast(tfm); } crypto_alloc_hash static inline struct crypto_hash *crypto_alloc_hash(const char *alg_name, u32 type, u32 mask) { type &= ~CRYPTO_ALG_TYPE_MASK; mask &= ~CRYPTO_ALG_TYPE_MASK; type |= CRYPTO_ALG_TYPE_HASH; mask |= CRYPT (HowTos)