mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-06 23:25:06 -05:00
siv: add support for AES-GCM-SIV in gnutls
Add support for AES-128-GCM-SIV in the current development code of gnutls. There doesn't seem to be an API to get the cipher's minimum and maximum nonce length and it doesn't check for invalid lengths. Hardcode and check the limits in chrony for now.
This commit is contained in:
7
configure
vendored
7
configure
vendored
@@ -1012,6 +1012,13 @@ if [ $feat_ntp = "1" ] && [ $feat_nts = "1" ] && [ $try_gnutls = "1" ]; then
|
||||
then
|
||||
EXTRA_OBJECTS="$EXTRA_OBJECTS siv_gnutls.o"
|
||||
add_def HAVE_SIV
|
||||
if [ $try_aes_gcm_siv = "1" ] && test_code 'AES-GCM-SIV in gnutls' \
|
||||
'gnutls/crypto.h' "$test_cflags" "$test_link $LIBS" '
|
||||
return gnutls_aead_cipher_init((void *)1, GNUTLS_CIPHER_AES_128_SIV_GCM,
|
||||
(void *)2);'
|
||||
then
|
||||
add_def HAVE_GNUTLS_SIV_GCM
|
||||
fi
|
||||
if test_code 'gnutls_aead_cipher_set_key()' 'gnutls/crypto.h' \
|
||||
"$test_cflags" "$test_link $LIBS" '
|
||||
return gnutls_aead_cipher_set_key((void *)1, (void *)2);'
|
||||
|
||||
Reference in New Issue
Block a user