crypto: hash - Add shash interface
[deliverable/linux.git] / include / crypto / internal / hash.h
index 917ae57bad4ac2ec19415221f78c24e596fd908e..32d3a8ed06de9bd3b98df7ec8854d80bc4c5ad8a 100644 (file)
@@ -40,6 +40,9 @@ int crypto_hash_walk_done(struct crypto_hash_walk *walk, int err);
 int crypto_hash_walk_first(struct ahash_request *req,
                           struct crypto_hash_walk *walk);
 
+int crypto_register_shash(struct shash_alg *alg);
+int crypto_unregister_shash(struct shash_alg *alg);
+
 static inline void *crypto_ahash_ctx(struct crypto_ahash *tfm)
 {
        return crypto_tfm_ctx(&tfm->base);
@@ -74,5 +77,10 @@ static inline int ahash_tfm_in_queue(struct crypto_queue *queue,
        return crypto_tfm_in_queue(queue, crypto_ahash_tfm(tfm));
 }
 
+static inline void *crypto_shash_ctx(struct crypto_shash *tfm)
+{
+       return crypto_tfm_ctx(&tfm->base);
+}
+
 #endif /* _CRYPTO_INTERNAL_HASH_H */
 
This page took 0.024572 seconds and 5 git commands to generate.