|
|
BSD 4.3reno
/*
* $Source: /var/lib/cvsd/repos/CSRG/43BSDReno/kerberosIV/des/util.c,v $
* $Author: root $
*
* Copyright 1988 by the Massachusetts Institute of Technology.
*
* For copying and distribution information, please see the file
* <mit-copyright.h>.
*
* Miscellaneous debug printing utilities
*/
#ifndef lint
static char rcsid_util_c[] =
"$Header: /var/lib/cvsd/repos/CSRG/43BSDReno/kerberosIV/des/util.c,v 1.1.1.1 2018/04/24 16:12:56 root Exp $";
#endif lint
#include <mit-copyright.h>
#include <stdio.h>
#include <des.h>
des_cblock_print_file(x, fp)
des_cblock *x;
FILE *fp;
{
unsigned char *y = (unsigned char *) x;
register int i = 0;
fprintf(fp," 0x { ");
while (i++ < 8) {
fprintf(fp,"%x",*y++);
if (i < 8)
fprintf(fp,", ");
}
fprintf(fp," }");
}
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.