SCCS-vsn: lib/libc/gen/crypt.c 5.11
*/
#if defined(LIBC_SCCS) && !defined(lint)
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)crypt.c 5.10 (Berkeley) %G%";
+static char sccsid[] = "@(#)crypt.c 5.11 (Berkeley) %G%";
#endif /* LIBC_SCCS and not lint */
#include <unistd.h>
#endif /* LIBC_SCCS and not lint */
#include <unistd.h>
keyblock.b[i] = t;
}
if (des_setkey((char *)keyblock.b)) /* also initializes "a64toi" */
keyblock.b[i] = t;
}
if (des_setkey((char *)keyblock.b)) /* also initializes "a64toi" */
encp = &cryptresult[0];
switch (*setting) {
encp = &cryptresult[0];
switch (*setting) {
while (*key) {
if (des_cipher((char *)&keyblock,
(char *)&keyblock, 0L, 1))
while (*key) {
if (des_cipher((char *)&keyblock,
(char *)&keyblock, 0L, 1))
for (i = 0; i < 8; i++) {
if ((t = 2*(unsigned char)(*key)) != 0)
key++;
keyblock.b[i] ^= t;
}
if (des_setkey((char *)keyblock.b))
for (i = 0; i < 8; i++) {
if ((t = 2*(unsigned char)(*key)) != 0)
key++;
keyblock.b[i] ^= t;
}
if (des_setkey((char *)keyblock.b))
encp += salt_size;
if (des_cipher((char *)&constdatablock, (char *)&rsltblock,
salt, num_iter))
encp += salt_size;
if (des_cipher((char *)&constdatablock, (char *)&rsltblock,
salt, num_iter))
/*
* Encode the 64 cipher bits as 11 ascii characters.
/*
* Encode the 64 cipher bits as 11 ascii characters.
PERM6464(K,K0,K1,(unsigned char *)key,ptabp);
STORE(K&~0x03030303L, K0&~0x03030303L, K1, *(C_block *)key);
}
PERM6464(K,K0,K1,(unsigned char *)key,ptabp);
STORE(K&~0x03030303L, K0&~0x03030303L, K1, *(C_block *)key);
}
#else
STORE(L,L0,L1,*(C_block *)out);
#endif
#else
STORE(L,L0,L1,*(C_block *)out);
#endif
- return(des_setkey((char *)keyblock.b));
+ return (des_setkey((char *)keyblock.b));
cblock.b[i] = k;
}
if (des_cipher((char *)&cblock, (char *)&cblock, 0L, (flag ? -1: 1)))
cblock.b[i] = k;
}
if (des_cipher((char *)&cblock, (char *)&cblock, 0L, (flag ? -1: 1)))
for (i = 7; i >= 0; i--) {
k = cblock.b[i];
for (j = 7; j >= 0; j--) {
for (i = 7; i >= 0; i--) {
k = cblock.b[i];
for (j = 7; j >= 0; j--) {