Skip to content

lib/crypto: More at_least decorations

Eric Biggers linux-crypto linux-hardening lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 10 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6lib/crypto: chacha: Add at_least decoration to fixed-size array paramsinclude/crypto/chacha.h+6 -60 replies
2/6lib/crypto: curve25519: Add at_least decoration to fixed-size array paramsinclude/crypto/curve25519.h+14 -100 replies
3/6lib/crypto: md5: Add at_least decoration to fixed-size array paramsinclude/crypto/md5.h+6 -50 replies
4/6lib/crypto: poly1305: Add at_least decoration to fixed-size array paramsinclude/crypto/poly1305.h+1 -10 replies
5/6lib/crypto: sha1: Add at_least decoration to fixed-size array paramsinclude/crypto/sha1.h+7 -50 replies
6/6lib/crypto: sha2: Add at_least decoration to fixed-size array paramsinclude/crypto/sha2.h+31 -220 replies

Reviews trailers per patch

None of the 6 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchJason A. DonenfeldArd Biesheuvel
SeriesA-b A-b
1/6
2/6
3/6
4/6
5/6
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/6] lib/crypto: More at_least decorations

This series depends on the 'at_least' macro added by
https://lore.kernel.org/r/[email protected]
It can also be retrieved from

git fetch https://git.kernel.org/pub/scm/linux/kernel/git/ebiggers/linux.git more-at-least-decorations-v1

Add the at_least (i.e. 'static') decoration to the fixed-size array parameters of more of the crypto library functions. This causes clang to generate a warning if a too-small array of known size is passed.

Eric Biggers (6):
lib/crypto: chacha: Add at_least decoration to fixed-size array params lib/crypto: curve25519: Add at_least decoration to fixed-size array
params
lib/crypto: md5: Add at_least decoration to fixed-size array params lib/crypto: poly1305: Add at_least decoration to fixed-size array
params
lib/crypto: sha1: Add at_least decoration to fixed-size array params lib/crypto: sha2: Add at_least decoration to fixed-size array params

 include/crypto/chacha.h     | 12 ++++-----
 include/crypto/curve25519.h | 24 ++++++++++-------
 include/crypto/md5.h        | 11 ++++----
 include/crypto/poly1305.h   |  2 +-
 include/crypto/sha1.h       | 12 +++++----
 include/crypto/sha2.h       | 53 ++++++++++++++++++++++---------------
 6 files changed, 65 insertions(+), 49 deletions(-)

base-commit: 86d930bb1c19ec798fd432c5b8f25912373c98b2

Signature · 1 line
2.51.2