1994-08-09 18:07:27 +01:00
|
|
|
#
|
Rewrite of crypt library to be more modular, and addition of the
Secure Hashing Algorithm - 1 (SHA-1), along with the further
refinement of what $x$salt$hash means. With this new crypt the
following are all acceptable:
$1$
$MD5$
$SHA1$
Note: $2$ is used by OpenBSD's Blowfish, which I considered adding
as $BF$, but there is no actual need for it with SHA-1. However,
somebody wishing to add OpenBSD password support could easilly add
it in now.
There is also a malloc_crypt() available in the library now, which
behaves exactly the same as crypt(), but it uses a malloced buffer
instead of a static buffer. However, this is not standard so will
likely not be used much (at all).
Also, for those interested I did a brief speed test Pentium 166/MMX,
which shows the DES crypt to do approximately 2640 crypts a CPU second,
MD5 to do about 62 crypts a CPU second and SHA1 to do about 18 crypts
a CPU second.
Reviewed by: Mark Murray
1999-01-21 13:50:09 +00:00
|
|
|
# $Id: Makefile,v 1.14 1998/09/02 15:09:15 bde Exp $
|
1994-08-09 18:07:27 +01:00
|
|
|
#
|
|
|
|
|
Rewrite of crypt library to be more modular, and addition of the
Secure Hashing Algorithm - 1 (SHA-1), along with the further
refinement of what $x$salt$hash means. With this new crypt the
following are all acceptable:
$1$
$MD5$
$SHA1$
Note: $2$ is used by OpenBSD's Blowfish, which I considered adding
as $BF$, but there is no actual need for it with SHA-1. However,
somebody wishing to add OpenBSD password support could easilly add
it in now.
There is also a malloc_crypt() available in the library now, which
behaves exactly the same as crypt(), but it uses a malloced buffer
instead of a static buffer. However, this is not standard so will
likely not be used much (at all).
Also, for those interested I did a brief speed test Pentium 166/MMX,
which shows the DES crypt to do approximately 2640 crypts a CPU second,
MD5 to do about 62 crypts a CPU second and SHA1 to do about 18 crypts
a CPU second.
Reviewed by: Mark Murray
1999-01-21 13:50:09 +00:00
|
|
|
SHLIB_MAJOR= 3
|
|
|
|
.PATH: ${.CURDIR}/../../lib/libmd
|
|
|
|
SRCS= crypt.c crypt-md5.c md5c.c crypt-shs.c shs.c
|
|
|
|
MAN3= crypt.3 shs.3 descrypt.3
|
|
|
|
CFLAGS+= -I${.CURDIR}/../libmd -DLIBC_SCCS
|
|
|
|
DESCRYPT= ${.CURDIR}/../../secure/lib/libcrypt/crypt-des.c
|
|
|
|
|
|
|
|
## build exportable crypt or des crypt?
|
|
|
|
.if exists(${DESCRYPT}) && !defined(NOCRYPT) && !defined(NOSECURE)
|
|
|
|
.PATH: ${.CURDIR}/../../secure/lib/libcrypt
|
|
|
|
CIPHERTYPE= des
|
|
|
|
SRCS+= crypt-des.c
|
|
|
|
CFLAGS+= -I${.CURDIR} -DDES_CRYPT
|
|
|
|
.else
|
|
|
|
CIPHERTYPE= exp
|
|
|
|
.endif
|
|
|
|
|
|
|
|
LIB=${CIPHERTYPE}crypt
|
|
|
|
LCRYPTBASE= libcrypt
|
|
|
|
LSCRYPTBASE= lib${LIB}
|
1997-09-05 13:12:35 +01:00
|
|
|
|
1998-08-30 03:52:04 +01:00
|
|
|
.if ${OBJFORMAT} != elf
|
1997-09-05 13:12:35 +01:00
|
|
|
LCRYPTSO= ${LCRYPTBASE}.so.${SHLIB_MAJOR}.${SHLIB_MINOR}
|
1994-11-14 06:44:45 +00:00
|
|
|
LSCRYPTSO= ${LSCRYPTBASE}.so.${SHLIB_MAJOR}.${SHLIB_MINOR}
|
1997-09-05 13:12:35 +01:00
|
|
|
.else
|
Rewrite of crypt library to be more modular, and addition of the
Secure Hashing Algorithm - 1 (SHA-1), along with the further
refinement of what $x$salt$hash means. With this new crypt the
following are all acceptable:
$1$
$MD5$
$SHA1$
Note: $2$ is used by OpenBSD's Blowfish, which I considered adding
as $BF$, but there is no actual need for it with SHA-1. However,
somebody wishing to add OpenBSD password support could easilly add
it in now.
There is also a malloc_crypt() available in the library now, which
behaves exactly the same as crypt(), but it uses a malloced buffer
instead of a static buffer. However, this is not standard so will
likely not be used much (at all).
Also, for those interested I did a brief speed test Pentium 166/MMX,
which shows the DES crypt to do approximately 2640 crypts a CPU second,
MD5 to do about 62 crypts a CPU second and SHA1 to do about 18 crypts
a CPU second.
Reviewed by: Mark Murray
1999-01-21 13:50:09 +00:00
|
|
|
SONAME= ${LCRYPTBASE}.so.${SHLIB_MAJOR}
|
1997-09-05 13:12:35 +01:00
|
|
|
LCRYPTSO= ${LCRYPTBASE}.so.${SHLIB_MAJOR}
|
|
|
|
LSCRYPTSO= ${LSCRYPTBASE}.so.${SHLIB_MAJOR}
|
|
|
|
.endif
|
1994-08-09 19:49:04 +01:00
|
|
|
|
|
|
|
afterinstall:
|
1995-05-30 06:51:47 +01:00
|
|
|
.if !defined(NOPIC)
|
1994-11-14 06:44:45 +00:00
|
|
|
@cd ${DESTDIR}${SHLIBDIR}; \
|
|
|
|
rm -f ${LCRYPTSO}; \
|
|
|
|
ln -s ${LSCRYPTSO} ${LCRYPTSO}; \
|
Rewrite of crypt library to be more modular, and addition of the
Secure Hashing Algorithm - 1 (SHA-1), along with the further
refinement of what $x$salt$hash means. With this new crypt the
following are all acceptable:
$1$
$MD5$
$SHA1$
Note: $2$ is used by OpenBSD's Blowfish, which I considered adding
as $BF$, but there is no actual need for it with SHA-1. However,
somebody wishing to add OpenBSD password support could easilly add
it in now.
There is also a malloc_crypt() available in the library now, which
behaves exactly the same as crypt(), but it uses a malloced buffer
instead of a static buffer. However, this is not standard so will
likely not be used much (at all).
Also, for those interested I did a brief speed test Pentium 166/MMX,
which shows the DES crypt to do approximately 2640 crypts a CPU second,
MD5 to do about 62 crypts a CPU second and SHA1 to do about 18 crypts
a CPU second.
Reviewed by: Mark Murray
1999-01-21 13:50:09 +00:00
|
|
|
rm -f ${LCRYPTBASE}.so.2; \
|
|
|
|
ln -s ${LSCRYPTSO} ${LCRYPTBASE}.so.2
|
1997-09-05 13:12:35 +01:00
|
|
|
.endif
|
1998-08-30 03:52:04 +01:00
|
|
|
.if !defined(NOPIC) && ${OBJFORMAT} == elf
|
1998-09-02 16:09:15 +01:00
|
|
|
@cd ${DESTDIR}${SHLIBDIR}; \
|
1997-09-05 13:12:35 +01:00
|
|
|
rm -f ${LCRYPTBASE}.so; \
|
Rewrite of crypt library to be more modular, and addition of the
Secure Hashing Algorithm - 1 (SHA-1), along with the further
refinement of what $x$salt$hash means. With this new crypt the
following are all acceptable:
$1$
$MD5$
$SHA1$
Note: $2$ is used by OpenBSD's Blowfish, which I considered adding
as $BF$, but there is no actual need for it with SHA-1. However,
somebody wishing to add OpenBSD password support could easilly add
it in now.
There is also a malloc_crypt() available in the library now, which
behaves exactly the same as crypt(), but it uses a malloced buffer
instead of a static buffer. However, this is not standard so will
likely not be used much (at all).
Also, for those interested I did a brief speed test Pentium 166/MMX,
which shows the DES crypt to do approximately 2640 crypts a CPU second,
MD5 to do about 62 crypts a CPU second and SHA1 to do about 18 crypts
a CPU second.
Reviewed by: Mark Murray
1999-01-21 13:50:09 +00:00
|
|
|
ln -s ${LSCRYPTBASE}.so libcrypt.so
|
1994-08-12 22:12:37 +01:00
|
|
|
.endif
|
1994-11-14 06:44:45 +00:00
|
|
|
@cd ${DESTDIR}${LIBDIR}; \
|
|
|
|
rm -f ${LCRYPTBASE}.a; \
|
Rewrite of crypt library to be more modular, and addition of the
Secure Hashing Algorithm - 1 (SHA-1), along with the further
refinement of what $x$salt$hash means. With this new crypt the
following are all acceptable:
$1$
$MD5$
$SHA1$
Note: $2$ is used by OpenBSD's Blowfish, which I considered adding
as $BF$, but there is no actual need for it with SHA-1. However,
somebody wishing to add OpenBSD password support could easilly add
it in now.
There is also a malloc_crypt() available in the library now, which
behaves exactly the same as crypt(), but it uses a malloced buffer
instead of a static buffer. However, this is not standard so will
likely not be used much (at all).
Also, for those interested I did a brief speed test Pentium 166/MMX,
which shows the DES crypt to do approximately 2640 crypts a CPU second,
MD5 to do about 62 crypts a CPU second and SHA1 to do about 18 crypts
a CPU second.
Reviewed by: Mark Murray
1999-01-21 13:50:09 +00:00
|
|
|
ln -s ${LSCRYPTBASE}.a libcrypt.a
|
1994-08-20 19:13:59 +01:00
|
|
|
.if !defined(NOPROFILE)
|
1994-11-14 06:44:45 +00:00
|
|
|
@cd ${DESTDIR}${LIBDIR}; \
|
|
|
|
rm -f ${LCRYPTBASE}_p.a; \
|
Rewrite of crypt library to be more modular, and addition of the
Secure Hashing Algorithm - 1 (SHA-1), along with the further
refinement of what $x$salt$hash means. With this new crypt the
following are all acceptable:
$1$
$MD5$
$SHA1$
Note: $2$ is used by OpenBSD's Blowfish, which I considered adding
as $BF$, but there is no actual need for it with SHA-1. However,
somebody wishing to add OpenBSD password support could easilly add
it in now.
There is also a malloc_crypt() available in the library now, which
behaves exactly the same as crypt(), but it uses a malloced buffer
instead of a static buffer. However, this is not standard so will
likely not be used much (at all).
Also, for those interested I did a brief speed test Pentium 166/MMX,
which shows the DES crypt to do approximately 2640 crypts a CPU second,
MD5 to do about 62 crypts a CPU second and SHA1 to do about 18 crypts
a CPU second.
Reviewed by: Mark Murray
1999-01-21 13:50:09 +00:00
|
|
|
ln -s ${LSCRYPTBASE}_p.a libcrypt_p.a
|
1994-08-20 19:13:59 +01:00
|
|
|
.endif
|
1994-08-09 19:49:04 +01:00
|
|
|
|
1994-08-09 18:07:27 +01:00
|
|
|
.include <bsd.lib.mk>
|