Skip to content

Commit

Permalink
Initial 1.04 Import
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephen Kapp committed Apr 22, 2010
1 parent 4746e79 commit 1b54a7c
Show file tree
Hide file tree
Showing 21 changed files with 209 additions and 3,265 deletions.
7 changes: 4 additions & 3 deletions docs/bugs.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
RSAEURO Bug Report Form.
RSAEuro Bug Report Form.

Version 1.0

This is the RSAEURO report form, please complete this if during
This is the RSAEuro report form, please complete this if during
your use you encounter a problem. Once complete please either
e-mail or post a copy to me. This can also be used for comments
and suggestions.
Expand Down Expand Up @@ -62,7 +62,8 @@ Details:-
Lancashire,
BB7 3BB.

Please write "RSAEURO BUGS" in top left of envelope.
Please write "RSAEuro BUGS" in top left of envelope.

3. Phone: +44 (468) 286034 Daytime during weekdays.
+44 (1200) 448241 After 7pm Weekdays, Anytime Weekends.

12 changes: 11 additions & 1 deletion docs/history
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,16 @@ Revision History of RSAEURO
library caused it not to work that well with 16-bit
compilers.

1.03 - April 1996.
Some minor bug fixes that thought should be released plus
minor additions to random number code.

1.04 - October 1996.
Minor/Major bug fixes, plus addition of new routine
R_RSAEuroInfo also to more modifications to random number
routines.


----
J.S.Kapp - Sun 08/10/95 15:51:35
J.S.Kapp - Sun 13/10/96 01:03:13

Binary file removed docs/rsaedoc.doc
Binary file not shown.
3,191 changes: 0 additions & 3,191 deletions docs/rsaedoc.htm

This file was deleted.

Binary file added docs/rsaedoc.pdf
Binary file not shown.
Binary file removed docs/rsaedoc.ps
Binary file not shown.
15 changes: 8 additions & 7 deletions docs/rsaread.me
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
RSAEURO Version 1.03 Distribution.
RSAEuro Version 1.04 Distribution.

Well Here it is, this is the RSAEURO Version 1.03 Distribrution. It has
been a year in the making and it is finally here. RSAEURO is a International
Well Here it is, this is the RSAEuro Version 1.04 Distribrution. It has
been a year in the making and it is finally here. RSAEuro is a International
RSAREF Replacement written with the intent of producing a package to allow
use of existing RSAREF reliant packages internationally with out the
US RSAREF Restrictions.

RSAEURO is based about RSAREF II and covers most of the routines in that
RSAEuro is based about RSAREF II and covers most of the routines in that
package, however there have been some addtions. These include MD4, SHS
and enhanced Random Number routines.

Enclosed in this distribution is the following.

RSAEURO.ZIP - RSAEURO Source and Docs in Zip format
RSAEURO.TAZ - RSAEURO Source and Docs in tar/gzip format.
RSAE104D.ZIP - RSAEuro Docs in Zip format
RSAE104S.ZIP - RSAEuro Source in Zip format
RSAEuro-1.04.tar.gz - RSAEuro Source and Docs in tar/gzip format.

Please send any comments and/or suggestions to [email protected],
you can encrypt these using the RSAEURO public key enclosed within.
you can encrypt these using the RSAEuro public key enclosed within.
3 changes: 2 additions & 1 deletion install/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ MSDOS - MS-DOS system type compiler makefile(s)
This has been tested using the following compilers

Watcom 10.5 Win32 and Extended DOS
Borland 3.1+
Borland 3.1+, 4.5
DJGPP
GCC For HP-UX, SunOS 4.xx, Linux
CC for HP-UX, SunOS 4.xx
Microsoft Visual C++ 4.x
8 changes: 4 additions & 4 deletions readme
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
RSAEURO Version 1.03 Distribution
RSAEURO Version 1.04 Internet Release Distribution

In this distribution the various files are included in the directories
below.
Expand All @@ -9,10 +9,10 @@ SOURCE - Source Code Directory
SCRIPTS - Demo Applications Script Files
INSTALL - Installation Instructions

The documentation is supplied in both Postscript and ASCII formats.
(At the moment due a problem with Windows Word The main docs are only
availible as Postscript.)
The documentation is supplied in Postscript, Word 6 and ASCII formats.

Please report any problems with the code or documentation to me on
the bug report form. Also any problems you may have in using the
toolkit. Please read the bug report form for more details.

Thanks.
Binary file modified scripts/1024.key
Binary file not shown.
Binary file modified scripts/508.key
Binary file not shown.
Binary file modified scripts/767.key
Binary file not shown.
4 changes: 2 additions & 2 deletions source/desc.c
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ unsigned int len;
R_memset((POINTER)inputBlock, 0, sizeof(inputBlock));
R_memset((POINTER)work, 0, sizeof(work));

