summaryrefslogtreecommitdiffstats
path: root/secure/lib/libdes/rand_key.c
diff options
context:
space:
mode:
authormarkm <markm@FreeBSD.org>1996-07-28 08:18:06 +0000
committermarkm <markm@FreeBSD.org>1996-07-28 08:18:06 +0000
commitac895ecc7b28577d3762c5eb9a832b45702c3302 (patch)
tree4462567f6eb34de1cc9570e7ccd0c7fbd5f8f3e9 /secure/lib/libdes/rand_key.c
parentf23f097f9af6c093c5bf418e75af10a01c89a1a3 (diff)
parent5313ba6bbed76bbe085937a5a042d87f2a5e601f (diff)
downloadFreeBSD-src-ac895ecc7b28577d3762c5eb9a832b45702c3302.zip
FreeBSD-src-ac895ecc7b28577d3762c5eb9a832b45702c3302.tar.gz
This commit was generated by cvs2svn to compensate for changes in r17315,
which included commits to RCS files with non-trunk default branches.
Diffstat (limited to 'secure/lib/libdes/rand_key.c')
-rw-r--r--secure/lib/libdes/rand_key.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/secure/lib/libdes/rand_key.c b/secure/lib/libdes/rand_key.c
index c4c4caa..4d20201 100644
--- a/secure/lib/libdes/rand_key.c
+++ b/secure/lib/libdes/rand_key.c
@@ -1,5 +1,5 @@
-/* lib/des/rand_key.c */
-/* Copyright (C) 1995 Eric Young (eay@mincom.oz.au)
+/* crypto/des/rand_key.c */
+/* Copyright (C) 1995-1996 Eric Young (eay@mincom.oz.au)
* All rights reserved.
*
* This file is part of an SSL implementation written
@@ -62,12 +62,12 @@ void des_random_key(ret)
unsigned char *ret;
{
des_key_schedule ks;
- static unsigned long c=0;
+ static DES_LONG c=0;
static unsigned short pid=0;
static des_cblock data={0x01,0x23,0x45,0x67,0x89,0xab,0xcd,0xef};
des_cblock key;
unsigned char *p;
- unsigned long t;
+ DES_LONG t;
int i;
#ifdef MSDOS
@@ -85,9 +85,9 @@ unsigned char *ret;
}
seed=0;
}
- t=(unsigned long)time(NULL);
+ t=(DES_LONG)time(NULL);
l2c(t,p);
- t=(unsigned long)((pid)|((c++)<<16));
+ t=(DES_LONG)((pid)|((c++)<<16));
l2c(t,p);
des_set_odd_parity((des_cblock *)data);
OpenPOWER on IntegriCloud