summaryrefslogtreecommitdiff
path: root/include/crypto/internal/hash.h
blob: 3973047b857248714818433f565bbc0bccb94657 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#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 */