return(IDOK);
return(ID_OK);
}

void DES_CBCRestart(context)
Expand Down Expand Up @@ -509,7 +509,7 @@ unsigned int len; /* length of input and output blocks */
R_memset((POINTER)inputBlock, 0, sizeof(inputBlock));
R_memset((POINTER)work, 0, sizeof(work));

return(IDOK);
return(ID_OK);
}

void DESX_CBCRestart(context)
Expand Down
17 changes: 12 additions & 5 deletions source/nn.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@
dmult bug fix, Bug reported by Anders Heerfordt <[email protected]>.
1.03 Fourth revision, SunCompiler patch
1.04 Fifth revision, Fix to fix problem with NN_Encode
and NN_Decode when running with MS Visual C++ 4.x.
*/

#include "rsaeuro.h"
Expand Down Expand Up @@ -55,8 +58,10 @@ unsigned char *b;
unsigned int digits, len;
{
NN_DIGIT t;
unsigned int i, j, u;
unsigned int i, u;
int j;

/* @##$ unsigned/signed bug fix added JSAK - Fri 31/05/96 18:09:11 */
for (i = 0, j = len - 1; i < digits && j >= 0; i++) {
t = 0;
for (u = 0; j >= 0 && u < NN_DIGIT_BITS; j--, u += 8)
Expand All @@ -81,15 +86,17 @@ unsigned char *a;
unsigned int digits, len;
{
NN_DIGIT t;
unsigned int i, j, u;
unsigned int i, u;
int j;

for (i = 0, j = len - 1; i < digits && j >= 0; i++) {
/* @##$ unsigned/signed bug fix added JSAK - Fri 31/05/96 18:09:11 */
for (i = 0, j = len - 1; i < digits && j >= 0; i++) {
t = b[i];
for (u = 0; j >= 0 && u < NN_DIGIT_BITS; j--, u += 8)
for (u = 0; j >= 0 && u < NN_DIGIT_BITS; j--, u += 8)
a[j] = (unsigned char)(t >> u);
}

for (; j >= 0; j--)
for (; j >= 0; j--)
a[j] = 0;
}

Expand Down
5 changes: 3 additions & 2 deletions source/prime.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ R_RANDOM_STRUCT *randomStruct; /* random structure */
NN_Add(a, a, d, digits);
}

return(IDOK);
return(ID_OK);
}

/* Returns nonzero iff a is a probable prime.
Expand Down Expand Up @@ -240,7 +240,8 @@ unsigned int aDigits;
8089, 8093, 8101, 8111, 8117, 8123, 8147, 8161,
8167, 8171, 8179, 8191, 0
};
unsigned int i,x;

unsigned int i;

status = 1;

Expand Down
6 changes: 3 additions & 3 deletions source/r_dh.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ R_RANDOM_STRUCT *randomStruct; /* random structure */
NN_Encode(params->prime, params->primeLen, p, pDigits);
NN_Encode(params->generator, params->generatorLen, g, pDigits);

return(IDOK);
return(ID_OK);
}

/* Setup Diffie-Hellman key agreement. Public value has same length
Expand Down Expand Up @@ -122,7 +122,7 @@ R_RANDOM_STRUCT *randomStruct; /* random structure */

R_memset((POINTER)x, 0, sizeof(x));

return(IDOK);
return(ID_OK);
}

/* Computes agreed key from the other party's public value, a private
Expand Down Expand Up @@ -163,5 +163,5 @@ R_DH_PARAMS *params; /* Diffie-Hellman parameters */
R_memset((POINTER)x, 0, sizeof(x));
R_memset((POINTER)z, 0, sizeof(z));

return(IDOK);
return(ID_OK);
}
8 changes: 4 additions & 4 deletions source/r_encode.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ unsigned int blockLen; /* length of block */

if(blockLen < 1) {
*encodedBlockLen = 0;
return (IDOK);
return (ID_OK);
}

*encodedBlockLen = 0;
Expand All @@ -121,7 +121,7 @@ unsigned int blockLen; /* length of block */
*encodedBlockLen += 4;
}

return(IDOK);
return(ID_OK);
}

int R_DecodePEMBlock (outbuf, outlength, inbuf, inlength)
Expand All @@ -140,7 +140,7 @@ unsigned int inlength; /* length of encoded block */

if(inlength < 1) {
*outlength = 0;
return (IDOK);
return (ID_OK);
}


Expand Down Expand Up @@ -184,7 +184,7 @@ unsigned int inlength; /* length of encoded block */
}

*outlength = length;
return(IDOK); /* normal return */
return(ID_OK); /* normal return */

}

Expand Down
Loading

0 comments on commit 1b54a7c

Please sign in to comment.