]> err.no Git - linux-2.6/blobdiff - include/crypto/algapi.h
Merge git://git.infradead.org/~dwmw2/hdroneline
[linux-2.6] / include / crypto / algapi.h
index f3946baf0c0788b9ff86f8ba7ca951e968b737b3..5748aecdb414704c5baec50cac15fa5ee0d7b7a2 100644 (file)
@@ -82,6 +82,9 @@ struct blkcipher_walk {
 };
 
 extern const struct crypto_type crypto_blkcipher_type;
+extern const struct crypto_type crypto_hash_type;
+
+void crypto_mod_put(struct crypto_alg *alg);
 
 int crypto_register_template(struct crypto_template *tmpl);
 void crypto_unregister_template(struct crypto_template *tmpl);
@@ -134,6 +137,11 @@ static inline struct cipher_alg *crypto_cipher_alg(struct crypto_cipher *tfm)
        return &crypto_cipher_tfm(tfm)->__crt_alg->cra_cipher;
 }
 
+static inline void *crypto_hash_ctx_aligned(struct crypto_hash *tfm)
+{
+       return crypto_tfm_ctx_aligned(&tfm->base);
+}
+
 static inline void blkcipher_walk_init(struct blkcipher_walk *walk,
                                       struct scatterlist *dst,
                                       struct scatterlist *src,