base/keysz.c: New function to find smallest `key' size larger.
authorMark Wooding <mdw@distorted.org.uk>
Fri, 9 Nov 2018 18:21:34 +0000 (18:21 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Thu, 5 Sep 2019 00:33:36 +0000 (01:33 +0100)
commit778b9e26bfb8fa2beba1f8915164d3655538cb3a
tree5b7a9069533db421feac6dda77118c7bf2b83703
parent96a5a09cc7d5327fad4992a8e1000d409853a000
base/keysz.c: New function to find smallest `key' size larger.

Now that AEAD schemes are (ab)using key-size lists for permitted nonce
lengths, it's useful to ask: what's the smallest acceptable size bigger
than the amount of stuff I want to pack into this nonce?  The new
`keysz_pad' function answers this question.
base/keysz.c
base/keysz.h