This commit is contained in:
brad 2000-09-07 04:40:17 +00:00
parent a6ada5c957
commit 2b9f5884a8
12 changed files with 0 additions and 174 deletions

View File

@ -1,42 +0,0 @@
# $OpenBSD: Makefile,v 1.19 2000/07/20 05:14:47 brad Exp $
# $FreeBSD: Makefile,v 1.3 1997/07/17 15:12:58 max Exp $
PKGNAME= rsaref-2.0
DISTNAME= rsaref20.1996
CATEGORIES= security
NEED_VERSION= 1.310
MASTER_SITES= ftp://ftp.zedz.net/pub/crypto/crypto/LIBS/rsa/ \
http://the.wiretapped.net/security/cryptography/libs/rsa/ \
ftp://utopia.hacktic.nl/pub/replay/pub/crypto/LIBS/rsa/
EXTRACT_SUFX= .tar.Z
MAINTAINER= niklas@openbsd.org
# rsaref may not leave the US or Canada.
PERMIT_PACKAGE_CDROM= No
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= No
PERMIT_DISTFILES_FTP= Yes
WRKDIST= ${WRKDIR}/source
pre-configure:
@cp ${FILESDIR}/Makefile ${WRKSRC}
@cp ${FILESDIR}/shlib_version ${WRKSRC}
@cd ${WRKSRC} && \
cp des.h _des.h && \
cp md2.h _md2.h && \
cp md5.h _md5.h
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/rsaref
cd ${WRKSRC} && ${INSTALL_DATA} rsa.h _des.h _md2.h _md5.h \
rsaref.h global.h ${PREFIX}/include
cd ${WRKDIR}/doc && ${INSTALL_DATA} info.txt rsaref.txt \
${PREFIX}/share/doc/rsaref
${INSTALL_DATA} ${WRKSRC}/librsaref.a ${PREFIX}/lib
@if [ -f ${WRKSRC}/librsaref.so.2.0 ]; then \
${INSTALL_DATA} ${WRKSRC}/librsaref.so.2.0 ${PREFIX}/lib; \
fi
.include <bsd.port.mk>

View File

@ -1,8 +0,0 @@
LIB= rsaref
SRCS= desc.c digit.c md2c.c md5c.c nn.c prime.c rsa.c r_encode.c r_dh.c \
r_enhanc.c r_keygen.c r_random.c r_stdlib.c
NOPROFILE=yes
.include <bsd.lib.mk>

View File

@ -1,3 +0,0 @@
MD5 (rsaref20.1996.tar.Z) = 6b8df27a1b0b0f7dfb81adac2c222395
RMD160 (rsaref20.1996.tar.Z) = 12fa88e70f339a7bc8a248a3e1fc71686b80acfa
SHA1 (rsaref20.1996.tar.Z) = a67c8ef354604d8a05984bad8965c8079f88ec78

View File

@ -1,2 +0,0 @@
major=2
minor=0

View File

