bcachefs-tools/include/crypto/internal/hash.h
2017-02-28 03:05:38 -09:00

16 lines
345 B
C

#ifndef _CRYPTO_INTERNAL_HASH_H
#define _CRYPTO_INTERNAL_HASH_H
#include <crypto/algapi.h>
#include <crypto/hash.h>
int crypto_register_shash(struct shash_alg *alg);
static inline struct crypto_shash *__crypto_shash_cast(struct crypto_tfm *tfm)
{
return container_of(tfm, struct crypto_shash, base);
}
#endif /* _CRYPTO_INTERNAL_HASH_H */