]> git.ipfire.org Git - thirdparty/chrony.git/commit
cmac+hash: change parameter types
authorMiroslav Lichvar <mlichvar@redhat.com>
Wed, 8 Jul 2020 10:02:12 +0000 (12:02 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Thu, 9 Jul 2020 12:47:33 +0000 (14:47 +0200)
commitd93aa10bac6b269d6c9c431d8dc58858ba690fac
tree8d1b51b6a9d624bab28c19a6c8bf5fcf5016cd6d
parentde4ecc72d19418151d7760bced9c39da100f01ab
cmac+hash: change parameter types

For consistency and safety, change the CMC and HSH functions to accept
signed lengths and handle negative values as errors. Also, change the
input data type to void * to not require casting in the caller.
13 files changed:
cmac.h
cmac_nettle.c
hash.h
hash_intmd5.c
hash_nettle.c
hash_nss.c
hash_tomcrypt.c
keys.c
keys.h
ntp_auth.c
stubs.c
test/unit/cmac.c
test/unit/hash.c