@ -1,15 +0,0 @@
--- rsaref.h.orig Fri Mar 25 14:01:49 1994
+++ rsaref.h Sun Dec 12 18:46:08 1999
@@ -8,9 +8,9 @@
#ifndef _RSAREF_H_
#define _RSAREF_H_ 1
-#include "md2.h"
-#include "md5.h"
-#include "des.h"
+#include "_md2.h"
+#include "_md5.h"
+#include "_des.h"
#ifdef __cplusplus
extern "C" {

View File

@ -1,25 +0,0 @@
--- global.h.~1~ Fri Mar 25 12:01:46 1994
+++ global.h Thu Apr 2 00:12:23 1998
@@ -7,6 +7,8 @@
#ifndef _GLOBAL_H_
#define _GLOBAL_H_ 1
+#include <limits.h>
+
/* PROTOTYPES should be set to one if and only if the compiler supports
function argument prototyping.
The following makes PROTOTYPES default to 1 if it has not already been
@@ -23,7 +25,13 @@
typedef unsigned short int UINT2;
/* UINT4 defines a four byte word */
+#if ( UINT_MAX == 0xffffffffU )
+typedef unsigned int UINT4;
+#elif ( ULONG_MAX == 0xffffffffU )
typedef unsigned long int UINT4;
+#else
+# error Unknown size for UINT4
+#endif
#ifndef NULL_PTR
#define NULL_PTR ((POINTER)0)

View File

@ -1,38 +0,0 @@
--- rsa.c.orig Sun Dec 12 13:31:52 1999
+++ rsa.c Sun Dec 12 13:35:12 1999
@@ -33,6 +33,8 @@
unsigned char byte, pkcsBlock[MAX_RSA_MODULUS_LEN];
unsigned int i, modulusLen;
+ if (publicKey->bits > MAX_RSA_MODULUS_BITS)
+ return (RE_LEN);
modulusLen = (publicKey->bits + 7) / 8;
if (inputLen + 11 > modulusLen)
return (RE_LEN);
@@ -78,6 +80,8 @@
unsigned char pkcsBlock[MAX_RSA_MODULUS_LEN];
unsigned int i, modulusLen, pkcsBlockLen;
+ if (publicKey->bits > MAX_RSA_MODULUS_BITS)
+ return (RE_LEN);
modulusLen = (publicKey->bits + 7) / 8;
if (inputLen > modulusLen)
return (RE_LEN);
@@ -129,6 +133,8 @@
unsigned char pkcsBlock[MAX_RSA_MODULUS_LEN];
unsigned int i, modulusLen;
+ if (privateKey->bits > MAX_RSA_MODULUS_BITS)
+ return (RE_LEN);
modulusLen = (privateKey->bits + 7) / 8;
if (inputLen + 11 > modulusLen)
return (RE_LEN);
@@ -168,6 +174,8 @@
unsigned char pkcsBlock[MAX_RSA_MODULUS_LEN];
unsigned int i, modulusLen, pkcsBlockLen;
+ if (privateKey->bits > MAX_RSA_MODULUS_BITS)
+ return (RE_LEN);
modulusLen = (privateKey->bits + 7) / 8;
if (inputLen > modulusLen)
return (RE_LEN);

View File

@ -1 +0,0 @@
encryption/authentication library, RSA/MDX/DES

View File

@ -1,21 +0,0 @@
RSAREF is a free, portable software developer's library of popular
encryption and authentication algorithms. The name "RSAREF" means
"RSA reference." RSA Laboratories intends RSAREF to serve as a free,
educational reference implementation of modern public- and secret-key
cryptography.
RSAREF 2.0 supports the following algorithms:
o RSA encryption and key generation, as defined by RSA
Laboratories' Public-Key Cryptography Standards (PKCS)
o MD2 and MD5 message digests
o DES (Data Encryption Standard) in cipher-block chaining mode
o Diffie-Hellman key agreement
o DESX, RSA Data Security's efficient, secure DES enhancement
o Triple-DES, for added security with three DES operations

View File

@ -1,3 +0,0 @@
@comment $OpenBSD: PFRAG.shared,v 1.1 2000/07/20 05:14:47 brad Exp $
lib/librsaref.so.2.0
DYNLIBDIR(%B)

View File

@ -1,12 +0,0 @@
@comment $OpenBSD: PLIST,v 1.7 2000/07/20 05:14:47 brad Exp $
lib/librsaref.a
%%SHARED%%
include/rsa.h
include/_des.h
include/_md2.h
include/_md5.h
include/rsaref.h
include/global.h
share/doc/rsaref/info.txt
share/doc/rsaref/rsaref.txt
@dirrm share/doc/rsaref

View File

@ -1,4 +0,0 @@
patch-ac fixes the buffer overflow in RSA{Private,Public}{De,En}crypt(),
as published by CORE SDI in their advisory of Dec. 1, 1999.