projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ae13ed4
)
crypto: aead - Add crypto_aead_maxauthsize
author
Herbert Xu
<herbert@gondor.apana.org.au>
Thu, 21 May 2015 07:11:05 +0000
(15:11 +0800)
committer
Herbert Xu
<herbert@gondor.apana.org.au>
Fri, 22 May 2015 03:25:53 +0000
(11:25 +0800)
This patch adds the helper crypto_aead_maxauthsize to remove the
need to directly dereference aead_alg internals by AEAD implementors.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
include/crypto/internal/aead.h
patch
|
blob
|
history
diff --git
a/include/crypto/internal/aead.h
b/include/crypto/internal/aead.h
index 84c17bb92b6acfb34a775bcdfa3604baa6a50fb4..4614f795f8bc624c2ea41f1d8f4176cf5d02c0d5 100644
(file)
--- a/
include/crypto/internal/aead.h
+++ b/
include/crypto/internal/aead.h
@@
-119,5
+119,10
@@
static inline void crypto_aead_set_reqsize(struct crypto_aead *aead,
crypto_aead_crt(aead)->reqsize = reqsize;
}
+static inline unsigned int crypto_aead_maxauthsize(struct crypto_aead *aead)
+{
+ return crypto_old_aead_alg(aead)->maxauthsize;
+}
+
#endif /* _CRYPTO_INTERNAL_AEAD_H */