diff options
author | cvs2svn <admin@example.com> | 1998-10-05 20:13:17 +0000 |
---|---|---|
committer | cvs2svn <admin@example.com> | 1998-10-05 20:13:17 +0000 |
commit | e82f18fab47b698d93971f576f962a3068132912 (patch) | |
tree | 681519717892864935c3d0533cf171098afa649a /src/lib/libcrypto/rsa | |
parent | 536c76cbb863bab152f19842ab88772c01e922c7 (diff) | |
download | openbsd-SSLeay_0_9_0b.tar.gz openbsd-SSLeay_0_9_0b.tar.bz2 openbsd-SSLeay_0_9_0b.zip |
This commit was manufactured by cvs2git to create tag 'SSLeay_0_9_0b'.SSLeay_0_9_0b
Diffstat (limited to 'src/lib/libcrypto/rsa')
-rw-r--r-- | src/lib/libcrypto/rsa/Makefile.ssl | 86 | ||||
-rw-r--r-- | src/lib/libcrypto/rsa/rsa.err | 45 |
2 files changed, 131 insertions, 0 deletions
diff --git a/src/lib/libcrypto/rsa/Makefile.ssl b/src/lib/libcrypto/rsa/Makefile.ssl new file mode 100644 index 0000000000..d52f2e609e --- /dev/null +++ b/src/lib/libcrypto/rsa/Makefile.ssl | |||
@@ -0,0 +1,86 @@ | |||
1 | # | ||
2 | # SSLeay/crypto/rsa/Makefile | ||
3 | # | ||
4 | |||
5 | DIR= rsa | ||
6 | TOP= ../.. | ||
7 | CC= cc | ||
8 | INCLUDES= -I.. -I../../include | ||
9 | CFLAG=-g | ||
10 | INSTALLTOP=/usr/local/ssl | ||
11 | MAKE= make -f Makefile.ssl | ||
12 | MAKEDEPEND= makedepend -f Makefile.ssl | ||
13 | MAKEFILE= Makefile.ssl | ||
14 | AR= ar r | ||
15 | |||
16 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
17 | |||
18 | ERR=rsa | ||
19 | ERRC=rsa_err | ||
20 | GENERAL=Makefile | ||
21 | TEST= | ||
22 | APPS= | ||
23 | |||
24 | LIB=$(TOP)/libcrypto.a | ||
25 | LIBSRC= rsa_eay.c rsa_gen.c rsa_lib.c rsa_sign.c rsa_saos.c $(ERRC).c \ | ||
26 | rsa_pk1.c rsa_ssl.c rsa_none.c | ||
27 | LIBOBJ= rsa_eay.o rsa_gen.o rsa_lib.o rsa_sign.o rsa_saos.o $(ERRC).o \ | ||
28 | rsa_pk1.o rsa_ssl.o rsa_none.o | ||
29 | |||
30 | SRC= $(LIBSRC) | ||
31 | |||
32 | EXHEADER= rsa.h | ||
33 | HEADER= $(EXHEADER) | ||
34 | |||
35 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
36 | |||
37 | top: | ||
38 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
39 | |||
40 | all: lib | ||
41 | |||
42 | lib: $(LIBOBJ) | ||
43 | $(AR) $(LIB) $(LIBOBJ) | ||
44 | sh $(TOP)/util/ranlib.sh $(LIB) | ||
45 | @touch lib | ||
46 | |||
47 | files: | ||
48 | perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
49 | |||
50 | links: | ||
51 | /bin/rm -f Makefile | ||
52 | $(TOP)/util/point.sh Makefile.ssl Makefile ; | ||
53 | $(TOP)/util/mklink.sh ../../include $(EXHEADER) | ||
54 | $(TOP)/util/mklink.sh ../../test $(TEST) | ||
55 | $(TOP)/util/mklink.sh ../../apps $(APPS) | ||
56 | |||
57 | install: | ||
58 | @for i in $(EXHEADER) ; \ | ||
59 | do \ | ||
60 | (cp $$i $(INSTALLTOP)/include/$$i; \ | ||
61 | chmod 644 $(INSTALLTOP)/include/$$i ); \ | ||
62 | done; | ||
63 | |||
64 | tags: | ||
65 | ctags $(SRC) | ||
66 | |||
67 | tests: | ||
68 | |||
69 | lint: | ||
70 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
71 | |||
72 | depend: | ||
73 | $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC) | ||
74 | |||
75 | dclean: | ||
76 | perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
77 | mv -f Makefile.new $(MAKEFILE) | ||
78 | |||
79 | clean: | ||
80 | /bin/rm -f *.o */*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
81 | |||
82 | errors: | ||
83 | perl $(TOP)/util/err-ins.pl $(ERR).err $(ERR).h | ||
84 | perl ../err/err_genc.pl -s $(ERR).h $(ERRC).c | ||
85 | |||
86 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
diff --git a/src/lib/libcrypto/rsa/rsa.err b/src/lib/libcrypto/rsa/rsa.err new file mode 100644 index 0000000000..5ded1b5fa2 --- /dev/null +++ b/src/lib/libcrypto/rsa/rsa.err | |||
@@ -0,0 +1,45 @@ | |||
1 | /* Error codes for the RSA functions. */ | ||
2 | |||
3 | /* Function codes. */ | ||
4 | #define RSA_F_RSA_EAY_PRIVATE_DECRYPT 100 | ||
5 | #define RSA_F_RSA_EAY_PRIVATE_ENCRYPT 101 | ||
6 | #define RSA_F_RSA_EAY_PUBLIC_DECRYPT 102 | ||
7 | #define RSA_F_RSA_EAY_PUBLIC_ENCRYPT 103 | ||
8 | #define RSA_F_RSA_GENERATE_KEY 104 | ||
9 | #define RSA_F_RSA_NEW_METHOD 105 | ||
10 | #define RSA_F_RSA_PADDING_ADD_NONE 106 | ||
11 | #define RSA_F_RSA_PADDING_ADD_PKCS1_TYPE_1 107 | ||
12 | #define RSA_F_RSA_PADDING_ADD_PKCS1_TYPE_2 108 | ||
13 | #define RSA_F_RSA_PADDING_ADD_SSLV23 109 | ||
14 | #define RSA_F_RSA_PADDING_CHECK_NONE 110 | ||
15 | #define RSA_F_RSA_PADDING_CHECK_PKCS1_TYPE_1 111 | ||
16 | #define RSA_F_RSA_PADDING_CHECK_PKCS1_TYPE_2 112 | ||
17 | #define RSA_F_RSA_PADDING_CHECK_SSLV23 113 | ||
18 | #define RSA_F_RSA_PRINT 114 | ||
19 | #define RSA_F_RSA_PRINT_FP 115 | ||
20 | #define RSA_F_RSA_SIGN 116 | ||
21 | #define RSA_F_RSA_SIGN_ASN1_OCTET_STRING 117 | ||
22 | #define RSA_F_RSA_VERIFY 118 | ||
23 | #define RSA_F_RSA_VERIFY_ASN1_OCTET_STRING 119 | ||
24 | |||
25 | /* Reason codes. */ | ||
26 | #define RSA_R_ALGORITHM_MISMATCH 100 | ||
27 | #define RSA_R_BAD_E_VALUE 101 | ||
28 | #define RSA_R_BAD_FIXED_HEADER_DECRYPT 102 | ||
29 | #define RSA_R_BAD_PAD_BYTE_COUNT 103 | ||
30 | #define RSA_R_BAD_SIGNATURE 104 | ||
31 | #define RSA_R_BAD_ZERO_BYTE 105 | ||
32 | #define RSA_R_BLOCK_TYPE_IS_NOT_01 106 | ||
33 | #define RSA_R_BLOCK_TYPE_IS_NOT_02 107 | ||
34 | #define RSA_R_DATA_GREATER_THAN_MOD_LEN 108 | ||
35 | #define RSA_R_DATA_TOO_LARGE 109 | ||
36 | #define RSA_R_DATA_TOO_LARGE_FOR_KEY_SIZE 110 | ||
37 | #define RSA_R_DATA_TOO_SMALL 111 | ||
38 | #define RSA_R_DIGEST_TOO_BIG_FOR_RSA_KEY 112 | ||
39 | #define RSA_R_NULL_BEFORE_BLOCK_MISSING 113 | ||
40 | #define RSA_R_PADDING_CHECK_FAILED 114 | ||
41 | #define RSA_R_SSLV3_ROLLBACK_ATTACK 115 | ||
42 | #define RSA_R_THE_ASN1_OBJECT_IDENTIFIER_IS_NOT_KNOWN_FOR_THIS_MD 116 | ||
43 | #define RSA_R_UNKNOWN_ALGORITHM_TYPE 117 | ||
44 | #define RSA_R_UNKNOWN_PADDING_TYPE 118 | ||
45 | #define RSA_R_WRONG_SIGNATURE_LENGTH 119 | ||