Code Review
/
linux-3.10.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
[CRYPTO] aead: Make authsize a run-time parameter
[linux-3.10.git]
/
include
/
linux
/
crypto.h
diff --git
a/include/linux/crypto.h
b/include/linux/crypto.h
index f56ae8721bc96280f1a3c14418dd41e6e394679f..48aa5959abbb5b4b237330ebf920308e33c6efed 100644
(file)
--- a/
include/linux/crypto.h
+++ b/
include/linux/crypto.h
@@
-187,11
+187,12
@@
struct ablkcipher_alg {
struct aead_alg {
int (*setkey)(struct crypto_aead *tfm, const u8 *key,
unsigned int keylen);
struct aead_alg {
int (*setkey)(struct crypto_aead *tfm, const u8 *key,
unsigned int keylen);
+ int (*setauthsize)(struct crypto_aead *tfm, unsigned int authsize);
int (*encrypt)(struct aead_request *req);
int (*decrypt)(struct aead_request *req);
unsigned int ivsize;
int (*encrypt)(struct aead_request *req);
int (*decrypt)(struct aead_request *req);
unsigned int ivsize;
- unsigned int authsize;
+ unsigned int
max
authsize;
};
struct blkcipher_alg {
};
struct blkcipher_alg {
@@
-754,6
+755,8
@@
static inline int crypto_aead_setkey(struct crypto_aead *tfm, const u8 *key,
return crypto_aead_crt(tfm)->setkey(tfm, key, keylen);
}
return crypto_aead_crt(tfm)->setkey(tfm, key, keylen);
}
+int crypto_aead_setauthsize(struct crypto_aead *tfm, unsigned int authsize);
+
static inline struct crypto_aead *crypto_aead_reqtfm(struct aead_request *req)
{
return __crypto_aead_cast(req->base.tfm);
static inline struct crypto_aead *crypto_aead_reqtfm(struct aead_request *req)
{
return __crypto_aead_cast(req->base.tfm);