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