2 * authusekey - decode a key from ascii and use it
8 #include "ntp_string.h"
9 #include "ntp_stdlib.h"
12 * Types of ascii representations for keys. "Standard" means a 64 bit
13 * hex number in NBS format, i.e. with the low order bit of each byte
14 * a parity bit. "NTP" means a 64 bit key in NTP format, with the
15 * high order bit of each byte a parity bit. "Ascii" means a 1-to-8
16 * character string whose ascii representation is used as the key.
19 #define KEY_TYPE_MD5 4
32 len = strlen((const char *)cp);
38 MD5auth_setkey(keyno, str, (int)strlen((const char *)str));