]> git.sesse.net Git - bcachefs-tools-debian/blobdiff - include/crypto/algapi.h
Move c_src dirs back to toplevel
[bcachefs-tools-debian] / include / crypto / algapi.h
index d8bfcc1f3524fab376759afd552800bf0f059d09..5fd3524a6e6bb7f42332b22319ee732f436f4876 100644 (file)
@@ -1,36 +1,7 @@
-/*
- * Cryptographic API for algorithms (i.e., low-level API).
- *
- * Copyright (c) 2006 Herbert Xu <herbert@gondor.apana.org.au>
- *
- * This program is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License as published by the Free
- * Software Foundation; either version 2 of the License, or (at your option) 
- * any later version.
- *
- */
 #ifndef _CRYPTO_ALGAPI_H
 #define _CRYPTO_ALGAPI_H
 
 #include <linux/crypto.h>
-
-struct crypto_type {
-       unsigned int (*ctxsize)(struct crypto_alg *alg, u32 type, u32 mask);
-       unsigned int (*extsize)(struct crypto_alg *alg);
-       int (*init)(struct crypto_tfm *tfm, u32 type, u32 mask);
-       int (*init_tfm)(struct crypto_tfm *tfm);
-
-       unsigned        type;
-       unsigned        maskclear;
-       unsigned        maskset;
-       unsigned        tfmsize;
-};
-
-extern const struct crypto_type crypto_blkcipher_type;
-
-static inline void *crypto_blkcipher_ctx(struct crypto_blkcipher *tfm)
-{
-       return crypto_tfm_ctx(&tfm->base);
-}
+#include <crypto/skcipher.h>
 
 #endif /* _CRYPTO_ALGAPI_H */