diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2006-09-20 21:44:08 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2006-09-20 21:44:08 -0400 |
commit | db131ef9084110d9e82549c0a627e157e8bb99d7 (patch) | |
tree | 65330d3557a7dda47fa48876b7ea9cac1461301d /include/crypto/algapi.h | |
parent | 5cde0af2a9825dd1edaca233bd9590566579ef21 (diff) |
[CRYPTO] cipher: Added block ciphers for CBC/ECB
This patch adds two block cipher algorithms, CBC and ECB. These
are implemented as templates on top of existing single-block cipher
algorithms. They invoke the single-block cipher through the new
encrypt_one/decrypt_one interface.
This also optimises the in-place encryption and decryption to remove
the cost of an IV copy each round.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include/crypto/algapi.h')
-rw-r--r-- | include/crypto/algapi.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/crypto/algapi.h b/include/crypto/algapi.h index f3946baf0c07..444f602724db 100644 --- a/include/crypto/algapi.h +++ b/include/crypto/algapi.h | |||
@@ -83,6 +83,8 @@ struct blkcipher_walk { | |||
83 | 83 | ||
84 | extern const struct crypto_type crypto_blkcipher_type; | 84 | extern const struct crypto_type crypto_blkcipher_type; |
85 | 85 | ||
86 | void crypto_mod_put(struct crypto_alg *alg); | ||
87 | |||
86 | int crypto_register_template(struct crypto_template *tmpl); | 88 | int crypto_register_template(struct crypto_template *tmpl); |
87 | void crypto_unregister_template(struct crypto_template *tmpl); | 89 | void crypto_unregister_template(struct crypto_template *tmpl); |
88 | struct crypto_template *crypto_lookup_template(const char *name); | 90 | struct crypto_template *crypto_lookup_template(const char *name); |