1 /* 2 chronyd/chronyc - Programs for keeping computer clocks accurate. 3 4 ********************************************************************** 5 * Copyright (C) Miroslav Lichvar 2020 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of version 2 of the GNU General Public License as 9 * published by the Free Software Foundation. 10 * 11 * This program is distributed in the hope that it will be useful, but 12 * WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 * General Public License for more details. 15 * 16 * You should have received a copy of the GNU General Public License along 17 * with this program; if not, write to the Free Software Foundation, Inc., 18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 19 * 20 ********************************************************************** 21 22 ======================================================================= 23 24 Header for NTS Authenticator and Encrypted Extension Fields 25 extension field 26 */ 27 28 #ifndef GOT_NTS_NTP_AUTH_H 29 #define GOT_NTS_NTP_AUTH_H 30 31 #include "ntp.h" 32 #include "siv.h" 33 34 extern int NNA_GenerateAuthEF(NTP_Packet *packet, NTP_PacketInfo *info, SIV_Instance siv, 35 const unsigned char *nonce, int nonce_length, 36 const unsigned char *plaintext, int plaintext_length, 37 int min_ef_length); 38 39 extern int NNA_DecryptAuthEF(NTP_Packet *packet, NTP_PacketInfo *info, SIV_Instance siv, 40 int ef_start, unsigned char *plaintext, int buffer_length, 41 int *plaintext_length); 42 43 #endif 44