diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2017-05-02 18:53:46 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-05-02 18:53:46 -0400 |
commit | 5a0387a8a8efb90ae7fea1e2e5c62de3efa74691 (patch) | |
tree | 9e5bbbafe7fea01c843d86c7c3d40f29f962c474 /net | |
parent | 204f144c9fcac355843412b6ba1150086488a208 (diff) | |
parent | 929562b144783b9212625305eadcbbd800809643 (diff) |
Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6
Pull crypto updates from Herbert Xu:
"Here is the crypto update for 4.12:
API:
- Add batch registration for acomp/scomp
- Change acomp testing to non-unique compressed result
- Extend algorithm name limit to 128 bytes
- Require setkey before accept(2) in algif_aead
Algorithms:
- Add support for deflate rfc1950 (zlib)
Drivers:
- Add accelerated crct10dif for powerpc
- Add crc32 in stm32
- Add sha384/sha512 in ccp
- Add 3des/gcm(aes) for v5 devices in ccp
- Add Queue Interface (QI) backend support in caam
- Add new Exynos RNG driver
- Add ThunderX ZIP driver
- Add driver for hardware random generator on MT7623 SoC"
* 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6: (101 commits)
crypto: stm32 - Fix OF module alias information
crypto: algif_aead - Require setkey before accept(2)
crypto: scomp - add support for deflate rfc1950 (zlib)
crypto: scomp - allow registration of multiple scomps
crypto: ccp - Change ISR handler method for a v5 CCP
crypto: ccp - Change ISR handler method for a v3 CCP
crypto: crypto4xx - rename ce_ring_contol to ce_ring_control
crypto: testmgr - Allow ecb(cipher_null) in FIPS mode
Revert "crypto: arm64/sha - Add constant operand modifier to ASM_EXPORT"
crypto: ccp - Disable interrupts early on unload
crypto: ccp - Use only the relevant interrupt bits
hwrng: mtk - Add driver for hardware random generator on MT7623 SoC
dt-bindings: hwrng: Add Mediatek hardware random generator bindings
crypto: crct10dif-vpmsum - Fix missing preempt_disable()
crypto: testmgr - replace compression known answer test
crypto: acomp - allow registration of multiple acomps
hwrng: n2 - Use devm_kcalloc() in n2rng_probe()
crypto: chcr - Fix error handling related to 'chcr_alloc_shash'
padata: get_next is never NULL
crypto: exynos - Add new Exynos RNG driver
...
Diffstat (limited to 'net')
-rw-r--r-- | net/xfrm/xfrm_user.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/xfrm/xfrm_user.c b/net/xfrm/xfrm_user.c index 40a8aa39220d..7916af0aadd2 100644 --- a/net/xfrm/xfrm_user.c +++ b/net/xfrm/xfrm_user.c | |||
@@ -55,7 +55,7 @@ static int verify_one_alg(struct nlattr **attrs, enum xfrm_attr_type_t type) | |||
55 | return -EINVAL; | 55 | return -EINVAL; |
56 | } | 56 | } |
57 | 57 | ||
58 | algp->alg_name[CRYPTO_MAX_ALG_NAME - 1] = '\0'; | 58 | algp->alg_name[sizeof(algp->alg_name) - 1] = '\0'; |
59 | return 0; | 59 | return 0; |
60 | } | 60 | } |
61 | 61 | ||
@@ -71,7 +71,7 @@ static int verify_auth_trunc(struct nlattr **attrs) | |||
71 | if (nla_len(rt) < xfrm_alg_auth_len(algp)) | 71 | if (nla_len(rt) < xfrm_alg_auth_len(algp)) |
72 | return -EINVAL; | 72 | return -EINVAL; |
73 | 73 | ||
74 | algp->alg_name[CRYPTO_MAX_ALG_NAME - 1] = '\0'; | 74 | algp->alg_name[sizeof(algp->alg_name) - 1] = '\0'; |
75 | return 0; | 75 | return 0; |
76 | } | 76 | } |
77 | 77 | ||
@@ -87,7 +87,7 @@ static int verify_aead(struct nlattr **attrs) | |||
87 | if (nla_len(rt) < aead_len(algp)) | 87 | if (nla_len(rt) < aead_len(algp)) |
88 | return -EINVAL; | 88 | return -EINVAL; |
89 | 89 | ||
90 | algp->alg_name[CRYPTO_MAX_ALG_NAME - 1] = '\0'; | 90 | algp->alg_name[sizeof(algp->alg_name) - 1] = '\0'; |
91 | return 0; | 91 | return 0; |
92 | } | 92 | } |
93 | 93 | ||