#define NTRIALS (sizeof(trials) / sizeof(trials[0]))
+#if 0
static void
timetest(unsigned int nblk, unsigned int blksiz)
{
char *block;
- int i;
+ unsigned int i;
struct tms before, after;
unsigned long cksum;
free(block);
}
+#endif
static void gethexstr(char *data, size_t *outlen, unsigned char *outbuf,
size_t buflen)
static void
verify(void)
{
- int i;
+ unsigned int i;
struct crc_trial trial;
unsigned char buf[4];
size_t len;
#endif
static void printd (const char *descr, krb5_data *d) {
- int i, j;
+ unsigned int i, j;
const int r = 16;
printf("%s:", descr);
}
static void printk(const char *descr, krb5_keyblock *k) {
krb5_data d;
- d.data = k->contents;
+ d.data = (char *) k->contents;
d.length = k->length;
printd(descr, &d);
}
static const unsigned char aeskey[16] = "chicken teriyaki";
static const int lengths[] = { 17, 31, 32, 47, 48, 64 };
- int i;
+ unsigned int i;
char outbuf[64], encivbuf[16], decivbuf[16];
krb5_crypto_iov iov;
krb5_data in, enciv, deciv;
#endif
static void printd (const char *descr, krb5_data *d) {
- int i, j;
+ unsigned int i, j;
const int r = 16;
printf("%s (%d bytes):", descr, d->length);
char outbuf[20];
char stroutbuf[80];
krb5_error_code err;
- int i, j;
+ unsigned int i, j;
int lose = 0;
struct k5buf buf;
{
#ifdef HAVE_TEST_SUITE
struct md_test_entry *entry;
- int i, num_tests = 0, num_failed = 0;
+ int num_tests = 0, num_failed = 0;
unsigned char digest[16];
printf ("MD%d test suite:\n\n", MD);
static void rfc_tests ()
{
- int i;
+ unsigned i;
struct {
char *input;
unsigned int n;
static void fold_kerberos(unsigned int nbytes)
{
unsigned char cipher_text[300];
- int j;
+ unsigned int j;
if (nbytes > 300)
abort();
char *argv[];
{
unsigned char cipher_text[64];
- int i, j;
+ unsigned int i, j;
printf("N-fold\n");
for (i=0; i<sizeof(nfold_in)/sizeof(char *); i++) {