2N/A/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ 2N/A * This file of the Kerberos V5 software is derived from public-domain code 2N/A * contributed by Daniel J. Bernstein, <brnstnd@acf10.nyu.edu>. 2N/A * An implementation for the default replay cache type. 2N/A krb5_auth_to_replay(context, krb5_tkt_authent *auth,krb5_donot_replay *rep) 2N/A given auth, take important information and make rep; return -1 if failed 2N/A * Generate a printable hash value for a message for use in a replay 2N/A * record. It is not necessary for this hash function to be 2N/A * collision-proof (the only thing you can do with a second preimage 2N/A * is produce a false replay error) but it is necessary for the 2N/A * function to be consistent across implementations. We do an unkeyed 2N/A * MD5 hash of the message and convert it into uppercase hex 2N/A /* Calculate the binary checksum. */ 2N/A /* Convert the checksum into printable form. */