diff options
| author | cvs2svn <admin@example.com> | 2014-04-15 18:01:19 +0000 |
|---|---|---|
| committer | cvs2svn <admin@example.com> | 2014-04-15 18:01:19 +0000 |
| commit | d041cb4391448632aaac7a17dc04387a5dd4699d (patch) | |
| tree | 523a79fb780e63096ecf79af2283834ab6750ca4 /src/lib/libcrypto | |
| parent | 5346460520d82f1ee52c114e82ada966daf2a680 (diff) | |
| download | openbsd-openssl_1_0_1g.tar.gz openbsd-openssl_1_0_1g.tar.bz2 openbsd-openssl_1_0_1g.zip | |
This commit was manufactured by cvs2git to create tag 'openssl_1_0_1g'.openssl_1_0_1g
Diffstat (limited to 'src/lib/libcrypto')
141 files changed, 0 insertions, 31860 deletions
diff --git a/src/lib/libcrypto/LPdir_nyi.c b/src/lib/libcrypto/LPdir_nyi.c deleted file mode 100644 index 6c1a50e6a8..0000000000 --- a/src/lib/libcrypto/LPdir_nyi.c +++ /dev/null | |||
| @@ -1,42 +0,0 @@ | |||
| 1 | /* $LP: LPlib/source/LPdir_win.c,v 1.1 2004/06/14 10:07:56 _cvs_levitte Exp $ */ | ||
| 2 | /* | ||
| 3 | * Copyright (c) 2004, Richard Levitte <richard@levitte.org> | ||
| 4 | * All rights reserved. | ||
| 5 | * | ||
| 6 | * Redistribution and use in source and binary forms, with or without | ||
| 7 | * modification, are permitted provided that the following conditions | ||
| 8 | * are met: | ||
| 9 | * 1. Redistributions of source code must retain the above copyright | ||
| 10 | * notice, this list of conditions and the following disclaimer. | ||
| 11 | * 2. Redistributions in binary form must reproduce the above copyright | ||
| 12 | * notice, this list of conditions and the following disclaimer in the | ||
| 13 | * documentation and/or other materials provided with the distribution. | ||
| 14 | * | ||
| 15 | * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND | ||
| 16 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
| 17 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
| 18 | * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE | ||
| 19 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
| 20 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | ||
| 21 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
| 22 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
| 23 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||
| 24 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||
| 25 | * SUCH DAMAGE. | ||
| 26 | */ | ||
| 27 | |||
| 28 | #ifndef LPDIR_H | ||
| 29 | #include "LPdir.h" | ||
| 30 | #endif | ||
| 31 | |||
| 32 | struct LP_dir_context_st { void *dummy; }; | ||
| 33 | const char *LP_find_file(LP_DIR_CTX **ctx, const char *directory) | ||
| 34 | { | ||
| 35 | errno = EINVAL; | ||
| 36 | return 0; | ||
| 37 | } | ||
| 38 | int LP_find_file_end(LP_DIR_CTX **ctx) | ||
| 39 | { | ||
| 40 | errno = EINVAL; | ||
| 41 | return 0; | ||
| 42 | } | ||
diff --git a/src/lib/libcrypto/LPdir_unix.c b/src/lib/libcrypto/LPdir_unix.c deleted file mode 100644 index b004cd99e8..0000000000 --- a/src/lib/libcrypto/LPdir_unix.c +++ /dev/null | |||
| @@ -1,127 +0,0 @@ | |||
| 1 | /* $LP: LPlib/source/LPdir_unix.c,v 1.11 2004/09/23 22:07:22 _cvs_levitte Exp $ */ | ||
| 2 | /* | ||
| 3 | * Copyright (c) 2004, Richard Levitte <richard@levitte.org> | ||
| 4 | * All rights reserved. | ||
| 5 | * | ||
| 6 | * Redistribution and use in source and binary forms, with or without | ||
| 7 | * modification, are permitted provided that the following conditions | ||
| 8 | * are met: | ||
| 9 | * 1. Redistributions of source code must retain the above copyright | ||
| 10 | * notice, this list of conditions and the following disclaimer. | ||
| 11 | * 2. Redistributions in binary form must reproduce the above copyright | ||
| 12 | * notice, this list of conditions and the following disclaimer in the | ||
| 13 | * documentation and/or other materials provided with the distribution. | ||
| 14 | * | ||
| 15 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
| 16 | * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
| 17 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | ||
| 18 | * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | ||
| 19 | * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
| 20 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | ||
| 21 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||
| 22 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | ||
| 23 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
| 24 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
| 25 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| 26 | */ | ||
| 27 | |||
| 28 | #include <stddef.h> | ||
| 29 | #include <stdlib.h> | ||
| 30 | #include <limits.h> | ||
| 31 | #include <string.h> | ||
| 32 | #include <sys/types.h> | ||
| 33 | #include <dirent.h> | ||
| 34 | #include <errno.h> | ||
| 35 | #ifndef LPDIR_H | ||
| 36 | #include "LPdir.h" | ||
| 37 | #endif | ||
| 38 | |||
| 39 | /* The POSIXly macro for the maximum number of characters in a file path | ||
| 40 | is NAME_MAX. However, some operating systems use PATH_MAX instead. | ||
| 41 | Therefore, it seems natural to first check for PATH_MAX and use that, | ||
| 42 | and if it doesn't exist, use NAME_MAX. */ | ||
| 43 | #if defined(PATH_MAX) | ||
| 44 | # define LP_ENTRY_SIZE PATH_MAX | ||
| 45 | #elif defined(NAME_MAX) | ||
| 46 | # define LP_ENTRY_SIZE NAME_MAX | ||
| 47 | #endif | ||
| 48 | |||
| 49 | /* Of course, there's the possibility that neither PATH_MAX nor NAME_MAX | ||
| 50 | exist. It's also possible that NAME_MAX exists but is define to a | ||
| 51 | very small value (HP-UX offers 14), so we need to check if we got a | ||
| 52 | result, and if it meets a minimum standard, and create or change it | ||
| 53 | if not. */ | ||
| 54 | #if !defined(LP_ENTRY_SIZE) || LP_ENTRY_SIZE<255 | ||
| 55 | # undef LP_ENTRY_SIZE | ||
| 56 | # define LP_ENTRY_SIZE 255 | ||
| 57 | #endif | ||
| 58 | |||
| 59 | struct LP_dir_context_st | ||
| 60 | { | ||
| 61 | DIR *dir; | ||
| 62 | char entry_name[LP_ENTRY_SIZE+1]; | ||
| 63 | }; | ||
| 64 | |||
| 65 | const char *LP_find_file(LP_DIR_CTX **ctx, const char *directory) | ||
| 66 | { | ||
| 67 | struct dirent *direntry = NULL; | ||
| 68 | |||
| 69 | if (ctx == NULL || directory == NULL) | ||
| 70 | { | ||
| 71 | errno = EINVAL; | ||
| 72 | return 0; | ||
| 73 | } | ||
| 74 | |||
| 75 | errno = 0; | ||
| 76 | if (*ctx == NULL) | ||
| 77 | { | ||
| 78 | *ctx = (LP_DIR_CTX *)malloc(sizeof(LP_DIR_CTX)); | ||
| 79 | if (*ctx == NULL) | ||
| 80 | { | ||
| 81 | errno = ENOMEM; | ||
| 82 | return 0; | ||
| 83 | } | ||
| 84 | memset(*ctx, '\0', sizeof(LP_DIR_CTX)); | ||
| 85 | |||
| 86 | (*ctx)->dir = opendir(directory); | ||
| 87 | if ((*ctx)->dir == NULL) | ||
| 88 | { | ||
| 89 | int save_errno = errno; /* Probably not needed, but I'm paranoid */ | ||
| 90 | free(*ctx); | ||
| 91 | *ctx = NULL; | ||
| 92 | errno = save_errno; | ||
| 93 | return 0; | ||
| 94 | } | ||
| 95 | } | ||
| 96 | |||
| 97 | direntry = readdir((*ctx)->dir); | ||
| 98 | if (direntry == NULL) | ||
| 99 | { | ||
| 100 | return 0; | ||
| 101 | } | ||
| 102 | |||
| 103 | strncpy((*ctx)->entry_name, direntry->d_name, sizeof((*ctx)->entry_name) - 1); | ||
| 104 | (*ctx)->entry_name[sizeof((*ctx)->entry_name) - 1] = '\0'; | ||
| 105 | return (*ctx)->entry_name; | ||
| 106 | } | ||
| 107 | |||
| 108 | int LP_find_file_end(LP_DIR_CTX **ctx) | ||
| 109 | { | ||
| 110 | if (ctx != NULL && *ctx != NULL) | ||
| 111 | { | ||
| 112 | int ret = closedir((*ctx)->dir); | ||
| 113 | |||
| 114 | free(*ctx); | ||
| 115 | switch (ret) | ||
| 116 | { | ||
| 117 | case 0: | ||
| 118 | return 1; | ||
| 119 | case -1: | ||
| 120 | return 0; | ||
| 121 | default: | ||
| 122 | break; | ||
| 123 | } | ||
| 124 | } | ||
| 125 | errno = EINVAL; | ||
| 126 | return 0; | ||
| 127 | } | ||
diff --git a/src/lib/libcrypto/LPdir_vms.c b/src/lib/libcrypto/LPdir_vms.c deleted file mode 100644 index 7613bd254e..0000000000 --- a/src/lib/libcrypto/LPdir_vms.c +++ /dev/null | |||
| @@ -1,206 +0,0 @@ | |||
| 1 | /* $LP: LPlib/source/LPdir_vms.c,v 1.20 2004/08/26 13:36:05 _cvs_levitte Exp $ */ | ||
| 2 | /* | ||
| 3 | * Copyright (c) 2004, Richard Levitte <richard@levitte.org> | ||
| 4 | * All rights reserved. | ||
| 5 | * | ||
| 6 | * Redistribution and use in source and binary forms, with or without | ||
| 7 | * modification, are permitted provided that the following conditions | ||
| 8 | * are met: | ||
| 9 | * 1. Redistributions of source code must retain the above copyright | ||
| 10 | * notice, this list of conditions and the following disclaimer. | ||
| 11 | * 2. Redistributions in binary form must reproduce the above copyright | ||
| 12 | * notice, this list of conditions and the following disclaimer in the | ||
| 13 | * documentation and/or other materials provided with the distribution. | ||
| 14 | * | ||
| 15 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
| 16 | * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
| 17 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | ||
| 18 | * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | ||
| 19 | * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
| 20 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | ||
| 21 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||
| 22 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | ||
| 23 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
| 24 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
| 25 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| 26 | */ | ||
| 27 | |||
| 28 | #include <stddef.h> | ||
| 29 | #include <stdlib.h> | ||
| 30 | #include <string.h> | ||
| 31 | #include <errno.h> | ||
| 32 | #include <descrip.h> | ||
| 33 | #include <namdef.h> | ||
| 34 | #include <rmsdef.h> | ||
| 35 | #include <libfildef.h> | ||
| 36 | #include <lib$routines.h> | ||
| 37 | #include <strdef.h> | ||
| 38 | #include <str$routines.h> | ||
| 39 | #include <stsdef.h> | ||
| 40 | #ifndef LPDIR_H | ||
| 41 | #include "LPdir.h" | ||
| 42 | #endif | ||
| 43 | #include "vms_rms.h" | ||
| 44 | |||
| 45 | /* Some compiler options hide EVMSERR. */ | ||
| 46 | #ifndef EVMSERR | ||
| 47 | # define EVMSERR 65535 /* error for non-translatable VMS errors */ | ||
| 48 | #endif | ||
| 49 | |||
| 50 | struct LP_dir_context_st | ||
| 51 | { | ||
| 52 | unsigned long VMS_context; | ||
| 53 | char filespec[ NAMX_MAXRSS+ 1]; | ||
| 54 | char result[ NAMX_MAXRSS+ 1]; | ||
| 55 | struct dsc$descriptor_d filespec_dsc; | ||
| 56 | struct dsc$descriptor_d result_dsc; | ||
| 57 | }; | ||
| 58 | |||
| 59 | const char *LP_find_file(LP_DIR_CTX **ctx, const char *directory) | ||
| 60 | { | ||
| 61 | int status; | ||
| 62 | char *p, *r; | ||
| 63 | size_t l; | ||
| 64 | unsigned long flags = 0; | ||
| 65 | |||
| 66 | /* Arrange 32-bit pointer to (copied) string storage, if needed. */ | ||
| 67 | #if __INITIAL_POINTER_SIZE == 64 | ||
| 68 | # pragma pointer_size save | ||
| 69 | # pragma pointer_size 32 | ||
| 70 | char *ctx_filespec_32p; | ||
| 71 | # pragma pointer_size restore | ||
| 72 | char ctx_filespec_32[ NAMX_MAXRSS+ 1]; | ||
| 73 | #endif /* __INITIAL_POINTER_SIZE == 64 */ | ||
| 74 | |||
| 75 | #ifdef NAML$C_MAXRSS | ||
| 76 | flags |= LIB$M_FIL_LONG_NAMES; | ||
| 77 | #endif | ||
| 78 | |||
| 79 | if (ctx == NULL || directory == NULL) | ||
| 80 | { | ||
| 81 | errno = EINVAL; | ||
| 82 | return 0; | ||
| 83 | } | ||
| 84 | |||
| 85 | errno = 0; | ||
| 86 | if (*ctx == NULL) | ||
| 87 | { | ||
| 88 | size_t filespeclen = strlen(directory); | ||
| 89 | char *filespec = NULL; | ||
| 90 | |||
| 91 | /* MUST be a VMS directory specification! Let's estimate if it is. */ | ||
| 92 | if (directory[filespeclen-1] != ']' | ||
| 93 | && directory[filespeclen-1] != '>' | ||
| 94 | && directory[filespeclen-1] != ':') | ||
| 95 | { | ||
| 96 | errno = EINVAL; | ||
| 97 | return 0; | ||
| 98 | } | ||
| 99 | |||
| 100 | filespeclen += 4; /* "*.*;" */ | ||
| 101 | |||
| 102 | if (filespeclen > NAMX_MAXRSS) | ||
| 103 | { | ||
| 104 | errno = ENAMETOOLONG; | ||
| 105 | return 0; | ||
| 106 | } | ||
| 107 | |||
| 108 | *ctx = (LP_DIR_CTX *)malloc(sizeof(LP_DIR_CTX)); | ||
| 109 | if (*ctx == NULL) | ||
| 110 | { | ||
| 111 | errno = ENOMEM; | ||
| 112 | return 0; | ||
| 113 | } | ||
| 114 | memset(*ctx, '\0', sizeof(LP_DIR_CTX)); | ||
| 115 | |||
| 116 | strcpy((*ctx)->filespec,directory); | ||
| 117 | strcat((*ctx)->filespec,"*.*;"); | ||
| 118 | |||
| 119 | /* Arrange 32-bit pointer to (copied) string storage, if needed. */ | ||
| 120 | #if __INITIAL_POINTER_SIZE == 64 | ||
| 121 | # define CTX_FILESPEC ctx_filespec_32p | ||
| 122 | /* Copy the file name to storage with a 32-bit pointer. */ | ||
| 123 | ctx_filespec_32p = ctx_filespec_32; | ||
| 124 | strcpy( ctx_filespec_32p, (*ctx)->filespec); | ||
| 125 | #else /* __INITIAL_POINTER_SIZE == 64 */ | ||
| 126 | # define CTX_FILESPEC (*ctx)->filespec | ||
| 127 | #endif /* __INITIAL_POINTER_SIZE == 64 [else] */ | ||
| 128 | |||
| 129 | (*ctx)->filespec_dsc.dsc$w_length = filespeclen; | ||
| 130 | (*ctx)->filespec_dsc.dsc$b_dtype = DSC$K_DTYPE_T; | ||
| 131 | (*ctx)->filespec_dsc.dsc$b_class = DSC$K_CLASS_S; | ||
| 132 | (*ctx)->filespec_dsc.dsc$a_pointer = CTX_FILESPEC; | ||
| 133 | } | ||
| 134 | |||
| 135 | (*ctx)->result_dsc.dsc$w_length = 0; | ||
| 136 | (*ctx)->result_dsc.dsc$b_dtype = DSC$K_DTYPE_T; | ||
| 137 | (*ctx)->result_dsc.dsc$b_class = DSC$K_CLASS_D; | ||
| 138 | (*ctx)->result_dsc.dsc$a_pointer = 0; | ||
| 139 | |||
| 140 | status = lib$find_file(&(*ctx)->filespec_dsc, &(*ctx)->result_dsc, | ||
| 141 | &(*ctx)->VMS_context, 0, 0, 0, &flags); | ||
| 142 | |||
| 143 | if (status == RMS$_NMF) | ||
| 144 | { | ||
| 145 | errno = 0; | ||
| 146 | vaxc$errno = status; | ||
| 147 | return NULL; | ||
| 148 | } | ||
| 149 | |||
| 150 | if(!$VMS_STATUS_SUCCESS(status)) | ||
| 151 | { | ||
| 152 | errno = EVMSERR; | ||
| 153 | vaxc$errno = status; | ||
| 154 | return NULL; | ||
| 155 | } | ||
| 156 | |||
| 157 | /* Quick, cheap and dirty way to discard any device and directory, | ||
| 158 | since we only want file names */ | ||
| 159 | l = (*ctx)->result_dsc.dsc$w_length; | ||
| 160 | p = (*ctx)->result_dsc.dsc$a_pointer; | ||
| 161 | r = p; | ||
| 162 | for (; *p; p++) | ||
| 163 | { | ||
| 164 | if (*p == '^' && p[1] != '\0') /* Take care of ODS-5 escapes */ | ||
| 165 | { | ||
| 166 | p++; | ||
| 167 | } | ||
| 168 | else if (*p == ':' || *p == '>' || *p == ']') | ||
| 169 | { | ||
| 170 | l -= p + 1 - r; | ||
| 171 | r = p + 1; | ||
| 172 | } | ||
| 173 | else if (*p == ';') | ||
| 174 | { | ||
| 175 | l = p - r; | ||
| 176 | break; | ||
| 177 | } | ||
| 178 | } | ||
| 179 | |||
| 180 | strncpy((*ctx)->result, r, l); | ||
| 181 | (*ctx)->result[l] = '\0'; | ||
| 182 | str$free1_dx(&(*ctx)->result_dsc); | ||
| 183 | |||
| 184 | return (*ctx)->result; | ||
| 185 | } | ||
| 186 | |||
| 187 | int LP_find_file_end(LP_DIR_CTX **ctx) | ||
| 188 | { | ||
| 189 | if (ctx != NULL && *ctx != NULL) | ||
| 190 | { | ||
| 191 | int status = lib$find_file_end(&(*ctx)->VMS_context); | ||
| 192 | |||
| 193 | free(*ctx); | ||
| 194 | |||
| 195 | if(!$VMS_STATUS_SUCCESS(status)) | ||
| 196 | { | ||
| 197 | errno = EVMSERR; | ||
| 198 | vaxc$errno = status; | ||
| 199 | return 0; | ||
| 200 | } | ||
| 201 | return 1; | ||
| 202 | } | ||
| 203 | errno = EINVAL; | ||
| 204 | return 0; | ||
| 205 | } | ||
| 206 | |||
diff --git a/src/lib/libcrypto/LPdir_win.c b/src/lib/libcrypto/LPdir_win.c deleted file mode 100644 index 702dbc730f..0000000000 --- a/src/lib/libcrypto/LPdir_win.c +++ /dev/null | |||
| @@ -1,153 +0,0 @@ | |||
| 1 | /* $LP: LPlib/source/LPdir_win.c,v 1.10 2004/08/26 13:36:05 _cvs_levitte Exp $ */ | ||
| 2 | /* | ||
| 3 | * Copyright (c) 2004, Richard Levitte <richard@levitte.org> | ||
| 4 | * All rights reserved. | ||
| 5 | * | ||
| 6 | * Redistribution and use in source and binary forms, with or without | ||
| 7 | * modification, are permitted provided that the following conditions | ||
| 8 | * are met: | ||
| 9 | * 1. Redistributions of source code must retain the above copyright | ||
| 10 | * notice, this list of conditions and the following disclaimer. | ||
| 11 | * 2. Redistributions in binary form must reproduce the above copyright | ||
| 12 | * notice, this list of conditions and the following disclaimer in the | ||
| 13 | * documentation and/or other materials provided with the distribution. | ||
| 14 | * | ||
| 15 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
| 16 | * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
| 17 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | ||
| 18 | * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | ||
| 19 | * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
| 20 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | ||
| 21 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||
| 22 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | ||
| 23 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
| 24 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
| 25 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| 26 | */ | ||
| 27 | #include <windows.h> | ||
| 28 | #include <tchar.h> | ||
| 29 | #ifndef LPDIR_H | ||
| 30 | #include "LPdir.h" | ||
| 31 | #endif | ||
| 32 | |||
| 33 | /* We're most likely overcautious here, but let's reserve for | ||
| 34 | broken WinCE headers and explicitly opt for UNICODE call. | ||
| 35 | Keep in mind that our WinCE builds are compiled with -DUNICODE | ||
| 36 | [as well as -D_UNICODE]. */ | ||
| 37 | #if defined(LP_SYS_WINCE) && !defined(FindFirstFile) | ||
| 38 | # define FindFirstFile FindFirstFileW | ||
| 39 | #endif | ||
| 40 | #if defined(LP_SYS_WINCE) && !defined(FindFirstFile) | ||
| 41 | # define FindNextFile FindNextFileW | ||
| 42 | #endif | ||
| 43 | |||
| 44 | #ifndef NAME_MAX | ||
| 45 | #define NAME_MAX 255 | ||
| 46 | #endif | ||
| 47 | |||
| 48 | struct LP_dir_context_st | ||
| 49 | { | ||
| 50 | WIN32_FIND_DATA ctx; | ||
| 51 | HANDLE handle; | ||
| 52 | char entry_name[NAME_MAX+1]; | ||
| 53 | }; | ||
| 54 | |||
| 55 | const char *LP_find_file(LP_DIR_CTX **ctx, const char *directory) | ||
| 56 | { | ||
| 57 | if (ctx == NULL || directory == NULL) | ||
| 58 | { | ||
| 59 | errno = EINVAL; | ||
| 60 | return 0; | ||
| 61 | } | ||
| 62 | |||
| 63 | errno = 0; | ||
| 64 | if (*ctx == NULL) | ||
| 65 | { | ||
| 66 | *ctx = (LP_DIR_CTX *)malloc(sizeof(LP_DIR_CTX)); | ||
| 67 | if (*ctx == NULL) | ||
| 68 | { | ||
| 69 | errno = ENOMEM; | ||
| 70 | return 0; | ||
| 71 | } | ||
| 72 | memset(*ctx, '\0', sizeof(LP_DIR_CTX)); | ||
| 73 | |||
| 74 | if (sizeof(TCHAR) != sizeof(char)) | ||
| 75 | { | ||
| 76 | TCHAR *wdir = NULL; | ||
| 77 | /* len_0 denotes string length *with* trailing 0 */ | ||
| 78 | size_t index = 0,len_0 = strlen(directory) + 1; | ||
| 79 | |||
| 80 | wdir = (TCHAR *)malloc(len_0 * sizeof(TCHAR)); | ||
| 81 | if (wdir == NULL) | ||
| 82 | { | ||
| 83 | free(*ctx); | ||
| 84 | *ctx = NULL; | ||
| 85 | errno = ENOMEM; | ||
| 86 | return 0; | ||
| 87 | } | ||
| 88 | |||
| 89 | #ifdef LP_MULTIBYTE_AVAILABLE | ||
| 90 | if (!MultiByteToWideChar(CP_ACP, 0, directory, len_0, (WCHAR *)wdir, len_0)) | ||
| 91 | #endif | ||
| 92 | for (index = 0; index < len_0; index++) | ||
| 93 | wdir[index] = (TCHAR)directory[index]; | ||
| 94 | |||
| 95 | (*ctx)->handle = FindFirstFile(wdir, &(*ctx)->ctx); | ||
| 96 | |||
| 97 | free(wdir); | ||
| 98 | } | ||
| 99 | else | ||
| 100 | (*ctx)->handle = FindFirstFile((TCHAR *)directory, &(*ctx)->ctx); | ||
| 101 | |||
| 102 | if ((*ctx)->handle == INVALID_HANDLE_VALUE) | ||
| 103 | { | ||
| 104 | free(*ctx); | ||
| 105 | *ctx = NULL; | ||
| 106 | errno = EINVAL; | ||
| 107 | return 0; | ||
| 108 | } | ||
| 109 | } | ||
| 110 | else | ||
| 111 | { | ||
| 112 | if (FindNextFile((*ctx)->handle, &(*ctx)->ctx) == FALSE) | ||
| 113 | { | ||
| 114 | return 0; | ||
| 115 | } | ||
| 116 | } | ||
| 117 | |||
| 118 | if (sizeof(TCHAR) != sizeof(char)) | ||
| 119 | { | ||
| 120 | TCHAR *wdir = (*ctx)->ctx.cFileName; | ||
| 121 | size_t index, len_0 = 0; | ||
| 122 | |||
| 123 | while (wdir[len_0] && len_0 < (sizeof((*ctx)->entry_name) - 1)) len_0++; | ||
| 124 | len_0++; | ||
| 125 | |||
| 126 | #ifdef LP_MULTIBYTE_AVAILABLE | ||
| 127 | if (!WideCharToMultiByte(CP_ACP, 0, (WCHAR *)wdir, len_0, (*ctx)->entry_name, | ||
| 128 | sizeof((*ctx)->entry_name), NULL, 0)) | ||
| 129 | #endif | ||
| 130 | for (index = 0; index < len_0; index++) | ||
| 131 | (*ctx)->entry_name[index] = (char)wdir[index]; | ||
| 132 | } | ||
| 133 | else | ||
| 134 | strncpy((*ctx)->entry_name, (const char *)(*ctx)->ctx.cFileName, | ||
| 135 | sizeof((*ctx)->entry_name)-1); | ||
| 136 | |||
| 137 | (*ctx)->entry_name[sizeof((*ctx)->entry_name)-1] = '\0'; | ||
| 138 | |||
| 139 | return (*ctx)->entry_name; | ||
| 140 | } | ||
| 141 | |||
| 142 | int LP_find_file_end(LP_DIR_CTX **ctx) | ||
| 143 | { | ||
| 144 | if (ctx != NULL && *ctx != NULL) | ||
| 145 | { | ||
| 146 | FindClose((*ctx)->handle); | ||
| 147 | free(*ctx); | ||
| 148 | *ctx = NULL; | ||
| 149 | return 1; | ||
| 150 | } | ||
| 151 | errno = EINVAL; | ||
| 152 | return 0; | ||
| 153 | } | ||
diff --git a/src/lib/libcrypto/LPdir_win32.c b/src/lib/libcrypto/LPdir_win32.c deleted file mode 100644 index e39872da52..0000000000 --- a/src/lib/libcrypto/LPdir_win32.c +++ /dev/null | |||
| @@ -1,30 +0,0 @@ | |||
| 1 | /* $LP: LPlib/source/LPdir_win32.c,v 1.3 2004/08/26 13:36:05 _cvs_levitte Exp $ */ | ||
| 2 | /* | ||
| 3 | * Copyright (c) 2004, Richard Levitte <richard@levitte.org> | ||
| 4 | * All rights reserved. | ||
| 5 | * | ||
| 6 | * Redistribution and use in source and binary forms, with or without | ||
| 7 | * modification, are permitted provided that the following conditions | ||
| 8 | * are met: | ||
| 9 | * 1. Redistributions of source code must retain the above copyright | ||
| 10 | * notice, this list of conditions and the following disclaimer. | ||
| 11 | * 2. Redistributions in binary form must reproduce the above copyright | ||
| 12 | * notice, this list of conditions and the following disclaimer in the | ||
| 13 | * documentation and/or other materials provided with the distribution. | ||
| 14 | * | ||
| 15 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
| 16 | * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
| 17 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | ||
| 18 | * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | ||
| 19 | * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
| 20 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | ||
| 21 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||
| 22 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | ||
| 23 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
| 24 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
| 25 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| 26 | */ | ||
| 27 | |||
| 28 | #define LP_SYS_WIN32 | ||
| 29 | #define LP_MULTIBYTE_AVAILABLE | ||
| 30 | #include "LPdir_win.c" | ||
diff --git a/src/lib/libcrypto/LPdir_wince.c b/src/lib/libcrypto/LPdir_wince.c deleted file mode 100644 index ab0e1e6f4f..0000000000 --- a/src/lib/libcrypto/LPdir_wince.c +++ /dev/null | |||
| @@ -1,31 +0,0 @@ | |||
| 1 | /* $LP: LPlib/source/LPdir_wince.c,v 1.3 2004/08/26 13:36:05 _cvs_levitte Exp $ */ | ||
| 2 | /* | ||
| 3 | * Copyright (c) 2004, Richard Levitte <richard@levitte.org> | ||
| 4 | * All rights reserved. | ||
| 5 | * | ||
| 6 | * Redistribution and use in source and binary forms, with or without | ||
| 7 | * modification, are permitted provided that the following conditions | ||
| 8 | * are met: | ||
| 9 | * 1. Redistributions of source code must retain the above copyright | ||
| 10 | * notice, this list of conditions and the following disclaimer. | ||
| 11 | * 2. Redistributions in binary form must reproduce the above copyright | ||
| 12 | * notice, this list of conditions and the following disclaimer in the | ||
| 13 | * documentation and/or other materials provided with the distribution. | ||
| 14 | * | ||
| 15 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
| 16 | * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
| 17 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | ||
| 18 | * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | ||
| 19 | * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
| 20 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | ||
| 21 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||
| 22 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | ||
| 23 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
| 24 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
| 25 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| 26 | */ | ||
| 27 | |||
| 28 | #define LP_SYS_WINCE | ||
| 29 | /* We might want to define LP_MULTIBYTE_AVAILABLE here. It's currently | ||
| 30 | under investigation what the exact conditions would be */ | ||
| 31 | #include "LPdir_win.c" | ||
diff --git a/src/lib/libcrypto/Makefile.ssl b/src/lib/libcrypto/Makefile.ssl deleted file mode 100644 index b9951a4600..0000000000 --- a/src/lib/libcrypto/Makefile.ssl +++ /dev/null | |||
| @@ -1,218 +0,0 @@ | |||
| 1 | # | ||
| 2 | # SSLeay/crypto/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= crypto | ||
| 6 | TOP= .. | ||
| 7 | CC= cc | ||
| 8 | INCLUDE= -I. -I$(TOP) -I../include | ||
| 9 | INCLUDES= -I.. -I../.. -I../../include | ||
| 10 | CFLAG= -g | ||
| 11 | INSTALL_PREFIX= | ||
| 12 | OPENSSLDIR= /usr/local/ssl | ||
| 13 | INSTALLTOP= /usr/local/ssl | ||
| 14 | MAKE= make -f Makefile.ssl | ||
| 15 | MAKEDEPPROG= makedepend | ||
| 16 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
| 17 | MAKEFILE= Makefile.ssl | ||
| 18 | RM= rm -f | ||
| 19 | AR= ar r | ||
| 20 | |||
| 21 | PEX_LIBS= | ||
| 22 | EX_LIBS= | ||
| 23 | |||
| 24 | CFLAGS= $(INCLUDE) $(CFLAG) | ||
| 25 | |||
| 26 | |||
| 27 | LIBS= | ||
| 28 | |||
| 29 | SDIRS= md2 md5 sha mdc2 hmac ripemd \ | ||
| 30 | des rc2 rc4 rc5 idea bf cast \ | ||
| 31 | bn ec rsa dsa dh dso engine aes \ | ||
| 32 | buffer bio stack lhash rand err objects \ | ||
| 33 | evp asn1 pem x509 x509v3 conf txt_db pkcs7 pkcs12 comp ocsp ui krb5 | ||
| 34 | |||
| 35 | GENERAL=Makefile README crypto-lib.com install.com | ||
| 36 | |||
| 37 | LIB= $(TOP)/libcrypto.a | ||
| 38 | SHARED_LIB= libcrypto$(SHLIB_EXT) | ||
| 39 | LIBSRC= cryptlib.c mem.c mem_clr.c mem_dbg.c cversion.c ex_data.c tmdiff.c cpt_err.c ebcdic.c uid.c o_time.c | ||
| 40 | LIBOBJ= cryptlib.o mem.o mem_clr.o mem_dbg.o cversion.o ex_data.o tmdiff.o cpt_err.o ebcdic.o uid.o o_time.o | ||
| 41 | |||
| 42 | SRC= $(LIBSRC) | ||
| 43 | |||
| 44 | EXHEADER= crypto.h tmdiff.h opensslv.h opensslconf.h ebcdic.h symhacks.h \ | ||
| 45 | ossl_typ.h | ||
| 46 | HEADER= cryptlib.h buildinf.h md32_common.h o_time.h $(EXHEADER) | ||
| 47 | |||
| 48 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
| 49 | |||
| 50 | top: | ||
| 51 | @(cd ..; $(MAKE) DIRS=$(DIR) all) | ||
| 52 | |||
| 53 | all: shared | ||
| 54 | |||
| 55 | buildinf.h: ../Makefile.ssl | ||
| 56 | ( echo "#ifndef MK1MF_BUILD"; \ | ||
| 57 | echo ' /* auto-generated by crypto/Makefile.ssl for crypto/cversion.c */'; \ | ||
| 58 | echo ' #define CFLAGS "$(CC) $(CFLAG)"'; \ | ||
| 59 | echo ' #define PLATFORM "$(PLATFORM)"'; \ | ||
| 60 | echo " #define DATE \"`LC_ALL=C LC_TIME=C date`\""; \ | ||
| 61 | echo '#endif' ) >buildinf.h | ||
| 62 | |||
| 63 | testapps: | ||
| 64 | if echo ${SDIRS} | fgrep ' des '; \ | ||
| 65 | then cd des && $(MAKE) CC='$(CC)' INCLUDES='${INCLUDES}' CFLAG='${CFLAG}' INSTALLTOP='${INSTALLTOP}' PEX_LIBS='${PEX_LIBS}' EX_LIBS='${EX_LIBS}' BN_ASM='${BN_ASM}' DES_ENC='${DES_ENC}' SHA1_ASM_OBJ='${SHA1_ASM_OBJ}' MD5_ASM_OBJ='${MD5_ASM_OBJ}' RMD160_ASM_OBJ='${RMD160_ASM_OBJ}' BF_ENC='${BF_ENC}' CAST_ENC='${CAST_ENC}' RC4_ENC='${RC4_ENC}' RC5_ENC='${RC5_ENC}' AR='${AR}' PROCESSOR='${PROCESSOR}' PERL='${PERL}' RANLIB='${RANLIB}' des; fi | ||
| 66 | cd pkcs7 && $(MAKE) CC='$(CC)' INCLUDES='${INCLUDES}' CFLAG='${CFLAG}' INSTALLTOP='${INSTALLTOP}' PEX_LIBS='${PEX_LIBS}' EX_LIBS='${EX_LIBS}' BN_ASM='${BN_ASM}' DES_ENC='${DES_ENC}' SHA1_ASM_OBJ='${SHA1_ASM_OBJ}' MD5_ASM_OBJ='${MD5_ASM_OBJ}' RMD160_ASM_OBJ='${RMD160_ASM_OBJ}' BF_ENC='${BF_ENC}' CAST_ENC='${CAST_ENC}' RC4_ENC='${RC4_ENC}' RC5_ENC='${RC5_ENC}' AR='${AR}' PROCESSOR='${PROCESSOR}' PERL='${PERL}' RANLIB='${RANLIB}' testapps | ||
| 67 | |||
| 68 | subdirs: | ||
| 69 | @for i in $(SDIRS) ;\ | ||
| 70 | do \ | ||
| 71 | (cd $$i && echo "making all in crypto/$$i..." && \ | ||
| 72 | $(MAKE) CC='$(CC)' INCLUDES='${INCLUDES}' CFLAG='${CFLAG}' INSTALLTOP='${INSTALLTOP}' PEX_LIBS='${PEX_LIBS}' EX_LIBS='${EX_LIBS}' BN_ASM='${BN_ASM}' DES_ENC='${DES_ENC}' SHA1_ASM_OBJ='${SHA1_ASM_OBJ}' MD5_ASM_OBJ='${MD5_ASM_OBJ}' RMD160_ASM_OBJ='${RMD160_ASM_OBJ}' BF_ENC='${BF_ENC}' CAST_ENC='${CAST_ENC}' RC4_ENC='${RC4_ENC}' RC5_ENC='${RC5_ENC}' AR='${AR}' PROCESSOR='${PROCESSOR}' PERL='${PERL}' RANLIB='${RANLIB}' all ) || exit 1; \ | ||
| 73 | done; | ||
| 74 | |||
| 75 | files: | ||
| 76 | $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
| 77 | @for i in $(SDIRS) ;\ | ||
| 78 | do \ | ||
| 79 | (cd $$i && echo "making 'files' in crypto/$$i..." && \ | ||
| 80 | $(MAKE) PERL='${PERL}' files ); \ | ||
| 81 | done; | ||
| 82 | |||
| 83 | links: | ||
| 84 | @sh $(TOP)/util/point.sh Makefile.ssl Makefile | ||
| 85 | @$(PERL) $(TOP)/util/mklink.pl ../include/openssl $(EXHEADER) | ||
| 86 | @$(PERL) $(TOP)/util/mklink.pl ../test $(TEST) | ||
| 87 | @$(PERL) $(TOP)/util/mklink.pl ../apps $(APPS) | ||
| 88 | @sh $(TOP)/util/point.sh Makefile.ssl Makefile | ||
| 89 | @for i in $(SDIRS); do \ | ||
| 90 | (cd $$i && echo "making links in crypto/$$i..." && \ | ||
| 91 | $(MAKE) CC='$(CC)' INCLUDES='${INCLUDES}' CFLAG='${CFLAG}' INSTALLTOP='${INSTALLTOP}' PEX_LIBS='${PEX_LIBS}' EX_LIBS='${EX_LIBS}' BN_ASM='${BN_ASM}' DES_ENC='${DES_ENC}' SHA1_ASM_OBJ='${SHA1_ASM_OBJ}' MD5_ASM_OBJ='${MD5_ASM_OBJ}' RMD160_ASM_OBJ='${RMD160_ASM_OBJ}' BF_ENC='${BF_ENC}' CAST_ENC='${CAST_ENC}' RC4_ENC='${RC4_ENC}' RC5_ENC='${RC5_ENC}' AR='${AR}' PERL='${PERL}' links ); \ | ||
| 92 | done; | ||
| 93 | |||
| 94 | lib: $(LIBOBJ) | ||
| 95 | $(AR) $(LIB) $(LIBOBJ) | ||
| 96 | $(RANLIB) $(LIB) || echo Never mind. | ||
| 97 | @touch lib | ||
| 98 | |||
| 99 | shared: buildinf.h lib subdirs | ||
| 100 | if [ -n "$(SHARED_LIBS)" ]; then \ | ||
| 101 | (cd ..; $(MAKE) $(SHARED_LIB)); \ | ||
| 102 | fi | ||
| 103 | |||
| 104 | libs: | ||
| 105 | @for i in $(SDIRS) ;\ | ||
| 106 | do \ | ||
| 107 | (cd $$i && echo "making libs in crypto/$$i..." && \ | ||
| 108 | $(MAKE) CC='$(CC)' CFLAG='${CFLAG}' INSTALL_PREFIX='${INSTALL_PREFIX}' INSTALLTOP='${INSTALLTOP}' PEX_LIBS='${PEX_LIBS}' EX_LIBS='${EX_LIBS}' AR='${AR}' lib ); \ | ||
| 109 | done; | ||
| 110 | |||
| 111 | tests: | ||
| 112 | @for i in $(SDIRS) ;\ | ||
| 113 | do \ | ||
| 114 | (cd $$i && echo "making tests in crypto/$$i..." && \ | ||
| 115 | $(MAKE) CC='$(CC)' CFLAG='${CFLAG}' INSTALLTOP='${INSTALLTOP}' PEX_LIBS='${PEX_LIBS}' EX_LIBS='${EX_LIBS}' AR='${AR}' tests ); \ | ||
| 116 | done; | ||
| 117 | |||
| 118 | install: | ||
| 119 | @for i in $(EXHEADER) ;\ | ||
| 120 | do \ | ||
| 121 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 122 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
| 123 | done; | ||
| 124 | @for i in $(SDIRS) ;\ | ||
| 125 | do \ | ||
| 126 | (cd $$i && echo "making install in crypto/$$i..." && \ | ||
| 127 | $(MAKE) CC='$(CC)' CFLAG='${CFLAG}' INSTALL_PREFIX='${INSTALL_PREFIX}' INSTALLTOP='${INSTALLTOP}' PEX_LIBS='${PEX_LIBS}' EX_LIBS='${EX_LIBS}' install ); \ | ||
| 128 | done; | ||
| 129 | |||
| 130 | lint: | ||
| 131 | @for i in $(SDIRS) ;\ | ||
| 132 | do \ | ||
| 133 | (cd $$i && echo "making lint in crypto/$$i..." && \ | ||
| 134 | $(MAKE) CC='$(CC)' CFLAG='${CFLAG}' INSTALLTOP='${INSTALLTOP}' PEX_LIBS='${PEX_LIBS}' EX_LIBS='${EX_LIBS}' lint ); \ | ||
| 135 | done; | ||
| 136 | |||
| 137 | depend: | ||
| 138 | if [ ! -f buildinf.h ]; then touch buildinf.h; fi # fake buildinf.h if it does not exist | ||
| 139 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDE) $(DEPFLAG) -- $(PROGS) $(LIBSRC) | ||
| 140 | if [ ! -s buildinf.h ]; then rm buildinf.h; fi | ||
| 141 | @for i in $(SDIRS) ;\ | ||
| 142 | do \ | ||
| 143 | (cd $$i && echo "making depend in crypto/$$i..." && \ | ||
| 144 | $(MAKE) MAKEFILE='${MAKEFILE}' INCLUDES='${INCLUDES}' CFLAG='${CFLAG}' DEPFLAG='${DEPFLAG}' MAKEDEPPROG='${MAKEDEPPROG}' KRB5_INCLUDES='${KRB5_INCLUDES}' PERL='${PERL}' depend ); \ | ||
| 145 | done; | ||
| 146 | |||
| 147 | clean: | ||
| 148 | rm -f buildinf.h *.o */*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
| 149 | @for i in $(SDIRS) ;\ | ||
| 150 | do \ | ||
| 151 | (cd $$i && echo "making clean in crypto/$$i..." && \ | ||
| 152 | $(MAKE) CC='$(CC)' CFLAG='${CFLAG}' INSTALLTOP='${INSTALLTOP}' PEX_LIBS='${PEX_LIBS}' EX_LIBS='${EX_LIBS}' clean ); \ | ||
| 153 | done; | ||
| 154 | |||
| 155 | dclean: | ||
| 156 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 157 | mv -f Makefile.new $(MAKEFILE) | ||
| 158 | @for i in $(SDIRS) ;\ | ||
| 159 | do \ | ||
| 160 | (cd $$i && echo "making dclean in crypto/$$i..." && \ | ||
| 161 | $(MAKE) PERL='${PERL}' CC='$(CC)' CFLAG='${CFLAG}' INSTALLTOP='${INSTALLTOP}' PEX_LIBS='${PEX_LIBS}' EX_LIBS='${EX_LIBS}' dclean ); \ | ||
| 162 | done; | ||
| 163 | |||
| 164 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 165 | |||
| 166 | cpt_err.o: ../include/openssl/bio.h ../include/openssl/crypto.h | ||
| 167 | cpt_err.o: ../include/openssl/e_os2.h ../include/openssl/err.h | ||
| 168 | cpt_err.o: ../include/openssl/lhash.h ../include/openssl/opensslconf.h | ||
| 169 | cpt_err.o: ../include/openssl/opensslv.h ../include/openssl/safestack.h | ||
| 170 | cpt_err.o: ../include/openssl/stack.h ../include/openssl/symhacks.h cpt_err.c | ||
| 171 | cryptlib.o: ../e_os.h ../include/openssl/bio.h ../include/openssl/buffer.h | ||
| 172 | cryptlib.o: ../include/openssl/crypto.h ../include/openssl/e_os2.h | ||
| 173 | cryptlib.o: ../include/openssl/err.h ../include/openssl/lhash.h | ||
| 174 | cryptlib.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h | ||
| 175 | cryptlib.o: ../include/openssl/safestack.h ../include/openssl/stack.h | ||
| 176 | cryptlib.o: ../include/openssl/symhacks.h cryptlib.c cryptlib.h | ||
| 177 | cversion.o: ../e_os.h ../include/openssl/bio.h ../include/openssl/buffer.h | ||
| 178 | cversion.o: ../include/openssl/crypto.h ../include/openssl/e_os2.h | ||
| 179 | cversion.o: ../include/openssl/err.h ../include/openssl/lhash.h | ||
| 180 | cversion.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h | ||
| 181 | cversion.o: ../include/openssl/safestack.h ../include/openssl/stack.h | ||
| 182 | cversion.o: ../include/openssl/symhacks.h buildinf.h cryptlib.h cversion.c | ||
| 183 | ebcdic.o: ../include/openssl/e_os2.h ../include/openssl/opensslconf.h ebcdic.c | ||
| 184 | ex_data.o: ../e_os.h ../include/openssl/bio.h ../include/openssl/buffer.h | ||
| 185 | ex_data.o: ../include/openssl/crypto.h ../include/openssl/e_os2.h | ||
| 186 | ex_data.o: ../include/openssl/err.h ../include/openssl/lhash.h | ||
| 187 | ex_data.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h | ||
| 188 | ex_data.o: ../include/openssl/safestack.h ../include/openssl/stack.h | ||
| 189 | ex_data.o: ../include/openssl/symhacks.h cryptlib.h ex_data.c | ||
| 190 | mem.o: ../e_os.h ../include/openssl/bio.h ../include/openssl/buffer.h | ||
| 191 | mem.o: ../include/openssl/crypto.h ../include/openssl/e_os2.h | ||
| 192 | mem.o: ../include/openssl/err.h ../include/openssl/lhash.h | ||
| 193 | mem.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h | ||
| 194 | mem.o: ../include/openssl/safestack.h ../include/openssl/stack.h | ||
| 195 | mem.o: ../include/openssl/symhacks.h cryptlib.h mem.c | ||
| 196 | mem_clr.o: ../include/openssl/crypto.h ../include/openssl/e_os2.h | ||
| 197 | mem_clr.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h | ||
| 198 | mem_clr.o: ../include/openssl/safestack.h ../include/openssl/stack.h | ||
| 199 | mem_clr.o: ../include/openssl/symhacks.h mem_clr.c | ||
| 200 | mem_dbg.o: ../e_os.h ../include/openssl/bio.h ../include/openssl/buffer.h | ||
| 201 | mem_dbg.o: ../include/openssl/crypto.h ../include/openssl/e_os2.h | ||
| 202 | mem_dbg.o: ../include/openssl/err.h ../include/openssl/lhash.h | ||
| 203 | mem_dbg.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h | ||
| 204 | mem_dbg.o: ../include/openssl/safestack.h ../include/openssl/stack.h | ||
| 205 | mem_dbg.o: ../include/openssl/symhacks.h cryptlib.h mem_dbg.c | ||
| 206 | o_time.o: ../include/openssl/e_os2.h ../include/openssl/opensslconf.h o_time.c | ||
| 207 | o_time.o: o_time.h | ||
| 208 | tmdiff.o: ../e_os.h ../include/openssl/bio.h ../include/openssl/buffer.h | ||
| 209 | tmdiff.o: ../include/openssl/crypto.h ../include/openssl/e_os2.h | ||
| 210 | tmdiff.o: ../include/openssl/err.h ../include/openssl/lhash.h | ||
| 211 | tmdiff.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h | ||
| 212 | tmdiff.o: ../include/openssl/safestack.h ../include/openssl/stack.h | ||
| 213 | tmdiff.o: ../include/openssl/symhacks.h ../include/openssl/tmdiff.h cryptlib.h | ||
| 214 | tmdiff.o: tmdiff.c | ||
| 215 | uid.o: ../include/openssl/crypto.h ../include/openssl/e_os2.h | ||
| 216 | uid.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h | ||
| 217 | uid.o: ../include/openssl/safestack.h ../include/openssl/stack.h | ||
| 218 | uid.o: ../include/openssl/symhacks.h uid.c | ||
diff --git a/src/lib/libcrypto/aes/Makefile.ssl b/src/lib/libcrypto/aes/Makefile.ssl deleted file mode 100644 index f353aeb697..0000000000 --- a/src/lib/libcrypto/aes/Makefile.ssl +++ /dev/null | |||
| @@ -1,103 +0,0 @@ | |||
| 1 | # | ||
| 2 | # crypto/aes/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= aes | ||
| 6 | TOP= ../.. | ||
| 7 | CC= cc | ||
| 8 | CPP= $(CC) -E | ||
| 9 | INCLUDES= | ||
| 10 | CFLAG=-g | ||
| 11 | INSTALL_PREFIX= | ||
| 12 | OPENSSLDIR= /usr/local/ssl | ||
| 13 | INSTALLTOP= /usr/local/ssl | ||
| 14 | MAKE= make -f Makefile.ssl | ||
| 15 | MAKEDEPPROG= makedepend | ||
| 16 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
| 17 | MAKEFILE= Makefile.ssl | ||
| 18 | AR= ar r | ||
| 19 | |||
| 20 | # CFLAGS= -mpentiumpro $(INCLUDES) $(CFLAG) -O3 -fexpensive-optimizations -funroll-loops -fforce-addr | ||
| 21 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 22 | |||
| 23 | GENERAL=Makefile | ||
| 24 | #TEST=aestest.c | ||
| 25 | TEST= | ||
| 26 | APPS= | ||
| 27 | |||
| 28 | LIB=$(TOP)/libcrypto.a | ||
| 29 | LIBSRC=aes_core.c aes_misc.c aes_ecb.c aes_cbc.c aes_cfb.c aes_ofb.c aes_ctr.c | ||
| 30 | LIBOBJ=aes_core.o aes_misc.o aes_ecb.o aes_cbc.o aes_cfb.o aes_ofb.o aes_ctr.o | ||
| 31 | |||
| 32 | SRC= $(LIBSRC) | ||
| 33 | |||
| 34 | EXHEADER= aes.h | ||
| 35 | HEADER= aes_locl.h $(EXHEADER) | ||
| 36 | |||
| 37 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
| 38 | |||
| 39 | top: | ||
| 40 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
| 41 | |||
| 42 | all: lib | ||
| 43 | |||
| 44 | lib: $(LIBOBJ) | ||
| 45 | $(AR) $(LIB) $(LIBOBJ) | ||
| 46 | $(RANLIB) $(LIB) || echo Never mind. | ||
| 47 | @touch lib | ||
| 48 | |||
| 49 | $(LIBOBJ): $(LIBSRC) | ||
| 50 | |||
| 51 | files: | ||
| 52 | $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
| 53 | |||
| 54 | links: | ||
| 55 | @sh $(TOP)/util/point.sh Makefile.ssl Makefile | ||
| 56 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | ||
| 57 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | ||
| 58 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | ||
| 59 | |||
| 60 | install: installs | ||
| 61 | |||
| 62 | installs: | ||
| 63 | @for i in $(EXHEADER) ; \ | ||
| 64 | do \ | ||
| 65 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 66 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
| 67 | done; | ||
| 68 | |||
| 69 | tags: | ||
| 70 | ctags $(SRC) | ||
| 71 | |||
| 72 | tests: | ||
| 73 | |||
| 74 | lint: | ||
| 75 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
| 76 | |||
| 77 | depend: | ||
| 78 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) | ||
| 79 | |||
| 80 | dclean: | ||
| 81 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 82 | mv -f Makefile.new $(MAKEFILE) | ||
| 83 | |||
| 84 | clean: | ||
| 85 | rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
| 86 | |||
| 87 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 88 | |||
| 89 | aes_cbc.o: ../../include/openssl/aes.h ../../include/openssl/e_os2.h | ||
| 90 | aes_cbc.o: ../../include/openssl/opensslconf.h aes_cbc.c aes_locl.h | ||
| 91 | aes_cfb.o: ../../include/openssl/aes.h ../../include/openssl/e_os2.h | ||
| 92 | aes_cfb.o: ../../include/openssl/opensslconf.h aes_cfb.c aes_locl.h | ||
| 93 | aes_core.o: ../../include/openssl/aes.h ../../include/openssl/e_os2.h | ||
| 94 | aes_core.o: ../../include/openssl/opensslconf.h aes_core.c aes_locl.h | ||
| 95 | aes_ctr.o: ../../include/openssl/aes.h ../../include/openssl/e_os2.h | ||
| 96 | aes_ctr.o: ../../include/openssl/opensslconf.h aes_ctr.c aes_locl.h | ||
| 97 | aes_ecb.o: ../../include/openssl/aes.h ../../include/openssl/e_os2.h | ||
| 98 | aes_ecb.o: ../../include/openssl/opensslconf.h aes_ecb.c aes_locl.h | ||
| 99 | aes_misc.o: ../../include/openssl/aes.h ../../include/openssl/e_os2.h | ||
| 100 | aes_misc.o: ../../include/openssl/opensslconf.h | ||
| 101 | aes_misc.o: ../../include/openssl/opensslv.h aes_locl.h aes_misc.c | ||
| 102 | aes_ofb.o: ../../include/openssl/aes.h ../../include/openssl/e_os2.h | ||
| 103 | aes_ofb.o: ../../include/openssl/opensslconf.h aes_locl.h aes_ofb.c | ||
diff --git a/src/lib/libcrypto/asn1/Makefile.ssl b/src/lib/libcrypto/asn1/Makefile.ssl deleted file mode 100644 index cb45194d48..0000000000 --- a/src/lib/libcrypto/asn1/Makefile.ssl +++ /dev/null | |||
| @@ -1,1152 +0,0 @@ | |||
| 1 | # | ||
| 2 | # SSLeay/crypto/asn1/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= asn1 | ||
| 6 | TOP= ../.. | ||
| 7 | CC= cc | ||
| 8 | INCLUDES= -I.. -I$(TOP) -I../../include | ||
| 9 | CFLAG=-g | ||
| 10 | INSTALL_PREFIX= | ||
| 11 | OPENSSLDIR= /usr/local/ssl | ||
| 12 | INSTALLTOP=/usr/local/ssl | ||
| 13 | MAKE= make -f Makefile.ssl | ||
| 14 | MAKEDEPPROG= makedepend | ||
| 15 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
| 16 | MAKEFILE= Makefile.ssl | ||
| 17 | AR= ar r | ||
| 18 | |||
| 19 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 20 | |||
| 21 | GENERAL=Makefile README | ||
| 22 | TEST= | ||
| 23 | APPS= | ||
| 24 | |||
| 25 | LIB=$(TOP)/libcrypto.a | ||
| 26 | LIBSRC= a_object.c a_bitstr.c a_utctm.c a_gentm.c a_time.c a_int.c a_octet.c \ | ||
| 27 | a_print.c a_type.c a_set.c a_dup.c a_d2i_fp.c a_i2d_fp.c \ | ||
| 28 | a_enum.c a_utf8.c a_sign.c a_digest.c a_verify.c a_mbstr.c a_strex.c \ | ||
| 29 | x_algor.c x_val.c x_pubkey.c x_sig.c x_req.c x_attrib.c x_bignum.c \ | ||
| 30 | x_long.c x_name.c x_x509.c x_x509a.c x_crl.c x_info.c x_spki.c nsseq.c \ | ||
| 31 | d2i_pu.c d2i_pr.c i2d_pu.c i2d_pr.c\ | ||
| 32 | t_req.c t_x509.c t_x509a.c t_crl.c t_pkey.c t_spki.c t_bitst.c \ | ||
| 33 | tasn_new.c tasn_fre.c tasn_enc.c tasn_dec.c tasn_utl.c tasn_typ.c \ | ||
| 34 | f_int.c f_string.c n_pkey.c \ | ||
| 35 | f_enum.c a_hdr.c x_pkey.c a_bool.c x_exten.c \ | ||
| 36 | asn1_par.c asn1_lib.c asn1_err.c a_meth.c a_bytes.c a_strnid.c \ | ||
| 37 | evp_asn1.c asn_pack.c p5_pbe.c p5_pbev2.c p8_pkey.c asn_moid.c | ||
| 38 | LIBOBJ= a_object.o a_bitstr.o a_utctm.o a_gentm.o a_time.o a_int.o a_octet.o \ | ||
| 39 | a_print.o a_type.o a_set.o a_dup.o a_d2i_fp.o a_i2d_fp.o \ | ||
| 40 | a_enum.o a_utf8.o a_sign.o a_digest.o a_verify.o a_mbstr.o a_strex.o \ | ||
| 41 | x_algor.o x_val.o x_pubkey.o x_sig.o x_req.o x_attrib.o x_bignum.o \ | ||
| 42 | x_long.o x_name.o x_x509.o x_x509a.o x_crl.o x_info.o x_spki.o nsseq.o \ | ||
| 43 | d2i_pu.o d2i_pr.o i2d_pu.o i2d_pr.o \ | ||
| 44 | t_req.o t_x509.o t_x509a.o t_crl.o t_pkey.o t_spki.o t_bitst.o \ | ||
| 45 | tasn_new.o tasn_fre.o tasn_enc.o tasn_dec.o tasn_utl.o tasn_typ.o \ | ||
| 46 | f_int.o f_string.o n_pkey.o \ | ||
| 47 | f_enum.o a_hdr.o x_pkey.o a_bool.o x_exten.o \ | ||
| 48 | asn1_par.o asn1_lib.o asn1_err.o a_meth.o a_bytes.o a_strnid.o \ | ||
| 49 | evp_asn1.o asn_pack.o p5_pbe.o p5_pbev2.o p8_pkey.o asn_moid.o | ||
| 50 | |||
| 51 | SRC= $(LIBSRC) | ||
| 52 | |||
| 53 | EXHEADER= asn1.h asn1_mac.h asn1t.h | ||
| 54 | HEADER= $(EXHEADER) | ||
| 55 | |||
| 56 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
| 57 | |||
| 58 | top: | ||
| 59 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
| 60 | |||
| 61 | test: test.c | ||
| 62 | cc -g -I../../include -c test.c | ||
| 63 | cc -g -I../../include -o test test.o -L../.. -lcrypto | ||
| 64 | |||
| 65 | pk: pk.c | ||
| 66 | cc -g -I../../include -c pk.c | ||
| 67 | cc -g -I../../include -o pk pk.o -L../.. -lcrypto | ||
| 68 | |||
| 69 | all: lib | ||
| 70 | |||
| 71 | lib: $(LIBOBJ) | ||
| 72 | $(AR) $(LIB) $(LIBOBJ) | ||
| 73 | $(RANLIB) $(LIB) || echo Never mind. | ||
| 74 | @touch lib | ||
| 75 | |||
| 76 | files: | ||
| 77 | $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
| 78 | |||
| 79 | links: | ||
| 80 | @sh $(TOP)/util/point.sh Makefile.ssl Makefile | ||
| 81 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | ||
| 82 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | ||
| 83 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | ||
| 84 | |||
| 85 | install: | ||
| 86 | @for i in $(EXHEADER) ; \ | ||
| 87 | do \ | ||
| 88 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 89 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
| 90 | done; | ||
| 91 | |||
| 92 | tags: | ||
| 93 | ctags $(SRC) | ||
| 94 | |||
| 95 | tests: | ||
| 96 | |||
| 97 | lint: | ||
| 98 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
| 99 | |||
| 100 | depend: | ||
| 101 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) | ||
| 102 | |||
| 103 | dclean: | ||
| 104 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 105 | mv -f Makefile.new $(MAKEFILE) | ||
| 106 | |||
| 107 | clean: | ||
| 108 | rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
| 109 | |||
| 110 | |||
| 111 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 112 | |||
| 113 | a_bitstr.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 114 | a_bitstr.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 115 | a_bitstr.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 116 | a_bitstr.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 117 | a_bitstr.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 118 | a_bitstr.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 119 | a_bitstr.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 120 | a_bitstr.o: ../../include/openssl/symhacks.h ../cryptlib.h a_bitstr.c | ||
| 121 | a_bool.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 122 | a_bool.o: ../../include/openssl/asn1t.h ../../include/openssl/bio.h | ||
| 123 | a_bool.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 124 | a_bool.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 125 | a_bool.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
| 126 | a_bool.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 127 | a_bool.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h | ||
| 128 | a_bool.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 129 | a_bool.o: ../cryptlib.h a_bool.c | ||
| 130 | a_bytes.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 131 | a_bytes.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 132 | a_bytes.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 133 | a_bytes.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 134 | a_bytes.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 135 | a_bytes.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 136 | a_bytes.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 137 | a_bytes.o: ../../include/openssl/symhacks.h ../cryptlib.h a_bytes.c | ||
| 138 | a_d2i_fp.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 139 | a_d2i_fp.o: ../../include/openssl/asn1_mac.h ../../include/openssl/bio.h | ||
| 140 | a_d2i_fp.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 141 | a_d2i_fp.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 142 | a_d2i_fp.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
| 143 | a_d2i_fp.o: ../../include/openssl/opensslconf.h | ||
| 144 | a_d2i_fp.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 145 | a_d2i_fp.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 146 | a_d2i_fp.o: ../../include/openssl/symhacks.h ../cryptlib.h a_d2i_fp.c | ||
| 147 | a_digest.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 148 | a_digest.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 149 | a_digest.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 150 | a_digest.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 151 | a_digest.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 152 | a_digest.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 153 | a_digest.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 154 | a_digest.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 155 | a_digest.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 156 | a_digest.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 157 | a_digest.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 158 | a_digest.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 159 | a_digest.o: ../../include/openssl/opensslconf.h | ||
| 160 | a_digest.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 161 | a_digest.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 162 | a_digest.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 163 | a_digest.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 164 | a_digest.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 165 | a_digest.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 166 | a_digest.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 167 | a_digest.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 168 | a_digest.o: ../cryptlib.h a_digest.c | ||
| 169 | a_dup.o: ../../e_os.h ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 170 | a_dup.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 171 | a_dup.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 172 | a_dup.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
| 173 | a_dup.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 174 | a_dup.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h | ||
| 175 | a_dup.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 176 | a_dup.o: ../cryptlib.h a_dup.c | ||
| 177 | a_enum.o: ../../e_os.h ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 178 | a_enum.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 179 | a_enum.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 180 | a_enum.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
| 181 | a_enum.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 182 | a_enum.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h | ||
| 183 | a_enum.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 184 | a_enum.o: ../cryptlib.h a_enum.c | ||
| 185 | a_gentm.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 186 | a_gentm.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 187 | a_gentm.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 188 | a_gentm.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 189 | a_gentm.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 190 | a_gentm.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 191 | a_gentm.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 192 | a_gentm.o: ../../include/openssl/symhacks.h ../cryptlib.h ../o_time.h a_gentm.c | ||
| 193 | a_hdr.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 194 | a_hdr.o: ../../include/openssl/asn1_mac.h ../../include/openssl/bio.h | ||
| 195 | a_hdr.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 196 | a_hdr.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 197 | a_hdr.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
| 198 | a_hdr.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 199 | a_hdr.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h | ||
| 200 | a_hdr.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 201 | a_hdr.o: ../cryptlib.h a_hdr.c | ||
| 202 | a_i2d_fp.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 203 | a_i2d_fp.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 204 | a_i2d_fp.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 205 | a_i2d_fp.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 206 | a_i2d_fp.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 207 | a_i2d_fp.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 208 | a_i2d_fp.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 209 | a_i2d_fp.o: ../../include/openssl/symhacks.h ../cryptlib.h a_i2d_fp.c | ||
| 210 | a_int.o: ../../e_os.h ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 211 | a_int.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 212 | a_int.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 213 | a_int.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
| 214 | a_int.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 215 | a_int.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h | ||
| 216 | a_int.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 217 | a_int.o: ../cryptlib.h a_int.c | ||
| 218 | a_mbstr.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 219 | a_mbstr.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 220 | a_mbstr.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 221 | a_mbstr.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 222 | a_mbstr.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 223 | a_mbstr.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 224 | a_mbstr.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 225 | a_mbstr.o: ../../include/openssl/symhacks.h ../cryptlib.h a_mbstr.c | ||
| 226 | a_meth.o: ../../e_os.h ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 227 | a_meth.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 228 | a_meth.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 229 | a_meth.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
| 230 | a_meth.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 231 | a_meth.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h | ||
| 232 | a_meth.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 233 | a_meth.o: ../cryptlib.h a_meth.c | ||
| 234 | a_object.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 235 | a_object.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 236 | a_object.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 237 | a_object.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 238 | a_object.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h | ||
| 239 | a_object.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 240 | a_object.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 241 | a_object.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 242 | a_object.o: ../../include/openssl/symhacks.h ../cryptlib.h a_object.c | ||
| 243 | a_octet.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 244 | a_octet.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 245 | a_octet.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 246 | a_octet.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 247 | a_octet.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 248 | a_octet.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 249 | a_octet.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 250 | a_octet.o: ../../include/openssl/symhacks.h ../cryptlib.h a_octet.c | ||
| 251 | a_print.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 252 | a_print.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 253 | a_print.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 254 | a_print.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 255 | a_print.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 256 | a_print.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 257 | a_print.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 258 | a_print.o: ../../include/openssl/symhacks.h ../cryptlib.h a_print.c | ||
| 259 | a_set.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 260 | a_set.o: ../../include/openssl/asn1_mac.h ../../include/openssl/bio.h | ||
| 261 | a_set.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 262 | a_set.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 263 | a_set.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
| 264 | a_set.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 265 | a_set.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h | ||
| 266 | a_set.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 267 | a_set.o: ../cryptlib.h a_set.c | ||
| 268 | a_sign.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 269 | a_sign.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 270 | a_sign.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 271 | a_sign.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 272 | a_sign.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 273 | a_sign.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 274 | a_sign.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 275 | a_sign.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 276 | a_sign.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 277 | a_sign.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 278 | a_sign.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 279 | a_sign.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 280 | a_sign.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 281 | a_sign.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 282 | a_sign.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 283 | a_sign.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 284 | a_sign.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 285 | a_sign.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 286 | a_sign.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 287 | a_sign.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 288 | a_sign.o: ../cryptlib.h a_sign.c | ||
| 289 | a_strex.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 290 | a_strex.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 291 | a_strex.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 292 | a_strex.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 293 | a_strex.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 294 | a_strex.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 295 | a_strex.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 296 | a_strex.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 297 | a_strex.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 298 | a_strex.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 299 | a_strex.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 300 | a_strex.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 301 | a_strex.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 302 | a_strex.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs7.h | ||
| 303 | a_strex.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 304 | a_strex.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 305 | a_strex.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 306 | a_strex.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 307 | a_strex.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 308 | a_strex.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 309 | a_strex.o: ../../include/openssl/x509_vfy.h ../cryptlib.h a_strex.c charmap.h | ||
| 310 | a_strnid.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 311 | a_strnid.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 312 | a_strnid.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 313 | a_strnid.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 314 | a_strnid.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h | ||
| 315 | a_strnid.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 316 | a_strnid.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 317 | a_strnid.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 318 | a_strnid.o: ../../include/openssl/symhacks.h ../cryptlib.h a_strnid.c | ||
| 319 | a_time.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 320 | a_time.o: ../../include/openssl/asn1t.h ../../include/openssl/bio.h | ||
| 321 | a_time.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 322 | a_time.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 323 | a_time.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
| 324 | a_time.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 325 | a_time.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h | ||
| 326 | a_time.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 327 | a_time.o: ../cryptlib.h ../o_time.h a_time.c | ||
| 328 | a_type.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 329 | a_type.o: ../../include/openssl/asn1t.h ../../include/openssl/bio.h | ||
| 330 | a_type.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 331 | a_type.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 332 | a_type.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
| 333 | a_type.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 334 | a_type.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h | ||
| 335 | a_type.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 336 | a_type.o: ../cryptlib.h a_type.c | ||
| 337 | a_utctm.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 338 | a_utctm.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 339 | a_utctm.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 340 | a_utctm.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 341 | a_utctm.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 342 | a_utctm.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 343 | a_utctm.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 344 | a_utctm.o: ../../include/openssl/symhacks.h ../cryptlib.h ../o_time.h a_utctm.c | ||
| 345 | a_utf8.o: ../../e_os.h ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 346 | a_utf8.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 347 | a_utf8.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 348 | a_utf8.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
| 349 | a_utf8.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 350 | a_utf8.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h | ||
| 351 | a_utf8.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 352 | a_utf8.o: ../cryptlib.h a_utf8.c | ||
| 353 | a_verify.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 354 | a_verify.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 355 | a_verify.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 356 | a_verify.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 357 | a_verify.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 358 | a_verify.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 359 | a_verify.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 360 | a_verify.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 361 | a_verify.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 362 | a_verify.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 363 | a_verify.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 364 | a_verify.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 365 | a_verify.o: ../../include/openssl/opensslconf.h | ||
| 366 | a_verify.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 367 | a_verify.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 368 | a_verify.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 369 | a_verify.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 370 | a_verify.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 371 | a_verify.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 372 | a_verify.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 373 | a_verify.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 374 | a_verify.o: ../cryptlib.h a_verify.c | ||
| 375 | asn1_err.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 376 | asn1_err.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h | ||
| 377 | asn1_err.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 378 | asn1_err.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 379 | asn1_err.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 380 | asn1_err.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 381 | asn1_err.o: ../../include/openssl/symhacks.h asn1_err.c | ||
| 382 | asn1_lib.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 383 | asn1_lib.o: ../../include/openssl/asn1_mac.h ../../include/openssl/bio.h | ||
| 384 | asn1_lib.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 385 | asn1_lib.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 386 | asn1_lib.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
| 387 | asn1_lib.o: ../../include/openssl/opensslconf.h | ||
| 388 | asn1_lib.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 389 | asn1_lib.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 390 | asn1_lib.o: ../../include/openssl/symhacks.h ../cryptlib.h asn1_lib.c | ||
| 391 | asn1_par.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 392 | asn1_par.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 393 | asn1_par.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 394 | asn1_par.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 395 | asn1_par.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h | ||
| 396 | asn1_par.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 397 | asn1_par.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 398 | asn1_par.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 399 | asn1_par.o: ../../include/openssl/symhacks.h ../cryptlib.h asn1_par.c | ||
| 400 | asn_moid.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 401 | asn_moid.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 402 | asn_moid.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 403 | asn_moid.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 404 | asn_moid.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h | ||
| 405 | asn_moid.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 406 | asn_moid.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 407 | asn_moid.o: ../../include/openssl/dso.h ../../include/openssl/e_os2.h | ||
| 408 | asn_moid.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 409 | asn_moid.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 410 | asn_moid.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 411 | asn_moid.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 412 | asn_moid.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 413 | asn_moid.o: ../../include/openssl/opensslconf.h | ||
| 414 | asn_moid.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 415 | asn_moid.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 416 | asn_moid.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 417 | asn_moid.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 418 | asn_moid.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 419 | asn_moid.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 420 | asn_moid.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 421 | asn_moid.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 422 | asn_moid.o: ../cryptlib.h asn_moid.c | ||
| 423 | asn_pack.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 424 | asn_pack.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 425 | asn_pack.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 426 | asn_pack.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 427 | asn_pack.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 428 | asn_pack.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 429 | asn_pack.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 430 | asn_pack.o: ../../include/openssl/symhacks.h ../cryptlib.h asn_pack.c | ||
| 431 | d2i_pr.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 432 | d2i_pr.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 433 | d2i_pr.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 434 | d2i_pr.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 435 | d2i_pr.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 436 | d2i_pr.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 437 | d2i_pr.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 438 | d2i_pr.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 439 | d2i_pr.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 440 | d2i_pr.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 441 | d2i_pr.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 442 | d2i_pr.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 443 | d2i_pr.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 444 | d2i_pr.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 445 | d2i_pr.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 446 | d2i_pr.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 447 | d2i_pr.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 448 | d2i_pr.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 449 | d2i_pr.o: ../../include/openssl/ui_compat.h ../cryptlib.h d2i_pr.c | ||
| 450 | d2i_pu.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 451 | d2i_pu.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 452 | d2i_pu.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 453 | d2i_pu.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 454 | d2i_pu.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 455 | d2i_pu.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 456 | d2i_pu.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 457 | d2i_pu.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 458 | d2i_pu.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 459 | d2i_pu.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 460 | d2i_pu.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 461 | d2i_pu.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 462 | d2i_pu.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 463 | d2i_pu.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 464 | d2i_pu.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 465 | d2i_pu.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 466 | d2i_pu.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 467 | d2i_pu.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 468 | d2i_pu.o: ../../include/openssl/ui_compat.h ../cryptlib.h d2i_pu.c | ||
| 469 | evp_asn1.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 470 | evp_asn1.o: ../../include/openssl/asn1_mac.h ../../include/openssl/bio.h | ||
| 471 | evp_asn1.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 472 | evp_asn1.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 473 | evp_asn1.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
| 474 | evp_asn1.o: ../../include/openssl/opensslconf.h | ||
| 475 | evp_asn1.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 476 | evp_asn1.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 477 | evp_asn1.o: ../../include/openssl/symhacks.h ../cryptlib.h evp_asn1.c | ||
| 478 | f_enum.o: ../../e_os.h ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 479 | f_enum.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 480 | f_enum.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 481 | f_enum.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
| 482 | f_enum.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 483 | f_enum.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h | ||
| 484 | f_enum.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 485 | f_enum.o: ../cryptlib.h f_enum.c | ||
| 486 | f_int.o: ../../e_os.h ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 487 | f_int.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 488 | f_int.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 489 | f_int.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
| 490 | f_int.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 491 | f_int.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h | ||
| 492 | f_int.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 493 | f_int.o: ../cryptlib.h f_int.c | ||
| 494 | f_string.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 495 | f_string.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 496 | f_string.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 497 | f_string.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 498 | f_string.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 499 | f_string.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 500 | f_string.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 501 | f_string.o: ../../include/openssl/symhacks.h ../cryptlib.h f_string.c | ||
| 502 | i2d_pr.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 503 | i2d_pr.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 504 | i2d_pr.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 505 | i2d_pr.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 506 | i2d_pr.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 507 | i2d_pr.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 508 | i2d_pr.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 509 | i2d_pr.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 510 | i2d_pr.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 511 | i2d_pr.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 512 | i2d_pr.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 513 | i2d_pr.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 514 | i2d_pr.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 515 | i2d_pr.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 516 | i2d_pr.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 517 | i2d_pr.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 518 | i2d_pr.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 519 | i2d_pr.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 520 | i2d_pr.o: ../../include/openssl/ui_compat.h ../cryptlib.h i2d_pr.c | ||
| 521 | i2d_pu.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 522 | i2d_pu.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 523 | i2d_pu.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 524 | i2d_pu.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 525 | i2d_pu.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 526 | i2d_pu.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 527 | i2d_pu.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 528 | i2d_pu.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 529 | i2d_pu.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 530 | i2d_pu.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 531 | i2d_pu.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 532 | i2d_pu.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 533 | i2d_pu.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 534 | i2d_pu.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 535 | i2d_pu.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 536 | i2d_pu.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 537 | i2d_pu.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 538 | i2d_pu.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 539 | i2d_pu.o: ../../include/openssl/ui_compat.h ../cryptlib.h i2d_pu.c | ||
| 540 | n_pkey.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 541 | n_pkey.o: ../../include/openssl/asn1_mac.h ../../include/openssl/asn1t.h | ||
| 542 | n_pkey.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 543 | n_pkey.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 544 | n_pkey.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 545 | n_pkey.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 546 | n_pkey.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 547 | n_pkey.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 548 | n_pkey.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 549 | n_pkey.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 550 | n_pkey.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 551 | n_pkey.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 552 | n_pkey.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 553 | n_pkey.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 554 | n_pkey.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 555 | n_pkey.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 556 | n_pkey.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 557 | n_pkey.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 558 | n_pkey.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 559 | n_pkey.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 560 | n_pkey.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 561 | n_pkey.o: ../cryptlib.h n_pkey.c | ||
| 562 | nsseq.o: ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 563 | nsseq.o: ../../include/openssl/asn1t.h ../../include/openssl/bio.h | ||
| 564 | nsseq.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 565 | nsseq.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 566 | nsseq.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 567 | nsseq.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 568 | nsseq.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 569 | nsseq.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 570 | nsseq.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 571 | nsseq.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 572 | nsseq.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 573 | nsseq.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 574 | nsseq.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 575 | nsseq.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 576 | nsseq.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 577 | nsseq.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 578 | nsseq.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 579 | nsseq.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 580 | nsseq.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 581 | nsseq.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h nsseq.c | ||
| 582 | p5_pbe.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 583 | p5_pbe.o: ../../include/openssl/asn1t.h ../../include/openssl/bio.h | ||
| 584 | p5_pbe.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 585 | p5_pbe.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 586 | p5_pbe.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 587 | p5_pbe.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 588 | p5_pbe.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 589 | p5_pbe.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 590 | p5_pbe.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 591 | p5_pbe.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 592 | p5_pbe.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 593 | p5_pbe.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 594 | p5_pbe.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 595 | p5_pbe.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs7.h | ||
| 596 | p5_pbe.o: ../../include/openssl/rand.h ../../include/openssl/rc2.h | ||
| 597 | p5_pbe.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 598 | p5_pbe.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 599 | p5_pbe.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 600 | p5_pbe.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 601 | p5_pbe.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 602 | p5_pbe.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 603 | p5_pbe.o: ../cryptlib.h p5_pbe.c | ||
| 604 | p5_pbev2.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 605 | p5_pbev2.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h | ||
| 606 | p5_pbev2.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 607 | p5_pbev2.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 608 | p5_pbev2.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 609 | p5_pbev2.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 610 | p5_pbev2.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 611 | p5_pbev2.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 612 | p5_pbev2.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 613 | p5_pbev2.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 614 | p5_pbev2.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 615 | p5_pbev2.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 616 | p5_pbev2.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 617 | p5_pbev2.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 618 | p5_pbev2.o: ../../include/openssl/pkcs7.h ../../include/openssl/rand.h | ||
| 619 | p5_pbev2.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 620 | p5_pbev2.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 621 | p5_pbev2.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 622 | p5_pbev2.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 623 | p5_pbev2.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 624 | p5_pbev2.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 625 | p5_pbev2.o: ../../include/openssl/x509_vfy.h ../cryptlib.h p5_pbev2.c | ||
| 626 | p8_pkey.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 627 | p8_pkey.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h | ||
| 628 | p8_pkey.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 629 | p8_pkey.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 630 | p8_pkey.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 631 | p8_pkey.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 632 | p8_pkey.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 633 | p8_pkey.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 634 | p8_pkey.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 635 | p8_pkey.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 636 | p8_pkey.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 637 | p8_pkey.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 638 | p8_pkey.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 639 | p8_pkey.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 640 | p8_pkey.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 641 | p8_pkey.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 642 | p8_pkey.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 643 | p8_pkey.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 644 | p8_pkey.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 645 | p8_pkey.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 646 | p8_pkey.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 647 | p8_pkey.o: ../cryptlib.h p8_pkey.c | ||
| 648 | t_bitst.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 649 | t_bitst.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 650 | t_bitst.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 651 | t_bitst.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 652 | t_bitst.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h | ||
| 653 | t_bitst.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 654 | t_bitst.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 655 | t_bitst.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 656 | t_bitst.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 657 | t_bitst.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 658 | t_bitst.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 659 | t_bitst.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 660 | t_bitst.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 661 | t_bitst.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 662 | t_bitst.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 663 | t_bitst.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 664 | t_bitst.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 665 | t_bitst.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 666 | t_bitst.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 667 | t_bitst.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 668 | t_bitst.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 669 | t_bitst.o: ../../include/openssl/x509v3.h ../cryptlib.h t_bitst.c | ||
| 670 | t_crl.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 671 | t_crl.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 672 | t_crl.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 673 | t_crl.o: ../../include/openssl/cast.h ../../include/openssl/conf.h | ||
| 674 | t_crl.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 675 | t_crl.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 676 | t_crl.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 677 | t_crl.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 678 | t_crl.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 679 | t_crl.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 680 | t_crl.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 681 | t_crl.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 682 | t_crl.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 683 | t_crl.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs7.h | ||
| 684 | t_crl.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 685 | t_crl.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 686 | t_crl.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 687 | t_crl.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 688 | t_crl.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 689 | t_crl.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 690 | t_crl.o: ../../include/openssl/x509_vfy.h ../../include/openssl/x509v3.h | ||
| 691 | t_crl.o: ../cryptlib.h t_crl.c | ||
| 692 | t_pkey.o: ../../e_os.h ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 693 | t_pkey.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 694 | t_pkey.o: ../../include/openssl/crypto.h ../../include/openssl/dh.h | ||
| 695 | t_pkey.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 696 | t_pkey.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
| 697 | t_pkey.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 698 | t_pkey.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rsa.h | ||
| 699 | t_pkey.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 700 | t_pkey.o: ../../include/openssl/symhacks.h ../cryptlib.h t_pkey.c | ||
| 701 | t_req.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 702 | t_req.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 703 | t_req.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 704 | t_req.o: ../../include/openssl/cast.h ../../include/openssl/conf.h | ||
| 705 | t_req.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 706 | t_req.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 707 | t_req.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 708 | t_req.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 709 | t_req.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 710 | t_req.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 711 | t_req.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 712 | t_req.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 713 | t_req.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 714 | t_req.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs7.h | ||
| 715 | t_req.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 716 | t_req.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 717 | t_req.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 718 | t_req.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 719 | t_req.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 720 | t_req.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 721 | t_req.o: ../../include/openssl/x509_vfy.h ../../include/openssl/x509v3.h | ||
| 722 | t_req.o: ../cryptlib.h t_req.c | ||
| 723 | t_spki.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 724 | t_spki.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 725 | t_spki.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 726 | t_spki.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 727 | t_spki.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 728 | t_spki.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 729 | t_spki.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 730 | t_spki.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 731 | t_spki.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 732 | t_spki.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 733 | t_spki.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 734 | t_spki.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 735 | t_spki.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 736 | t_spki.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 737 | t_spki.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 738 | t_spki.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 739 | t_spki.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 740 | t_spki.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 741 | t_spki.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 742 | t_spki.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 743 | t_spki.o: ../cryptlib.h t_spki.c | ||
| 744 | t_x509.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 745 | t_x509.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 746 | t_x509.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 747 | t_x509.o: ../../include/openssl/cast.h ../../include/openssl/conf.h | ||
| 748 | t_x509.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 749 | t_x509.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 750 | t_x509.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 751 | t_x509.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 752 | t_x509.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 753 | t_x509.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 754 | t_x509.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 755 | t_x509.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 756 | t_x509.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 757 | t_x509.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs7.h | ||
| 758 | t_x509.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 759 | t_x509.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 760 | t_x509.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 761 | t_x509.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 762 | t_x509.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 763 | t_x509.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 764 | t_x509.o: ../../include/openssl/x509_vfy.h ../../include/openssl/x509v3.h | ||
| 765 | t_x509.o: ../cryptlib.h t_x509.c | ||
| 766 | t_x509a.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 767 | t_x509a.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 768 | t_x509a.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 769 | t_x509a.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 770 | t_x509a.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 771 | t_x509a.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 772 | t_x509a.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 773 | t_x509a.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 774 | t_x509a.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 775 | t_x509a.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 776 | t_x509a.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 777 | t_x509a.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 778 | t_x509a.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 779 | t_x509a.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs7.h | ||
| 780 | t_x509a.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 781 | t_x509a.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 782 | t_x509a.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 783 | t_x509a.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 784 | t_x509a.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 785 | t_x509a.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 786 | t_x509a.o: ../../include/openssl/x509_vfy.h ../cryptlib.h t_x509a.c | ||
| 787 | tasn_dec.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h | ||
| 788 | tasn_dec.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 789 | tasn_dec.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 790 | tasn_dec.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 791 | tasn_dec.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h | ||
| 792 | tasn_dec.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 793 | tasn_dec.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 794 | tasn_dec.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 795 | tasn_dec.o: ../../include/openssl/symhacks.h tasn_dec.c | ||
| 796 | tasn_enc.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h | ||
| 797 | tasn_enc.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 798 | tasn_enc.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 799 | tasn_enc.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 800 | tasn_enc.o: ../../include/openssl/opensslconf.h | ||
| 801 | tasn_enc.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 802 | tasn_enc.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 803 | tasn_enc.o: ../../include/openssl/symhacks.h tasn_enc.c | ||
| 804 | tasn_fre.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h | ||
| 805 | tasn_fre.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 806 | tasn_fre.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 807 | tasn_fre.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 808 | tasn_fre.o: ../../include/openssl/opensslconf.h | ||
| 809 | tasn_fre.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 810 | tasn_fre.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 811 | tasn_fre.o: ../../include/openssl/symhacks.h tasn_fre.c | ||
| 812 | tasn_new.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h | ||
| 813 | tasn_new.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 814 | tasn_new.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 815 | tasn_new.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
| 816 | tasn_new.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 817 | tasn_new.o: ../../include/openssl/opensslconf.h | ||
| 818 | tasn_new.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 819 | tasn_new.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 820 | tasn_new.o: ../../include/openssl/symhacks.h tasn_new.c | ||
| 821 | tasn_typ.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h | ||
| 822 | tasn_typ.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 823 | tasn_typ.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 824 | tasn_typ.o: ../../include/openssl/opensslconf.h | ||
| 825 | tasn_typ.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 826 | tasn_typ.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 827 | tasn_typ.o: ../../include/openssl/symhacks.h tasn_typ.c | ||
| 828 | tasn_utl.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h | ||
| 829 | tasn_utl.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 830 | tasn_utl.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 831 | tasn_utl.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
| 832 | tasn_utl.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 833 | tasn_utl.o: ../../include/openssl/opensslconf.h | ||
| 834 | tasn_utl.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 835 | tasn_utl.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 836 | tasn_utl.o: ../../include/openssl/symhacks.h tasn_utl.c | ||
| 837 | x_algor.o: ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 838 | x_algor.o: ../../include/openssl/asn1t.h ../../include/openssl/bio.h | ||
| 839 | x_algor.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 840 | x_algor.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 841 | x_algor.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 842 | x_algor.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 843 | x_algor.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 844 | x_algor.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 845 | x_algor.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 846 | x_algor.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 847 | x_algor.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 848 | x_algor.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 849 | x_algor.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 850 | x_algor.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 851 | x_algor.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 852 | x_algor.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 853 | x_algor.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 854 | x_algor.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 855 | x_algor.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 856 | x_algor.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 857 | x_algor.o: x_algor.c | ||
| 858 | x_attrib.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 859 | x_attrib.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h | ||
| 860 | x_attrib.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 861 | x_attrib.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 862 | x_attrib.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 863 | x_attrib.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 864 | x_attrib.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 865 | x_attrib.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 866 | x_attrib.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 867 | x_attrib.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 868 | x_attrib.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 869 | x_attrib.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 870 | x_attrib.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 871 | x_attrib.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 872 | x_attrib.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 873 | x_attrib.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 874 | x_attrib.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 875 | x_attrib.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 876 | x_attrib.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 877 | x_attrib.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 878 | x_attrib.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 879 | x_attrib.o: ../cryptlib.h x_attrib.c | ||
| 880 | x_bignum.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 881 | x_bignum.o: ../../include/openssl/asn1t.h ../../include/openssl/bio.h | ||
| 882 | x_bignum.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 883 | x_bignum.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 884 | x_bignum.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
| 885 | x_bignum.o: ../../include/openssl/opensslconf.h | ||
| 886 | x_bignum.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 887 | x_bignum.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 888 | x_bignum.o: ../../include/openssl/symhacks.h ../cryptlib.h x_bignum.c | ||
| 889 | x_crl.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 890 | x_crl.o: ../../include/openssl/asn1t.h ../../include/openssl/bio.h | ||
| 891 | x_crl.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 892 | x_crl.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 893 | x_crl.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 894 | x_crl.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 895 | x_crl.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 896 | x_crl.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 897 | x_crl.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 898 | x_crl.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 899 | x_crl.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 900 | x_crl.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 901 | x_crl.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 902 | x_crl.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs7.h | ||
| 903 | x_crl.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 904 | x_crl.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 905 | x_crl.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 906 | x_crl.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 907 | x_crl.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 908 | x_crl.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 909 | x_crl.o: ../../include/openssl/x509_vfy.h ../cryptlib.h x_crl.c | ||
| 910 | x_exten.o: ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 911 | x_exten.o: ../../include/openssl/asn1t.h ../../include/openssl/bio.h | ||
| 912 | x_exten.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 913 | x_exten.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 914 | x_exten.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 915 | x_exten.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 916 | x_exten.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 917 | x_exten.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 918 | x_exten.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 919 | x_exten.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 920 | x_exten.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 921 | x_exten.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 922 | x_exten.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 923 | x_exten.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 924 | x_exten.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 925 | x_exten.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 926 | x_exten.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 927 | x_exten.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 928 | x_exten.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 929 | x_exten.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 930 | x_exten.o: x_exten.c | ||
| 931 | x_info.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 932 | x_info.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 933 | x_info.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 934 | x_info.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 935 | x_info.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 936 | x_info.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 937 | x_info.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 938 | x_info.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 939 | x_info.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 940 | x_info.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 941 | x_info.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 942 | x_info.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 943 | x_info.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 944 | x_info.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 945 | x_info.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 946 | x_info.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 947 | x_info.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 948 | x_info.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 949 | x_info.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 950 | x_info.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 951 | x_info.o: ../cryptlib.h x_info.c | ||
| 952 | x_long.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 953 | x_long.o: ../../include/openssl/asn1t.h ../../include/openssl/bio.h | ||
| 954 | x_long.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 955 | x_long.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 956 | x_long.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
| 957 | x_long.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 958 | x_long.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h | ||
| 959 | x_long.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 960 | x_long.o: ../cryptlib.h x_long.c | ||
| 961 | x_name.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 962 | x_name.o: ../../include/openssl/asn1t.h ../../include/openssl/bio.h | ||
| 963 | x_name.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 964 | x_name.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 965 | x_name.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 966 | x_name.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 967 | x_name.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 968 | x_name.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 969 | x_name.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 970 | x_name.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 971 | x_name.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 972 | x_name.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 973 | x_name.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 974 | x_name.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs7.h | ||
| 975 | x_name.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 976 | x_name.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 977 | x_name.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 978 | x_name.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 979 | x_name.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 980 | x_name.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 981 | x_name.o: ../../include/openssl/x509_vfy.h ../cryptlib.h x_name.c | ||
| 982 | x_pkey.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 983 | x_pkey.o: ../../include/openssl/asn1_mac.h ../../include/openssl/bio.h | ||
| 984 | x_pkey.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 985 | x_pkey.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 986 | x_pkey.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 987 | x_pkey.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 988 | x_pkey.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 989 | x_pkey.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 990 | x_pkey.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 991 | x_pkey.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 992 | x_pkey.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 993 | x_pkey.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 994 | x_pkey.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 995 | x_pkey.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs7.h | ||
| 996 | x_pkey.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 997 | x_pkey.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 998 | x_pkey.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 999 | x_pkey.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 1000 | x_pkey.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 1001 | x_pkey.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 1002 | x_pkey.o: ../../include/openssl/x509_vfy.h ../cryptlib.h x_pkey.c | ||
| 1003 | x_pubkey.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 1004 | x_pubkey.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h | ||
| 1005 | x_pubkey.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 1006 | x_pubkey.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 1007 | x_pubkey.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 1008 | x_pubkey.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 1009 | x_pubkey.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 1010 | x_pubkey.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 1011 | x_pubkey.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 1012 | x_pubkey.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 1013 | x_pubkey.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 1014 | x_pubkey.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 1015 | x_pubkey.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 1016 | x_pubkey.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 1017 | x_pubkey.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 1018 | x_pubkey.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 1019 | x_pubkey.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 1020 | x_pubkey.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 1021 | x_pubkey.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 1022 | x_pubkey.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 1023 | x_pubkey.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 1024 | x_pubkey.o: ../cryptlib.h x_pubkey.c | ||
| 1025 | x_req.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 1026 | x_req.o: ../../include/openssl/asn1t.h ../../include/openssl/bio.h | ||
| 1027 | x_req.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 1028 | x_req.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 1029 | x_req.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 1030 | x_req.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 1031 | x_req.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 1032 | x_req.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 1033 | x_req.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 1034 | x_req.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 1035 | x_req.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 1036 | x_req.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 1037 | x_req.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 1038 | x_req.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs7.h | ||
| 1039 | x_req.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 1040 | x_req.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 1041 | x_req.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 1042 | x_req.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 1043 | x_req.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 1044 | x_req.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 1045 | x_req.o: ../../include/openssl/x509_vfy.h ../cryptlib.h x_req.c | ||
| 1046 | x_sig.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 1047 | x_sig.o: ../../include/openssl/asn1t.h ../../include/openssl/bio.h | ||
| 1048 | x_sig.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 1049 | x_sig.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 1050 | x_sig.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 1051 | x_sig.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 1052 | x_sig.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 1053 | x_sig.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 1054 | x_sig.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 1055 | x_sig.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 1056 | x_sig.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 1057 | x_sig.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 1058 | x_sig.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 1059 | x_sig.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs7.h | ||
| 1060 | x_sig.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 1061 | x_sig.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 1062 | x_sig.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 1063 | x_sig.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 1064 | x_sig.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 1065 | x_sig.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 1066 | x_sig.o: ../../include/openssl/x509_vfy.h ../cryptlib.h x_sig.c | ||
| 1067 | x_spki.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 1068 | x_spki.o: ../../include/openssl/asn1t.h ../../include/openssl/bio.h | ||
| 1069 | x_spki.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 1070 | x_spki.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 1071 | x_spki.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 1072 | x_spki.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 1073 | x_spki.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 1074 | x_spki.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 1075 | x_spki.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 1076 | x_spki.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 1077 | x_spki.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 1078 | x_spki.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 1079 | x_spki.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 1080 | x_spki.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs7.h | ||
| 1081 | x_spki.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 1082 | x_spki.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 1083 | x_spki.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 1084 | x_spki.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 1085 | x_spki.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 1086 | x_spki.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 1087 | x_spki.o: ../../include/openssl/x509_vfy.h ../cryptlib.h x_spki.c | ||
| 1088 | x_val.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 1089 | x_val.o: ../../include/openssl/asn1t.h ../../include/openssl/bio.h | ||
| 1090 | x_val.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 1091 | x_val.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 1092 | x_val.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 1093 | x_val.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 1094 | x_val.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 1095 | x_val.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 1096 | x_val.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 1097 | x_val.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 1098 | x_val.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 1099 | x_val.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 1100 | x_val.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 1101 | x_val.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs7.h | ||
| 1102 | x_val.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 1103 | x_val.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 1104 | x_val.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 1105 | x_val.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 1106 | x_val.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 1107 | x_val.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 1108 | x_val.o: ../../include/openssl/x509_vfy.h ../cryptlib.h x_val.c | ||
| 1109 | x_x509.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 1110 | x_x509.o: ../../include/openssl/asn1t.h ../../include/openssl/bio.h | ||
| 1111 | x_x509.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 1112 | x_x509.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 1113 | x_x509.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h | ||
| 1114 | x_x509.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 1115 | x_x509.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 1116 | x_x509.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 1117 | x_x509.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 1118 | x_x509.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 1119 | x_x509.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 1120 | x_x509.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 1121 | x_x509.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 1122 | x_x509.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 1123 | x_x509.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 1124 | x_x509.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 1125 | x_x509.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 1126 | x_x509.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 1127 | x_x509.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 1128 | x_x509.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 1129 | x_x509.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 1130 | x_x509.o: ../../include/openssl/x509v3.h ../cryptlib.h x_x509.c | ||
| 1131 | x_x509a.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 1132 | x_x509a.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h | ||
| 1133 | x_x509a.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 1134 | x_x509a.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 1135 | x_x509a.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 1136 | x_x509a.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 1137 | x_x509a.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 1138 | x_x509a.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 1139 | x_x509a.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 1140 | x_x509a.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 1141 | x_x509a.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 1142 | x_x509a.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 1143 | x_x509a.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 1144 | x_x509a.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 1145 | x_x509a.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 1146 | x_x509a.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 1147 | x_x509a.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 1148 | x_x509a.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 1149 | x_x509a.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 1150 | x_x509a.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 1151 | x_x509a.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 1152 | x_x509a.o: ../cryptlib.h x_x509a.c | ||
diff --git a/src/lib/libcrypto/asn1/f.c b/src/lib/libcrypto/asn1/f.c deleted file mode 100644 index 82bccdfd51..0000000000 --- a/src/lib/libcrypto/asn1/f.c +++ /dev/null | |||
| @@ -1,80 +0,0 @@ | |||
| 1 | /* crypto/asn1/f.c */ | ||
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | ||
| 3 | * All rights reserved. | ||
| 4 | * | ||
| 5 | * This package is an SSL implementation written | ||
| 6 | * by Eric Young (eay@cryptsoft.com). | ||
| 7 | * The implementation was written so as to conform with Netscapes SSL. | ||
| 8 | * | ||
| 9 | * This library is free for commercial and non-commercial use as long as | ||
| 10 | * the following conditions are aheared to. The following conditions | ||
| 11 | * apply to all code found in this distribution, be it the RC4, RSA, | ||
| 12 | * lhash, DES, etc., code; not just the SSL code. The SSL documentation | ||
| 13 | * included with this distribution is covered by the same copyright terms | ||
| 14 | * except that the holder is Tim Hudson (tjh@cryptsoft.com). | ||
| 15 | * | ||
| 16 | * Copyright remains Eric Young's, and as such any Copyright notices in | ||
| 17 | * the code are not to be removed. | ||
| 18 | * If this package is used in a product, Eric Young should be given attribution | ||
| 19 | * as the author of the parts of the library used. | ||
| 20 | * This can be in the form of a textual message at program startup or | ||
| 21 | * in documentation (online or textual) provided with the package. | ||
| 22 | * | ||
| 23 | * Redistribution and use in source and binary forms, with or without | ||
| 24 | * modification, are permitted provided that the following conditions | ||
| 25 | * are met: | ||
| 26 | * 1. Redistributions of source code must retain the copyright | ||
| 27 | * notice, this list of conditions and the following disclaimer. | ||
| 28 | * 2. Redistributions in binary form must reproduce the above copyright | ||
| 29 | * notice, this list of conditions and the following disclaimer in the | ||
| 30 | * documentation and/or other materials provided with the distribution. | ||
| 31 | * 3. All advertising materials mentioning features or use of this software | ||
| 32 | * must display the following acknowledgement: | ||
| 33 | * "This product includes cryptographic software written by | ||
| 34 | * Eric Young (eay@cryptsoft.com)" | ||
| 35 | * The word 'cryptographic' can be left out if the rouines from the library | ||
| 36 | * being used are not cryptographic related :-). | ||
| 37 | * 4. If you include any Windows specific code (or a derivative thereof) from | ||
| 38 | * the apps directory (application code) you must include an acknowledgement: | ||
| 39 | * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" | ||
| 40 | * | ||
| 41 | * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND | ||
| 42 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
| 43 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
| 44 | * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE | ||
| 45 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
| 46 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | ||
| 47 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
| 48 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
| 49 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||
| 50 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||
| 51 | * SUCH DAMAGE. | ||
| 52 | * | ||
| 53 | * The licence and distribution terms for any publically available version or | ||
| 54 | * derivative of this code cannot be changed. i.e. this code cannot simply be | ||
| 55 | * copied and put under another distribution licence | ||
| 56 | * [including the GNU Public Licence.] | ||
| 57 | */ | ||
| 58 | #include <stdio.h> | ||
| 59 | #include <openssl/asn1.h> | ||
| 60 | #include <openssl/err.h> | ||
| 61 | |||
| 62 | main() | ||
| 63 | { | ||
| 64 | ASN1_TYPE *at; | ||
| 65 | char buf[512]; | ||
| 66 | int n; | ||
| 67 | long l; | ||
| 68 | |||
| 69 | at=ASN1_TYPE_new(); | ||
| 70 | |||
| 71 | n=ASN1_TYPE_set_int_octetstring(at,98736,"01234567",8); | ||
| 72 | printf("%d\n",n); | ||
| 73 | n=ASN1_TYPE_get_int_octetstring(at,&l,buf,8); | ||
| 74 | buf[8]='\0'; | ||
| 75 | printf("%ld %d %d\n",l,n,buf[8]); | ||
| 76 | buf[8]='\0'; | ||
| 77 | printf("%s\n",buf); | ||
| 78 | ERR_load_crypto_strings(); | ||
| 79 | ERR_print_errors_fp(stderr); | ||
| 80 | } | ||
diff --git a/src/lib/libcrypto/asn1/x_cinf.c b/src/lib/libcrypto/asn1/x_cinf.c deleted file mode 100644 index 339a110eef..0000000000 --- a/src/lib/libcrypto/asn1/x_cinf.c +++ /dev/null | |||
| @@ -1,201 +0,0 @@ | |||
| 1 | /* crypto/asn1/x_cinf.c */ | ||
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | ||
| 3 | * All rights reserved. | ||
| 4 | * | ||
| 5 | * This package is an SSL implementation written | ||
| 6 | * by Eric Young (eay@cryptsoft.com). | ||
| 7 | * The implementation was written so as to conform with Netscapes SSL. | ||
| 8 | * | ||
| 9 | * This library is free for commercial and non-commercial use as long as | ||
| 10 | * the following conditions are aheared to. The following conditions | ||
| 11 | * apply to all code found in this distribution, be it the RC4, RSA, | ||
| 12 | * lhash, DES, etc., code; not just the SSL code. The SSL documentation | ||
| 13 | * included with this distribution is covered by the same copyright terms | ||
| 14 | * except that the holder is Tim Hudson (tjh@cryptsoft.com). | ||
| 15 | * | ||
| 16 | * Copyright remains Eric Young's, and as such any Copyright notices in | ||
| 17 | * the code are not to be removed. | ||
| 18 | * If this package is used in a product, Eric Young should be given attribution | ||
| 19 | * as the author of the parts of the library used. | ||
| 20 | * This can be in the form of a textual message at program startup or | ||
| 21 | * in documentation (online or textual) provided with the package. | ||
| 22 | * | ||
| 23 | * Redistribution and use in source and binary forms, with or without | ||
| 24 | * modification, are permitted provided that the following conditions | ||
| 25 | * are met: | ||
| 26 | * 1. Redistributions of source code must retain the copyright | ||
| 27 | * notice, this list of conditions and the following disclaimer. | ||
| 28 | * 2. Redistributions in binary form must reproduce the above copyright | ||
| 29 | * notice, this list of conditions and the following disclaimer in the | ||
| 30 | * documentation and/or other materials provided with the distribution. | ||
| 31 | * 3. All advertising materials mentioning features or use of this software | ||
| 32 | * must display the following acknowledgement: | ||
| 33 | * "This product includes cryptographic software written by | ||
| 34 | * Eric Young (eay@cryptsoft.com)" | ||
| 35 | * The word 'cryptographic' can be left out if the rouines from the library | ||
| 36 | * being used are not cryptographic related :-). | ||
| 37 | * 4. If you include any Windows specific code (or a derivative thereof) from | ||
| 38 | * the apps directory (application code) you must include an acknowledgement: | ||
| 39 | * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" | ||
| 40 | * | ||
| 41 | * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND | ||
| 42 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
| 43 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
| 44 | * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE | ||
| 45 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
| 46 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | ||
| 47 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
| 48 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
| 49 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||
| 50 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||
| 51 | * SUCH DAMAGE. | ||
| 52 | * | ||
| 53 | * The licence and distribution terms for any publically available version or | ||
| 54 | * derivative of this code cannot be changed. i.e. this code cannot simply be | ||
| 55 | * copied and put under another distribution licence | ||
| 56 | * [including the GNU Public Licence.] | ||
| 57 | */ | ||
| 58 | |||
| 59 | #include <stdio.h> | ||
| 60 | #include "cryptlib.h" | ||
| 61 | #include <openssl/asn1_mac.h> | ||
| 62 | #include <openssl/x509.h> | ||
| 63 | |||
| 64 | int i2d_X509_CINF(X509_CINF *a, unsigned char **pp) | ||
| 65 | { | ||
| 66 | int v1=0,v2=0; | ||
| 67 | M_ASN1_I2D_vars(a); | ||
| 68 | |||
| 69 | M_ASN1_I2D_len_EXP_opt(a->version,i2d_ASN1_INTEGER,0,v1); | ||
| 70 | M_ASN1_I2D_len(a->serialNumber, i2d_ASN1_INTEGER); | ||
| 71 | M_ASN1_I2D_len(a->signature, i2d_X509_ALGOR); | ||
| 72 | M_ASN1_I2D_len(a->issuer, i2d_X509_NAME); | ||
| 73 | M_ASN1_I2D_len(a->validity, i2d_X509_VAL); | ||
| 74 | M_ASN1_I2D_len(a->subject, i2d_X509_NAME); | ||
| 75 | M_ASN1_I2D_len(a->key, i2d_X509_PUBKEY); | ||
| 76 | M_ASN1_I2D_len_IMP_opt(a->issuerUID, i2d_ASN1_BIT_STRING); | ||
| 77 | M_ASN1_I2D_len_IMP_opt(a->subjectUID, i2d_ASN1_BIT_STRING); | ||
| 78 | M_ASN1_I2D_len_EXP_SEQUENCE_opt_type(X509_EXTENSION,a->extensions, | ||
| 79 | i2d_X509_EXTENSION,3, | ||
| 80 | V_ASN1_SEQUENCE,v2); | ||
| 81 | |||
| 82 | M_ASN1_I2D_seq_total(); | ||
| 83 | |||
| 84 | M_ASN1_I2D_put_EXP_opt(a->version,i2d_ASN1_INTEGER,0,v1); | ||
| 85 | M_ASN1_I2D_put(a->serialNumber, i2d_ASN1_INTEGER); | ||
| 86 | M_ASN1_I2D_put(a->signature, i2d_X509_ALGOR); | ||
| 87 | M_ASN1_I2D_put(a->issuer, i2d_X509_NAME); | ||
| 88 | M_ASN1_I2D_put(a->validity, i2d_X509_VAL); | ||
| 89 | M_ASN1_I2D_put(a->subject, i2d_X509_NAME); | ||
| 90 | M_ASN1_I2D_put(a->key, i2d_X509_PUBKEY); | ||
| 91 | M_ASN1_I2D_put_IMP_opt(a->issuerUID, i2d_ASN1_BIT_STRING,1); | ||
| 92 | M_ASN1_I2D_put_IMP_opt(a->subjectUID, i2d_ASN1_BIT_STRING,2); | ||
| 93 | M_ASN1_I2D_put_EXP_SEQUENCE_opt_type(X509_EXTENSION,a->extensions, | ||
| 94 | i2d_X509_EXTENSION,3, | ||
| 95 | V_ASN1_SEQUENCE,v2); | ||
| 96 | |||
| 97 | M_ASN1_I2D_finish(); | ||
| 98 | } | ||
| 99 | |||
| 100 | X509_CINF *d2i_X509_CINF(X509_CINF **a, unsigned char **pp, long length) | ||
| 101 | { | ||
| 102 | int ver=0; | ||
| 103 | M_ASN1_D2I_vars(a,X509_CINF *,X509_CINF_new); | ||
| 104 | |||
| 105 | M_ASN1_D2I_Init(); | ||
| 106 | M_ASN1_D2I_start_sequence(); | ||
| 107 | /* we have the optional version field */ | ||
| 108 | if (M_ASN1_next == (V_ASN1_CONTEXT_SPECIFIC | V_ASN1_CONSTRUCTED | 0)) | ||
| 109 | { | ||
| 110 | M_ASN1_D2I_get_EXP_opt(ret->version,d2i_ASN1_INTEGER,0); | ||
| 111 | if (ret->version->data != NULL) | ||
| 112 | ver=ret->version->data[0]; | ||
| 113 | } | ||
| 114 | else | ||
| 115 | { | ||
| 116 | if (ret->version != NULL) | ||
| 117 | { | ||
| 118 | M_ASN1_INTEGER_free(ret->version); | ||
| 119 | ret->version=NULL; | ||
| 120 | } | ||
| 121 | } | ||
| 122 | M_ASN1_D2I_get(ret->serialNumber,d2i_ASN1_INTEGER); | ||
| 123 | M_ASN1_D2I_get(ret->signature,d2i_X509_ALGOR); | ||
| 124 | M_ASN1_D2I_get(ret->issuer,d2i_X509_NAME); | ||
| 125 | M_ASN1_D2I_get(ret->validity,d2i_X509_VAL); | ||
| 126 | M_ASN1_D2I_get(ret->subject,d2i_X509_NAME); | ||
| 127 | M_ASN1_D2I_get(ret->key,d2i_X509_PUBKEY); | ||
| 128 | if (ver >= 1) /* version 2 extensions */ | ||
| 129 | { | ||
| 130 | if (ret->issuerUID != NULL) | ||
| 131 | { | ||
| 132 | M_ASN1_BIT_STRING_free(ret->issuerUID); | ||
| 133 | ret->issuerUID=NULL; | ||
| 134 | } | ||
| 135 | if (ret->subjectUID != NULL) | ||
| 136 | { | ||
| 137 | M_ASN1_BIT_STRING_free(ret->subjectUID); | ||
| 138 | ret->subjectUID=NULL; | ||
| 139 | } | ||
| 140 | M_ASN1_D2I_get_IMP_opt(ret->issuerUID,d2i_ASN1_BIT_STRING, 1, | ||
| 141 | V_ASN1_BIT_STRING); | ||
| 142 | M_ASN1_D2I_get_IMP_opt(ret->subjectUID,d2i_ASN1_BIT_STRING, 2, | ||
| 143 | V_ASN1_BIT_STRING); | ||
| 144 | } | ||
| 145 | /* Note: some broken certificates include extensions but don't set | ||
| 146 | * the version number properly. By bypassing this check they can | ||
| 147 | * be parsed. | ||
| 148 | */ | ||
| 149 | |||
| 150 | #ifdef VERSION_EXT_CHECK | ||
| 151 | if (ver >= 2) /* version 3 extensions */ | ||
| 152 | #endif | ||
| 153 | { | ||
| 154 | if (ret->extensions != NULL) | ||
| 155 | while (sk_X509_EXTENSION_num(ret->extensions)) | ||
| 156 | X509_EXTENSION_free( | ||
| 157 | sk_X509_EXTENSION_pop(ret->extensions)); | ||
| 158 | M_ASN1_D2I_get_EXP_set_opt_type(X509_EXTENSION,ret->extensions, | ||
| 159 | d2i_X509_EXTENSION, | ||
| 160 | X509_EXTENSION_free,3, | ||
| 161 | V_ASN1_SEQUENCE); | ||
| 162 | } | ||
| 163 | M_ASN1_D2I_Finish(a,X509_CINF_free,ASN1_F_D2I_X509_CINF); | ||
| 164 | } | ||
| 165 | |||
| 166 | X509_CINF *X509_CINF_new(void) | ||
| 167 | { | ||
| 168 | X509_CINF *ret=NULL; | ||
| 169 | ASN1_CTX c; | ||
| 170 | |||
| 171 | M_ASN1_New_Malloc(ret,X509_CINF); | ||
| 172 | ret->version=NULL; | ||
| 173 | M_ASN1_New(ret->serialNumber,M_ASN1_INTEGER_new); | ||
| 174 | M_ASN1_New(ret->signature,X509_ALGOR_new); | ||
| 175 | M_ASN1_New(ret->issuer,X509_NAME_new); | ||
| 176 | M_ASN1_New(ret->validity,X509_VAL_new); | ||
| 177 | M_ASN1_New(ret->subject,X509_NAME_new); | ||
| 178 | M_ASN1_New(ret->key,X509_PUBKEY_new); | ||
| 179 | ret->issuerUID=NULL; | ||
| 180 | ret->subjectUID=NULL; | ||
| 181 | ret->extensions=NULL; | ||
| 182 | return(ret); | ||
| 183 | M_ASN1_New_Error(ASN1_F_X509_CINF_NEW); | ||
| 184 | } | ||
| 185 | |||
| 186 | void X509_CINF_free(X509_CINF *a) | ||
| 187 | { | ||
| 188 | if (a == NULL) return; | ||
| 189 | M_ASN1_INTEGER_free(a->version); | ||
| 190 | M_ASN1_INTEGER_free(a->serialNumber); | ||
| 191 | X509_ALGOR_free(a->signature); | ||
| 192 | X509_NAME_free(a->issuer); | ||
| 193 | X509_VAL_free(a->validity); | ||
| 194 | X509_NAME_free(a->subject); | ||
| 195 | X509_PUBKEY_free(a->key); | ||
| 196 | M_ASN1_BIT_STRING_free(a->issuerUID); | ||
| 197 | M_ASN1_BIT_STRING_free(a->subjectUID); | ||
| 198 | sk_X509_EXTENSION_pop_free(a->extensions,X509_EXTENSION_free); | ||
| 199 | OPENSSL_free(a); | ||
| 200 | } | ||
| 201 | |||
diff --git a/src/lib/libcrypto/bf/Makefile.ssl b/src/lib/libcrypto/bf/Makefile.ssl deleted file mode 100644 index be3ad77a05..0000000000 --- a/src/lib/libcrypto/bf/Makefile.ssl +++ /dev/null | |||
| @@ -1,115 +0,0 @@ | |||
| 1 | # | ||
| 2 | # SSLeay/crypto/blowfish/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= bf | ||
| 6 | TOP= ../.. | ||
| 7 | CC= cc | ||
| 8 | CPP= $(CC) -E | ||
| 9 | INCLUDES= | ||
| 10 | CFLAG=-g | ||
| 11 | INSTALL_PREFIX= | ||
| 12 | OPENSSLDIR= /usr/local/ssl | ||
| 13 | INSTALLTOP=/usr/local/ssl | ||
| 14 | MAKE= make -f Makefile.ssl | ||
| 15 | MAKEDEPPROG= makedepend | ||
| 16 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
| 17 | MAKEFILE= Makefile.ssl | ||
| 18 | AR= ar r | ||
| 19 | |||
| 20 | BF_ENC= bf_enc.o | ||
| 21 | # or use | ||
| 22 | #DES_ENC= bx86-elf.o | ||
| 23 | |||
| 24 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 25 | ASFLAGS= $(INCLUDES) $(ASFLAG) | ||
| 26 | |||
| 27 | GENERAL=Makefile | ||
| 28 | TEST=bftest.c | ||
| 29 | APPS= | ||
| 30 | |||
| 31 | LIB=$(TOP)/libcrypto.a | ||
| 32 | LIBSRC=bf_skey.c bf_ecb.c bf_enc.c bf_cfb64.c bf_ofb64.c | ||
| 33 | LIBOBJ=bf_skey.o bf_ecb.o $(BF_ENC) bf_cfb64.o bf_ofb64.o | ||
| 34 | |||
| 35 | SRC= $(LIBSRC) | ||
| 36 | |||
| 37 | EXHEADER= blowfish.h | ||
| 38 | HEADER= bf_pi.h bf_locl.h $(EXHEADER) | ||
| 39 | |||
| 40 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
| 41 | |||
| 42 | top: | ||
| 43 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
| 44 | |||
| 45 | all: lib | ||
| 46 | |||
| 47 | lib: $(LIBOBJ) | ||
| 48 | $(AR) $(LIB) $(LIBOBJ) | ||
| 49 | $(RANLIB) $(LIB) || echo Never mind. | ||
| 50 | @touch lib | ||
| 51 | |||
| 52 | # elf | ||
| 53 | asm/bx86-elf.s: asm/bf-586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl | ||
| 54 | (cd asm; $(PERL) bf-586.pl elf $(CFLAGS) $(PROCESSOR) > bx86-elf.s) | ||
| 55 | |||
| 56 | # a.out | ||
| 57 | asm/bx86-out.o: asm/bx86unix.cpp | ||
| 58 | $(CPP) -DOUT asm/bx86unix.cpp | as -o asm/bx86-out.o | ||
| 59 | |||
| 60 | # bsdi | ||
| 61 | asm/bx86bsdi.o: asm/bx86unix.cpp | ||
| 62 | $(CPP) -DBSDI asm/bx86unix.cpp | sed 's/ :/:/' | as -o asm/bx86bsdi.o | ||
| 63 | |||
| 64 | asm/bx86unix.cpp: asm/bf-586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl | ||
| 65 | (cd asm; $(PERL) bf-586.pl cpp $(PROCESSOR) >bx86unix.cpp) | ||
| 66 | |||
| 67 | files: | ||
| 68 | $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
| 69 | |||
| 70 | links: | ||
| 71 | @sh $(TOP)/util/point.sh Makefile.ssl Makefile | ||
| 72 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | ||
| 73 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | ||
| 74 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | ||
| 75 | |||
| 76 | install: installs | ||
| 77 | |||
| 78 | installs: | ||
| 79 | @for i in $(EXHEADER) ; \ | ||
| 80 | do \ | ||
| 81 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 82 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
| 83 | done; | ||
| 84 | |||
| 85 | tags: | ||
| 86 | ctags $(SRC) | ||
| 87 | |||
| 88 | tests: | ||
| 89 | |||
| 90 | lint: | ||
| 91 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
| 92 | |||
| 93 | depend: | ||
| 94 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) | ||
| 95 | |||
| 96 | dclean: | ||
| 97 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 98 | mv -f Makefile.new $(MAKEFILE) | ||
| 99 | |||
| 100 | clean: | ||
| 101 | rm -f asm/bx86unix.cpp asm/*-elf.* *.o asm/*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
| 102 | |||
| 103 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 104 | |||
| 105 | bf_cfb64.o: ../../include/openssl/blowfish.h ../../include/openssl/e_os2.h | ||
| 106 | bf_cfb64.o: ../../include/openssl/opensslconf.h bf_cfb64.c bf_locl.h | ||
| 107 | bf_ecb.o: ../../include/openssl/blowfish.h ../../include/openssl/e_os2.h | ||
| 108 | bf_ecb.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 109 | bf_ecb.o: bf_ecb.c bf_locl.h | ||
| 110 | bf_enc.o: ../../include/openssl/blowfish.h ../../include/openssl/e_os2.h | ||
| 111 | bf_enc.o: ../../include/openssl/opensslconf.h bf_enc.c bf_locl.h | ||
| 112 | bf_ofb64.o: ../../include/openssl/blowfish.h ../../include/openssl/e_os2.h | ||
| 113 | bf_ofb64.o: ../../include/openssl/opensslconf.h bf_locl.h bf_ofb64.c | ||
| 114 | bf_skey.o: ../../include/openssl/blowfish.h ../../include/openssl/e_os2.h | ||
| 115 | bf_skey.o: ../../include/openssl/opensslconf.h bf_locl.h bf_pi.h bf_skey.c | ||
diff --git a/src/lib/libcrypto/bio/Makefile.ssl b/src/lib/libcrypto/bio/Makefile.ssl deleted file mode 100644 index d0b9e297b0..0000000000 --- a/src/lib/libcrypto/bio/Makefile.ssl +++ /dev/null | |||
| @@ -1,216 +0,0 @@ | |||
| 1 | # | ||
| 2 | # SSLeay/crypto/bio/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= bio | ||
| 6 | TOP= ../.. | ||
| 7 | CC= cc | ||
| 8 | INCLUDES= -I.. -I$(TOP) -I../../include | ||
| 9 | CFLAG=-g | ||
| 10 | INSTALL_PREFIX= | ||
| 11 | OPENSSLDIR= /usr/local/ssl | ||
| 12 | INSTALLTOP=/usr/local/ssl | ||
| 13 | MAKE= make -f Makefile.ssl | ||
| 14 | MAKEDEPPROG= makedepend | ||
| 15 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
| 16 | MAKEFILE= Makefile.ssl | ||
| 17 | AR= ar r | ||
| 18 | |||
| 19 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 20 | |||
| 21 | GENERAL=Makefile | ||
| 22 | TEST= | ||
| 23 | APPS= | ||
| 24 | |||
| 25 | LIB=$(TOP)/libcrypto.a | ||
| 26 | LIBSRC= bio_lib.c bio_cb.c bio_err.c \ | ||
| 27 | bss_mem.c bss_null.c bss_fd.c \ | ||
| 28 | bss_file.c bss_sock.c bss_conn.c \ | ||
| 29 | bf_null.c bf_buff.c b_print.c b_dump.c \ | ||
| 30 | b_sock.c bss_acpt.c bf_nbio.c bss_log.c bss_bio.c | ||
| 31 | # bf_lbuf.c | ||
| 32 | LIBOBJ= bio_lib.o bio_cb.o bio_err.o \ | ||
| 33 | bss_mem.o bss_null.o bss_fd.o \ | ||
| 34 | bss_file.o bss_sock.o bss_conn.o \ | ||
| 35 | bf_null.o bf_buff.o b_print.o b_dump.o \ | ||
| 36 | b_sock.o bss_acpt.o bf_nbio.o bss_log.o bss_bio.o | ||
| 37 | # bf_lbuf.o | ||
| 38 | |||
| 39 | SRC= $(LIBSRC) | ||
| 40 | |||
| 41 | EXHEADER= bio.h | ||
| 42 | HEADER= bss_file.c $(EXHEADER) | ||
| 43 | |||
| 44 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
| 45 | |||
| 46 | top: | ||
| 47 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
| 48 | |||
| 49 | all: lib | ||
| 50 | |||
| 51 | lib: $(LIBOBJ) | ||
| 52 | $(AR) $(LIB) $(LIBOBJ) | ||
| 53 | $(RANLIB) $(LIB) || echo Never mind. | ||
| 54 | @touch lib | ||
| 55 | |||
| 56 | files: | ||
| 57 | $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
| 58 | |||
| 59 | links: | ||
| 60 | @sh $(TOP)/util/point.sh Makefile.ssl Makefile | ||
| 61 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | ||
| 62 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | ||
| 63 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | ||
| 64 | |||
| 65 | install: | ||
| 66 | @for i in $(EXHEADER); \ | ||
| 67 | do \ | ||
| 68 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 69 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
| 70 | done; | ||
| 71 | |||
| 72 | tags: | ||
| 73 | ctags $(SRC) | ||
| 74 | |||
| 75 | tests: | ||
| 76 | |||
| 77 | lint: | ||
| 78 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
| 79 | |||
| 80 | depend: | ||
| 81 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) | ||
| 82 | |||
| 83 | dclean: | ||
| 84 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 85 | mv -f Makefile.new $(MAKEFILE) | ||
| 86 | |||
| 87 | clean: | ||
| 88 | rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
| 89 | |||
| 90 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 91 | |||
| 92 | b_dump.o: ../../e_os.h ../../include/openssl/bio.h | ||
| 93 | b_dump.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 94 | b_dump.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 95 | b_dump.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 96 | b_dump.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 97 | b_dump.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 98 | b_dump.o: ../cryptlib.h b_dump.c | ||
| 99 | b_print.o: ../../e_os.h ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 100 | b_print.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 101 | b_print.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 102 | b_print.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 103 | b_print.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 104 | b_print.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 105 | b_print.o: ../cryptlib.h b_print.c | ||
| 106 | b_sock.o: ../../e_os.h ../../include/openssl/bio.h | ||
| 107 | b_sock.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 108 | b_sock.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 109 | b_sock.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 110 | b_sock.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 111 | b_sock.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 112 | b_sock.o: ../cryptlib.h b_sock.c | ||
| 113 | bf_buff.o: ../../e_os.h ../../include/openssl/bio.h | ||
| 114 | bf_buff.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 115 | bf_buff.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 116 | bf_buff.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 117 | bf_buff.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 118 | bf_buff.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 119 | bf_buff.o: ../cryptlib.h bf_buff.c | ||
| 120 | bf_nbio.o: ../../e_os.h ../../include/openssl/bio.h | ||
| 121 | bf_nbio.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 122 | bf_nbio.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 123 | bf_nbio.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 124 | bf_nbio.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 125 | bf_nbio.o: ../../include/openssl/rand.h ../../include/openssl/safestack.h | ||
| 126 | bf_nbio.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 127 | bf_nbio.o: ../cryptlib.h bf_nbio.c | ||
| 128 | bf_null.o: ../../e_os.h ../../include/openssl/bio.h | ||
| 129 | bf_null.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 130 | bf_null.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 131 | bf_null.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 132 | bf_null.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 133 | bf_null.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 134 | bf_null.o: ../cryptlib.h bf_null.c | ||
| 135 | bio_cb.o: ../../e_os.h ../../include/openssl/bio.h | ||
| 136 | bio_cb.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 137 | bio_cb.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 138 | bio_cb.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 139 | bio_cb.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 140 | bio_cb.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 141 | bio_cb.o: ../cryptlib.h bio_cb.c | ||
| 142 | bio_err.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h | ||
| 143 | bio_err.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 144 | bio_err.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 145 | bio_err.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 146 | bio_err.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 147 | bio_err.o: bio_err.c | ||
| 148 | bio_lib.o: ../../e_os.h ../../include/openssl/bio.h | ||
| 149 | bio_lib.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 150 | bio_lib.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 151 | bio_lib.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 152 | bio_lib.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 153 | bio_lib.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 154 | bio_lib.o: ../cryptlib.h bio_lib.c | ||
| 155 | bss_acpt.o: ../../e_os.h ../../include/openssl/bio.h | ||
| 156 | bss_acpt.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 157 | bss_acpt.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 158 | bss_acpt.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 159 | bss_acpt.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 160 | bss_acpt.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 161 | bss_acpt.o: ../cryptlib.h bss_acpt.c | ||
| 162 | bss_bio.o: ../../e_os.h ../../include/openssl/bio.h | ||
| 163 | bss_bio.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 164 | bss_bio.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
| 165 | bss_bio.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 166 | bss_bio.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 167 | bss_bio.o: ../../include/openssl/symhacks.h bss_bio.c | ||
| 168 | bss_conn.o: ../../e_os.h ../../include/openssl/bio.h | ||
| 169 | bss_conn.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 170 | bss_conn.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 171 | bss_conn.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 172 | bss_conn.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 173 | bss_conn.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 174 | bss_conn.o: ../cryptlib.h bss_conn.c | ||
| 175 | bss_fd.o: ../../e_os.h ../../include/openssl/bio.h | ||
| 176 | bss_fd.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 177 | bss_fd.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 178 | bss_fd.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 179 | bss_fd.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 180 | bss_fd.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 181 | bss_fd.o: ../cryptlib.h bss_fd.c | ||
| 182 | bss_file.o: ../../e_os.h ../../include/openssl/bio.h | ||
| 183 | bss_file.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 184 | bss_file.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 185 | bss_file.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 186 | bss_file.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 187 | bss_file.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 188 | bss_file.o: ../cryptlib.h bss_file.c | ||
| 189 | bss_log.o: ../../e_os.h ../../include/openssl/bio.h | ||
| 190 | bss_log.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 191 | bss_log.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 192 | bss_log.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 193 | bss_log.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 194 | bss_log.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 195 | bss_log.o: ../cryptlib.h bss_log.c | ||
| 196 | bss_mem.o: ../../e_os.h ../../include/openssl/bio.h | ||
| 197 | bss_mem.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 198 | bss_mem.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 199 | bss_mem.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 200 | bss_mem.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 201 | bss_mem.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 202 | bss_mem.o: ../cryptlib.h bss_mem.c | ||
| 203 | bss_null.o: ../../e_os.h ../../include/openssl/bio.h | ||
| 204 | bss_null.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 205 | bss_null.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 206 | bss_null.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 207 | bss_null.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 208 | bss_null.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 209 | bss_null.o: ../cryptlib.h bss_null.c | ||
| 210 | bss_sock.o: ../../e_os.h ../../include/openssl/bio.h | ||
| 211 | bss_sock.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 212 | bss_sock.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 213 | bss_sock.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 214 | bss_sock.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 215 | bss_sock.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 216 | bss_sock.o: ../cryptlib.h bss_sock.c | ||
diff --git a/src/lib/libcrypto/bio/bio_lcl.h b/src/lib/libcrypto/bio/bio_lcl.h deleted file mode 100644 index e7f7ec8d8b..0000000000 --- a/src/lib/libcrypto/bio/bio_lcl.h +++ /dev/null | |||
| @@ -1,36 +0,0 @@ | |||
| 1 | #include <openssl/bio.h> | ||
| 2 | |||
| 3 | #if BIO_FLAGS_UPLINK==0 | ||
| 4 | /* Shortcut UPLINK calls on most platforms... */ | ||
| 5 | #define UP_stdin stdin | ||
| 6 | #define UP_stdout stdout | ||
| 7 | #define UP_stderr stderr | ||
| 8 | #define UP_fprintf fprintf | ||
| 9 | #define UP_fgets fgets | ||
| 10 | #define UP_fread fread | ||
| 11 | #define UP_fwrite fwrite | ||
| 12 | #undef UP_fsetmod | ||
| 13 | #define UP_feof feof | ||
| 14 | #define UP_fclose fclose | ||
| 15 | |||
| 16 | #define UP_fopen fopen | ||
| 17 | #define UP_fseek fseek | ||
| 18 | #define UP_ftell ftell | ||
| 19 | #define UP_fflush fflush | ||
| 20 | #define UP_ferror ferror | ||
| 21 | #ifdef _WIN32 | ||
| 22 | #define UP_fileno _fileno | ||
| 23 | #define UP_open _open | ||
| 24 | #define UP_read _read | ||
| 25 | #define UP_write _write | ||
| 26 | #define UP_lseek _lseek | ||
| 27 | #define UP_close _close | ||
| 28 | #else | ||
| 29 | #define UP_fileno fileno | ||
| 30 | #define UP_open open | ||
| 31 | #define UP_read read | ||
| 32 | #define UP_write write | ||
| 33 | #define UP_lseek lseek | ||
| 34 | #define UP_close close | ||
| 35 | #endif | ||
| 36 | #endif | ||
diff --git a/src/lib/libcrypto/bn/Makefile.ssl b/src/lib/libcrypto/bn/Makefile.ssl deleted file mode 100644 index 50892ef44c..0000000000 --- a/src/lib/libcrypto/bn/Makefile.ssl +++ /dev/null | |||
| @@ -1,326 +0,0 @@ | |||
| 1 | # | ||
| 2 | # SSLeay/crypto/bn/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= bn | ||
| 6 | TOP= ../.. | ||
| 7 | CC= cc | ||
| 8 | CPP= $(CC) -E | ||
| 9 | INCLUDES= -I.. -I$(TOP) -I../../include | ||
| 10 | CFLAG=-g | ||
| 11 | INSTALL_PREFIX= | ||
| 12 | OPENSSLDIR= /usr/local/ssl | ||
| 13 | INSTALLTOP=/usr/local/ssl | ||
| 14 | MAKE= make -f Makefile.ssl | ||
| 15 | MAKEDEPPROG= makedepend | ||
| 16 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
| 17 | MAKEFILE= Makefile.ssl | ||
| 18 | AR= ar r | ||
| 19 | |||
| 20 | BN_ASM= bn_asm.o | ||
| 21 | # or use | ||
| 22 | #BN_ASM= bn86-elf.o | ||
| 23 | |||
| 24 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 25 | ASFLAGS= $(INCLUDES) $(ASFLAG) | ||
| 26 | |||
| 27 | GENERAL=Makefile | ||
| 28 | TEST=bntest.c exptest.c | ||
| 29 | APPS= | ||
| 30 | |||
| 31 | LIB=$(TOP)/libcrypto.a | ||
| 32 | LIBSRC= bn_add.c bn_div.c bn_exp.c bn_lib.c bn_ctx.c bn_mul.c bn_mod.c \ | ||
| 33 | bn_print.c bn_rand.c bn_shift.c bn_word.c bn_blind.c \ | ||
| 34 | bn_kron.c bn_sqrt.c bn_gcd.c bn_prime.c bn_err.c bn_sqr.c bn_asm.c \ | ||
| 35 | bn_recp.c bn_mont.c bn_mpi.c bn_exp2.c | ||
| 36 | |||
| 37 | LIBOBJ= bn_add.o bn_div.o bn_exp.o bn_lib.o bn_ctx.o bn_mul.o bn_mod.o \ | ||
| 38 | bn_print.o bn_rand.o bn_shift.o bn_word.o bn_blind.o \ | ||
| 39 | bn_kron.o bn_sqrt.o bn_gcd.o bn_prime.o bn_err.o bn_sqr.o $(BN_ASM) \ | ||
| 40 | bn_recp.o bn_mont.o bn_mpi.o bn_exp2.o | ||
| 41 | |||
| 42 | SRC= $(LIBSRC) | ||
| 43 | |||
| 44 | EXHEADER= bn.h | ||
| 45 | HEADER= bn_lcl.h bn_prime.h $(EXHEADER) | ||
| 46 | |||
| 47 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
| 48 | |||
| 49 | top: | ||
| 50 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
| 51 | |||
| 52 | all: lib | ||
| 53 | |||
| 54 | bn_prime.h: bn_prime.pl | ||
| 55 | $(PERL) bn_prime.pl >bn_prime.h | ||
| 56 | |||
| 57 | divtest: divtest.c ../../libcrypto.a | ||
| 58 | cc -I../../include divtest.c -o divtest ../../libcrypto.a | ||
| 59 | |||
| 60 | bnbug: bnbug.c ../../libcrypto.a top | ||
| 61 | cc -g -I../../include bnbug.c -o bnbug ../../libcrypto.a | ||
| 62 | |||
| 63 | lib: $(LIBOBJ) | ||
| 64 | $(AR) $(LIB) $(LIBOBJ) | ||
| 65 | $(RANLIB) $(LIB) || echo Never mind. | ||
| 66 | @touch lib | ||
| 67 | |||
| 68 | # elf | ||
| 69 | asm/bn86-elf.s: asm/bn-586.pl ../perlasm/x86asm.pl | ||
| 70 | (cd asm; $(PERL) bn-586.pl elf $(CFLAGS) > bn86-elf.s) | ||
| 71 | |||
| 72 | asm/co86-elf.s: asm/co-586.pl ../perlasm/x86asm.pl | ||
| 73 | (cd asm; $(PERL) co-586.pl elf $(CFLAGS) > co86-elf.s) | ||
| 74 | |||
| 75 | # a.out | ||
| 76 | asm/bn86-out.o: asm/bn86unix.cpp | ||
| 77 | $(CPP) -DOUT asm/bn86unix.cpp | as -o asm/bn86-out.o | ||
| 78 | |||
| 79 | asm/co86-out.o: asm/co86unix.cpp | ||
| 80 | $(CPP) -DOUT asm/co86unix.cpp | as -o asm/co86-out.o | ||
| 81 | |||
| 82 | # bsdi | ||
| 83 | asm/bn86bsdi.o: asm/bn86unix.cpp | ||
| 84 | $(CPP) -DBSDI asm/bn86unix.cpp | sed 's/ :/:/' | as -o asm/bn86bsdi.o | ||
| 85 | |||
| 86 | asm/co86bsdi.o: asm/co86unix.cpp | ||
| 87 | $(CPP) -DBSDI asm/co86unix.cpp | sed 's/ :/:/' | as -o asm/co86bsdi.o | ||
| 88 | |||
| 89 | asm/bn86unix.cpp: asm/bn-586.pl ../perlasm/x86asm.pl | ||
| 90 | (cd asm; $(PERL) bn-586.pl cpp >bn86unix.cpp ) | ||
| 91 | |||
| 92 | asm/co86unix.cpp: asm/co-586.pl ../perlasm/x86asm.pl | ||
| 93 | (cd asm; $(PERL) co-586.pl cpp >co86unix.cpp ) | ||
| 94 | |||
| 95 | asm/sparcv8.o: asm/sparcv8.S | ||
| 96 | |||
| 97 | asm/sparcv8plus.o: asm/sparcv8plus.S | ||
| 98 | |||
| 99 | # Old GNU assembler doesn't understand V9 instructions, so we | ||
| 100 | # hire /usr/ccs/bin/as to do the job. Note that option is called | ||
| 101 | # *-gcc27, but even gcc 2>=8 users may experience similar problem | ||
| 102 | # if they didn't bother to upgrade GNU assembler. Such users should | ||
| 103 | # not choose this option, but be adviced to *remove* GNU assembler | ||
| 104 | # or upgrade it. | ||
| 105 | asm/sparcv8plus-gcc27.o: asm/sparcv8plus.S | ||
| 106 | $(CC) $(ASFLAGS) -E asm/sparcv8plus.S | \ | ||
| 107 | /usr/ccs/bin/as -xarch=v8plus - -o asm/sparcv8plus-gcc27.o | ||
| 108 | |||
| 109 | |||
| 110 | asm/ia64.o: asm/ia64.S | ||
| 111 | |||
| 112 | # Some compiler drivers (most notably HP-UX and Intel C++) don't | ||
| 113 | # understand .S extension:-( I wish I could pipe output from cc -E, | ||
| 114 | # but it's too compiler driver/ABI dependent to cover with a single | ||
| 115 | # rule... <appro@fy.chalmers.se> | ||
| 116 | asm/ia64-cpp.o: asm/ia64.S | ||
| 117 | $(CC) $(ASFLAGS) -E asm/ia64.S > /tmp/ia64.$$$$.s && \ | ||
| 118 | $(CC) $(ASFLAGS) -c -o asm/ia64-cpp.o /tmp/ia64.$$$$.s; \ | ||
| 119 | rm -f /tmp/ia64.$$$$.s | ||
| 120 | |||
| 121 | asm/x86_64-gcc.o: asm/x86_64-gcc.c | ||
| 122 | |||
| 123 | asm/pa-risc2W.o: asm/pa-risc2W.s | ||
| 124 | /usr/ccs/bin/as -o asm/pa-rics2W.o asm/pa-risc2W.s | ||
| 125 | |||
| 126 | files: | ||
| 127 | $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
| 128 | |||
| 129 | links: | ||
| 130 | @sh $(TOP)/util/point.sh Makefile.ssl Makefile | ||
| 131 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | ||
| 132 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | ||
| 133 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | ||
| 134 | |||
| 135 | install: | ||
| 136 | @for i in $(EXHEADER) ; \ | ||
| 137 | do \ | ||
| 138 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 139 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
| 140 | done; | ||
| 141 | |||
| 142 | exptest: | ||
| 143 | rm -f exptest | ||
| 144 | gcc -I../../include -g2 -ggdb -o exptest exptest.c ../../libcrypto.a | ||
| 145 | |||
| 146 | div: | ||
| 147 | rm -f a.out | ||
| 148 | gcc -I.. -g div.c ../../libcrypto.a | ||
| 149 | |||
| 150 | tags: | ||
| 151 | ctags $(SRC) | ||
| 152 | |||
| 153 | tests: | ||
| 154 | |||
| 155 | lint: | ||
| 156 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
| 157 | |||
| 158 | depend: | ||
| 159 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) | ||
| 160 | |||
| 161 | dclean: | ||
| 162 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 163 | mv -f Makefile.new $(MAKEFILE) | ||
| 164 | |||
| 165 | clean: | ||
| 166 | rm -f asm/co86unix.cpp asm/bn86unix.cpp asm/*-elf.* *.o */*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff bn_asm.s | ||
| 167 | |||
| 168 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 169 | |||
| 170 | bn_add.o: ../../e_os.h ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 171 | bn_add.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 172 | bn_add.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 173 | bn_add.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 174 | bn_add.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 175 | bn_add.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 176 | bn_add.o: ../cryptlib.h bn_add.c bn_lcl.h | ||
| 177 | bn_asm.o: ../../e_os.h ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 178 | bn_asm.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 179 | bn_asm.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 180 | bn_asm.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 181 | bn_asm.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 182 | bn_asm.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 183 | bn_asm.o: ../cryptlib.h bn_asm.c bn_lcl.h | ||
| 184 | bn_blind.o: ../../e_os.h ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 185 | bn_blind.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 186 | bn_blind.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 187 | bn_blind.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 188 | bn_blind.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 189 | bn_blind.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 190 | bn_blind.o: ../cryptlib.h bn_blind.c bn_lcl.h | ||
| 191 | bn_ctx.o: ../../e_os.h ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 192 | bn_ctx.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 193 | bn_ctx.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 194 | bn_ctx.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 195 | bn_ctx.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 196 | bn_ctx.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 197 | bn_ctx.o: ../cryptlib.h bn_ctx.c bn_lcl.h | ||
| 198 | bn_div.o: ../../e_os.h ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 199 | bn_div.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 200 | bn_div.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 201 | bn_div.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 202 | bn_div.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 203 | bn_div.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 204 | bn_div.o: ../cryptlib.h bn_div.c bn_lcl.h | ||
| 205 | bn_err.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 206 | bn_err.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 207 | bn_err.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
| 208 | bn_err.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 209 | bn_err.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 210 | bn_err.o: ../../include/openssl/symhacks.h bn_err.c | ||
| 211 | bn_exp.o: ../../e_os.h ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 212 | bn_exp.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 213 | bn_exp.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 214 | bn_exp.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 215 | bn_exp.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 216 | bn_exp.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 217 | bn_exp.o: ../cryptlib.h bn_exp.c bn_lcl.h | ||
| 218 | bn_exp2.o: ../../e_os.h ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 219 | bn_exp2.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 220 | bn_exp2.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 221 | bn_exp2.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 222 | bn_exp2.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 223 | bn_exp2.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 224 | bn_exp2.o: ../cryptlib.h bn_exp2.c bn_lcl.h | ||
| 225 | bn_gcd.o: ../../e_os.h ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 226 | bn_gcd.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 227 | bn_gcd.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 228 | bn_gcd.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 229 | bn_gcd.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 230 | bn_gcd.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 231 | bn_gcd.o: ../cryptlib.h bn_gcd.c bn_lcl.h | ||
| 232 | bn_kron.o: ../../include/openssl/bn.h ../../include/openssl/e_os2.h | ||
| 233 | bn_kron.o: ../../include/openssl/opensslconf.h bn_kron.c bn_lcl.h | ||
| 234 | bn_lib.o: ../../e_os.h ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 235 | bn_lib.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 236 | bn_lib.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 237 | bn_lib.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 238 | bn_lib.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 239 | bn_lib.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 240 | bn_lib.o: ../cryptlib.h bn_lcl.h bn_lib.c | ||
| 241 | bn_mod.o: ../../e_os.h ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 242 | bn_mod.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 243 | bn_mod.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 244 | bn_mod.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 245 | bn_mod.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 246 | bn_mod.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 247 | bn_mod.o: ../cryptlib.h bn_lcl.h bn_mod.c | ||
| 248 | bn_mont.o: ../../e_os.h ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 249 | bn_mont.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 250 | bn_mont.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 251 | bn_mont.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 252 | bn_mont.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 253 | bn_mont.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 254 | bn_mont.o: ../cryptlib.h bn_lcl.h bn_mont.c | ||
| 255 | bn_mpi.o: ../../e_os.h ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 256 | bn_mpi.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 257 | bn_mpi.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 258 | bn_mpi.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 259 | bn_mpi.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 260 | bn_mpi.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 261 | bn_mpi.o: ../cryptlib.h bn_lcl.h bn_mpi.c | ||
| 262 | bn_mul.o: ../../e_os.h ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 263 | bn_mul.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 264 | bn_mul.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 265 | bn_mul.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 266 | bn_mul.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 267 | bn_mul.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 268 | bn_mul.o: ../cryptlib.h bn_lcl.h bn_mul.c | ||
| 269 | bn_prime.o: ../../e_os.h ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 270 | bn_prime.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 271 | bn_prime.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 272 | bn_prime.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 273 | bn_prime.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 274 | bn_prime.o: ../../include/openssl/rand.h ../../include/openssl/safestack.h | ||
| 275 | bn_prime.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 276 | bn_prime.o: ../cryptlib.h bn_lcl.h bn_prime.c bn_prime.h | ||
| 277 | bn_print.o: ../../e_os.h ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 278 | bn_print.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 279 | bn_print.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 280 | bn_print.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 281 | bn_print.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 282 | bn_print.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 283 | bn_print.o: ../cryptlib.h bn_lcl.h bn_print.c | ||
| 284 | bn_rand.o: ../../e_os.h ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 285 | bn_rand.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 286 | bn_rand.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 287 | bn_rand.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 288 | bn_rand.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 289 | bn_rand.o: ../../include/openssl/rand.h ../../include/openssl/safestack.h | ||
| 290 | bn_rand.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 291 | bn_rand.o: ../cryptlib.h bn_lcl.h bn_rand.c | ||
| 292 | bn_recp.o: ../../e_os.h ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 293 | bn_recp.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 294 | bn_recp.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 295 | bn_recp.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 296 | bn_recp.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 297 | bn_recp.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 298 | bn_recp.o: ../cryptlib.h bn_lcl.h bn_recp.c | ||
| 299 | bn_shift.o: ../../e_os.h ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 300 | bn_shift.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 301 | bn_shift.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 302 | bn_shift.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 303 | bn_shift.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 304 | bn_shift.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 305 | bn_shift.o: ../cryptlib.h bn_lcl.h bn_shift.c | ||
| 306 | bn_sqr.o: ../../e_os.h ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 307 | bn_sqr.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 308 | bn_sqr.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 309 | bn_sqr.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 310 | bn_sqr.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 311 | bn_sqr.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 312 | bn_sqr.o: ../cryptlib.h bn_lcl.h bn_sqr.c | ||
| 313 | bn_sqrt.o: ../../e_os.h ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 314 | bn_sqrt.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 315 | bn_sqrt.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 316 | bn_sqrt.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 317 | bn_sqrt.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 318 | bn_sqrt.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 319 | bn_sqrt.o: ../cryptlib.h bn_lcl.h bn_sqrt.c | ||
| 320 | bn_word.o: ../../e_os.h ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 321 | bn_word.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 322 | bn_word.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 323 | bn_word.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 324 | bn_word.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 325 | bn_word.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 326 | bn_word.o: ../cryptlib.h bn_lcl.h bn_word.c | ||
diff --git a/src/lib/libcrypto/bn/asm/mips3-mont.pl b/src/lib/libcrypto/bn/asm/mips3-mont.pl deleted file mode 100644 index 8f9156e02a..0000000000 --- a/src/lib/libcrypto/bn/asm/mips3-mont.pl +++ /dev/null | |||
| @@ -1,327 +0,0 @@ | |||
| 1 | #!/usr/bin/env perl | ||
| 2 | # | ||
| 3 | # ==================================================================== | ||
| 4 | # Written by Andy Polyakov <appro@fy.chalmers.se> for the OpenSSL | ||
| 5 | # project. The module is, however, dual licensed under OpenSSL and | ||
| 6 | # CRYPTOGAMS licenses depending on where you obtain it. For further | ||
| 7 | # details see http://www.openssl.org/~appro/cryptogams/. | ||
| 8 | # ==================================================================== | ||
| 9 | |||
| 10 | # This module doesn't present direct interest for OpenSSL, because it | ||
| 11 | # doesn't provide better performance for longer keys. While 512-bit | ||
| 12 | # RSA private key operations are 40% faster, 1024-bit ones are hardly | ||
| 13 | # faster at all, while longer key operations are slower by up to 20%. | ||
| 14 | # It might be of interest to embedded system developers though, as | ||
| 15 | # it's smaller than 1KB, yet offers ~3x improvement over compiler | ||
| 16 | # generated code. | ||
| 17 | # | ||
| 18 | # The module targets N32 and N64 MIPS ABIs and currently is a bit | ||
| 19 | # IRIX-centric, i.e. is likely to require adaptation for other OSes. | ||
| 20 | |||
| 21 | # int bn_mul_mont( | ||
| 22 | $rp="a0"; # BN_ULONG *rp, | ||
| 23 | $ap="a1"; # const BN_ULONG *ap, | ||
| 24 | $bp="a2"; # const BN_ULONG *bp, | ||
| 25 | $np="a3"; # const BN_ULONG *np, | ||
| 26 | $n0="a4"; # const BN_ULONG *n0, | ||
| 27 | $num="a5"; # int num); | ||
| 28 | |||
| 29 | $lo0="a6"; | ||
| 30 | $hi0="a7"; | ||
| 31 | $lo1="v0"; | ||
| 32 | $hi1="v1"; | ||
| 33 | $aj="t0"; | ||
| 34 | $bi="t1"; | ||
| 35 | $nj="t2"; | ||
| 36 | $tp="t3"; | ||
| 37 | $alo="s0"; | ||
| 38 | $ahi="s1"; | ||
| 39 | $nlo="s2"; | ||
| 40 | $nhi="s3"; | ||
| 41 | $tj="s4"; | ||
| 42 | $i="s5"; | ||
| 43 | $j="s6"; | ||
| 44 | $fp="t8"; | ||
| 45 | $m1="t9"; | ||
| 46 | |||
| 47 | $FRAME=8*(2+8); | ||
| 48 | |||
| 49 | $code=<<___; | ||
| 50 | #include <asm.h> | ||
| 51 | #include <regdef.h> | ||
| 52 | |||
| 53 | .text | ||
| 54 | |||
| 55 | .set noat | ||
| 56 | .set reorder | ||
| 57 | |||
| 58 | .align 5 | ||
| 59 | .globl bn_mul_mont | ||
| 60 | .ent bn_mul_mont | ||
| 61 | bn_mul_mont: | ||
| 62 | .set noreorder | ||
| 63 | PTR_SUB sp,64 | ||
| 64 | move $fp,sp | ||
| 65 | .frame $fp,64,ra | ||
| 66 | slt AT,$num,4 | ||
| 67 | li v0,0 | ||
| 68 | beqzl AT,.Lproceed | ||
| 69 | nop | ||
| 70 | jr ra | ||
| 71 | PTR_ADD sp,$fp,64 | ||
| 72 | .set reorder | ||
| 73 | .align 5 | ||
| 74 | .Lproceed: | ||
| 75 | ld $n0,0($n0) | ||
| 76 | ld $bi,0($bp) # bp[0] | ||
| 77 | ld $aj,0($ap) # ap[0] | ||
| 78 | ld $nj,0($np) # np[0] | ||
| 79 | PTR_SUB sp,16 # place for two extra words | ||
| 80 | sll $num,3 | ||
| 81 | li AT,-4096 | ||
| 82 | PTR_SUB sp,$num | ||
| 83 | and sp,AT | ||
| 84 | |||
| 85 | sd s0,0($fp) | ||
| 86 | sd s1,8($fp) | ||
| 87 | sd s2,16($fp) | ||
| 88 | sd s3,24($fp) | ||
| 89 | sd s4,32($fp) | ||
| 90 | sd s5,40($fp) | ||
| 91 | sd s6,48($fp) | ||
| 92 | sd s7,56($fp) | ||
| 93 | |||
| 94 | dmultu $aj,$bi | ||
| 95 | ld $alo,8($ap) | ||
| 96 | ld $nlo,8($np) | ||
| 97 | mflo $lo0 | ||
| 98 | mfhi $hi0 | ||
| 99 | dmultu $lo0,$n0 | ||
| 100 | mflo $m1 | ||
| 101 | |||
| 102 | dmultu $alo,$bi | ||
| 103 | mflo $alo | ||
| 104 | mfhi $ahi | ||
| 105 | |||
| 106 | dmultu $nj,$m1 | ||
| 107 | mflo $lo1 | ||
| 108 | mfhi $hi1 | ||
| 109 | dmultu $nlo,$m1 | ||
| 110 | daddu $lo1,$lo0 | ||
| 111 | sltu AT,$lo1,$lo0 | ||
| 112 | daddu $hi1,AT | ||
| 113 | mflo $nlo | ||
| 114 | mfhi $nhi | ||
| 115 | |||
| 116 | move $tp,sp | ||
| 117 | li $j,16 | ||
| 118 | .align 4 | ||
| 119 | .L1st: | ||
| 120 | .set noreorder | ||
| 121 | PTR_ADD $aj,$ap,$j | ||
| 122 | ld $aj,($aj) | ||
| 123 | PTR_ADD $nj,$np,$j | ||
| 124 | ld $nj,($nj) | ||
| 125 | |||
| 126 | dmultu $aj,$bi | ||
| 127 | daddu $lo0,$alo,$hi0 | ||
| 128 | daddu $lo1,$nlo,$hi1 | ||
| 129 | sltu AT,$lo0,$hi0 | ||
| 130 | sltu s7,$lo1,$hi1 | ||
| 131 | daddu $hi0,$ahi,AT | ||
| 132 | daddu $hi1,$nhi,s7 | ||
| 133 | mflo $alo | ||
| 134 | mfhi $ahi | ||
| 135 | |||
| 136 | daddu $lo1,$lo0 | ||
| 137 | sltu AT,$lo1,$lo0 | ||
| 138 | dmultu $nj,$m1 | ||
| 139 | daddu $hi1,AT | ||
| 140 | addu $j,8 | ||
| 141 | sd $lo1,($tp) | ||
| 142 | sltu s7,$j,$num | ||
| 143 | mflo $nlo | ||
| 144 | mfhi $nhi | ||
| 145 | |||
| 146 | bnez s7,.L1st | ||
| 147 | PTR_ADD $tp,8 | ||
| 148 | .set reorder | ||
| 149 | |||
| 150 | daddu $lo0,$alo,$hi0 | ||
| 151 | sltu AT,$lo0,$hi0 | ||
| 152 | daddu $hi0,$ahi,AT | ||
| 153 | |||
| 154 | daddu $lo1,$nlo,$hi1 | ||
| 155 | sltu s7,$lo1,$hi1 | ||
| 156 | daddu $hi1,$nhi,s7 | ||
| 157 | daddu $lo1,$lo0 | ||
| 158 | sltu AT,$lo1,$lo0 | ||
| 159 | daddu $hi1,AT | ||
| 160 | |||
| 161 | sd $lo1,($tp) | ||
| 162 | |||
| 163 | daddu $hi1,$hi0 | ||
| 164 | sltu AT,$hi1,$hi0 | ||
| 165 | sd $hi1,8($tp) | ||
| 166 | sd AT,16($tp) | ||
| 167 | |||
| 168 | li $i,8 | ||
| 169 | .align 4 | ||
| 170 | .Louter: | ||
| 171 | PTR_ADD $bi,$bp,$i | ||
| 172 | ld $bi,($bi) | ||
| 173 | ld $aj,($ap) | ||
| 174 | ld $alo,8($ap) | ||
| 175 | ld $tj,(sp) | ||
| 176 | |||
| 177 | dmultu $aj,$bi | ||
| 178 | ld $nj,($np) | ||
| 179 | ld $nlo,8($np) | ||
| 180 | mflo $lo0 | ||
| 181 | mfhi $hi0 | ||
| 182 | daddu $lo0,$tj | ||
| 183 | dmultu $lo0,$n0 | ||
| 184 | sltu AT,$lo0,$tj | ||
| 185 | daddu $hi0,AT | ||
| 186 | mflo $m1 | ||
| 187 | |||
| 188 | dmultu $alo,$bi | ||
| 189 | mflo $alo | ||
| 190 | mfhi $ahi | ||
| 191 | |||
| 192 | dmultu $nj,$m1 | ||
| 193 | mflo $lo1 | ||
| 194 | mfhi $hi1 | ||
| 195 | |||
| 196 | dmultu $nlo,$m1 | ||
| 197 | daddu $lo1,$lo0 | ||
| 198 | sltu AT,$lo1,$lo0 | ||
| 199 | daddu $hi1,AT | ||
| 200 | mflo $nlo | ||
| 201 | mfhi $nhi | ||
| 202 | |||
| 203 | move $tp,sp | ||
| 204 | li $j,16 | ||
| 205 | ld $tj,8($tp) | ||
| 206 | .align 4 | ||
| 207 | .Linner: | ||
| 208 | .set noreorder | ||
| 209 | PTR_ADD $aj,$ap,$j | ||
| 210 | ld $aj,($aj) | ||
| 211 | PTR_ADD $nj,$np,$j | ||
| 212 | ld $nj,($nj) | ||
| 213 | |||
| 214 | dmultu $aj,$bi | ||
| 215 | daddu $lo0,$alo,$hi0 | ||
| 216 | daddu $lo1,$nlo,$hi1 | ||
| 217 | sltu AT,$lo0,$hi0 | ||
| 218 | sltu s7,$lo1,$hi1 | ||
| 219 | daddu $hi0,$ahi,AT | ||
| 220 | daddu $hi1,$nhi,s7 | ||
| 221 | mflo $alo | ||
| 222 | mfhi $ahi | ||
| 223 | |||
| 224 | daddu $lo0,$tj | ||
| 225 | addu $j,8 | ||
| 226 | dmultu $nj,$m1 | ||
| 227 | sltu AT,$lo0,$tj | ||
| 228 | daddu $lo1,$lo0 | ||
| 229 | daddu $hi0,AT | ||
| 230 | sltu s7,$lo1,$lo0 | ||
| 231 | ld $tj,16($tp) | ||
| 232 | daddu $hi1,s7 | ||
| 233 | sltu AT,$j,$num | ||
| 234 | mflo $nlo | ||
| 235 | mfhi $nhi | ||
| 236 | sd $lo1,($tp) | ||
| 237 | bnez AT,.Linner | ||
| 238 | PTR_ADD $tp,8 | ||
| 239 | .set reorder | ||
| 240 | |||
| 241 | daddu $lo0,$alo,$hi0 | ||
| 242 | sltu AT,$lo0,$hi0 | ||
| 243 | daddu $hi0,$ahi,AT | ||
| 244 | daddu $lo0,$tj | ||
| 245 | sltu s7,$lo0,$tj | ||
| 246 | daddu $hi0,s7 | ||
| 247 | |||
| 248 | ld $tj,16($tp) | ||
| 249 | daddu $lo1,$nlo,$hi1 | ||
| 250 | sltu AT,$lo1,$hi1 | ||
| 251 | daddu $hi1,$nhi,AT | ||
| 252 | daddu $lo1,$lo0 | ||
| 253 | sltu s7,$lo1,$lo0 | ||
| 254 | daddu $hi1,s7 | ||
| 255 | sd $lo1,($tp) | ||
| 256 | |||
| 257 | daddu $lo1,$hi1,$hi0 | ||
| 258 | sltu $hi1,$lo1,$hi0 | ||
| 259 | daddu $lo1,$tj | ||
| 260 | sltu AT,$lo1,$tj | ||
| 261 | daddu $hi1,AT | ||
| 262 | sd $lo1,8($tp) | ||
| 263 | sd $hi1,16($tp) | ||
| 264 | |||
| 265 | addu $i,8 | ||
| 266 | sltu s7,$i,$num | ||
| 267 | bnez s7,.Louter | ||
| 268 | |||
| 269 | .set noreorder | ||
| 270 | PTR_ADD $tj,sp,$num # &tp[num] | ||
| 271 | move $tp,sp | ||
| 272 | move $ap,sp | ||
| 273 | li $hi0,0 # clear borrow bit | ||
| 274 | |||
| 275 | .align 4 | ||
| 276 | .Lsub: ld $lo0,($tp) | ||
| 277 | ld $lo1,($np) | ||
| 278 | PTR_ADD $tp,8 | ||
| 279 | PTR_ADD $np,8 | ||
| 280 | dsubu $lo1,$lo0,$lo1 # tp[i]-np[i] | ||
| 281 | sgtu AT,$lo1,$lo0 | ||
| 282 | dsubu $lo0,$lo1,$hi0 | ||
| 283 | sgtu $hi0,$lo0,$lo1 | ||
| 284 | sd $lo0,($rp) | ||
| 285 | or $hi0,AT | ||
| 286 | sltu AT,$tp,$tj | ||
| 287 | bnez AT,.Lsub | ||
| 288 | PTR_ADD $rp,8 | ||
| 289 | |||
| 290 | dsubu $hi0,$hi1,$hi0 # handle upmost overflow bit | ||
| 291 | move $tp,sp | ||
| 292 | PTR_SUB $rp,$num # restore rp | ||
| 293 | not $hi1,$hi0 | ||
| 294 | |||
| 295 | and $ap,$hi0,sp | ||
| 296 | and $bp,$hi1,$rp | ||
| 297 | or $ap,$ap,$bp # ap=borrow?tp:rp | ||
| 298 | |||
| 299 | .align 4 | ||
| 300 | .Lcopy: ld $aj,($ap) | ||
| 301 | PTR_ADD $ap,8 | ||
| 302 | PTR_ADD $tp,8 | ||
| 303 | sd zero,-8($tp) | ||
| 304 | sltu AT,$tp,$tj | ||
| 305 | sd $aj,($rp) | ||
| 306 | bnez AT,.Lcopy | ||
| 307 | PTR_ADD $rp,8 | ||
| 308 | |||
| 309 | ld s0,0($fp) | ||
| 310 | ld s1,8($fp) | ||
| 311 | ld s2,16($fp) | ||
| 312 | ld s3,24($fp) | ||
| 313 | ld s4,32($fp) | ||
| 314 | ld s5,40($fp) | ||
| 315 | ld s6,48($fp) | ||
| 316 | ld s7,56($fp) | ||
| 317 | li v0,1 | ||
| 318 | jr ra | ||
| 319 | PTR_ADD sp,$fp,64 | ||
| 320 | .set reorder | ||
| 321 | END(bn_mul_mont) | ||
| 322 | .rdata | ||
| 323 | .asciiz "Montgomery Multiplication for MIPS III/IV, CRYPTOGAMS by <appro\@openssl.org>" | ||
| 324 | ___ | ||
| 325 | |||
| 326 | print $code; | ||
| 327 | close STDOUT; | ||
diff --git a/src/lib/libcrypto/buffer/Makefile.ssl b/src/lib/libcrypto/buffer/Makefile.ssl deleted file mode 100644 index b131ca3078..0000000000 --- a/src/lib/libcrypto/buffer/Makefile.ssl +++ /dev/null | |||
| @@ -1,94 +0,0 @@ | |||
| 1 | # | ||
| 2 | # SSLeay/crypto/buffer/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= buffer | ||
| 6 | TOP= ../.. | ||
| 7 | CC= cc | ||
| 8 | INCLUDES= -I.. -I$(TOP) -I../../include | ||
| 9 | CFLAG=-g | ||
| 10 | INSTALL_PREFIX= | ||
| 11 | OPENSSLDIR= /usr/local/ssl | ||
| 12 | INSTALLTOP=/usr/local/ssl | ||
| 13 | MAKE= make -f Makefile.ssl | ||
| 14 | MAKEDEPPROG= makedepend | ||
| 15 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
| 16 | MAKEFILE= Makefile.ssl | ||
| 17 | AR= ar r | ||
| 18 | |||
| 19 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 20 | |||
| 21 | GENERAL=Makefile | ||
| 22 | TEST= | ||
| 23 | APPS= | ||
| 24 | |||
| 25 | LIB=$(TOP)/libcrypto.a | ||
| 26 | LIBSRC= buffer.c buf_err.c | ||
| 27 | LIBOBJ= buffer.o buf_err.o | ||
| 28 | |||
| 29 | SRC= $(LIBSRC) | ||
| 30 | |||
| 31 | EXHEADER= buffer.h | ||
| 32 | HEADER= $(EXHEADER) | ||
| 33 | |||
| 34 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
| 35 | |||
| 36 | top: | ||
| 37 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
| 38 | |||
| 39 | all: lib | ||
| 40 | |||
| 41 | lib: $(LIBOBJ) | ||
| 42 | $(AR) $(LIB) $(LIBOBJ) | ||
| 43 | $(RANLIB) $(LIB) || echo Never mind. | ||
| 44 | @touch lib | ||
| 45 | |||
| 46 | files: | ||
| 47 | $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
| 48 | |||
| 49 | links: | ||
| 50 | @sh $(TOP)/util/point.sh Makefile.ssl Makefile | ||
| 51 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | ||
| 52 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | ||
| 53 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | ||
| 54 | |||
| 55 | install: | ||
| 56 | @for i in $(EXHEADER) ; \ | ||
| 57 | do \ | ||
| 58 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 59 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
| 60 | done; | ||
| 61 | |||
| 62 | tags: | ||
| 63 | ctags $(SRC) | ||
| 64 | |||
| 65 | tests: | ||
| 66 | |||
| 67 | lint: | ||
| 68 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
| 69 | |||
| 70 | depend: | ||
| 71 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) | ||
| 72 | |||
| 73 | dclean: | ||
| 74 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 75 | mv -f Makefile.new $(MAKEFILE) | ||
| 76 | |||
| 77 | clean: | ||
| 78 | rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
| 79 | |||
| 80 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 81 | |||
| 82 | buf_err.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h | ||
| 83 | buf_err.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 84 | buf_err.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
| 85 | buf_err.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 86 | buf_err.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 87 | buf_err.o: ../../include/openssl/symhacks.h buf_err.c | ||
| 88 | buffer.o: ../../e_os.h ../../include/openssl/bio.h | ||
| 89 | buffer.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 90 | buffer.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 91 | buffer.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 92 | buffer.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 93 | buffer.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 94 | buffer.o: ../cryptlib.h buffer.c | ||
diff --git a/src/lib/libcrypto/camellia/Makefile b/src/lib/libcrypto/camellia/Makefile deleted file mode 100644 index 6ce6fc99cd..0000000000 --- a/src/lib/libcrypto/camellia/Makefile +++ /dev/null | |||
| @@ -1,110 +0,0 @@ | |||
| 1 | # | ||
| 2 | # crypto/camellia/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= camellia | ||
| 6 | TOP= ../.. | ||
| 7 | CC= cc | ||
| 8 | CPP= $(CC) -E | ||
| 9 | INCLUDES= | ||
| 10 | CFLAG=-g | ||
| 11 | MAKEFILE= Makefile | ||
| 12 | AR= ar r | ||
| 13 | |||
| 14 | CMLL_ENC= camellia.o cmll_misc.o cmll_cbc.o | ||
| 15 | |||
| 16 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 17 | ASFLAGS= $(INCLUDES) $(ASFLAG) | ||
| 18 | AFLAGS= $(ASFLAGS) | ||
| 19 | |||
| 20 | GENERAL=Makefile | ||
| 21 | #TEST=camelliatest.c | ||
| 22 | APPS= | ||
| 23 | |||
| 24 | LIB=$(TOP)/libcrypto.a | ||
| 25 | LIBSRC=camellia.c cmll_misc.c cmll_ecb.c cmll_cbc.c cmll_ofb.c \ | ||
| 26 | cmll_cfb.c cmll_ctr.c cmll_utl.c | ||
| 27 | |||
| 28 | LIBOBJ= cmll_ecb.o cmll_ofb.o cmll_cfb.o cmll_ctr.o cmll_utl.o $(CMLL_ENC) | ||
| 29 | |||
| 30 | SRC= $(LIBSRC) | ||
| 31 | |||
| 32 | EXHEADER= camellia.h | ||
| 33 | HEADER= cmll_locl.h $(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 | $(RANLIB) $(LIB) || echo Never mind. | ||
| 45 | @touch lib | ||
| 46 | |||
| 47 | cmll-x86.s: asm/cmll-x86.pl ../perlasm/x86asm.pl | ||
| 48 | $(PERL) asm/cmll-x86.pl $(PERLASM_SCHEME) $(CFLAGS) $(PROCESSOR) > $@ | ||
| 49 | cmll-x86_64.s: asm/cmll-x86_64.pl | ||
| 50 | $(PERL) asm/cmll-x86_64.pl $(PERLASM_SCHEME) > $@ | ||
| 51 | |||
| 52 | files: | ||
| 53 | $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO | ||
| 54 | |||
| 55 | links: | ||
| 56 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | ||
| 57 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | ||
| 58 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | ||
| 59 | |||
| 60 | install: | ||
| 61 | @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile... | ||
| 62 | @headerlist="$(EXHEADER)"; for i in $$headerlist ; \ | ||
| 63 | do \ | ||
| 64 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 65 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
| 66 | done; | ||
| 67 | |||
| 68 | tags: | ||
| 69 | ctags $(SRC) | ||
| 70 | |||
| 71 | tests: | ||
| 72 | |||
| 73 | lint: | ||
| 74 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
| 75 | |||
| 76 | depend: | ||
| 77 | @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile... | ||
| 78 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) | ||
| 79 | |||
| 80 | dclean: | ||
| 81 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 82 | mv -f Makefile.new $(MAKEFILE) | ||
| 83 | |||
| 84 | clean: | ||
| 85 | rm -f *.s *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
| 86 | |||
| 87 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 88 | |||
| 89 | camellia.o: ../../include/openssl/opensslconf.h camellia.c camellia.h | ||
| 90 | camellia.o: cmll_locl.h | ||
| 91 | cmll_cbc.o: ../../include/openssl/camellia.h ../../include/openssl/modes.h | ||
| 92 | cmll_cbc.o: ../../include/openssl/opensslconf.h cmll_cbc.c | ||
| 93 | cmll_cfb.o: ../../include/openssl/camellia.h ../../include/openssl/modes.h | ||
| 94 | cmll_cfb.o: ../../include/openssl/opensslconf.h cmll_cfb.c | ||
| 95 | cmll_ctr.o: ../../include/openssl/camellia.h ../../include/openssl/modes.h | ||
| 96 | cmll_ctr.o: ../../include/openssl/opensslconf.h cmll_ctr.c | ||
| 97 | cmll_ecb.o: ../../include/openssl/camellia.h | ||
| 98 | cmll_ecb.o: ../../include/openssl/opensslconf.h cmll_ecb.c cmll_locl.h | ||
| 99 | cmll_misc.o: ../../include/openssl/camellia.h ../../include/openssl/crypto.h | ||
| 100 | cmll_misc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h | ||
| 101 | cmll_misc.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 102 | cmll_misc.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 103 | cmll_misc.o: ../../include/openssl/symhacks.h cmll_locl.h cmll_misc.c | ||
| 104 | cmll_ofb.o: ../../include/openssl/camellia.h ../../include/openssl/modes.h | ||
| 105 | cmll_ofb.o: ../../include/openssl/opensslconf.h cmll_ofb.c | ||
| 106 | cmll_utl.o: ../../include/openssl/camellia.h ../../include/openssl/crypto.h | ||
| 107 | cmll_utl.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h | ||
| 108 | cmll_utl.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 109 | cmll_utl.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 110 | cmll_utl.o: ../../include/openssl/symhacks.h cmll_locl.h cmll_utl.c | ||
diff --git a/src/lib/libcrypto/camellia/cmll_utl.c b/src/lib/libcrypto/camellia/cmll_utl.c deleted file mode 100644 index 7a35711ec1..0000000000 --- a/src/lib/libcrypto/camellia/cmll_utl.c +++ /dev/null | |||
| @@ -1,64 +0,0 @@ | |||
| 1 | /* crypto/camellia/cmll_utl.c -*- mode:C; c-file-style: "eay" -*- */ | ||
| 2 | /* ==================================================================== | ||
| 3 | * Copyright (c) 2011 The OpenSSL Project. All rights reserved. | ||
| 4 | * | ||
| 5 | * Redistribution and use in source and binary forms, with or without | ||
| 6 | * modification, are permitted provided that the following conditions | ||
| 7 | * are met: | ||
| 8 | * | ||
| 9 | * 1. Redistributions of source code must retain the above copyright | ||
| 10 | * notice, this list of conditions and the following disclaimer. | ||
| 11 | * | ||
| 12 | * 2. Redistributions in binary form must reproduce the above copyright | ||
| 13 | * notice, this list of conditions and the following disclaimer in | ||
| 14 | * the documentation and/or other materials provided with the | ||
| 15 | * distribution. | ||
| 16 | * | ||
| 17 | * 3. All advertising materials mentioning features or use of this | ||
| 18 | * software must display the following acknowledgment: | ||
| 19 | * "This product includes software developed by the OpenSSL Project | ||
| 20 | * for use in the OpenSSL Toolkit. (http://www.openssl.org/)" | ||
| 21 | * | ||
| 22 | * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to | ||
| 23 | * endorse or promote products derived from this software without | ||
| 24 | * prior written permission. For written permission, please contact | ||
| 25 | * openssl-core@openssl.org. | ||
| 26 | * | ||
| 27 | * 5. Products derived from this software may not be called "OpenSSL" | ||
| 28 | * nor may "OpenSSL" appear in their names without prior written | ||
| 29 | * permission of the OpenSSL Project. | ||
| 30 | * | ||
| 31 | * 6. Redistributions of any form whatsoever must retain the following | ||
| 32 | * acknowledgment: | ||
| 33 | * "This product includes software developed by the OpenSSL Project | ||
| 34 | * for use in the OpenSSL Toolkit (http://www.openssl.org/)" | ||
| 35 | * | ||
| 36 | * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY | ||
| 37 | * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
| 38 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | ||
| 39 | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR | ||
| 40 | * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
| 41 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | ||
| 42 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
| 43 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
| 44 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | ||
| 45 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
| 46 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | ||
| 47 | * OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| 48 | * ==================================================================== | ||
| 49 | * | ||
| 50 | */ | ||
| 51 | |||
| 52 | #include <openssl/opensslv.h> | ||
| 53 | #include <openssl/crypto.h> | ||
| 54 | #include <openssl/camellia.h> | ||
| 55 | #include "cmll_locl.h" | ||
| 56 | |||
| 57 | int Camellia_set_key(const unsigned char *userKey, const int bits, | ||
| 58 | CAMELLIA_KEY *key) | ||
| 59 | { | ||
| 60 | #ifdef OPENSSL_FIPS | ||
| 61 | fips_cipher_abort(Camellia); | ||
| 62 | #endif | ||
| 63 | return private_Camellia_set_key(userKey, bits, key); | ||
| 64 | } | ||
diff --git a/src/lib/libcrypto/cast/Makefile.ssl b/src/lib/libcrypto/cast/Makefile.ssl deleted file mode 100644 index 98393a37ba..0000000000 --- a/src/lib/libcrypto/cast/Makefile.ssl +++ /dev/null | |||
| @@ -1,120 +0,0 @@ | |||
| 1 | # | ||
| 2 | # SSLeay/crypto/cast/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= cast | ||
| 6 | TOP= ../.. | ||
| 7 | CC= cc | ||
| 8 | CPP= $(CC) -E | ||
| 9 | INCLUDES= | ||
| 10 | CFLAG=-g | ||
| 11 | INSTALL_PREFIX= | ||
| 12 | OPENSSLDIR= /usr/local/ssl | ||
| 13 | INSTALLTOP=/usr/local/ssl | ||
| 14 | MAKE= make -f Makefile.ssl | ||
| 15 | MAKEDEPPROG= makedepend | ||
| 16 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
| 17 | MAKEFILE= Makefile.ssl | ||
| 18 | AR= ar r | ||
| 19 | |||
| 20 | CAST_ENC=c_enc.o | ||
| 21 | # or use | ||
| 22 | #CAST_ENC=asm/cx86-elf.o | ||
| 23 | #CAST_ENC=asm/cx86-out.o | ||
| 24 | #CAST_ENC=asm/cx86-sol.o | ||
| 25 | #CAST_ENC=asm/cx86bdsi.o | ||
| 26 | |||
| 27 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 28 | ASFLAGS= $(INCLUDES) $(ASFLAG) | ||
| 29 | |||
| 30 | GENERAL=Makefile | ||
| 31 | TEST=casttest.c | ||
| 32 | APPS= | ||
| 33 | |||
| 34 | LIB=$(TOP)/libcrypto.a | ||
| 35 | LIBSRC=c_skey.c c_ecb.c c_enc.c c_cfb64.c c_ofb64.c | ||
| 36 | LIBOBJ=c_skey.o c_ecb.o $(CAST_ENC) c_cfb64.o c_ofb64.o | ||
| 37 | |||
| 38 | SRC= $(LIBSRC) | ||
| 39 | |||
| 40 | EXHEADER= cast.h | ||
| 41 | HEADER= cast_s.h cast_lcl.h $(EXHEADER) | ||
| 42 | |||
| 43 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
| 44 | |||
| 45 | top: | ||
| 46 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
| 47 | |||
| 48 | all: lib | ||
| 49 | |||
| 50 | lib: $(LIBOBJ) | ||
| 51 | $(AR) $(LIB) $(LIBOBJ) | ||
| 52 | $(RANLIB) $(LIB) || echo Never mind. | ||
| 53 | @touch lib | ||
| 54 | |||
| 55 | # elf | ||
| 56 | asm/cx86-elf.s: asm/cast-586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl | ||
| 57 | (cd asm; $(PERL) cast-586.pl elf $(CLAGS) $(PROCESSOR) > cx86-elf.s) | ||
| 58 | |||
| 59 | # a.out | ||
| 60 | asm/cx86-out.o: asm/cx86unix.cpp | ||
| 61 | $(CPP) -DOUT asm/cx86unix.cpp | as -o asm/cx86-out.o | ||
| 62 | |||
| 63 | # bsdi | ||
| 64 | asm/cx86bsdi.o: asm/cx86unix.cpp | ||
| 65 | $(CPP) -DBSDI asm/cx86unix.cpp | sed 's/ :/:/' | as -o asm/cx86bsdi.o | ||
| 66 | |||
| 67 | asm/cx86unix.cpp: asm/cast-586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl | ||
| 68 | (cd asm; $(PERL) cast-586.pl cpp $(PROCESSOR) >cx86unix.cpp) | ||
| 69 | |||
| 70 | files: | ||
| 71 | $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
| 72 | |||
| 73 | links: | ||
| 74 | @sh $(TOP)/util/point.sh Makefile.ssl Makefile | ||
| 75 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | ||
| 76 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | ||
| 77 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | ||
| 78 | |||
| 79 | install: | ||
| 80 | @for i in $(EXHEADER) ; \ | ||
| 81 | do \ | ||
| 82 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 83 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
| 84 | done; | ||
| 85 | |||
| 86 | tags: | ||
| 87 | ctags $(SRC) | ||
| 88 | |||
| 89 | tests: | ||
| 90 | |||
| 91 | lint: | ||
| 92 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
| 93 | |||
| 94 | depend: | ||
| 95 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) | ||
| 96 | |||
| 97 | dclean: | ||
| 98 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 99 | mv -f Makefile.new $(MAKEFILE) | ||
| 100 | |||
| 101 | clean: | ||
| 102 | rm -f asm/cx86unix.cpp asm/*-elf.* *.o asm/*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
| 103 | |||
| 104 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 105 | |||
| 106 | c_cfb64.o: ../../e_os.h ../../include/openssl/cast.h | ||
| 107 | c_cfb64.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h | ||
| 108 | c_cfb64.o: c_cfb64.c cast_lcl.h | ||
| 109 | c_ecb.o: ../../e_os.h ../../include/openssl/cast.h | ||
| 110 | c_ecb.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h | ||
| 111 | c_ecb.o: ../../include/openssl/opensslv.h c_ecb.c cast_lcl.h | ||
| 112 | c_enc.o: ../../e_os.h ../../include/openssl/cast.h | ||
| 113 | c_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h | ||
| 114 | c_enc.o: c_enc.c cast_lcl.h | ||
| 115 | c_ofb64.o: ../../e_os.h ../../include/openssl/cast.h | ||
| 116 | c_ofb64.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h | ||
| 117 | c_ofb64.o: c_ofb64.c cast_lcl.h | ||
| 118 | c_skey.o: ../../e_os.h ../../include/openssl/cast.h | ||
| 119 | c_skey.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h | ||
| 120 | c_skey.o: c_skey.c cast_lcl.h cast_s.h | ||
diff --git a/src/lib/libcrypto/cmac/Makefile b/src/lib/libcrypto/cmac/Makefile deleted file mode 100644 index 54e7cc39d5..0000000000 --- a/src/lib/libcrypto/cmac/Makefile +++ /dev/null | |||
| @@ -1,111 +0,0 @@ | |||
| 1 | # | ||
| 2 | # OpenSSL/crypto/cmac/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= cmac | ||
| 6 | TOP= ../.. | ||
| 7 | CC= cc | ||
| 8 | INCLUDES= | ||
| 9 | CFLAG=-g | ||
| 10 | MAKEFILE= Makefile | ||
| 11 | AR= ar r | ||
| 12 | |||
| 13 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 14 | |||
| 15 | GENERAL=Makefile | ||
| 16 | TEST= | ||
| 17 | APPS= | ||
| 18 | |||
| 19 | LIB=$(TOP)/libcrypto.a | ||
| 20 | LIBSRC=cmac.c cm_ameth.c cm_pmeth.c | ||
| 21 | LIBOBJ=cmac.o cm_ameth.o cm_pmeth.o | ||
| 22 | |||
| 23 | SRC= $(LIBSRC) | ||
| 24 | |||
| 25 | EXHEADER= cmac.h | ||
| 26 | HEADER= $(EXHEADER) | ||
| 27 | |||
| 28 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
| 29 | |||
| 30 | top: | ||
| 31 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
| 32 | |||
| 33 | all: lib | ||
| 34 | |||
| 35 | lib: $(LIBOBJ) | ||
| 36 | $(AR) $(LIB) $(LIBOBJ) | ||
| 37 | $(RANLIB) $(LIB) || echo Never mind. | ||
| 38 | @touch lib | ||
| 39 | |||
| 40 | files: | ||
| 41 | $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO | ||
| 42 | |||
| 43 | links: | ||
| 44 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | ||
| 45 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | ||
| 46 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | ||
| 47 | |||
| 48 | install: | ||
| 49 | @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile... | ||
| 50 | @headerlist="$(EXHEADER)"; for i in $$headerlist ; \ | ||
| 51 | do \ | ||
| 52 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 53 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
| 54 | done; | ||
| 55 | |||
| 56 | tags: | ||
| 57 | ctags $(SRC) | ||
| 58 | |||
| 59 | tests: | ||
| 60 | |||
| 61 | lint: | ||
| 62 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
| 63 | |||
| 64 | depend: | ||
| 65 | @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile... | ||
| 66 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) | ||
| 67 | |||
| 68 | dclean: | ||
| 69 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 70 | mv -f Makefile.new $(MAKEFILE) | ||
| 71 | |||
| 72 | clean: | ||
| 73 | rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
| 74 | |||
| 75 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 76 | |||
| 77 | cm_ameth.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 78 | cm_ameth.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h | ||
| 79 | cm_ameth.o: ../../include/openssl/cmac.h ../../include/openssl/crypto.h | ||
| 80 | cm_ameth.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 81 | cm_ameth.o: ../../include/openssl/evp.h ../../include/openssl/lhash.h | ||
| 82 | cm_ameth.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 83 | cm_ameth.o: ../../include/openssl/opensslconf.h | ||
| 84 | cm_ameth.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 85 | cm_ameth.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 86 | cm_ameth.o: ../../include/openssl/symhacks.h ../asn1/asn1_locl.h ../cryptlib.h | ||
| 87 | cm_ameth.o: cm_ameth.c | ||
| 88 | cm_pmeth.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 89 | cm_pmeth.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h | ||
| 90 | cm_pmeth.o: ../../include/openssl/cmac.h ../../include/openssl/conf.h | ||
| 91 | cm_pmeth.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 92 | cm_pmeth.o: ../../include/openssl/ec.h ../../include/openssl/ecdh.h | ||
| 93 | cm_pmeth.o: ../../include/openssl/ecdsa.h ../../include/openssl/err.h | ||
| 94 | cm_pmeth.o: ../../include/openssl/evp.h ../../include/openssl/lhash.h | ||
| 95 | cm_pmeth.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 96 | cm_pmeth.o: ../../include/openssl/opensslconf.h | ||
| 97 | cm_pmeth.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 98 | cm_pmeth.o: ../../include/openssl/pkcs7.h ../../include/openssl/safestack.h | ||
| 99 | cm_pmeth.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 100 | cm_pmeth.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h | ||
| 101 | cm_pmeth.o: ../../include/openssl/x509_vfy.h ../../include/openssl/x509v3.h | ||
| 102 | cm_pmeth.o: ../cryptlib.h ../evp/evp_locl.h cm_pmeth.c | ||
| 103 | cmac.o: ../../e_os.h ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 104 | cmac.o: ../../include/openssl/buffer.h ../../include/openssl/cmac.h | ||
| 105 | cmac.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 106 | cmac.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 107 | cmac.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h | ||
| 108 | cmac.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 109 | cmac.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 110 | cmac.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 111 | cmac.o: ../../include/openssl/symhacks.h ../cryptlib.h cmac.c | ||
diff --git a/src/lib/libcrypto/cms/Makefile b/src/lib/libcrypto/cms/Makefile deleted file mode 100644 index 9820adb212..0000000000 --- a/src/lib/libcrypto/cms/Makefile +++ /dev/null | |||
| @@ -1,284 +0,0 @@ | |||
| 1 | # | ||
| 2 | # OpenSSL/crypto/cms/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= cms | ||
| 6 | TOP= ../.. | ||
| 7 | CC= cc | ||
| 8 | INCLUDES= -I.. -I$(TOP) -I../../include | ||
| 9 | CFLAG=-g | ||
| 10 | MAKEFILE= Makefile | ||
| 11 | AR= ar r | ||
| 12 | |||
| 13 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 14 | |||
| 15 | GENERAL=Makefile | ||
| 16 | TEST= | ||
| 17 | APPS= | ||
| 18 | |||
| 19 | LIB=$(TOP)/libcrypto.a | ||
| 20 | LIBSRC= cms_lib.c cms_asn1.c cms_att.c cms_io.c cms_smime.c cms_err.c \ | ||
| 21 | cms_sd.c cms_dd.c cms_cd.c cms_env.c cms_enc.c cms_ess.c \ | ||
| 22 | cms_pwri.c | ||
| 23 | LIBOBJ= cms_lib.o cms_asn1.o cms_att.o cms_io.o cms_smime.o cms_err.o \ | ||
| 24 | cms_sd.o cms_dd.o cms_cd.o cms_env.o cms_enc.o cms_ess.o \ | ||
| 25 | cms_pwri.o | ||
| 26 | |||
| 27 | SRC= $(LIBSRC) | ||
| 28 | |||
| 29 | EXHEADER= cms.h | ||
| 30 | HEADER= cms_lcl.h $(EXHEADER) | ||
| 31 | |||
| 32 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
| 33 | |||
| 34 | top: | ||
| 35 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
| 36 | |||
| 37 | test: | ||
| 38 | |||
| 39 | all: lib | ||
| 40 | |||
| 41 | lib: $(LIBOBJ) | ||
| 42 | $(AR) $(LIB) $(LIBOBJ) | ||
| 43 | $(RANLIB) $(LIB) || echo Never mind. | ||
| 44 | @touch lib | ||
| 45 | |||
| 46 | files: | ||
| 47 | $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO | ||
| 48 | |||
| 49 | links: | ||
| 50 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | ||
| 51 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | ||
| 52 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | ||
| 53 | |||
| 54 | install: | ||
| 55 | @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile... | ||
| 56 | @headerlist="$(EXHEADER)"; for i in $$headerlist ; \ | ||
| 57 | do \ | ||
| 58 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 59 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
| 60 | done; | ||
| 61 | |||
| 62 | tags: | ||
| 63 | ctags $(SRC) | ||
| 64 | |||
| 65 | tests: | ||
| 66 | |||
| 67 | lint: | ||
| 68 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
| 69 | |||
| 70 | depend: | ||
| 71 | @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile... | ||
| 72 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) | ||
| 73 | |||
| 74 | dclean: | ||
| 75 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 76 | mv -f Makefile.new $(MAKEFILE) | ||
| 77 | |||
| 78 | clean: | ||
| 79 | rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
| 80 | |||
| 81 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 82 | |||
| 83 | cms_asn1.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h | ||
| 84 | cms_asn1.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h | ||
| 85 | cms_asn1.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h | ||
| 86 | cms_asn1.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h | ||
| 87 | cms_asn1.o: ../../include/openssl/ecdh.h ../../include/openssl/ecdsa.h | ||
| 88 | cms_asn1.o: ../../include/openssl/evp.h ../../include/openssl/lhash.h | ||
| 89 | cms_asn1.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 90 | cms_asn1.o: ../../include/openssl/opensslconf.h | ||
| 91 | cms_asn1.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 92 | cms_asn1.o: ../../include/openssl/pem.h ../../include/openssl/pem2.h | ||
| 93 | cms_asn1.o: ../../include/openssl/pkcs7.h ../../include/openssl/safestack.h | ||
| 94 | cms_asn1.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 95 | cms_asn1.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h | ||
| 96 | cms_asn1.o: ../../include/openssl/x509_vfy.h ../../include/openssl/x509v3.h | ||
| 97 | cms_asn1.o: cms.h cms_asn1.c cms_lcl.h | ||
| 98 | cms_att.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h | ||
| 99 | cms_att.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h | ||
| 100 | cms_att.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h | ||
| 101 | cms_att.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h | ||
| 102 | cms_att.o: ../../include/openssl/ecdh.h ../../include/openssl/ecdsa.h | ||
| 103 | cms_att.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 104 | cms_att.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h | ||
| 105 | cms_att.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 106 | cms_att.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 107 | cms_att.o: ../../include/openssl/pem.h ../../include/openssl/pem2.h | ||
| 108 | cms_att.o: ../../include/openssl/pkcs7.h ../../include/openssl/safestack.h | ||
| 109 | cms_att.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 110 | cms_att.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h | ||
| 111 | cms_att.o: ../../include/openssl/x509_vfy.h ../../include/openssl/x509v3.h | ||
| 112 | cms_att.o: cms.h cms_att.c cms_lcl.h | ||
| 113 | cms_cd.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 114 | cms_cd.o: ../../include/openssl/asn1t.h ../../include/openssl/bio.h | ||
| 115 | cms_cd.o: ../../include/openssl/buffer.h ../../include/openssl/cms.h | ||
| 116 | cms_cd.o: ../../include/openssl/comp.h ../../include/openssl/conf.h | ||
| 117 | cms_cd.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 118 | cms_cd.o: ../../include/openssl/ec.h ../../include/openssl/ecdh.h | ||
| 119 | cms_cd.o: ../../include/openssl/ecdsa.h ../../include/openssl/err.h | ||
| 120 | cms_cd.o: ../../include/openssl/evp.h ../../include/openssl/lhash.h | ||
| 121 | cms_cd.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 122 | cms_cd.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 123 | cms_cd.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pem.h | ||
| 124 | cms_cd.o: ../../include/openssl/pem2.h ../../include/openssl/pkcs7.h | ||
| 125 | cms_cd.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 126 | cms_cd.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 127 | cms_cd.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 128 | cms_cd.o: ../../include/openssl/x509v3.h ../cryptlib.h cms_cd.c cms_lcl.h | ||
| 129 | cms_dd.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 130 | cms_dd.o: ../../include/openssl/asn1t.h ../../include/openssl/bio.h | ||
| 131 | cms_dd.o: ../../include/openssl/buffer.h ../../include/openssl/cms.h | ||
| 132 | cms_dd.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h | ||
| 133 | cms_dd.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h | ||
| 134 | cms_dd.o: ../../include/openssl/ecdh.h ../../include/openssl/ecdsa.h | ||
| 135 | cms_dd.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 136 | cms_dd.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h | ||
| 137 | cms_dd.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 138 | cms_dd.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 139 | cms_dd.o: ../../include/openssl/pem.h ../../include/openssl/pem2.h | ||
| 140 | cms_dd.o: ../../include/openssl/pkcs7.h ../../include/openssl/safestack.h | ||
| 141 | cms_dd.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 142 | cms_dd.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h | ||
| 143 | cms_dd.o: ../../include/openssl/x509_vfy.h ../../include/openssl/x509v3.h | ||
| 144 | cms_dd.o: ../cryptlib.h cms_dd.c cms_lcl.h | ||
| 145 | cms_enc.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 146 | cms_enc.o: ../../include/openssl/asn1t.h ../../include/openssl/bio.h | ||
| 147 | cms_enc.o: ../../include/openssl/buffer.h ../../include/openssl/cms.h | ||
| 148 | cms_enc.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h | ||
| 149 | cms_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h | ||
| 150 | cms_enc.o: ../../include/openssl/ecdh.h ../../include/openssl/ecdsa.h | ||
| 151 | cms_enc.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 152 | cms_enc.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h | ||
| 153 | cms_enc.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 154 | cms_enc.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 155 | cms_enc.o: ../../include/openssl/pem.h ../../include/openssl/pem2.h | ||
| 156 | cms_enc.o: ../../include/openssl/pkcs7.h ../../include/openssl/rand.h | ||
| 157 | cms_enc.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 158 | cms_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 159 | cms_enc.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 160 | cms_enc.o: ../../include/openssl/x509v3.h ../cryptlib.h cms_enc.c cms_lcl.h | ||
| 161 | cms_env.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 162 | cms_env.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h | ||
| 163 | cms_env.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h | ||
| 164 | cms_env.o: ../../include/openssl/cms.h ../../include/openssl/conf.h | ||
| 165 | cms_env.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 166 | cms_env.o: ../../include/openssl/ec.h ../../include/openssl/ecdh.h | ||
| 167 | cms_env.o: ../../include/openssl/ecdsa.h ../../include/openssl/err.h | ||
| 168 | cms_env.o: ../../include/openssl/evp.h ../../include/openssl/lhash.h | ||
| 169 | cms_env.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 170 | cms_env.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 171 | cms_env.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pem.h | ||
| 172 | cms_env.o: ../../include/openssl/pem2.h ../../include/openssl/pkcs7.h | ||
| 173 | cms_env.o: ../../include/openssl/rand.h ../../include/openssl/safestack.h | ||
| 174 | cms_env.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 175 | cms_env.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h | ||
| 176 | cms_env.o: ../../include/openssl/x509_vfy.h ../../include/openssl/x509v3.h | ||
| 177 | cms_env.o: ../asn1/asn1_locl.h ../cryptlib.h cms_env.c cms_lcl.h | ||
| 178 | cms_err.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 179 | cms_err.o: ../../include/openssl/buffer.h ../../include/openssl/cms.h | ||
| 180 | cms_err.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 181 | cms_err.o: ../../include/openssl/ec.h ../../include/openssl/ecdh.h | ||
| 182 | cms_err.o: ../../include/openssl/ecdsa.h ../../include/openssl/err.h | ||
| 183 | cms_err.o: ../../include/openssl/evp.h ../../include/openssl/lhash.h | ||
| 184 | cms_err.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 185 | cms_err.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 186 | cms_err.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs7.h | ||
| 187 | cms_err.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 188 | cms_err.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 189 | cms_err.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 190 | cms_err.o: cms_err.c | ||
| 191 | cms_ess.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 192 | cms_ess.o: ../../include/openssl/asn1t.h ../../include/openssl/bio.h | ||
| 193 | cms_ess.o: ../../include/openssl/buffer.h ../../include/openssl/cms.h | ||
| 194 | cms_ess.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h | ||
| 195 | cms_ess.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h | ||
| 196 | cms_ess.o: ../../include/openssl/ecdh.h ../../include/openssl/ecdsa.h | ||
| 197 | cms_ess.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 198 | cms_ess.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h | ||
| 199 | cms_ess.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 200 | cms_ess.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 201 | cms_ess.o: ../../include/openssl/pem.h ../../include/openssl/pem2.h | ||
| 202 | cms_ess.o: ../../include/openssl/pkcs7.h ../../include/openssl/rand.h | ||
| 203 | cms_ess.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 204 | cms_ess.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 205 | cms_ess.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 206 | cms_ess.o: ../../include/openssl/x509v3.h ../cryptlib.h cms_ess.c cms_lcl.h | ||
| 207 | cms_io.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h | ||
| 208 | cms_io.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h | ||
| 209 | cms_io.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 210 | cms_io.o: ../../include/openssl/ec.h ../../include/openssl/ecdh.h | ||
| 211 | cms_io.o: ../../include/openssl/ecdsa.h ../../include/openssl/err.h | ||
| 212 | cms_io.o: ../../include/openssl/evp.h ../../include/openssl/lhash.h | ||
| 213 | cms_io.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 214 | cms_io.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 215 | cms_io.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pem.h | ||
| 216 | cms_io.o: ../../include/openssl/pem2.h ../../include/openssl/pkcs7.h | ||
| 217 | cms_io.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 218 | cms_io.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 219 | cms_io.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h cms.h | ||
| 220 | cms_io.o: cms_io.c cms_lcl.h | ||
| 221 | cms_lib.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h | ||
| 222 | cms_lib.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h | ||
| 223 | cms_lib.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 224 | cms_lib.o: ../../include/openssl/ec.h ../../include/openssl/ecdh.h | ||
| 225 | cms_lib.o: ../../include/openssl/ecdsa.h ../../include/openssl/err.h | ||
| 226 | cms_lib.o: ../../include/openssl/evp.h ../../include/openssl/lhash.h | ||
| 227 | cms_lib.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 228 | cms_lib.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 229 | cms_lib.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pem.h | ||
| 230 | cms_lib.o: ../../include/openssl/pem2.h ../../include/openssl/pkcs7.h | ||
| 231 | cms_lib.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 232 | cms_lib.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 233 | cms_lib.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h cms.h | ||
| 234 | cms_lib.o: cms_lcl.h cms_lib.c | ||
| 235 | cms_pwri.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 236 | cms_pwri.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h | ||
| 237 | cms_pwri.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h | ||
| 238 | cms_pwri.o: ../../include/openssl/cms.h ../../include/openssl/conf.h | ||
| 239 | cms_pwri.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 240 | cms_pwri.o: ../../include/openssl/ec.h ../../include/openssl/ecdh.h | ||
| 241 | cms_pwri.o: ../../include/openssl/ecdsa.h ../../include/openssl/err.h | ||
| 242 | cms_pwri.o: ../../include/openssl/evp.h ../../include/openssl/lhash.h | ||
| 243 | cms_pwri.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 244 | cms_pwri.o: ../../include/openssl/opensslconf.h | ||
| 245 | cms_pwri.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 246 | cms_pwri.o: ../../include/openssl/pem.h ../../include/openssl/pem2.h | ||
| 247 | cms_pwri.o: ../../include/openssl/pkcs7.h ../../include/openssl/rand.h | ||
| 248 | cms_pwri.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 249 | cms_pwri.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 250 | cms_pwri.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 251 | cms_pwri.o: ../../include/openssl/x509v3.h ../asn1/asn1_locl.h ../cryptlib.h | ||
| 252 | cms_pwri.o: cms_lcl.h cms_pwri.c | ||
| 253 | cms_sd.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 254 | cms_sd.o: ../../include/openssl/asn1t.h ../../include/openssl/bio.h | ||
| 255 | cms_sd.o: ../../include/openssl/buffer.h ../../include/openssl/cms.h | ||
| 256 | cms_sd.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h | ||
| 257 | cms_sd.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h | ||
| 258 | cms_sd.o: ../../include/openssl/ecdh.h ../../include/openssl/ecdsa.h | ||
| 259 | cms_sd.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 260 | cms_sd.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h | ||
| 261 | cms_sd.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 262 | cms_sd.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 263 | cms_sd.o: ../../include/openssl/pem.h ../../include/openssl/pem2.h | ||
| 264 | cms_sd.o: ../../include/openssl/pkcs7.h ../../include/openssl/safestack.h | ||
| 265 | cms_sd.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 266 | cms_sd.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h | ||
| 267 | cms_sd.o: ../../include/openssl/x509_vfy.h ../../include/openssl/x509v3.h | ||
| 268 | cms_sd.o: ../asn1/asn1_locl.h ../cryptlib.h cms_lcl.h cms_sd.c | ||
| 269 | cms_smime.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 270 | cms_smime.o: ../../include/openssl/asn1t.h ../../include/openssl/bio.h | ||
| 271 | cms_smime.o: ../../include/openssl/buffer.h ../../include/openssl/cms.h | ||
| 272 | cms_smime.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h | ||
| 273 | cms_smime.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h | ||
| 274 | cms_smime.o: ../../include/openssl/ecdh.h ../../include/openssl/ecdsa.h | ||
| 275 | cms_smime.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 276 | cms_smime.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h | ||
| 277 | cms_smime.o: ../../include/openssl/objects.h | ||
| 278 | cms_smime.o: ../../include/openssl/opensslconf.h | ||
| 279 | cms_smime.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 280 | cms_smime.o: ../../include/openssl/pkcs7.h ../../include/openssl/safestack.h | ||
| 281 | cms_smime.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 282 | cms_smime.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h | ||
| 283 | cms_smime.o: ../../include/openssl/x509_vfy.h ../../include/openssl/x509v3.h | ||
| 284 | cms_smime.o: ../cryptlib.h cms_lcl.h cms_smime.c | ||
diff --git a/src/lib/libcrypto/comp/Makefile.ssl b/src/lib/libcrypto/comp/Makefile.ssl deleted file mode 100644 index f70ba1b285..0000000000 --- a/src/lib/libcrypto/comp/Makefile.ssl +++ /dev/null | |||
| @@ -1,114 +0,0 @@ | |||
| 1 | # | ||
| 2 | # SSLeay/crypto/comp/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= comp | ||
| 6 | TOP= ../.. | ||
| 7 | CC= cc | ||
| 8 | INCLUDES= -I.. -I$(TOP) -I../../include | ||
| 9 | CFLAG=-g | ||
| 10 | INSTALL_PREFIX= | ||
| 11 | OPENSSLDIR= /usr/local/ssl | ||
| 12 | INSTALLTOP=/usr/local/ssl | ||
| 13 | MAKE= make -f Makefile.ssl | ||
| 14 | MAKEDEPPROG= makedepend | ||
| 15 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
| 16 | MAKEFILE= Makefile.ssl | ||
| 17 | AR= ar r | ||
| 18 | |||
| 19 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 20 | |||
| 21 | GENERAL=Makefile | ||
| 22 | TEST= | ||
| 23 | APPS= | ||
| 24 | |||
| 25 | LIB=$(TOP)/libcrypto.a | ||
| 26 | LIBSRC= comp_lib.c comp_err.c \ | ||
| 27 | c_rle.c c_zlib.c | ||
| 28 | |||
| 29 | LIBOBJ= comp_lib.o comp_err.o \ | ||
| 30 | c_rle.o c_zlib.o | ||
| 31 | |||
| 32 | SRC= $(LIBSRC) | ||
| 33 | |||
| 34 | EXHEADER= comp.h | ||
| 35 | HEADER= $(EXHEADER) | ||
| 36 | |||
| 37 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
| 38 | |||
| 39 | top: | ||
| 40 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
| 41 | |||
| 42 | all: lib | ||
| 43 | |||
| 44 | lib: $(LIBOBJ) | ||
| 45 | $(AR) $(LIB) $(LIBOBJ) | ||
| 46 | $(RANLIB) $(LIB) || echo Never mind. | ||
| 47 | @touch lib | ||
| 48 | |||
| 49 | files: | ||
| 50 | $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
| 51 | |||
| 52 | links: | ||
| 53 | @sh $(TOP)/util/point.sh Makefile.ssl Makefile | ||
| 54 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | ||
| 55 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | ||
| 56 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | ||
| 57 | |||
| 58 | install: | ||
| 59 | @for i in $(EXHEADER) ; \ | ||
| 60 | do \ | ||
| 61 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 62 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
| 63 | done; | ||
| 64 | |||
| 65 | tags: | ||
| 66 | ctags $(SRC) | ||
| 67 | |||
| 68 | tests: | ||
| 69 | |||
| 70 | lint: | ||
| 71 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
| 72 | |||
| 73 | depend: | ||
| 74 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(LIBSRC) | ||
| 75 | |||
| 76 | dclean: | ||
| 77 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 78 | mv -f Makefile.new $(MAKEFILE) | ||
| 79 | |||
| 80 | clean: | ||
| 81 | rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
| 82 | |||
| 83 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 84 | |||
| 85 | c_rle.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 86 | c_rle.o: ../../include/openssl/bn.h ../../include/openssl/comp.h | ||
| 87 | c_rle.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 88 | c_rle.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 89 | c_rle.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 90 | c_rle.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h | ||
| 91 | c_rle.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h c_rle.c | ||
| 92 | c_zlib.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 93 | c_zlib.o: ../../include/openssl/bn.h ../../include/openssl/comp.h | ||
| 94 | c_zlib.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 95 | c_zlib.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 96 | c_zlib.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 97 | c_zlib.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h | ||
| 98 | c_zlib.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 99 | c_zlib.o: c_zlib.c | ||
| 100 | comp_err.o: ../../include/openssl/bio.h ../../include/openssl/comp.h | ||
| 101 | comp_err.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 102 | comp_err.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
| 103 | comp_err.o: ../../include/openssl/opensslconf.h | ||
| 104 | comp_err.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 105 | comp_err.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 106 | comp_err.o: comp_err.c | ||
| 107 | comp_lib.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 108 | comp_lib.o: ../../include/openssl/bn.h ../../include/openssl/comp.h | ||
| 109 | comp_lib.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 110 | comp_lib.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 111 | comp_lib.o: ../../include/openssl/opensslconf.h | ||
| 112 | comp_lib.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 113 | comp_lib.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 114 | comp_lib.o: ../../include/openssl/symhacks.h comp_lib.c | ||
diff --git a/src/lib/libcrypto/conf/Makefile.ssl b/src/lib/libcrypto/conf/Makefile.ssl deleted file mode 100644 index c5873bc6e7..0000000000 --- a/src/lib/libcrypto/conf/Makefile.ssl +++ /dev/null | |||
| @@ -1,183 +0,0 @@ | |||
| 1 | # | ||
| 2 | # SSLeay/crypto/conf/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= conf | ||
| 6 | TOP= ../.. | ||
| 7 | CC= cc | ||
| 8 | INCLUDES= -I.. -I$(TOP) -I../../include | ||
| 9 | CFLAG=-g | ||
| 10 | INSTALL_PREFIX= | ||
| 11 | OPENSSLDIR= /usr/local/ssl | ||
| 12 | INSTALLTOP=/usr/local/ssl | ||
| 13 | MAKE= make -f Makefile.ssl | ||
| 14 | MAKEDEPPROG= makedepend | ||
| 15 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
| 16 | MAKEFILE= Makefile.ssl | ||
| 17 | AR= ar r | ||
| 18 | |||
| 19 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 20 | |||
| 21 | GENERAL=Makefile | ||
| 22 | TEST= | ||
| 23 | APPS= | ||
| 24 | |||
| 25 | LIB=$(TOP)/libcrypto.a | ||
| 26 | LIBSRC= conf_err.c conf_lib.c conf_api.c conf_def.c conf_mod.c \ | ||
| 27 | conf_mall.c conf_sap.c | ||
| 28 | |||
| 29 | LIBOBJ= conf_err.o conf_lib.o conf_api.o conf_def.o conf_mod.o \ | ||
| 30 | conf_mall.o conf_sap.o | ||
| 31 | |||
| 32 | SRC= $(LIBSRC) | ||
| 33 | |||
| 34 | EXHEADER= conf.h conf_api.h | ||
| 35 | HEADER= conf_def.h $(EXHEADER) | ||
| 36 | |||
| 37 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
| 38 | |||
| 39 | top: | ||
| 40 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
| 41 | |||
| 42 | all: lib | ||
| 43 | |||
| 44 | lib: $(LIBOBJ) | ||
| 45 | $(AR) $(LIB) $(LIBOBJ) | ||
| 46 | $(RANLIB) $(LIB) || echo Never mind. | ||
| 47 | @touch lib | ||
| 48 | |||
| 49 | files: | ||
| 50 | $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
| 51 | |||
| 52 | links: | ||
| 53 | @sh $(TOP)/util/point.sh Makefile.ssl Makefile | ||
| 54 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | ||
| 55 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | ||
| 56 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | ||
| 57 | |||
| 58 | install: | ||
| 59 | @for i in $(EXHEADER) ; \ | ||
| 60 | do \ | ||
| 61 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 62 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
| 63 | done; | ||
| 64 | |||
| 65 | tags: | ||
| 66 | ctags $(SRC) | ||
| 67 | |||
| 68 | tests: | ||
| 69 | |||
| 70 | lint: | ||
| 71 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
| 72 | |||
| 73 | depend: | ||
| 74 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(LIBSRC) | ||
| 75 | |||
| 76 | dclean: | ||
| 77 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 78 | mv -f Makefile.new $(MAKEFILE) | ||
| 79 | |||
| 80 | clean: | ||
| 81 | rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
| 82 | |||
| 83 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 84 | |||
| 85 | conf_api.o: ../../e_os.h ../../include/openssl/bio.h | ||
| 86 | conf_api.o: ../../include/openssl/conf.h ../../include/openssl/conf_api.h | ||
| 87 | conf_api.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 88 | conf_api.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 89 | conf_api.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 90 | conf_api.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 91 | conf_api.o: conf_api.c | ||
| 92 | conf_def.o: ../../e_os.h ../../include/openssl/bio.h | ||
| 93 | conf_def.o: ../../include/openssl/buffer.h ../../include/openssl/conf.h | ||
| 94 | conf_def.o: ../../include/openssl/conf_api.h ../../include/openssl/crypto.h | ||
| 95 | conf_def.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 96 | conf_def.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 97 | conf_def.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 98 | conf_def.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 99 | conf_def.o: ../cryptlib.h conf_def.c conf_def.h | ||
| 100 | conf_err.o: ../../include/openssl/bio.h ../../include/openssl/conf.h | ||
| 101 | conf_err.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 102 | conf_err.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
| 103 | conf_err.o: ../../include/openssl/opensslconf.h | ||
| 104 | conf_err.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 105 | conf_err.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 106 | conf_err.o: conf_err.c | ||
| 107 | conf_lib.o: ../../include/openssl/bio.h ../../include/openssl/conf.h | ||
| 108 | conf_lib.o: ../../include/openssl/conf_api.h ../../include/openssl/crypto.h | ||
| 109 | conf_lib.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 110 | conf_lib.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 111 | conf_lib.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 112 | conf_lib.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 113 | conf_lib.o: conf_lib.c | ||
| 114 | conf_mall.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 115 | conf_mall.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 116 | conf_mall.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 117 | conf_mall.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 118 | conf_mall.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h | ||
| 119 | conf_mall.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 120 | conf_mall.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 121 | conf_mall.o: ../../include/openssl/dso.h ../../include/openssl/e_os2.h | ||
| 122 | conf_mall.o: ../../include/openssl/engine.h ../../include/openssl/err.h | ||
| 123 | conf_mall.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 124 | conf_mall.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 125 | conf_mall.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 126 | conf_mall.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 127 | conf_mall.o: ../../include/openssl/objects.h | ||
| 128 | conf_mall.o: ../../include/openssl/opensslconf.h | ||
| 129 | conf_mall.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 130 | conf_mall.o: ../../include/openssl/pkcs7.h ../../include/openssl/rand.h | ||
| 131 | conf_mall.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 132 | conf_mall.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 133 | conf_mall.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 134 | conf_mall.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 135 | conf_mall.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 136 | conf_mall.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 137 | conf_mall.o: ../../include/openssl/x509_vfy.h ../cryptlib.h conf_mall.c | ||
| 138 | conf_mod.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 139 | conf_mod.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 140 | conf_mod.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 141 | conf_mod.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 142 | conf_mod.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h | ||
| 143 | conf_mod.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 144 | conf_mod.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 145 | conf_mod.o: ../../include/openssl/dso.h ../../include/openssl/e_os2.h | ||
| 146 | conf_mod.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 147 | conf_mod.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 148 | conf_mod.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 149 | conf_mod.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 150 | conf_mod.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 151 | conf_mod.o: ../../include/openssl/opensslconf.h | ||
| 152 | conf_mod.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 153 | conf_mod.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 154 | conf_mod.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 155 | conf_mod.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 156 | conf_mod.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 157 | conf_mod.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 158 | conf_mod.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 159 | conf_mod.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 160 | conf_mod.o: ../cryptlib.h conf_mod.c | ||
| 161 | conf_sap.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 162 | conf_sap.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 163 | conf_sap.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 164 | conf_sap.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 165 | conf_sap.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h | ||
| 166 | conf_sap.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 167 | conf_sap.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 168 | conf_sap.o: ../../include/openssl/dso.h ../../include/openssl/e_os2.h | ||
| 169 | conf_sap.o: ../../include/openssl/engine.h ../../include/openssl/err.h | ||
| 170 | conf_sap.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 171 | conf_sap.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 172 | conf_sap.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 173 | conf_sap.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 174 | conf_sap.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 175 | conf_sap.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 176 | conf_sap.o: ../../include/openssl/pkcs7.h ../../include/openssl/rand.h | ||
| 177 | conf_sap.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 178 | conf_sap.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 179 | conf_sap.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 180 | conf_sap.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 181 | conf_sap.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 182 | conf_sap.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 183 | conf_sap.o: ../../include/openssl/x509_vfy.h ../cryptlib.h conf_sap.c | ||
diff --git a/src/lib/libcrypto/des/FILES b/src/lib/libcrypto/des/FILES deleted file mode 100644 index 4c7ea2de7a..0000000000 --- a/src/lib/libcrypto/des/FILES +++ /dev/null | |||
| @@ -1,96 +0,0 @@ | |||
| 1 | /* General stuff */ | ||
| 2 | COPYRIGHT - Copyright info. | ||
| 3 | MODES.DES - A description of the features of the different modes of DES. | ||
| 4 | FILES - This file. | ||
| 5 | INSTALL - How to make things compile. | ||
| 6 | Imakefile - For use with kerberos. | ||
| 7 | README - What this package is. | ||
| 8 | VERSION - Which version this is and what was changed. | ||
| 9 | KERBEROS - Kerberos version 4 notes. | ||
| 10 | Makefile.PL - An old makefile to build with perl5, not current. | ||
| 11 | Makefile.ssl - The SSLeay makefile | ||
| 12 | Makefile.uni - The normal unix makefile. | ||
| 13 | GNUmakefile - The makefile for use with glibc. | ||
| 14 | makefile.bc - A Borland C makefile | ||
| 15 | times - Some outputs from 'speed' on some machines. | ||
| 16 | vms.com - For use when compiling under VMS | ||
| 17 | |||
| 18 | /* My SunOS des(1) replacement */ | ||
| 19 | des.c - des(1) source code. | ||
| 20 | des.man - des(1) manual. | ||
| 21 | |||
| 22 | /* Testing and timing programs. */ | ||
| 23 | destest.c - Source for libdes.a test program. | ||
| 24 | speed.c - Source for libdes.a timing program. | ||
| 25 | rpw.c - Source for libdes.a testing password reading routines. | ||
| 26 | |||
| 27 | /* libdes.a source code */ | ||
| 28 | des_crypt.man - libdes.a manual page. | ||
| 29 | des.h - Public libdes.a header file. | ||
| 30 | ecb_enc.c - des_ecb_encrypt() source, this contains the basic DES code. | ||
| 31 | ecb3_enc.c - des_ecb3_encrypt() source. | ||
| 32 | cbc_ckm.c - des_cbc_cksum() source. | ||
| 33 | cbc_enc.c - des_cbc_encrypt() source. | ||
| 34 | ncbc_enc.c - des_cbc_encrypt() that is 'normal' in that it copies | ||
| 35 | the new iv values back in the passed iv vector. | ||
| 36 | ede_enc.c - des_ede3_cbc_encrypt() cbc mode des using triple DES. | ||
| 37 | cbc3_enc.c - des_3cbc_encrypt() source, don't use this function. | ||
| 38 | cfb_enc.c - des_cfb_encrypt() source. | ||
| 39 | cfb64enc.c - des_cfb64_encrypt() cfb in 64 bit mode but setup to be | ||
| 40 | used as a stream cipher. | ||
| 41 | cfb64ede.c - des_ede3_cfb64_encrypt() cfb in 64 bit mode but setup to be | ||
| 42 | used as a stream cipher and using triple DES. | ||
| 43 | ofb_enc.c - des_cfb_encrypt() source. | ||
| 44 | ofb64_enc.c - des_ofb_encrypt() ofb in 64 bit mode but setup to be | ||
| 45 | used as a stream cipher. | ||
| 46 | ofb64ede.c - des_ede3_ofb64_encrypt() ofb in 64 bit mode but setup to be | ||
| 47 | used as a stream cipher and using triple DES. | ||
| 48 | enc_read.c - des_enc_read() source. | ||
| 49 | enc_writ.c - des_enc_write() source. | ||
| 50 | pcbc_enc.c - des_pcbc_encrypt() source. | ||
| 51 | qud_cksm.c - quad_cksum() source. | ||
| 52 | rand_key.c - des_random_key() source. | ||
| 53 | read_pwd.c - Source for des_read_password() plus related functions. | ||
| 54 | set_key.c - Source for des_set_key(). | ||
| 55 | str2key.c - Covert a string of any length into a key. | ||
| 56 | fcrypt.c - A small, fast version of crypt(3). | ||
| 57 | des_locl.h - Internal libdes.a header file. | ||
| 58 | podd.h - Odd parity tables - used in des_set_key(). | ||
| 59 | sk.h - Lookup tables used in des_set_key(). | ||
| 60 | spr.h - What is left of the S tables - used in ecb_encrypt(). | ||
| 61 | des_ver.h - header file for the external definition of the | ||
| 62 | version string. | ||
| 63 | des.doc - SSLeay documentation for the library. | ||
| 64 | |||
| 65 | /* The perl scripts - you can ignore these files they are only | ||
| 66 | * included for the curious */ | ||
| 67 | des.pl - des in perl anyone? des_set_key and des_ecb_encrypt | ||
| 68 | both done in a perl library. | ||
| 69 | testdes.pl - Testing program for des.pl | ||
| 70 | doIP - Perl script used to develop IP xor/shift code. | ||
| 71 | doPC1 - Perl script used to develop PC1 xor/shift code. | ||
| 72 | doPC2 - Generates sk.h. | ||
| 73 | PC1 - Output of doPC1 should be the same as output from PC1. | ||
| 74 | PC2 - used in development of doPC2. | ||
| 75 | shifts.pl - Perl library used by my perl scripts. | ||
| 76 | |||
| 77 | /* I started making a perl5 dynamic library for libdes | ||
| 78 | * but did not fully finish, these files are part of that effort. */ | ||
| 79 | DES.pm | ||
| 80 | DES.pod | ||
| 81 | DES.xs | ||
| 82 | t | ||
| 83 | typemap | ||
| 84 | |||
| 85 | /* The following are for use with sun RPC implementaions. */ | ||
| 86 | rpc_des.h | ||
| 87 | rpc_enc.c | ||
| 88 | |||
| 89 | /* The following are contibuted by Mark Murray <mark@grondar.za>. They | ||
| 90 | * are not normally built into libdes due to machine specific routines | ||
| 91 | * contained in them. They are for use in the most recent incarnation of | ||
| 92 | * export kerberos v 4 (eBones). */ | ||
| 93 | supp.c | ||
| 94 | new_rkey.c | ||
| 95 | |||
| 96 | |||
diff --git a/src/lib/libcrypto/des/Makefile.ssl b/src/lib/libcrypto/des/Makefile.ssl deleted file mode 100644 index 0d9ba2b42f..0000000000 --- a/src/lib/libcrypto/des/Makefile.ssl +++ /dev/null | |||
| @@ -1,316 +0,0 @@ | |||
| 1 | # | ||
| 2 | # SSLeay/crypto/des/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= des | ||
| 6 | TOP= ../.. | ||
| 7 | CC= cc | ||
| 8 | CPP= $(CC) -E | ||
| 9 | INCLUDES=-I$(TOP) -I../../include | ||
| 10 | CFLAG=-g | ||
| 11 | INSTALL_PREFIX= | ||
| 12 | OPENSSLDIR= /usr/local/ssl | ||
| 13 | INSTALLTOP=/usr/local/ssl | ||
| 14 | MAKE= make -f Makefile.ssl | ||
| 15 | MAKEDEPPROG= makedepend | ||
| 16 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
| 17 | MAKEFILE= Makefile.ssl | ||
| 18 | AR= ar r | ||
| 19 | RANLIB= ranlib | ||
| 20 | DES_ENC= des_enc.o fcrypt_b.o | ||
| 21 | # or use | ||
| 22 | #DES_ENC= dx86-elf.o yx86-elf.o | ||
| 23 | |||
| 24 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 25 | ASFLAGS= $(INCLUDES) $(ASFLAG) | ||
| 26 | |||
| 27 | GENERAL=Makefile | ||
| 28 | TEST=destest.c | ||
| 29 | APPS= | ||
| 30 | |||
| 31 | LIB=$(TOP)/libcrypto.a | ||
| 32 | LIBSRC= cbc_cksm.c cbc_enc.c cfb64enc.c cfb_enc.c \ | ||
| 33 | ecb3_enc.c ecb_enc.c enc_read.c enc_writ.c \ | ||
| 34 | fcrypt.c ofb64enc.c ofb_enc.c pcbc_enc.c \ | ||
| 35 | qud_cksm.c rand_key.c rpc_enc.c set_key.c \ | ||
| 36 | des_enc.c fcrypt_b.c \ | ||
| 37 | xcbc_enc.c \ | ||
| 38 | str2key.c cfb64ede.c ofb64ede.c ede_cbcm_enc.c des_old.c des_old2.c \ | ||
| 39 | read2pwd.c | ||
| 40 | |||
| 41 | LIBOBJ= set_key.o ecb_enc.o cbc_enc.o \ | ||
| 42 | ecb3_enc.o cfb64enc.o cfb64ede.o cfb_enc.o ofb64ede.o \ | ||
| 43 | enc_read.o enc_writ.o ofb64enc.o \ | ||
| 44 | ofb_enc.o str2key.o pcbc_enc.o qud_cksm.o rand_key.o \ | ||
| 45 | ${DES_ENC} \ | ||
| 46 | fcrypt.o xcbc_enc.o rpc_enc.o cbc_cksm.o \ | ||
| 47 | ede_cbcm_enc.o des_old.o des_old2.o read2pwd.o | ||
| 48 | |||
| 49 | SRC= $(LIBSRC) | ||
| 50 | |||
| 51 | EXHEADER= des.h des_old.h | ||
| 52 | HEADER= des_locl.h rpc_des.h spr.h des_ver.h $(EXHEADER) | ||
| 53 | |||
| 54 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
| 55 | |||
| 56 | top: | ||
| 57 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
| 58 | |||
| 59 | all: lib | ||
| 60 | |||
| 61 | lib: $(LIBOBJ) | ||
| 62 | $(AR) $(LIB) $(LIBOBJ) | ||
| 63 | $(RANLIB) $(LIB) || echo Never mind. | ||
| 64 | @touch lib | ||
| 65 | |||
| 66 | des: des.o cbc3_enc.o lib | ||
| 67 | $(CC) $(CFLAGS) -o des des.o cbc3_enc.o $(LIB) | ||
| 68 | |||
| 69 | # elf | ||
| 70 | asm/dx86-elf.s: asm/des-586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl | ||
| 71 | (cd asm; $(PERL) des-586.pl elf $(CFLAGS) > dx86-elf.s) | ||
| 72 | |||
| 73 | asm/yx86-elf.s: asm/crypt586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl | ||
| 74 | (cd asm; $(PERL) crypt586.pl elf $(CFLAGS) > yx86-elf.s) | ||
| 75 | |||
| 76 | # a.out | ||
| 77 | asm/dx86-out.o: asm/dx86unix.cpp | ||
| 78 | $(CPP) -DOUT asm/dx86unix.cpp | as -o asm/dx86-out.o | ||
| 79 | |||
| 80 | asm/yx86-out.o: asm/yx86unix.cpp | ||
| 81 | $(CPP) -DOUT asm/yx86unix.cpp | as -o asm/yx86-out.o | ||
| 82 | |||
| 83 | # bsdi | ||
| 84 | asm/dx86bsdi.o: asm/dx86unix.cpp | ||
| 85 | $(CPP) -DBSDI asm/dx86unix.cpp | sed 's/ :/:/' | as -o asm/dx86bsdi.o | ||
| 86 | |||
| 87 | asm/yx86bsdi.o: asm/yx86unix.cpp | ||
| 88 | $(CPP) -DBSDI asm/yx86unix.cpp | sed 's/ :/:/' | as -o asm/yx86bsdi.o | ||
| 89 | |||
| 90 | asm/dx86unix.cpp: asm/des-586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl | ||
| 91 | (cd asm; $(PERL) des-586.pl cpp >dx86unix.cpp) | ||
| 92 | |||
| 93 | asm/yx86unix.cpp: asm/crypt586.pl ../perlasm/x86asm.pl | ||
| 94 | (cd asm; $(PERL) crypt586.pl cpp >yx86unix.cpp) | ||
| 95 | |||
| 96 | files: | ||
| 97 | $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
| 98 | |||
| 99 | links: | ||
| 100 | @sh $(TOP)/util/point.sh Makefile.ssl Makefile | ||
| 101 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | ||
| 102 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | ||
| 103 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | ||
| 104 | |||
| 105 | install: installs | ||
| 106 | |||
| 107 | installs: | ||
| 108 | @for i in $(EXHEADER) ; \ | ||
| 109 | do \ | ||
| 110 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 111 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
| 112 | done; | ||
| 113 | |||
| 114 | tags: | ||
| 115 | ctags $(SRC) | ||
| 116 | |||
| 117 | tests: | ||
| 118 | |||
| 119 | lint: | ||
| 120 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
| 121 | |||
| 122 | depend: | ||
| 123 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) | ||
| 124 | |||
| 125 | dclean: | ||
| 126 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 127 | mv -f Makefile.new $(MAKEFILE) | ||
| 128 | |||
| 129 | clean: | ||
| 130 | rm -f asm/dx86unix.cpp asm/yx86unix.cpp asm/*-elf.* *.o asm/*.o *.obj des lib tags core .pure .nfs* *.old *.bak fluff | ||
| 131 | |||
| 132 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 133 | |||
| 134 | cbc_cksm.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 135 | cbc_cksm.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h | ||
| 136 | cbc_cksm.o: ../../include/openssl/opensslconf.h | ||
| 137 | cbc_cksm.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 138 | cbc_cksm.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 139 | cbc_cksm.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 140 | cbc_cksm.o: cbc_cksm.c des_locl.h | ||
| 141 | cbc_enc.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 142 | cbc_enc.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h | ||
| 143 | cbc_enc.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 144 | cbc_enc.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 145 | cbc_enc.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 146 | cbc_enc.o: ../../include/openssl/ui_compat.h cbc_enc.c des_locl.h ncbc_enc.c | ||
| 147 | cfb64ede.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 148 | cfb64ede.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h | ||
| 149 | cfb64ede.o: ../../include/openssl/opensslconf.h | ||
| 150 | cfb64ede.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 151 | cfb64ede.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 152 | cfb64ede.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 153 | cfb64ede.o: cfb64ede.c des_locl.h | ||
| 154 | cfb64enc.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 155 | cfb64enc.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h | ||
| 156 | cfb64enc.o: ../../include/openssl/opensslconf.h | ||
| 157 | cfb64enc.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 158 | cfb64enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 159 | cfb64enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 160 | cfb64enc.o: cfb64enc.c des_locl.h | ||
| 161 | cfb_enc.o: ../../e_os.h ../../include/openssl/crypto.h | ||
| 162 | cfb_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 163 | cfb_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h | ||
| 164 | cfb_enc.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 165 | cfb_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 166 | cfb_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 167 | cfb_enc.o: cfb_enc.c des_locl.h | ||
| 168 | des_enc.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 169 | des_enc.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h | ||
| 170 | des_enc.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 171 | des_enc.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 172 | des_enc.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 173 | des_enc.o: ../../include/openssl/ui_compat.h des_enc.c des_locl.h ncbc_enc.c | ||
| 174 | des_old.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 175 | des_old.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h | ||
| 176 | des_old.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 177 | des_old.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h | ||
| 178 | des_old.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 179 | des_old.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 180 | des_old.o: ../../include/openssl/ui_compat.h des_old.c | ||
| 181 | des_old2.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 182 | des_old2.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h | ||
| 183 | des_old2.o: ../../include/openssl/opensslconf.h | ||
| 184 | des_old2.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 185 | des_old2.o: ../../include/openssl/rand.h ../../include/openssl/safestack.h | ||
| 186 | des_old2.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 187 | des_old2.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 188 | des_old2.o: des_old2.c | ||
| 189 | ecb3_enc.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 190 | ecb3_enc.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h | ||
| 191 | ecb3_enc.o: ../../include/openssl/opensslconf.h | ||
| 192 | ecb3_enc.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 193 | ecb3_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 194 | ecb3_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 195 | ecb3_enc.o: des_locl.h ecb3_enc.c | ||
| 196 | ecb_enc.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h | ||
| 197 | ecb_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 198 | ecb_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h | ||
| 199 | ecb_enc.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 200 | ecb_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 201 | ecb_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 202 | ecb_enc.o: des_locl.h des_ver.h ecb_enc.c spr.h | ||
| 203 | ede_cbcm_enc.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 204 | ede_cbcm_enc.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h | ||
| 205 | ede_cbcm_enc.o: ../../include/openssl/opensslconf.h | ||
| 206 | ede_cbcm_enc.o: ../../include/openssl/opensslv.h | ||
| 207 | ede_cbcm_enc.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 208 | ede_cbcm_enc.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 209 | ede_cbcm_enc.o: ../../include/openssl/ui_compat.h des_locl.h ede_cbcm_enc.c | ||
| 210 | enc_read.o: ../../e_os.h ../../include/openssl/bio.h | ||
| 211 | enc_read.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 212 | enc_read.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 213 | enc_read.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 214 | enc_read.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 215 | enc_read.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 216 | enc_read.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 217 | enc_read.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 218 | enc_read.o: ../cryptlib.h des_locl.h enc_read.c | ||
| 219 | enc_writ.o: ../../e_os.h ../../include/openssl/bio.h | ||
| 220 | enc_writ.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 221 | enc_writ.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 222 | enc_writ.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 223 | enc_writ.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 224 | enc_writ.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 225 | enc_writ.o: ../../include/openssl/rand.h ../../include/openssl/safestack.h | ||
| 226 | enc_writ.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 227 | enc_writ.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 228 | enc_writ.o: ../cryptlib.h des_locl.h enc_writ.c | ||
| 229 | fcrypt.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 230 | fcrypt.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h | ||
| 231 | fcrypt.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 232 | fcrypt.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 233 | fcrypt.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 234 | fcrypt.o: ../../include/openssl/ui_compat.h des_locl.h fcrypt.c | ||
| 235 | fcrypt_b.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 236 | fcrypt_b.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h | ||
| 237 | fcrypt_b.o: ../../include/openssl/opensslconf.h | ||
| 238 | fcrypt_b.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 239 | fcrypt_b.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 240 | fcrypt_b.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 241 | fcrypt_b.o: des_locl.h fcrypt_b.c | ||
| 242 | ofb64ede.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 243 | ofb64ede.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h | ||
| 244 | ofb64ede.o: ../../include/openssl/opensslconf.h | ||
| 245 | ofb64ede.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 246 | ofb64ede.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 247 | ofb64ede.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 248 | ofb64ede.o: des_locl.h ofb64ede.c | ||
| 249 | ofb64enc.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 250 | ofb64enc.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h | ||
| 251 | ofb64enc.o: ../../include/openssl/opensslconf.h | ||
| 252 | ofb64enc.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 253 | ofb64enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 254 | ofb64enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 255 | ofb64enc.o: des_locl.h ofb64enc.c | ||
| 256 | ofb_enc.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 257 | ofb_enc.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h | ||
| 258 | ofb_enc.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 259 | ofb_enc.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 260 | ofb_enc.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 261 | ofb_enc.o: ../../include/openssl/ui_compat.h des_locl.h ofb_enc.c | ||
| 262 | pcbc_enc.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 263 | pcbc_enc.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h | ||
| 264 | pcbc_enc.o: ../../include/openssl/opensslconf.h | ||
| 265 | pcbc_enc.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 266 | pcbc_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 267 | pcbc_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 268 | pcbc_enc.o: des_locl.h pcbc_enc.c | ||
| 269 | qud_cksm.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 270 | qud_cksm.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h | ||
| 271 | qud_cksm.o: ../../include/openssl/opensslconf.h | ||
| 272 | qud_cksm.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 273 | qud_cksm.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 274 | qud_cksm.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 275 | qud_cksm.o: des_locl.h qud_cksm.c | ||
| 276 | rand_key.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 277 | rand_key.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h | ||
| 278 | rand_key.o: ../../include/openssl/opensslconf.h | ||
| 279 | rand_key.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 280 | rand_key.o: ../../include/openssl/rand.h ../../include/openssl/safestack.h | ||
| 281 | rand_key.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 282 | rand_key.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 283 | rand_key.o: rand_key.c | ||
| 284 | read2pwd.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 285 | read2pwd.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h | ||
| 286 | read2pwd.o: ../../include/openssl/opensslconf.h | ||
| 287 | read2pwd.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 288 | read2pwd.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 289 | read2pwd.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 290 | read2pwd.o: read2pwd.c | ||
| 291 | rpc_enc.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 292 | rpc_enc.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h | ||
| 293 | rpc_enc.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 294 | rpc_enc.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 295 | rpc_enc.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 296 | rpc_enc.o: ../../include/openssl/ui_compat.h des_locl.h des_ver.h rpc_des.h | ||
| 297 | rpc_enc.o: rpc_enc.c | ||
| 298 | set_key.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 299 | set_key.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h | ||
| 300 | set_key.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 301 | set_key.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 302 | set_key.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 303 | set_key.o: ../../include/openssl/ui_compat.h des_locl.h set_key.c | ||
| 304 | str2key.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 305 | str2key.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h | ||
| 306 | str2key.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 307 | str2key.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 308 | str2key.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 309 | str2key.o: ../../include/openssl/ui_compat.h des_locl.h str2key.c | ||
| 310 | xcbc_enc.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 311 | xcbc_enc.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h | ||
| 312 | xcbc_enc.o: ../../include/openssl/opensslconf.h | ||
| 313 | xcbc_enc.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 314 | xcbc_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 315 | xcbc_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 316 | xcbc_enc.o: des_locl.h xcbc_enc.c | ||
diff --git a/src/lib/libcrypto/dh/Makefile.ssl b/src/lib/libcrypto/dh/Makefile.ssl deleted file mode 100644 index e05fc01a12..0000000000 --- a/src/lib/libcrypto/dh/Makefile.ssl +++ /dev/null | |||
| @@ -1,133 +0,0 @@ | |||
| 1 | # | ||
| 2 | # SSLeay/crypto/dh/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= dh | ||
| 6 | TOP= ../.. | ||
| 7 | CC= cc | ||
| 8 | INCLUDES= -I.. -I$(TOP) -I../../include | ||
| 9 | CFLAG=-g | ||
| 10 | INSTALL_PREFIX= | ||
| 11 | OPENSSLDIR= /usr/local/ssl | ||
| 12 | INSTALLTOP=/usr/local/ssl | ||
| 13 | MAKE= make -f Makefile.ssl | ||
| 14 | MAKEDEPPROG= makedepend | ||
| 15 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
| 16 | MAKEFILE= Makefile.ssl | ||
| 17 | AR= ar r | ||
| 18 | |||
| 19 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 20 | |||
| 21 | GENERAL=Makefile | ||
| 22 | TEST= dhtest.c | ||
| 23 | APPS= | ||
| 24 | |||
| 25 | LIB=$(TOP)/libcrypto.a | ||
| 26 | LIBSRC= dh_asn1.c dh_gen.c dh_key.c dh_lib.c dh_check.c dh_err.c | ||
| 27 | LIBOBJ= dh_asn1.o dh_gen.o dh_key.o dh_lib.o dh_check.o dh_err.o | ||
| 28 | |||
| 29 | SRC= $(LIBSRC) | ||
| 30 | |||
| 31 | EXHEADER= dh.h | ||
| 32 | HEADER= $(EXHEADER) | ||
| 33 | |||
| 34 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
| 35 | |||
| 36 | top: | ||
| 37 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
| 38 | |||
| 39 | all: lib | ||
| 40 | |||
| 41 | lib: $(LIBOBJ) | ||
| 42 | $(AR) $(LIB) $(LIBOBJ) | ||
| 43 | $(RANLIB) $(LIB) || echo Never mind. | ||
| 44 | @touch lib | ||
| 45 | |||
| 46 | files: | ||
| 47 | $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
| 48 | |||
| 49 | links: | ||
| 50 | @sh $(TOP)/util/point.sh Makefile.ssl Makefile | ||
| 51 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | ||
| 52 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | ||
| 53 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | ||
| 54 | |||
| 55 | install: | ||
| 56 | @for i in $(EXHEADER) ; \ | ||
| 57 | do \ | ||
| 58 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 59 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
| 60 | done; | ||
| 61 | |||
| 62 | tags: | ||
| 63 | ctags $(SRC) | ||
| 64 | |||
| 65 | tests: | ||
| 66 | |||
| 67 | lint: | ||
| 68 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
| 69 | |||
| 70 | depend: | ||
| 71 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) | ||
| 72 | |||
| 73 | dclean: | ||
| 74 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 75 | mv -f Makefile.new $(MAKEFILE) | ||
| 76 | |||
| 77 | clean: | ||
| 78 | rm -f *.o */*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
| 79 | |||
| 80 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 81 | |||
| 82 | dh_asn1.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 83 | dh_asn1.o: ../../include/openssl/asn1t.h ../../include/openssl/bio.h | ||
| 84 | dh_asn1.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 85 | dh_asn1.o: ../../include/openssl/crypto.h ../../include/openssl/dh.h | ||
| 86 | dh_asn1.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 87 | dh_asn1.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h | ||
| 88 | dh_asn1.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 89 | dh_asn1.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 90 | dh_asn1.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 91 | dh_asn1.o: ../../include/openssl/symhacks.h ../cryptlib.h dh_asn1.c | ||
| 92 | dh_check.o: ../../e_os.h ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 93 | dh_check.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 94 | dh_check.o: ../../include/openssl/dh.h ../../include/openssl/e_os2.h | ||
| 95 | dh_check.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
| 96 | dh_check.o: ../../include/openssl/opensslconf.h | ||
| 97 | dh_check.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 98 | dh_check.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 99 | dh_check.o: ../../include/openssl/symhacks.h ../cryptlib.h dh_check.c | ||
| 100 | dh_err.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 101 | dh_err.o: ../../include/openssl/crypto.h ../../include/openssl/dh.h | ||
| 102 | dh_err.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 103 | dh_err.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 104 | dh_err.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 105 | dh_err.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 106 | dh_err.o: ../../include/openssl/symhacks.h dh_err.c | ||
| 107 | dh_gen.o: ../../e_os.h ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 108 | dh_gen.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 109 | dh_gen.o: ../../include/openssl/dh.h ../../include/openssl/e_os2.h | ||
| 110 | dh_gen.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
| 111 | dh_gen.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 112 | dh_gen.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h | ||
| 113 | dh_gen.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 114 | dh_gen.o: ../cryptlib.h dh_gen.c | ||
| 115 | dh_key.o: ../../e_os.h ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 116 | dh_key.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 117 | dh_key.o: ../../include/openssl/dh.h ../../include/openssl/e_os2.h | ||
| 118 | dh_key.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
| 119 | dh_key.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 120 | dh_key.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h | ||
| 121 | dh_key.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 122 | dh_key.o: ../../include/openssl/symhacks.h ../cryptlib.h dh_key.c | ||
| 123 | dh_lib.o: ../../e_os.h ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 124 | dh_lib.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 125 | dh_lib.o: ../../include/openssl/crypto.h ../../include/openssl/dh.h | ||
| 126 | dh_lib.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 127 | dh_lib.o: ../../include/openssl/engine.h ../../include/openssl/err.h | ||
| 128 | dh_lib.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 129 | dh_lib.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 130 | dh_lib.o: ../../include/openssl/rand.h ../../include/openssl/rsa.h | ||
| 131 | dh_lib.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 132 | dh_lib.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 133 | dh_lib.o: ../cryptlib.h dh_lib.c | ||
diff --git a/src/lib/libcrypto/dsa/Makefile.ssl b/src/lib/libcrypto/dsa/Makefile.ssl deleted file mode 100644 index e5f8a8cf51..0000000000 --- a/src/lib/libcrypto/dsa/Makefile.ssl +++ /dev/null | |||
| @@ -1,171 +0,0 @@ | |||
| 1 | # | ||
| 2 | # SSLeay/crypto/dsa/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= dsa | ||
| 6 | TOP= ../.. | ||
| 7 | CC= cc | ||
| 8 | INCLUDES= -I.. -I$(TOP) -I../../include | ||
| 9 | CFLAG=-g | ||
| 10 | INSTALL_PREFIX= | ||
| 11 | OPENSSLDIR= /usr/local/ssl | ||
| 12 | INSTALLTOP=/usr/local/ssl | ||
| 13 | MAKE= make -f Makefile.ssl | ||
| 14 | MAKEDEPPROG= makedepend | ||
| 15 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
| 16 | MAKEFILE= Makefile.ssl | ||
| 17 | AR= ar r | ||
| 18 | |||
| 19 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 20 | |||
| 21 | GENERAL=Makefile | ||
| 22 | TEST=dsatest.c | ||
| 23 | APPS= | ||
| 24 | |||
| 25 | LIB=$(TOP)/libcrypto.a | ||
| 26 | LIBSRC= dsa_gen.c dsa_key.c dsa_lib.c dsa_asn1.c dsa_vrf.c dsa_sign.c \ | ||
| 27 | dsa_err.c dsa_ossl.c | ||
| 28 | LIBOBJ= dsa_gen.o dsa_key.o dsa_lib.o dsa_asn1.o dsa_vrf.o dsa_sign.o \ | ||
| 29 | dsa_err.o dsa_ossl.o | ||
| 30 | |||
| 31 | SRC= $(LIBSRC) | ||
| 32 | |||
| 33 | EXHEADER= dsa.h | ||
| 34 | HEADER= $(EXHEADER) | ||
| 35 | |||
| 36 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
| 37 | |||
| 38 | top: | ||
| 39 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
| 40 | |||
| 41 | all: lib | ||
| 42 | |||
| 43 | lib: $(LIBOBJ) | ||
| 44 | $(AR) $(LIB) $(LIBOBJ) | ||
| 45 | $(RANLIB) $(LIB) || echo Never mind. | ||
| 46 | @touch lib | ||
| 47 | |||
| 48 | files: | ||
| 49 | $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
| 50 | |||
| 51 | links: | ||
| 52 | @sh $(TOP)/util/point.sh Makefile.ssl Makefile | ||
| 53 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | ||
| 54 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | ||
| 55 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | ||
| 56 | |||
| 57 | install: | ||
| 58 | @for i in $(EXHEADER) ; \ | ||
| 59 | do \ | ||
| 60 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 61 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$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) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(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 | rm -f *.o */*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
| 81 | |||
| 82 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 83 | |||
| 84 | dsa_asn1.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 85 | dsa_asn1.o: ../../include/openssl/asn1t.h ../../include/openssl/bio.h | ||
| 86 | dsa_asn1.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 87 | dsa_asn1.o: ../../include/openssl/crypto.h ../../include/openssl/dh.h | ||
| 88 | dsa_asn1.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 89 | dsa_asn1.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
| 90 | dsa_asn1.o: ../../include/openssl/opensslconf.h | ||
| 91 | dsa_asn1.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 92 | dsa_asn1.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 93 | dsa_asn1.o: ../../include/openssl/symhacks.h ../cryptlib.h dsa_asn1.c | ||
| 94 | dsa_err.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 95 | dsa_err.o: ../../include/openssl/crypto.h ../../include/openssl/dh.h | ||
| 96 | dsa_err.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 97 | dsa_err.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
| 98 | dsa_err.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 99 | dsa_err.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h | ||
| 100 | dsa_err.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 101 | dsa_err.o: dsa_err.c | ||
| 102 | dsa_gen.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 103 | dsa_gen.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 104 | dsa_gen.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 105 | dsa_gen.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 106 | dsa_gen.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 107 | dsa_gen.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 108 | dsa_gen.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 109 | dsa_gen.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 110 | dsa_gen.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 111 | dsa_gen.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 112 | dsa_gen.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 113 | dsa_gen.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 114 | dsa_gen.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 115 | dsa_gen.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h | ||
| 116 | dsa_gen.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 117 | dsa_gen.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 118 | dsa_gen.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 119 | dsa_gen.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 120 | dsa_gen.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 121 | dsa_gen.o: ../../include/openssl/ui_compat.h ../cryptlib.h dsa_gen.c | ||
| 122 | dsa_key.o: ../../e_os.h ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 123 | dsa_key.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 124 | dsa_key.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 125 | dsa_key.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 126 | dsa_key.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 127 | dsa_key.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 128 | dsa_key.o: ../../include/openssl/rand.h ../../include/openssl/safestack.h | ||
| 129 | dsa_key.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 130 | dsa_key.o: ../cryptlib.h dsa_key.c | ||
| 131 | dsa_lib.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 132 | dsa_lib.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 133 | dsa_lib.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 134 | dsa_lib.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 135 | dsa_lib.o: ../../include/openssl/e_os2.h ../../include/openssl/engine.h | ||
| 136 | dsa_lib.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
| 137 | dsa_lib.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 138 | dsa_lib.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h | ||
| 139 | dsa_lib.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 140 | dsa_lib.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 141 | dsa_lib.o: ../../include/openssl/ui.h ../cryptlib.h dsa_lib.c | ||
| 142 | dsa_ossl.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 143 | dsa_ossl.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 144 | dsa_ossl.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 145 | dsa_ossl.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 146 | dsa_ossl.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 147 | dsa_ossl.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 148 | dsa_ossl.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 149 | dsa_ossl.o: ../../include/openssl/rand.h ../../include/openssl/safestack.h | ||
| 150 | dsa_ossl.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 151 | dsa_ossl.o: ../cryptlib.h dsa_ossl.c | ||
| 152 | dsa_sign.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 153 | dsa_sign.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 154 | dsa_sign.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 155 | dsa_sign.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 156 | dsa_sign.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 157 | dsa_sign.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 158 | dsa_sign.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 159 | dsa_sign.o: ../../include/openssl/rand.h ../../include/openssl/safestack.h | ||
| 160 | dsa_sign.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 161 | dsa_sign.o: ../cryptlib.h dsa_sign.c | ||
| 162 | dsa_vrf.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 163 | dsa_vrf.o: ../../include/openssl/asn1_mac.h ../../include/openssl/bio.h | ||
| 164 | dsa_vrf.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 165 | dsa_vrf.o: ../../include/openssl/crypto.h ../../include/openssl/dh.h | ||
| 166 | dsa_vrf.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 167 | dsa_vrf.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
| 168 | dsa_vrf.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 169 | dsa_vrf.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h | ||
| 170 | dsa_vrf.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 171 | dsa_vrf.o: ../../include/openssl/symhacks.h ../cryptlib.h dsa_vrf.c | ||
diff --git a/src/lib/libcrypto/dso/Makefile.ssl b/src/lib/libcrypto/dso/Makefile.ssl deleted file mode 100644 index c0449d184e..0000000000 --- a/src/lib/libcrypto/dso/Makefile.ssl +++ /dev/null | |||
| @@ -1,142 +0,0 @@ | |||
| 1 | # | ||
| 2 | # SSLeay/crypto/dso/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= dso | ||
| 6 | TOP= ../.. | ||
| 7 | CC= cc | ||
| 8 | INCLUDES= -I.. -I$(TOP) -I../../include | ||
| 9 | CFLAG=-g | ||
| 10 | INSTALL_PREFIX= | ||
| 11 | OPENSSLDIR= /usr/local/ssl | ||
| 12 | INSTALLTOP=/usr/local/ssl | ||
| 13 | MAKE= make -f Makefile.ssl | ||
| 14 | MAKEDEPPROG= makedepend | ||
| 15 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
| 16 | MAKEFILE= Makefile.ssl | ||
| 17 | AR= ar r | ||
| 18 | |||
| 19 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 20 | |||
| 21 | GENERAL=Makefile | ||
| 22 | TEST= | ||
| 23 | APPS= | ||
| 24 | |||
| 25 | LIB=$(TOP)/libcrypto.a | ||
| 26 | LIBSRC= dso_dl.c dso_dlfcn.c dso_err.c dso_lib.c dso_null.c \ | ||
| 27 | dso_openssl.c dso_win32.c dso_vms.c | ||
| 28 | LIBOBJ= dso_dl.o dso_dlfcn.o dso_err.o dso_lib.o dso_null.o \ | ||
| 29 | dso_openssl.o dso_win32.o dso_vms.o | ||
| 30 | |||
| 31 | SRC= $(LIBSRC) | ||
| 32 | |||
| 33 | EXHEADER= dso.h | ||
| 34 | HEADER= $(EXHEADER) | ||
| 35 | |||
| 36 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
| 37 | |||
| 38 | top: | ||
| 39 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
| 40 | |||
| 41 | all: lib | ||
| 42 | |||
| 43 | lib: $(LIBOBJ) | ||
| 44 | $(AR) $(LIB) $(LIBOBJ) | ||
| 45 | $(RANLIB) $(LIB) || echo Never mind. | ||
| 46 | @touch lib | ||
| 47 | |||
| 48 | files: | ||
| 49 | $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
| 50 | |||
| 51 | links: | ||
| 52 | @sh $(TOP)/util/point.sh Makefile.ssl Makefile | ||
| 53 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | ||
| 54 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | ||
| 55 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | ||
| 56 | |||
| 57 | install: | ||
| 58 | @for i in $(EXHEADER) ; \ | ||
| 59 | do \ | ||
| 60 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 61 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$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) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(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 | rm -f *.o */*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
| 81 | |||
| 82 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 83 | |||
| 84 | dso_dl.o: ../../e_os.h ../../include/openssl/bio.h | ||
| 85 | dso_dl.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 86 | dso_dl.o: ../../include/openssl/dso.h ../../include/openssl/e_os2.h | ||
| 87 | dso_dl.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
| 88 | dso_dl.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 89 | dso_dl.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 90 | dso_dl.o: ../../include/openssl/symhacks.h ../cryptlib.h dso_dl.c | ||
| 91 | dso_dlfcn.o: ../../e_os.h ../../include/openssl/bio.h | ||
| 92 | dso_dlfcn.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 93 | dso_dlfcn.o: ../../include/openssl/dso.h ../../include/openssl/e_os2.h | ||
| 94 | dso_dlfcn.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
| 95 | dso_dlfcn.o: ../../include/openssl/opensslconf.h | ||
| 96 | dso_dlfcn.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 97 | dso_dlfcn.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 98 | dso_dlfcn.o: ../cryptlib.h dso_dlfcn.c | ||
| 99 | dso_err.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h | ||
| 100 | dso_err.o: ../../include/openssl/dso.h ../../include/openssl/e_os2.h | ||
| 101 | dso_err.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
| 102 | dso_err.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 103 | dso_err.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 104 | dso_err.o: ../../include/openssl/symhacks.h dso_err.c | ||
| 105 | dso_lib.o: ../../e_os.h ../../include/openssl/bio.h | ||
| 106 | dso_lib.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 107 | dso_lib.o: ../../include/openssl/dso.h ../../include/openssl/e_os2.h | ||
| 108 | dso_lib.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
| 109 | dso_lib.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 110 | dso_lib.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 111 | dso_lib.o: ../../include/openssl/symhacks.h ../cryptlib.h dso_lib.c | ||
| 112 | dso_null.o: ../../e_os.h ../../include/openssl/bio.h | ||
| 113 | dso_null.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 114 | dso_null.o: ../../include/openssl/dso.h ../../include/openssl/e_os2.h | ||
| 115 | dso_null.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
| 116 | dso_null.o: ../../include/openssl/opensslconf.h | ||
| 117 | dso_null.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 118 | dso_null.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 119 | dso_null.o: ../cryptlib.h dso_null.c | ||
| 120 | dso_openssl.o: ../../e_os.h ../../include/openssl/bio.h | ||
| 121 | dso_openssl.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 122 | dso_openssl.o: ../../include/openssl/dso.h ../../include/openssl/e_os2.h | ||
| 123 | dso_openssl.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
| 124 | dso_openssl.o: ../../include/openssl/opensslconf.h | ||
| 125 | dso_openssl.o: ../../include/openssl/opensslv.h | ||
| 126 | dso_openssl.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 127 | dso_openssl.o: ../../include/openssl/symhacks.h ../cryptlib.h dso_openssl.c | ||
| 128 | dso_vms.o: ../../e_os.h ../../include/openssl/bio.h | ||
| 129 | dso_vms.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 130 | dso_vms.o: ../../include/openssl/dso.h ../../include/openssl/e_os2.h | ||
| 131 | dso_vms.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
| 132 | dso_vms.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 133 | dso_vms.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 134 | dso_vms.o: ../../include/openssl/symhacks.h ../cryptlib.h dso_vms.c | ||
| 135 | dso_win32.o: ../../e_os.h ../../include/openssl/bio.h | ||
| 136 | dso_win32.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 137 | dso_win32.o: ../../include/openssl/dso.h ../../include/openssl/e_os2.h | ||
| 138 | dso_win32.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
| 139 | dso_win32.o: ../../include/openssl/opensslconf.h | ||
| 140 | dso_win32.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 141 | dso_win32.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 142 | dso_win32.o: ../cryptlib.h dso_win32.c | ||
diff --git a/src/lib/libcrypto/dso/dso_beos.c b/src/lib/libcrypto/dso/dso_beos.c deleted file mode 100644 index 553966e699..0000000000 --- a/src/lib/libcrypto/dso/dso_beos.c +++ /dev/null | |||
| @@ -1,270 +0,0 @@ | |||
| 1 | /* dso_beos.c */ | ||
| 2 | /* Written by Marcin Konicki (ahwayakchih@neoni.net) for the OpenSSL | ||
| 3 | * project 2000. | ||
| 4 | */ | ||
| 5 | /* ==================================================================== | ||
| 6 | * Copyright (c) 2000 The OpenSSL Project. All rights reserved. | ||
| 7 | * | ||
| 8 | * Redistribution and use in source and binary forms, with or without | ||
| 9 | * modification, are permitted provided that the following conditions | ||
| 10 | * are met: | ||
| 11 | * | ||
| 12 | * 1. Redistributions of source code must retain the above copyright | ||
| 13 | * notice, this list of conditions and the following disclaimer. | ||
| 14 | * | ||
| 15 | * 2. Redistributions in binary form must reproduce the above copyright | ||
| 16 | * notice, this list of conditions and the following disclaimer in | ||
| 17 | * the documentation and/or other materials provided with the | ||
| 18 | * distribution. | ||
| 19 | * | ||
| 20 | * 3. All advertising materials mentioning features or use of this | ||
| 21 | * software must display the following acknowledgment: | ||
| 22 | * "This product includes software developed by the OpenSSL Project | ||
| 23 | * for use in the OpenSSL Toolkit. (http://www.OpenSSL.org/)" | ||
| 24 | * | ||
| 25 | * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to | ||
| 26 | * endorse or promote products derived from this software without | ||
| 27 | * prior written permission. For written permission, please contact | ||
| 28 | * licensing@OpenSSL.org. | ||
| 29 | * | ||
| 30 | * 5. Products derived from this software may not be called "OpenSSL" | ||
| 31 | * nor may "OpenSSL" appear in their names without prior written | ||
| 32 | * permission of the OpenSSL Project. | ||
| 33 | * | ||
| 34 | * 6. Redistributions of any form whatsoever must retain the following | ||
| 35 | * acknowledgment: | ||
| 36 | * "This product includes software developed by the OpenSSL Project | ||
| 37 | * for use in the OpenSSL Toolkit (http://www.OpenSSL.org/)" | ||
| 38 | * | ||
| 39 | * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY | ||
| 40 | * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
| 41 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | ||
| 42 | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR | ||
| 43 | * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
| 44 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | ||
| 45 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
| 46 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
| 47 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | ||
| 48 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
| 49 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | ||
| 50 | * OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| 51 | * ==================================================================== | ||
| 52 | * | ||
| 53 | * This product includes cryptographic software written by Eric Young | ||
| 54 | * (eay@cryptsoft.com). This product includes software written by Tim | ||
| 55 | * Hudson (tjh@cryptsoft.com). | ||
| 56 | * | ||
| 57 | */ | ||
| 58 | |||
| 59 | #include <stdio.h> | ||
| 60 | #include <string.h> | ||
| 61 | #include "cryptlib.h" | ||
| 62 | #include <openssl/dso.h> | ||
| 63 | |||
| 64 | #if !defined(OPENSSL_SYS_BEOS) | ||
| 65 | DSO_METHOD *DSO_METHOD_beos(void) | ||
| 66 | { | ||
| 67 | return NULL; | ||
| 68 | } | ||
| 69 | #else | ||
| 70 | |||
| 71 | #include <kernel/image.h> | ||
| 72 | |||
| 73 | static int beos_load(DSO *dso); | ||
| 74 | static int beos_unload(DSO *dso); | ||
| 75 | static void *beos_bind_var(DSO *dso, const char *symname); | ||
| 76 | static DSO_FUNC_TYPE beos_bind_func(DSO *dso, const char *symname); | ||
| 77 | #if 0 | ||
| 78 | static int beos_unbind_var(DSO *dso, char *symname, void *symptr); | ||
| 79 | static int beos_unbind_func(DSO *dso, char *symname, DSO_FUNC_TYPE symptr); | ||
| 80 | static int beos_init(DSO *dso); | ||
| 81 | static int beos_finish(DSO *dso); | ||
| 82 | static long beos_ctrl(DSO *dso, int cmd, long larg, void *parg); | ||
| 83 | #endif | ||
| 84 | static char *beos_name_converter(DSO *dso, const char *filename); | ||
| 85 | |||
| 86 | static DSO_METHOD dso_meth_beos = { | ||
| 87 | "OpenSSL 'beos' shared library method", | ||
| 88 | beos_load, | ||
| 89 | beos_unload, | ||
| 90 | beos_bind_var, | ||
| 91 | beos_bind_func, | ||
| 92 | /* For now, "unbind" doesn't exist */ | ||
| 93 | #if 0 | ||
| 94 | NULL, /* unbind_var */ | ||
| 95 | NULL, /* unbind_func */ | ||
| 96 | #endif | ||
| 97 | NULL, /* ctrl */ | ||
| 98 | beos_name_converter, | ||
| 99 | NULL, /* init */ | ||
| 100 | NULL /* finish */ | ||
| 101 | }; | ||
| 102 | |||
| 103 | DSO_METHOD *DSO_METHOD_beos(void) | ||
| 104 | { | ||
| 105 | return(&dso_meth_beos); | ||
| 106 | } | ||
| 107 | |||
| 108 | /* For this DSO_METHOD, our meth_data STACK will contain; | ||
| 109 | * (i) a pointer to the handle (image_id) returned from | ||
| 110 | * load_add_on(). | ||
| 111 | */ | ||
| 112 | |||
| 113 | static int beos_load(DSO *dso) | ||
| 114 | { | ||
| 115 | image_id id; | ||
| 116 | /* See applicable comments from dso_dl.c */ | ||
| 117 | char *filename = DSO_convert_filename(dso, NULL); | ||
| 118 | |||
| 119 | if(filename == NULL) | ||
| 120 | { | ||
| 121 | DSOerr(DSO_F_BEOS_LOAD,DSO_R_NO_FILENAME); | ||
| 122 | goto err; | ||
| 123 | } | ||
| 124 | id = load_add_on(filename); | ||
| 125 | if(id < 1) | ||
| 126 | { | ||
| 127 | DSOerr(DSO_F_BEOS_LOAD,DSO_R_LOAD_FAILED); | ||
| 128 | ERR_add_error_data(3, "filename(", filename, ")"); | ||
| 129 | goto err; | ||
| 130 | } | ||
| 131 | if(!sk_push(dso->meth_data, (char *)id)) | ||
| 132 | { | ||
| 133 | DSOerr(DSO_F_BEOS_LOAD,DSO_R_STACK_ERROR); | ||
| 134 | goto err; | ||
| 135 | } | ||
| 136 | /* Success */ | ||
| 137 | dso->loaded_filename = filename; | ||
| 138 | return(1); | ||
| 139 | err: | ||
| 140 | /* Cleanup !*/ | ||
| 141 | if(filename != NULL) | ||
| 142 | OPENSSL_free(filename); | ||
| 143 | if(id > 0) | ||
| 144 | unload_add_on(id); | ||
| 145 | return(0); | ||
| 146 | } | ||
| 147 | |||
| 148 | static int beos_unload(DSO *dso) | ||
| 149 | { | ||
| 150 | image_id id; | ||
| 151 | if(dso == NULL) | ||
| 152 | { | ||
| 153 | DSOerr(DSO_F_BEOS_UNLOAD,ERR_R_PASSED_NULL_PARAMETER); | ||
| 154 | return(0); | ||
| 155 | } | ||
| 156 | if(sk_num(dso->meth_data) < 1) | ||
| 157 | return(1); | ||
| 158 | id = (image_id)sk_pop(dso->meth_data); | ||
| 159 | if(id < 1) | ||
| 160 | { | ||
| 161 | DSOerr(DSO_F_BEOS_UNLOAD,DSO_R_NULL_HANDLE); | ||
| 162 | return(0); | ||
| 163 | } | ||
| 164 | if(unload_add_on(id) != B_OK) | ||
| 165 | { | ||
| 166 | DSOerr(DSO_F_BEOS_UNLOAD,DSO_R_UNLOAD_FAILED); | ||
| 167 | /* We should push the value back onto the stack in | ||
| 168 | * case of a retry. */ | ||
| 169 | sk_push(dso->meth_data, (char *)id); | ||
| 170 | return(0); | ||
| 171 | } | ||
| 172 | return(1); | ||
| 173 | } | ||
| 174 | |||
| 175 | static void *beos_bind_var(DSO *dso, const char *symname) | ||
| 176 | { | ||
| 177 | image_id id; | ||
| 178 | void *sym; | ||
| 179 | |||
| 180 | if((dso == NULL) || (symname == NULL)) | ||
| 181 | { | ||
| 182 | DSOerr(DSO_F_BEOS_BIND_VAR,ERR_R_PASSED_NULL_PARAMETER); | ||
| 183 | return(NULL); | ||
| 184 | } | ||
| 185 | if(sk_num(dso->meth_data) < 1) | ||
| 186 | { | ||
| 187 | DSOerr(DSO_F_BEOS_BIND_VAR,DSO_R_STACK_ERROR); | ||
| 188 | return(NULL); | ||
| 189 | } | ||
| 190 | id = (image_id)sk_value(dso->meth_data, sk_num(dso->meth_data) - 1); | ||
| 191 | if(id < 1) | ||
| 192 | { | ||
| 193 | DSOerr(DSO_F_BEOS_BIND_VAR,DSO_R_NULL_HANDLE); | ||
| 194 | return(NULL); | ||
| 195 | } | ||
| 196 | if(get_image_symbol(id, symname, B_SYMBOL_TYPE_DATA, &sym) != B_OK) | ||
| 197 | { | ||
| 198 | DSOerr(DSO_F_BEOS_BIND_VAR,DSO_R_SYM_FAILURE); | ||
| 199 | ERR_add_error_data(3, "symname(", symname, ")"); | ||
| 200 | return(NULL); | ||
| 201 | } | ||
| 202 | return(sym); | ||
| 203 | } | ||
| 204 | |||
| 205 | static DSO_FUNC_TYPE beos_bind_func(DSO *dso, const char *symname) | ||
| 206 | { | ||
| 207 | image_id id; | ||
| 208 | void *sym; | ||
| 209 | |||
| 210 | if((dso == NULL) || (symname == NULL)) | ||
| 211 | { | ||
| 212 | DSOerr(DSO_F_BEOS_BIND_FUNC,ERR_R_PASSED_NULL_PARAMETER); | ||
| 213 | return(NULL); | ||
| 214 | } | ||
| 215 | if(sk_num(dso->meth_data) < 1) | ||
| 216 | { | ||
| 217 | DSOerr(DSO_F_BEOS_BIND_FUNC,DSO_R_STACK_ERROR); | ||
| 218 | return(NULL); | ||
| 219 | } | ||
| 220 | id = (image_id)sk_value(dso->meth_data, sk_num(dso->meth_data) - 1); | ||
| 221 | if(id < 1) | ||
| 222 | { | ||
| 223 | DSOerr(DSO_F_BEOS_BIND_FUNC,DSO_R_NULL_HANDLE); | ||
| 224 | return(NULL); | ||
| 225 | } | ||
| 226 | if(get_image_symbol(id, symname, B_SYMBOL_TYPE_TEXT, &sym) != B_OK) | ||
| 227 | { | ||
| 228 | DSOerr(DSO_F_BEOS_BIND_FUNC,DSO_R_SYM_FAILURE); | ||
| 229 | ERR_add_error_data(3, "symname(", symname, ")"); | ||
| 230 | return(NULL); | ||
| 231 | } | ||
| 232 | return((DSO_FUNC_TYPE)sym); | ||
| 233 | } | ||
| 234 | |||
| 235 | /* This one is the same as the one in dlfcn */ | ||
| 236 | static char *beos_name_converter(DSO *dso, const char *filename) | ||
| 237 | { | ||
| 238 | char *translated; | ||
| 239 | int len, rsize, transform; | ||
| 240 | |||
| 241 | len = strlen(filename); | ||
| 242 | rsize = len + 1; | ||
| 243 | transform = (strstr(filename, "/") == NULL); | ||
| 244 | if(transform) | ||
| 245 | { | ||
| 246 | /* We will convert this to "%s.so" or "lib%s.so" */ | ||
| 247 | rsize += 3; /* The length of ".so" */ | ||
| 248 | if ((DSO_flags(dso) & DSO_FLAG_NAME_TRANSLATION_EXT_ONLY) == 0) | ||
| 249 | rsize += 3; /* The length of "lib" */ | ||
| 250 | } | ||
| 251 | translated = OPENSSL_malloc(rsize); | ||
| 252 | if(translated == NULL) | ||
| 253 | { | ||
| 254 | DSOerr(DSO_F_BEOS_NAME_CONVERTER, | ||
| 255 | DSO_R_NAME_TRANSLATION_FAILED); | ||
| 256 | return(NULL); | ||
| 257 | } | ||
| 258 | if(transform) | ||
| 259 | { | ||
| 260 | if ((DSO_flags(dso) & DSO_FLAG_NAME_TRANSLATION_EXT_ONLY) == 0) | ||
| 261 | sprintf(translated, "lib%s.so", filename); | ||
| 262 | else | ||
| 263 | sprintf(translated, "%s.so", filename); | ||
| 264 | } | ||
| 265 | else | ||
| 266 | sprintf(translated, "%s", filename); | ||
| 267 | return(translated); | ||
| 268 | } | ||
| 269 | |||
| 270 | #endif | ||
diff --git a/src/lib/libcrypto/ec/Makefile.ssl b/src/lib/libcrypto/ec/Makefile.ssl deleted file mode 100644 index a2805c47a2..0000000000 --- a/src/lib/libcrypto/ec/Makefile.ssl +++ /dev/null | |||
| @@ -1,128 +0,0 @@ | |||
| 1 | # | ||
| 2 | # crypto/ec/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= ec | ||
| 6 | TOP= ../.. | ||
| 7 | CC= cc | ||
| 8 | INCLUDES= -I.. -I$(TOP) -I../../include | ||
| 9 | CFLAG=-g | ||
| 10 | INSTALL_PREFIX= | ||
| 11 | OPENSSLDIR= /usr/local/ssl | ||
| 12 | INSTALLTOP=/usr/local/ssl | ||
| 13 | MAKE= make -f Makefile.ssl | ||
| 14 | MAKEDEPPROG= makedepend | ||
| 15 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
| 16 | MAKEFILE= Makefile.ssl | ||
| 17 | AR= ar r | ||
| 18 | |||
| 19 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 20 | |||
| 21 | GENERAL=Makefile | ||
| 22 | TEST=ectest.c | ||
| 23 | APPS= | ||
| 24 | |||
| 25 | LIB=$(TOP)/libcrypto.a | ||
| 26 | LIBSRC= ec_lib.c ecp_smpl.c ecp_mont.c ecp_recp.c ecp_nist.c ec_cvt.c ec_mult.c \ | ||
| 27 | ec_err.c | ||
| 28 | |||
| 29 | LIBOBJ= ec_lib.o ecp_smpl.o ecp_mont.o ecp_recp.o ecp_nist.o ec_cvt.o ec_mult.o \ | ||
| 30 | ec_err.o | ||
| 31 | |||
| 32 | SRC= $(LIBSRC) | ||
| 33 | |||
| 34 | EXHEADER= ec.h | ||
| 35 | HEADER= ec_lcl.h $(EXHEADER) | ||
| 36 | |||
| 37 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
| 38 | |||
| 39 | top: | ||
| 40 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
| 41 | |||
| 42 | all: lib | ||
| 43 | |||
| 44 | lib: $(LIBOBJ) | ||
| 45 | $(AR) $(LIB) $(LIBOBJ) | ||
| 46 | $(RANLIB) $(LIB) || echo Never mind. | ||
| 47 | @touch lib | ||
| 48 | |||
| 49 | files: | ||
| 50 | $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
| 51 | |||
| 52 | links: | ||
| 53 | @sh $(TOP)/util/point.sh Makefile.ssl Makefile | ||
| 54 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | ||
| 55 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | ||
| 56 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | ||
| 57 | |||
| 58 | install: | ||
| 59 | @for i in $(EXHEADER) ; \ | ||
| 60 | do \ | ||
| 61 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 62 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
| 63 | done; | ||
| 64 | |||
| 65 | tags: | ||
| 66 | ctags $(SRC) | ||
| 67 | |||
| 68 | tests: | ||
| 69 | |||
| 70 | lint: | ||
| 71 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
| 72 | |||
| 73 | depend: | ||
| 74 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) | ||
| 75 | |||
| 76 | dclean: | ||
| 77 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 78 | mv -f Makefile.new $(MAKEFILE) | ||
| 79 | |||
| 80 | clean: | ||
| 81 | rm -f *.o */*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
| 82 | |||
| 83 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 84 | |||
| 85 | ec_cvt.o: ../../include/openssl/bn.h ../../include/openssl/e_os2.h | ||
| 86 | ec_cvt.o: ../../include/openssl/ec.h ../../include/openssl/opensslconf.h | ||
| 87 | ec_cvt.o: ../../include/openssl/symhacks.h ec_cvt.c ec_lcl.h | ||
| 88 | ec_err.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 89 | ec_err.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 90 | ec_err.o: ../../include/openssl/ec.h ../../include/openssl/err.h | ||
| 91 | ec_err.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 92 | ec_err.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 93 | ec_err.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 94 | ec_err.o: ec_err.c | ||
| 95 | ec_lib.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 96 | ec_lib.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 97 | ec_lib.o: ../../include/openssl/ec.h ../../include/openssl/err.h | ||
| 98 | ec_lib.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 99 | ec_lib.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 100 | ec_lib.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 101 | ec_lib.o: ec_lcl.h ec_lib.c | ||
| 102 | ec_mult.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 103 | ec_mult.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 104 | ec_mult.o: ../../include/openssl/ec.h ../../include/openssl/err.h | ||
| 105 | ec_mult.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 106 | ec_mult.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 107 | ec_mult.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 108 | ec_mult.o: ec_lcl.h ec_mult.c | ||
| 109 | ecp_mont.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 110 | ecp_mont.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 111 | ecp_mont.o: ../../include/openssl/ec.h ../../include/openssl/err.h | ||
| 112 | ecp_mont.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 113 | ecp_mont.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 114 | ecp_mont.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 115 | ecp_mont.o: ec_lcl.h ecp_mont.c | ||
| 116 | ecp_nist.o: ../../include/openssl/bn.h ../../include/openssl/e_os2.h | ||
| 117 | ecp_nist.o: ../../include/openssl/ec.h ../../include/openssl/opensslconf.h | ||
| 118 | ecp_nist.o: ../../include/openssl/symhacks.h ec_lcl.h ecp_nist.c | ||
| 119 | ecp_recp.o: ../../include/openssl/bn.h ../../include/openssl/e_os2.h | ||
| 120 | ecp_recp.o: ../../include/openssl/ec.h ../../include/openssl/opensslconf.h | ||
| 121 | ecp_recp.o: ../../include/openssl/symhacks.h ec_lcl.h ecp_recp.c | ||
| 122 | ecp_smpl.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 123 | ecp_smpl.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 124 | ecp_smpl.o: ../../include/openssl/ec.h ../../include/openssl/err.h | ||
| 125 | ecp_smpl.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 126 | ecp_smpl.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 127 | ecp_smpl.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 128 | ecp_smpl.o: ec_lcl.h ecp_smpl.c | ||
diff --git a/src/lib/libcrypto/ecdh/Makefile b/src/lib/libcrypto/ecdh/Makefile deleted file mode 100644 index ba05fea05c..0000000000 --- a/src/lib/libcrypto/ecdh/Makefile +++ /dev/null | |||
| @@ -1,116 +0,0 @@ | |||
| 1 | # | ||
| 2 | # crypto/ecdh/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= ecdh | ||
| 6 | TOP= ../.. | ||
| 7 | CC= cc | ||
| 8 | INCLUDES= -I.. -I$(TOP) -I../../include | ||
| 9 | CFLAG=-g -Wall | ||
| 10 | MAKEFILE= Makefile | ||
| 11 | AR= ar r | ||
| 12 | |||
| 13 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 14 | |||
| 15 | GENERAL=Makefile | ||
| 16 | TEST=ecdhtest.c | ||
| 17 | APPS= | ||
| 18 | |||
| 19 | LIB=$(TOP)/libcrypto.a | ||
| 20 | LIBSRC= ech_lib.c ech_ossl.c ech_key.c ech_err.c | ||
| 21 | |||
| 22 | LIBOBJ= ech_lib.o ech_ossl.o ech_key.o ech_err.o | ||
| 23 | |||
| 24 | SRC= $(LIBSRC) | ||
| 25 | |||
| 26 | EXHEADER= ecdh.h | ||
| 27 | HEADER= ech_locl.h $(EXHEADER) | ||
| 28 | |||
| 29 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
| 30 | |||
| 31 | top: | ||
| 32 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
| 33 | |||
| 34 | all: lib | ||
| 35 | |||
| 36 | lib: $(LIBOBJ) | ||
| 37 | $(AR) $(LIB) $(LIBOBJ) | ||
| 38 | $(RANLIB) $(LIB) || echo Never mind. | ||
| 39 | @touch lib | ||
| 40 | |||
| 41 | files: | ||
| 42 | $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO | ||
| 43 | |||
| 44 | links: | ||
| 45 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | ||
| 46 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | ||
| 47 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | ||
| 48 | |||
| 49 | install: | ||
| 50 | @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile... | ||
| 51 | @headerlist="$(EXHEADER)"; for i in $$headerlist; \ | ||
| 52 | do \ | ||
| 53 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 54 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
| 55 | done; | ||
| 56 | |||
| 57 | tags: | ||
| 58 | ctags $(SRC) | ||
| 59 | |||
| 60 | tests: | ||
| 61 | |||
| 62 | lint: | ||
| 63 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
| 64 | |||
| 65 | depend: | ||
| 66 | @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile... | ||
| 67 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) | ||
| 68 | |||
| 69 | dclean: | ||
| 70 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 71 | mv -f Makefile.new $(MAKEFILE) | ||
| 72 | |||
| 73 | clean: | ||
| 74 | rm -f *.o */*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
| 75 | |||
| 76 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 77 | |||
| 78 | ech_err.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 79 | ech_err.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 80 | ech_err.o: ../../include/openssl/ec.h ../../include/openssl/ecdh.h | ||
| 81 | ech_err.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
| 82 | ech_err.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 83 | ech_err.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h | ||
| 84 | ech_err.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 85 | ech_err.o: ech_err.c | ||
| 86 | ech_key.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 87 | ech_key.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 88 | ech_key.o: ../../include/openssl/ec.h ../../include/openssl/ecdh.h | ||
| 89 | ech_key.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 90 | ech_key.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h | ||
| 91 | ech_key.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 92 | ech_key.o: ech_key.c ech_locl.h | ||
| 93 | ech_lib.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 94 | ech_lib.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 95 | ech_lib.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h | ||
| 96 | ech_lib.o: ../../include/openssl/ecdh.h ../../include/openssl/ecdsa.h | ||
| 97 | ech_lib.o: ../../include/openssl/engine.h ../../include/openssl/err.h | ||
| 98 | ech_lib.o: ../../include/openssl/evp.h ../../include/openssl/lhash.h | ||
| 99 | ech_lib.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 100 | ech_lib.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 101 | ech_lib.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs7.h | ||
| 102 | ech_lib.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 103 | ech_lib.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 104 | ech_lib.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 105 | ech_lib.o: ech_lib.c ech_locl.h | ||
| 106 | ech_ossl.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 107 | ech_ossl.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 108 | ech_ossl.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 109 | ech_ossl.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h | ||
| 110 | ech_ossl.o: ../../include/openssl/ecdh.h ../../include/openssl/err.h | ||
| 111 | ech_ossl.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h | ||
| 112 | ech_ossl.o: ../../include/openssl/opensslconf.h | ||
| 113 | ech_ossl.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 114 | ech_ossl.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 115 | ech_ossl.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 116 | ech_ossl.o: ../cryptlib.h ech_locl.h ech_ossl.c | ||
diff --git a/src/lib/libcrypto/ecdh/ecdhtest.c b/src/lib/libcrypto/ecdh/ecdhtest.c deleted file mode 100644 index 823d7baa65..0000000000 --- a/src/lib/libcrypto/ecdh/ecdhtest.c +++ /dev/null | |||
| @@ -1,374 +0,0 @@ | |||
| 1 | /* crypto/ecdh/ecdhtest.c */ | ||
| 2 | /* ==================================================================== | ||
| 3 | * Copyright 2002 Sun Microsystems, Inc. ALL RIGHTS RESERVED. | ||
| 4 | * | ||
| 5 | * The Elliptic Curve Public-Key Crypto Library (ECC Code) included | ||
| 6 | * herein is developed by SUN MICROSYSTEMS, INC., and is contributed | ||
| 7 | * to the OpenSSL project. | ||
| 8 | * | ||
| 9 | * The ECC Code is licensed pursuant to the OpenSSL open source | ||
| 10 | * license provided below. | ||
| 11 | * | ||
| 12 | * The ECDH software is originally written by Douglas Stebila of | ||
| 13 | * Sun Microsystems Laboratories. | ||
| 14 | * | ||
| 15 | */ | ||
| 16 | /* ==================================================================== | ||
| 17 | * Copyright (c) 1998-2003 The OpenSSL Project. All rights reserved. | ||
| 18 | * | ||
| 19 | * Redistribution and use in source and binary forms, with or without | ||
| 20 | * modification, are permitted provided that the following conditions | ||
| 21 | * are met: | ||
| 22 | * | ||
| 23 | * 1. Redistributions of source code must retain the above copyright | ||
| 24 | * notice, this list of conditions and the following disclaimer. | ||
| 25 | * | ||
| 26 | * 2. Redistributions in binary form must reproduce the above copyright | ||
| 27 | * notice, this list of conditions and the following disclaimer in | ||
| 28 | * the documentation and/or other materials provided with the | ||
| 29 | * distribution. | ||
| 30 | * | ||
| 31 | * 3. All advertising materials mentioning features or use of this | ||
| 32 | * software must display the following acknowledgment: | ||
| 33 | * "This product includes software developed by the OpenSSL Project | ||
| 34 | * for use in the OpenSSL Toolkit. (http://www.openssl.org/)" | ||
| 35 | * | ||
| 36 | * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to | ||
| 37 | * endorse or promote products derived from this software without | ||
| 38 | * prior written permission. For written permission, please contact | ||
| 39 | * openssl-core@openssl.org. | ||
| 40 | * | ||
| 41 | * 5. Products derived from this software may not be called "OpenSSL" | ||
| 42 | * nor may "OpenSSL" appear in their names without prior written | ||
| 43 | * permission of the OpenSSL Project. | ||
| 44 | * | ||
| 45 | * 6. Redistributions of any form whatsoever must retain the following | ||
| 46 | * acknowledgment: | ||
| 47 | * "This product includes software developed by the OpenSSL Project | ||
| 48 | * for use in the OpenSSL Toolkit (http://www.openssl.org/)" | ||
| 49 | * | ||
| 50 | * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY | ||
| 51 | * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
| 52 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | ||
| 53 | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR | ||
| 54 | * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
| 55 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | ||
| 56 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
| 57 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
| 58 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | ||
| 59 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
| 60 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | ||
| 61 | * OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| 62 | * ==================================================================== | ||
| 63 | * | ||
| 64 | * This product includes cryptographic software written by Eric Young | ||
| 65 | * (eay@cryptsoft.com). This product includes software written by Tim | ||
| 66 | * Hudson (tjh@cryptsoft.com). | ||
| 67 | * | ||
| 68 | */ | ||
| 69 | |||
| 70 | #include <stdio.h> | ||
| 71 | #include <stdlib.h> | ||
| 72 | #include <string.h> | ||
| 73 | |||
| 74 | #include "../e_os.h" | ||
| 75 | |||
| 76 | #include <openssl/opensslconf.h> /* for OPENSSL_NO_ECDH */ | ||
| 77 | #include <openssl/crypto.h> | ||
| 78 | #include <openssl/bio.h> | ||
| 79 | #include <openssl/bn.h> | ||
| 80 | #include <openssl/objects.h> | ||
| 81 | #include <openssl/rand.h> | ||
| 82 | #include <openssl/sha.h> | ||
| 83 | #include <openssl/err.h> | ||
| 84 | |||
| 85 | #ifdef OPENSSL_NO_ECDH | ||
| 86 | int main(int argc, char *argv[]) | ||
| 87 | { | ||
| 88 | printf("No ECDH support\n"); | ||
| 89 | return(0); | ||
| 90 | } | ||
| 91 | #else | ||
| 92 | #include <openssl/ec.h> | ||
| 93 | #include <openssl/ecdh.h> | ||
| 94 | |||
| 95 | #ifdef OPENSSL_SYS_WIN16 | ||
| 96 | #define MS_CALLBACK _far _loadds | ||
| 97 | #else | ||
| 98 | #define MS_CALLBACK | ||
| 99 | #endif | ||
| 100 | |||
| 101 | #if 0 | ||
| 102 | static void MS_CALLBACK cb(int p, int n, void *arg); | ||
| 103 | #endif | ||
| 104 | |||
| 105 | static const char rnd_seed[] = "string to make the random number generator think it has entropy"; | ||
| 106 | |||
| 107 | |||
| 108 | static const int KDF1_SHA1_len = 20; | ||
| 109 | static void *KDF1_SHA1(const void *in, size_t inlen, void *out, size_t *outlen) | ||
| 110 | { | ||
| 111 | #ifndef OPENSSL_NO_SHA | ||
| 112 | if (*outlen < SHA_DIGEST_LENGTH) | ||
| 113 | return NULL; | ||
| 114 | else | ||
| 115 | *outlen = SHA_DIGEST_LENGTH; | ||
| 116 | return SHA1(in, inlen, out); | ||
| 117 | #else | ||
| 118 | return NULL; | ||
| 119 | #endif | ||
| 120 | } | ||
| 121 | |||
| 122 | |||
| 123 | static int test_ecdh_curve(int nid, const char *text, BN_CTX *ctx, BIO *out) | ||
| 124 | { | ||
| 125 | EC_KEY *a=NULL; | ||
| 126 | EC_KEY *b=NULL; | ||
| 127 | BIGNUM *x_a=NULL, *y_a=NULL, | ||
| 128 | *x_b=NULL, *y_b=NULL; | ||
| 129 | char buf[12]; | ||
| 130 | unsigned char *abuf=NULL,*bbuf=NULL; | ||
| 131 | int i,alen,blen,aout,bout,ret=0; | ||
| 132 | const EC_GROUP *group; | ||
| 133 | |||
| 134 | a = EC_KEY_new_by_curve_name(nid); | ||
| 135 | b = EC_KEY_new_by_curve_name(nid); | ||
| 136 | if (a == NULL || b == NULL) | ||
| 137 | goto err; | ||
| 138 | |||
| 139 | group = EC_KEY_get0_group(a); | ||
| 140 | |||
| 141 | if ((x_a=BN_new()) == NULL) goto err; | ||
| 142 | if ((y_a=BN_new()) == NULL) goto err; | ||
| 143 | if ((x_b=BN_new()) == NULL) goto err; | ||
| 144 | if ((y_b=BN_new()) == NULL) goto err; | ||
| 145 | |||
| 146 | BIO_puts(out,"Testing key generation with "); | ||
| 147 | BIO_puts(out,text); | ||
| 148 | #ifdef NOISY | ||
| 149 | BIO_puts(out,"\n"); | ||
| 150 | #else | ||
| 151 | (void)BIO_flush(out); | ||
| 152 | #endif | ||
| 153 | |||
| 154 | if (!EC_KEY_generate_key(a)) goto err; | ||
| 155 | |||
| 156 | if (EC_METHOD_get_field_type(EC_GROUP_method_of(group)) == NID_X9_62_prime_field) | ||
| 157 | { | ||
| 158 | if (!EC_POINT_get_affine_coordinates_GFp(group, | ||
| 159 | EC_KEY_get0_public_key(a), x_a, y_a, ctx)) goto err; | ||
| 160 | } | ||
| 161 | #ifndef OPENSSL_NO_EC2M | ||
| 162 | else | ||
| 163 | { | ||
| 164 | if (!EC_POINT_get_affine_coordinates_GF2m(group, | ||
| 165 | EC_KEY_get0_public_key(a), x_a, y_a, ctx)) goto err; | ||
| 166 | } | ||
| 167 | #endif | ||
| 168 | #ifdef NOISY | ||
| 169 | BIO_puts(out," pri 1="); | ||
| 170 | BN_print(out,a->priv_key); | ||
| 171 | BIO_puts(out,"\n pub 1="); | ||
| 172 | BN_print(out,x_a); | ||
| 173 | BIO_puts(out,","); | ||
| 174 | BN_print(out,y_a); | ||
| 175 | BIO_puts(out,"\n"); | ||
| 176 | #else | ||
| 177 | BIO_printf(out," ."); | ||
| 178 | (void)BIO_flush(out); | ||
| 179 | #endif | ||
| 180 | |||
| 181 | if (!EC_KEY_generate_key(b)) goto err; | ||
| 182 | |||
| 183 | if (EC_METHOD_get_field_type(EC_GROUP_method_of(group)) == NID_X9_62_prime_field) | ||
| 184 | { | ||
| 185 | if (!EC_POINT_get_affine_coordinates_GFp(group, | ||
| 186 | EC_KEY_get0_public_key(b), x_b, y_b, ctx)) goto err; | ||
| 187 | } | ||
| 188 | #ifndef OPENSSL_NO_EC2M | ||
| 189 | else | ||
| 190 | { | ||
| 191 | if (!EC_POINT_get_affine_coordinates_GF2m(group, | ||
| 192 | EC_KEY_get0_public_key(b), x_b, y_b, ctx)) goto err; | ||
| 193 | } | ||
| 194 | #endif | ||
| 195 | |||
| 196 | #ifdef NOISY | ||
| 197 | BIO_puts(out," pri 2="); | ||
| 198 | BN_print(out,b->priv_key); | ||
| 199 | BIO_puts(out,"\n pub 2="); | ||
| 200 | BN_print(out,x_b); | ||
| 201 | BIO_puts(out,","); | ||
| 202 | BN_print(out,y_b); | ||
| 203 | BIO_puts(out,"\n"); | ||
| 204 | #else | ||
| 205 | BIO_printf(out,"."); | ||
| 206 | (void)BIO_flush(out); | ||
| 207 | #endif | ||
| 208 | |||
| 209 | alen=KDF1_SHA1_len; | ||
| 210 | abuf=(unsigned char *)OPENSSL_malloc(alen); | ||
| 211 | aout=ECDH_compute_key(abuf,alen,EC_KEY_get0_public_key(b),a,KDF1_SHA1); | ||
| 212 | |||
| 213 | #ifdef NOISY | ||
| 214 | BIO_puts(out," key1 ="); | ||
| 215 | for (i=0; i<aout; i++) | ||
| 216 | { | ||
| 217 | sprintf(buf,"%02X",abuf[i]); | ||
| 218 | BIO_puts(out,buf); | ||
| 219 | } | ||
| 220 | BIO_puts(out,"\n"); | ||
| 221 | #else | ||
| 222 | BIO_printf(out,"."); | ||
| 223 | (void)BIO_flush(out); | ||
| 224 | #endif | ||
| 225 | |||
| 226 | blen=KDF1_SHA1_len; | ||
| 227 | bbuf=(unsigned char *)OPENSSL_malloc(blen); | ||
| 228 | bout=ECDH_compute_key(bbuf,blen,EC_KEY_get0_public_key(a),b,KDF1_SHA1); | ||
| 229 | |||
| 230 | #ifdef NOISY | ||
| 231 | BIO_puts(out," key2 ="); | ||
| 232 | for (i=0; i<bout; i++) | ||
| 233 | { | ||
| 234 | sprintf(buf,"%02X",bbuf[i]); | ||
| 235 | BIO_puts(out,buf); | ||
| 236 | } | ||
| 237 | BIO_puts(out,"\n"); | ||
| 238 | #else | ||
| 239 | BIO_printf(out,"."); | ||
| 240 | (void)BIO_flush(out); | ||
| 241 | #endif | ||
| 242 | |||
| 243 | if ((aout < 4) || (bout != aout) || (memcmp(abuf,bbuf,aout) != 0)) | ||
| 244 | { | ||
| 245 | #ifndef NOISY | ||
| 246 | BIO_printf(out, " failed\n\n"); | ||
| 247 | BIO_printf(out, "key a:\n"); | ||
| 248 | BIO_printf(out, "private key: "); | ||
| 249 | BN_print(out, EC_KEY_get0_private_key(a)); | ||
| 250 | BIO_printf(out, "\n"); | ||
| 251 | BIO_printf(out, "public key (x,y): "); | ||
| 252 | BN_print(out, x_a); | ||
| 253 | BIO_printf(out, ","); | ||
| 254 | BN_print(out, y_a); | ||
| 255 | BIO_printf(out, "\nkey b:\n"); | ||
| 256 | BIO_printf(out, "private key: "); | ||
| 257 | BN_print(out, EC_KEY_get0_private_key(b)); | ||
| 258 | BIO_printf(out, "\n"); | ||
| 259 | BIO_printf(out, "public key (x,y): "); | ||
| 260 | BN_print(out, x_b); | ||
| 261 | BIO_printf(out, ","); | ||
| 262 | BN_print(out, y_b); | ||
| 263 | BIO_printf(out, "\n"); | ||
| 264 | BIO_printf(out, "generated key a: "); | ||
| 265 | for (i=0; i<bout; i++) | ||
| 266 | { | ||
| 267 | sprintf(buf, "%02X", bbuf[i]); | ||
| 268 | BIO_puts(out, buf); | ||
| 269 | } | ||
| 270 | BIO_printf(out, "\n"); | ||
| 271 | BIO_printf(out, "generated key b: "); | ||
| 272 | for (i=0; i<aout; i++) | ||
| 273 | { | ||
| 274 | sprintf(buf, "%02X", abuf[i]); | ||
| 275 | BIO_puts(out,buf); | ||
| 276 | } | ||
| 277 | BIO_printf(out, "\n"); | ||
| 278 | #endif | ||
| 279 | fprintf(stderr,"Error in ECDH routines\n"); | ||
| 280 | ret=0; | ||
| 281 | } | ||
| 282 | else | ||
| 283 | { | ||
| 284 | #ifndef NOISY | ||
| 285 | BIO_printf(out, " ok\n"); | ||
| 286 | #endif | ||
| 287 | ret=1; | ||
| 288 | } | ||
| 289 | err: | ||
| 290 | ERR_print_errors_fp(stderr); | ||
| 291 | |||
| 292 | if (abuf != NULL) OPENSSL_free(abuf); | ||
| 293 | if (bbuf != NULL) OPENSSL_free(bbuf); | ||
| 294 | if (x_a) BN_free(x_a); | ||
| 295 | if (y_a) BN_free(y_a); | ||
| 296 | if (x_b) BN_free(x_b); | ||
| 297 | if (y_b) BN_free(y_b); | ||
| 298 | if (b) EC_KEY_free(b); | ||
| 299 | if (a) EC_KEY_free(a); | ||
| 300 | return(ret); | ||
| 301 | } | ||
| 302 | |||
| 303 | int main(int argc, char *argv[]) | ||
| 304 | { | ||
| 305 | BN_CTX *ctx=NULL; | ||
| 306 | int ret=1; | ||
| 307 | BIO *out; | ||
| 308 | |||
| 309 | CRYPTO_malloc_debug_init(); | ||
| 310 | CRYPTO_dbg_set_options(V_CRYPTO_MDEBUG_ALL); | ||
| 311 | CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_ON); | ||
| 312 | |||
| 313 | #ifdef OPENSSL_SYS_WIN32 | ||
| 314 | CRYPTO_malloc_init(); | ||
| 315 | #endif | ||
| 316 | |||
| 317 | RAND_seed(rnd_seed, sizeof rnd_seed); | ||
| 318 | |||
| 319 | out=BIO_new(BIO_s_file()); | ||
| 320 | if (out == NULL) EXIT(1); | ||
| 321 | BIO_set_fp(out,stdout,BIO_NOCLOSE); | ||
| 322 | |||
| 323 | if ((ctx=BN_CTX_new()) == NULL) goto err; | ||
| 324 | |||
| 325 | /* NIST PRIME CURVES TESTS */ | ||
| 326 | if (!test_ecdh_curve(NID_X9_62_prime192v1, "NIST Prime-Curve P-192", ctx, out)) goto err; | ||
| 327 | if (!test_ecdh_curve(NID_secp224r1, "NIST Prime-Curve P-224", ctx, out)) goto err; | ||
| 328 | if (!test_ecdh_curve(NID_X9_62_prime256v1, "NIST Prime-Curve P-256", ctx, out)) goto err; | ||
| 329 | if (!test_ecdh_curve(NID_secp384r1, "NIST Prime-Curve P-384", ctx, out)) goto err; | ||
| 330 | if (!test_ecdh_curve(NID_secp521r1, "NIST Prime-Curve P-521", ctx, out)) goto err; | ||
| 331 | #ifndef OPENSSL_NO_EC2M | ||
| 332 | /* NIST BINARY CURVES TESTS */ | ||
| 333 | if (!test_ecdh_curve(NID_sect163k1, "NIST Binary-Curve K-163", ctx, out)) goto err; | ||
| 334 | if (!test_ecdh_curve(NID_sect163r2, "NIST Binary-Curve B-163", ctx, out)) goto err; | ||
| 335 | if (!test_ecdh_curve(NID_sect233k1, "NIST Binary-Curve K-233", ctx, out)) goto err; | ||
| 336 | if (!test_ecdh_curve(NID_sect233r1, "NIST Binary-Curve B-233", ctx, out)) goto err; | ||
| 337 | if (!test_ecdh_curve(NID_sect283k1, "NIST Binary-Curve K-283", ctx, out)) goto err; | ||
| 338 | if (!test_ecdh_curve(NID_sect283r1, "NIST Binary-Curve B-283", ctx, out)) goto err; | ||
| 339 | if (!test_ecdh_curve(NID_sect409k1, "NIST Binary-Curve K-409", ctx, out)) goto err; | ||
| 340 | if (!test_ecdh_curve(NID_sect409r1, "NIST Binary-Curve B-409", ctx, out)) goto err; | ||
| 341 | if (!test_ecdh_curve(NID_sect571k1, "NIST Binary-Curve K-571", ctx, out)) goto err; | ||
| 342 | if (!test_ecdh_curve(NID_sect571r1, "NIST Binary-Curve B-571", ctx, out)) goto err; | ||
| 343 | #endif | ||
| 344 | |||
| 345 | ret = 0; | ||
| 346 | |||
| 347 | err: | ||
| 348 | ERR_print_errors_fp(stderr); | ||
| 349 | if (ctx) BN_CTX_free(ctx); | ||
| 350 | BIO_free(out); | ||
| 351 | CRYPTO_cleanup_all_ex_data(); | ||
| 352 | ERR_remove_thread_state(NULL); | ||
| 353 | CRYPTO_mem_leaks_fp(stderr); | ||
| 354 | EXIT(ret); | ||
| 355 | return(ret); | ||
| 356 | } | ||
| 357 | |||
| 358 | #if 0 | ||
| 359 | static void MS_CALLBACK cb(int p, int n, void *arg) | ||
| 360 | { | ||
| 361 | char c='*'; | ||
| 362 | |||
| 363 | if (p == 0) c='.'; | ||
| 364 | if (p == 1) c='+'; | ||
| 365 | if (p == 2) c='*'; | ||
| 366 | if (p == 3) c='\n'; | ||
| 367 | BIO_write((BIO *)arg,&c,1); | ||
| 368 | (void)BIO_flush((BIO *)arg); | ||
| 369 | #ifdef LINT | ||
| 370 | p=n; | ||
| 371 | #endif | ||
| 372 | } | ||
| 373 | #endif | ||
| 374 | #endif | ||
diff --git a/src/lib/libcrypto/ecdh/ech_ossl.c b/src/lib/libcrypto/ecdh/ech_ossl.c deleted file mode 100644 index 4a30628fbc..0000000000 --- a/src/lib/libcrypto/ecdh/ech_ossl.c +++ /dev/null | |||
| @@ -1,215 +0,0 @@ | |||
| 1 | /* crypto/ecdh/ech_ossl.c */ | ||
| 2 | /* ==================================================================== | ||
| 3 | * Copyright 2002 Sun Microsystems, Inc. ALL RIGHTS RESERVED. | ||
| 4 | * | ||
| 5 | * The Elliptic Curve Public-Key Crypto Library (ECC Code) included | ||
| 6 | * herein is developed by SUN MICROSYSTEMS, INC., and is contributed | ||
| 7 | * to the OpenSSL project. | ||
| 8 | * | ||
| 9 | * The ECC Code is licensed pursuant to the OpenSSL open source | ||
| 10 | * license provided below. | ||
| 11 | * | ||
| 12 | * The ECDH software is originally written by Douglas Stebila of | ||
| 13 | * Sun Microsystems Laboratories. | ||
| 14 | * | ||
| 15 | */ | ||
| 16 | /* ==================================================================== | ||
| 17 | * Copyright (c) 1998-2003 The OpenSSL Project. All rights reserved. | ||
| 18 | * | ||
| 19 | * Redistribution and use in source and binary forms, with or without | ||
| 20 | * modification, are permitted provided that the following conditions | ||
| 21 | * are met: | ||
| 22 | * | ||
| 23 | * 1. Redistributions of source code must retain the above copyright | ||
| 24 | * notice, this list of conditions and the following disclaimer. | ||
| 25 | * | ||
| 26 | * 2. Redistributions in binary form must reproduce the above copyright | ||
| 27 | * notice, this list of conditions and the following disclaimer in | ||
| 28 | * the documentation and/or other materials provided with the | ||
| 29 | * distribution. | ||
| 30 | * | ||
| 31 | * 3. All advertising materials mentioning features or use of this | ||
| 32 | * software must display the following acknowledgment: | ||
| 33 | * "This product includes software developed by the OpenSSL Project | ||
| 34 | * for use in the OpenSSL Toolkit. (http://www.OpenSSL.org/)" | ||
| 35 | * | ||
| 36 | * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to | ||
| 37 | * endorse or promote products derived from this software without | ||
| 38 | * prior written permission. For written permission, please contact | ||
| 39 | * openssl-core@OpenSSL.org. | ||
| 40 | * | ||
| 41 | * 5. Products derived from this software may not be called "OpenSSL" | ||
| 42 | * nor may "OpenSSL" appear in their names without prior written | ||
| 43 | * permission of the OpenSSL Project. | ||
| 44 | * | ||
| 45 | * 6. Redistributions of any form whatsoever must retain the following | ||
| 46 | * acknowledgment: | ||
| 47 | * "This product includes software developed by the OpenSSL Project | ||
| 48 | * for use in the OpenSSL Toolkit (http://www.OpenSSL.org/)" | ||
| 49 | * | ||
| 50 | * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY | ||
| 51 | * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
| 52 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | ||
| 53 | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR | ||
| 54 | * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
| 55 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | ||
| 56 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
| 57 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
| 58 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | ||
| 59 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
| 60 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | ||
| 61 | * OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| 62 | * ==================================================================== | ||
| 63 | * | ||
| 64 | * This product includes cryptographic software written by Eric Young | ||
| 65 | * (eay@cryptsoft.com). This product includes software written by Tim | ||
| 66 | * Hudson (tjh@cryptsoft.com). | ||
| 67 | * | ||
| 68 | */ | ||
| 69 | |||
| 70 | |||
| 71 | #include <string.h> | ||
| 72 | #include <limits.h> | ||
| 73 | |||
| 74 | #include "cryptlib.h" | ||
| 75 | |||
| 76 | #include "ech_locl.h" | ||
| 77 | #include <openssl/err.h> | ||
| 78 | #include <openssl/sha.h> | ||
| 79 | #include <openssl/obj_mac.h> | ||
| 80 | #include <openssl/bn.h> | ||
| 81 | |||
| 82 | static int ecdh_compute_key(void *out, size_t len, const EC_POINT *pub_key, | ||
| 83 | EC_KEY *ecdh, | ||
| 84 | void *(*KDF)(const void *in, size_t inlen, void *out, size_t *outlen)); | ||
| 85 | |||
| 86 | static ECDH_METHOD openssl_ecdh_meth = { | ||
| 87 | "OpenSSL ECDH method", | ||
| 88 | ecdh_compute_key, | ||
| 89 | #if 0 | ||
| 90 | NULL, /* init */ | ||
| 91 | NULL, /* finish */ | ||
| 92 | #endif | ||
| 93 | 0, /* flags */ | ||
| 94 | NULL /* app_data */ | ||
| 95 | }; | ||
| 96 | |||
| 97 | const ECDH_METHOD *ECDH_OpenSSL(void) | ||
| 98 | { | ||
| 99 | return &openssl_ecdh_meth; | ||
| 100 | } | ||
| 101 | |||
| 102 | |||
| 103 | /* This implementation is based on the following primitives in the IEEE 1363 standard: | ||
| 104 | * - ECKAS-DH1 | ||
| 105 | * - ECSVDP-DH | ||
| 106 | * Finally an optional KDF is applied. | ||
| 107 | */ | ||
| 108 | static int ecdh_compute_key(void *out, size_t outlen, const EC_POINT *pub_key, | ||
| 109 | EC_KEY *ecdh, | ||
| 110 | void *(*KDF)(const void *in, size_t inlen, void *out, size_t *outlen)) | ||
| 111 | { | ||
| 112 | BN_CTX *ctx; | ||
| 113 | EC_POINT *tmp=NULL; | ||
| 114 | BIGNUM *x=NULL, *y=NULL; | ||
| 115 | const BIGNUM *priv_key; | ||
| 116 | const EC_GROUP* group; | ||
| 117 | int ret= -1; | ||
| 118 | size_t buflen, len; | ||
| 119 | unsigned char *buf=NULL; | ||
| 120 | |||
| 121 | if (outlen > INT_MAX) | ||
| 122 | { | ||
| 123 | ECDHerr(ECDH_F_ECDH_COMPUTE_KEY,ERR_R_MALLOC_FAILURE); /* sort of, anyway */ | ||
| 124 | return -1; | ||
| 125 | } | ||
| 126 | |||
| 127 | if ((ctx = BN_CTX_new()) == NULL) goto err; | ||
| 128 | BN_CTX_start(ctx); | ||
| 129 | x = BN_CTX_get(ctx); | ||
| 130 | y = BN_CTX_get(ctx); | ||
| 131 | |||
| 132 | priv_key = EC_KEY_get0_private_key(ecdh); | ||
| 133 | if (priv_key == NULL) | ||
| 134 | { | ||
| 135 | ECDHerr(ECDH_F_ECDH_COMPUTE_KEY,ECDH_R_NO_PRIVATE_VALUE); | ||
| 136 | goto err; | ||
| 137 | } | ||
| 138 | |||
| 139 | group = EC_KEY_get0_group(ecdh); | ||
| 140 | if ((tmp=EC_POINT_new(group)) == NULL) | ||
| 141 | { | ||
| 142 | ECDHerr(ECDH_F_ECDH_COMPUTE_KEY,ERR_R_MALLOC_FAILURE); | ||
| 143 | goto err; | ||
| 144 | } | ||
| 145 | |||
| 146 | if (!EC_POINT_mul(group, tmp, NULL, pub_key, priv_key, ctx)) | ||
| 147 | { | ||
| 148 | ECDHerr(ECDH_F_ECDH_COMPUTE_KEY,ECDH_R_POINT_ARITHMETIC_FAILURE); | ||
| 149 | goto err; | ||
| 150 | } | ||
| 151 | |||
| 152 | if (EC_METHOD_get_field_type(EC_GROUP_method_of(group)) == NID_X9_62_prime_field) | ||
| 153 | { | ||
| 154 | if (!EC_POINT_get_affine_coordinates_GFp(group, tmp, x, y, ctx)) | ||
| 155 | { | ||
| 156 | ECDHerr(ECDH_F_ECDH_COMPUTE_KEY,ECDH_R_POINT_ARITHMETIC_FAILURE); | ||
| 157 | goto err; | ||
| 158 | } | ||
| 159 | } | ||
| 160 | #ifndef OPENSSL_NO_EC2M | ||
| 161 | else | ||
| 162 | { | ||
| 163 | if (!EC_POINT_get_affine_coordinates_GF2m(group, tmp, x, y, ctx)) | ||
| 164 | { | ||
| 165 | ECDHerr(ECDH_F_ECDH_COMPUTE_KEY,ECDH_R_POINT_ARITHMETIC_FAILURE); | ||
| 166 | goto err; | ||
| 167 | } | ||
| 168 | } | ||
| 169 | #endif | ||
| 170 | |||
| 171 | buflen = (EC_GROUP_get_degree(group) + 7)/8; | ||
| 172 | len = BN_num_bytes(x); | ||
| 173 | if (len > buflen) | ||
| 174 | { | ||
| 175 | ECDHerr(ECDH_F_ECDH_COMPUTE_KEY,ERR_R_INTERNAL_ERROR); | ||
| 176 | goto err; | ||
| 177 | } | ||
| 178 | if ((buf = OPENSSL_malloc(buflen)) == NULL) | ||
| 179 | { | ||
| 180 | ECDHerr(ECDH_F_ECDH_COMPUTE_KEY,ERR_R_MALLOC_FAILURE); | ||
| 181 | goto err; | ||
| 182 | } | ||
| 183 | |||
| 184 | memset(buf, 0, buflen - len); | ||
| 185 | if (len != (size_t)BN_bn2bin(x, buf + buflen - len)) | ||
| 186 | { | ||
| 187 | ECDHerr(ECDH_F_ECDH_COMPUTE_KEY,ERR_R_BN_LIB); | ||
| 188 | goto err; | ||
| 189 | } | ||
| 190 | |||
| 191 | if (KDF != 0) | ||
| 192 | { | ||
| 193 | if (KDF(buf, buflen, out, &outlen) == NULL) | ||
| 194 | { | ||
| 195 | ECDHerr(ECDH_F_ECDH_COMPUTE_KEY,ECDH_R_KDF_FAILED); | ||
| 196 | goto err; | ||
| 197 | } | ||
| 198 | ret = outlen; | ||
| 199 | } | ||
| 200 | else | ||
| 201 | { | ||
| 202 | /* no KDF, just copy as much as we can */ | ||
| 203 | if (outlen > buflen) | ||
| 204 | outlen = buflen; | ||
| 205 | memcpy(out, buf, outlen); | ||
| 206 | ret = outlen; | ||
| 207 | } | ||
| 208 | |||
| 209 | err: | ||
| 210 | if (tmp) EC_POINT_free(tmp); | ||
| 211 | if (ctx) BN_CTX_end(ctx); | ||
| 212 | if (ctx) BN_CTX_free(ctx); | ||
| 213 | if (buf) OPENSSL_free(buf); | ||
| 214 | return(ret); | ||
| 215 | } | ||
diff --git a/src/lib/libcrypto/ecdsa/Makefile b/src/lib/libcrypto/ecdsa/Makefile deleted file mode 100644 index e89e0c010c..0000000000 --- a/src/lib/libcrypto/ecdsa/Makefile +++ /dev/null | |||
| @@ -1,140 +0,0 @@ | |||
| 1 | # | ||
| 2 | # crypto/ecdsa/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= ecdsa | ||
| 6 | TOP= ../.. | ||
| 7 | CC= cc | ||
| 8 | INCLUDES= -I.. -I$(TOP) -I../../include | ||
| 9 | CFLAG=-g -Wall | ||
| 10 | MAKEFILE= Makefile | ||
| 11 | AR= ar r | ||
| 12 | |||
| 13 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 14 | |||
| 15 | GENERAL=Makefile | ||
| 16 | TEST=ecdsatest.c | ||
| 17 | APPS= | ||
| 18 | |||
| 19 | LIB=$(TOP)/libcrypto.a | ||
| 20 | LIBSRC= ecs_lib.c ecs_asn1.c ecs_ossl.c ecs_sign.c ecs_vrf.c ecs_err.c | ||
| 21 | |||
| 22 | LIBOBJ= ecs_lib.o ecs_asn1.o ecs_ossl.o ecs_sign.o ecs_vrf.o ecs_err.o | ||
| 23 | |||
| 24 | SRC= $(LIBSRC) | ||
| 25 | |||
| 26 | EXHEADER= ecdsa.h | ||
| 27 | HEADER= ecs_locl.h $(EXHEADER) | ||
| 28 | |||
| 29 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
| 30 | |||
| 31 | top: | ||
| 32 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
| 33 | |||
| 34 | all: lib | ||
| 35 | |||
| 36 | lib: $(LIBOBJ) | ||
| 37 | $(AR) $(LIB) $(LIBOBJ) | ||
| 38 | $(RANLIB) $(LIB) || echo Never mind. | ||
| 39 | @touch lib | ||
| 40 | |||
| 41 | files: | ||
| 42 | $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO | ||
| 43 | |||
| 44 | links: | ||
| 45 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | ||
| 46 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | ||
| 47 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | ||
| 48 | |||
| 49 | install: | ||
| 50 | @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile... | ||
| 51 | @headerlist="$(EXHEADER)"; for i in $$headerlist; \ | ||
| 52 | do \ | ||
| 53 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 54 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
| 55 | done; | ||
| 56 | |||
| 57 | tags: | ||
| 58 | ctags $(SRC) | ||
| 59 | |||
| 60 | tests: | ||
| 61 | |||
| 62 | lint: | ||
| 63 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
| 64 | |||
| 65 | depend: | ||
| 66 | @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile... | ||
| 67 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) | ||
| 68 | |||
| 69 | dclean: | ||
| 70 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 71 | mv -f Makefile.new $(MAKEFILE) | ||
| 72 | |||
| 73 | clean: | ||
| 74 | rm -f *.o */*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
| 75 | |||
| 76 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 77 | |||
| 78 | ecs_asn1.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h | ||
| 79 | ecs_asn1.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h | ||
| 80 | ecs_asn1.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h | ||
| 81 | ecs_asn1.o: ../../include/openssl/ecdsa.h ../../include/openssl/err.h | ||
| 82 | ecs_asn1.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 83 | ecs_asn1.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 84 | ecs_asn1.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 85 | ecs_asn1.o: ../../include/openssl/symhacks.h ecs_asn1.c ecs_locl.h | ||
| 86 | ecs_err.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 87 | ecs_err.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 88 | ecs_err.o: ../../include/openssl/ec.h ../../include/openssl/ecdsa.h | ||
| 89 | ecs_err.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
| 90 | ecs_err.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 91 | ecs_err.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h | ||
| 92 | ecs_err.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 93 | ecs_err.o: ecs_err.c | ||
| 94 | ecs_lib.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 95 | ecs_lib.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 96 | ecs_lib.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 97 | ecs_lib.o: ../../include/openssl/ec.h ../../include/openssl/ecdh.h | ||
| 98 | ecs_lib.o: ../../include/openssl/ecdsa.h ../../include/openssl/engine.h | ||
| 99 | ecs_lib.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 100 | ecs_lib.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h | ||
| 101 | ecs_lib.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 102 | ecs_lib.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 103 | ecs_lib.o: ../../include/openssl/pkcs7.h ../../include/openssl/safestack.h | ||
| 104 | ecs_lib.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 105 | ecs_lib.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h | ||
| 106 | ecs_lib.o: ../../include/openssl/x509_vfy.h ecs_lib.c ecs_locl.h | ||
| 107 | ecs_ossl.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 108 | ecs_ossl.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h | ||
| 109 | ecs_ossl.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h | ||
| 110 | ecs_ossl.o: ../../include/openssl/ecdsa.h ../../include/openssl/err.h | ||
| 111 | ecs_ossl.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h | ||
| 112 | ecs_ossl.o: ../../include/openssl/opensslconf.h | ||
| 113 | ecs_ossl.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 114 | ecs_ossl.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 115 | ecs_ossl.o: ../../include/openssl/symhacks.h ecs_locl.h ecs_ossl.c | ||
| 116 | ecs_sign.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 117 | ecs_sign.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 118 | ecs_sign.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h | ||
| 119 | ecs_sign.o: ../../include/openssl/ecdh.h ../../include/openssl/ecdsa.h | ||
| 120 | ecs_sign.o: ../../include/openssl/engine.h ../../include/openssl/evp.h | ||
| 121 | ecs_sign.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h | ||
| 122 | ecs_sign.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 123 | ecs_sign.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 124 | ecs_sign.o: ../../include/openssl/pkcs7.h ../../include/openssl/rand.h | ||
| 125 | ecs_sign.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 126 | ecs_sign.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 127 | ecs_sign.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 128 | ecs_sign.o: ecs_locl.h ecs_sign.c | ||
| 129 | ecs_vrf.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 130 | ecs_vrf.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 131 | ecs_vrf.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h | ||
| 132 | ecs_vrf.o: ../../include/openssl/ecdh.h ../../include/openssl/ecdsa.h | ||
| 133 | ecs_vrf.o: ../../include/openssl/engine.h ../../include/openssl/evp.h | ||
| 134 | ecs_vrf.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h | ||
| 135 | ecs_vrf.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 136 | ecs_vrf.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 137 | ecs_vrf.o: ../../include/openssl/pkcs7.h ../../include/openssl/safestack.h | ||
| 138 | ecs_vrf.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 139 | ecs_vrf.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h | ||
| 140 | ecs_vrf.o: ../../include/openssl/x509_vfy.h ecs_locl.h ecs_vrf.c | ||
diff --git a/src/lib/libcrypto/ecdsa/ecdsatest.c b/src/lib/libcrypto/ecdsa/ecdsatest.c deleted file mode 100644 index 537bb30362..0000000000 --- a/src/lib/libcrypto/ecdsa/ecdsatest.c +++ /dev/null | |||
| @@ -1,572 +0,0 @@ | |||
| 1 | /* crypto/ecdsa/ecdsatest.c */ | ||
| 2 | /* | ||
| 3 | * Written by Nils Larsch for the OpenSSL project. | ||
| 4 | */ | ||
| 5 | /* ==================================================================== | ||
| 6 | * Copyright (c) 2000-2005 The OpenSSL Project. All rights reserved. | ||
| 7 | * | ||
| 8 | * Redistribution and use in source and binary forms, with or without | ||
| 9 | * modification, are permitted provided that the following conditions | ||
| 10 | * are met: | ||
| 11 | * | ||
| 12 | * 1. Redistributions of source code must retain the above copyright | ||
| 13 | * notice, this list of conditions and the following disclaimer. | ||
| 14 | * | ||
| 15 | * 2. Redistributions in binary form must reproduce the above copyright | ||
| 16 | * notice, this list of conditions and the following disclaimer in | ||
| 17 | * the documentation and/or other materials provided with the | ||
| 18 | * distribution. | ||
| 19 | * | ||
| 20 | * 3. All advertising materials mentioning features or use of this | ||
| 21 | * software must display the following acknowledgment: | ||
| 22 | * "This product includes software developed by the OpenSSL Project | ||
| 23 | * for use in the OpenSSL Toolkit. (http://www.OpenSSL.org/)" | ||
| 24 | * | ||
| 25 | * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to | ||
| 26 | * endorse or promote products derived from this software without | ||
| 27 | * prior written permission. For written permission, please contact | ||
| 28 | * licensing@OpenSSL.org. | ||
| 29 | * | ||
| 30 | * 5. Products derived from this software may not be called "OpenSSL" | ||
| 31 | * nor may "OpenSSL" appear in their names without prior written | ||
| 32 | * permission of the OpenSSL Project. | ||
| 33 | * | ||
| 34 | * 6. Redistributions of any form whatsoever must retain the following | ||
| 35 | * acknowledgment: | ||
| 36 | * "This product includes software developed by the OpenSSL Project | ||
| 37 | * for use in the OpenSSL Toolkit (http://www.OpenSSL.org/)" | ||
| 38 | * | ||
| 39 | * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY | ||
| 40 | * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
| 41 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | ||
| 42 | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR | ||
| 43 | * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
| 44 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | ||
| 45 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
| 46 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
| 47 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | ||
| 48 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
| 49 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | ||
| 50 | * OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| 51 | * ==================================================================== | ||
| 52 | * | ||
| 53 | * This product includes cryptographic software written by Eric Young | ||
| 54 | * (eay@cryptsoft.com). This product includes software written by Tim | ||
| 55 | * Hudson (tjh@cryptsoft.com). | ||
| 56 | * | ||
| 57 | */ | ||
| 58 | /* ==================================================================== | ||
| 59 | * Copyright 2002 Sun Microsystems, Inc. ALL RIGHTS RESERVED. | ||
| 60 | * | ||
| 61 | * Portions of the attached software ("Contribution") are developed by | ||
| 62 | * SUN MICROSYSTEMS, INC., and are contributed to the OpenSSL project. | ||
| 63 | * | ||
| 64 | * The Contribution is licensed pursuant to the OpenSSL open source | ||
| 65 | * license provided above. | ||
| 66 | * | ||
| 67 | * The elliptic curve binary polynomial software is originally written by | ||
| 68 | * Sheueling Chang Shantz and Douglas Stebila of Sun Microsystems Laboratories. | ||
| 69 | * | ||
| 70 | */ | ||
| 71 | |||
| 72 | #include <stdio.h> | ||
| 73 | #include <stdlib.h> | ||
| 74 | #include <string.h> | ||
| 75 | |||
| 76 | #include <openssl/opensslconf.h> /* To see if OPENSSL_NO_ECDSA is defined */ | ||
| 77 | |||
| 78 | #ifdef OPENSSL_NO_ECDSA | ||
| 79 | int main(int argc, char * argv[]) | ||
| 80 | { | ||
| 81 | puts("Elliptic curves are disabled."); | ||
| 82 | return 0; | ||
| 83 | } | ||
| 84 | #else | ||
| 85 | |||
| 86 | #include <openssl/crypto.h> | ||
| 87 | #include <openssl/bio.h> | ||
| 88 | #include <openssl/evp.h> | ||
| 89 | #include <openssl/bn.h> | ||
| 90 | #include <openssl/ecdsa.h> | ||
| 91 | #ifndef OPENSSL_NO_ENGINE | ||
| 92 | #include <openssl/engine.h> | ||
| 93 | #endif | ||
| 94 | #include <openssl/err.h> | ||
| 95 | #include <openssl/rand.h> | ||
| 96 | |||
| 97 | static const char rnd_seed[] = "string to make the random number generator " | ||
| 98 | "think it has entropy"; | ||
| 99 | |||
| 100 | /* declaration of the test functions */ | ||
| 101 | int x9_62_tests(BIO *); | ||
| 102 | int x9_62_test_internal(BIO *out, int nid, const char *r, const char *s); | ||
| 103 | int test_builtin(BIO *); | ||
| 104 | |||
| 105 | /* functions to change the RAND_METHOD */ | ||
| 106 | int change_rand(void); | ||
| 107 | int restore_rand(void); | ||
| 108 | int fbytes(unsigned char *buf, int num); | ||
| 109 | |||
| 110 | RAND_METHOD fake_rand; | ||
| 111 | const RAND_METHOD *old_rand; | ||
| 112 | |||
| 113 | int change_rand(void) | ||
| 114 | { | ||
| 115 | /* save old rand method */ | ||
| 116 | if ((old_rand = RAND_get_rand_method()) == NULL) | ||
| 117 | return 0; | ||
| 118 | |||
| 119 | fake_rand.seed = old_rand->seed; | ||
| 120 | fake_rand.cleanup = old_rand->cleanup; | ||
| 121 | fake_rand.add = old_rand->add; | ||
| 122 | fake_rand.status = old_rand->status; | ||
| 123 | /* use own random function */ | ||
| 124 | fake_rand.bytes = fbytes; | ||
| 125 | fake_rand.pseudorand = old_rand->bytes; | ||
| 126 | /* set new RAND_METHOD */ | ||
| 127 | if (!RAND_set_rand_method(&fake_rand)) | ||
| 128 | return 0; | ||
| 129 | return 1; | ||
| 130 | } | ||
| 131 | |||
| 132 | int restore_rand(void) | ||
| 133 | { | ||
| 134 | if (!RAND_set_rand_method(old_rand)) | ||
| 135 | return 0; | ||
| 136 | else | ||
| 137 | return 1; | ||
| 138 | } | ||
| 139 | |||
| 140 | static int fbytes_counter = 0; | ||
| 141 | static const char *numbers[8] = { | ||
| 142 | "651056770906015076056810763456358567190100156695615665659", | ||
| 143 | "6140507067065001063065065565667405560006161556565665656654", | ||
| 144 | "8763001015071075675010661307616710783570106710677817767166" | ||
| 145 | "71676178726717", | ||
| 146 | "7000000175690566466555057817571571075705015757757057795755" | ||
| 147 | "55657156756655", | ||
| 148 | "1275552191113212300012030439187146164646146646466749494799", | ||
| 149 | "1542725565216523985789236956265265265235675811949404040041", | ||
| 150 | "1456427555219115346513212300075341203043918714616464614664" | ||
| 151 | "64667494947990", | ||
| 152 | "1712787255652165239672857892369562652652652356758119494040" | ||
| 153 | "40041670216363"}; | ||
| 154 | |||
| 155 | int fbytes(unsigned char *buf, int num) | ||
| 156 | { | ||
| 157 | int ret; | ||
| 158 | BIGNUM *tmp = NULL; | ||
| 159 | |||
| 160 | if (fbytes_counter >= 8) | ||
| 161 | return 0; | ||
| 162 | tmp = BN_new(); | ||
| 163 | if (!tmp) | ||
| 164 | return 0; | ||
| 165 | if (!BN_dec2bn(&tmp, numbers[fbytes_counter])) | ||
| 166 | { | ||
| 167 | BN_free(tmp); | ||
| 168 | return 0; | ||
| 169 | } | ||
| 170 | fbytes_counter ++; | ||
| 171 | if (num != BN_num_bytes(tmp) || !BN_bn2bin(tmp, buf)) | ||
| 172 | ret = 0; | ||
| 173 | else | ||
| 174 | ret = 1; | ||
| 175 | if (tmp) | ||
| 176 | BN_free(tmp); | ||
| 177 | return ret; | ||
| 178 | } | ||
| 179 | |||
| 180 | /* some tests from the X9.62 draft */ | ||
| 181 | int x9_62_test_internal(BIO *out, int nid, const char *r_in, const char *s_in) | ||
| 182 | { | ||
| 183 | int ret = 0; | ||
| 184 | const char message[] = "abc"; | ||
| 185 | unsigned char digest[20]; | ||
| 186 | unsigned int dgst_len = 0; | ||
| 187 | EVP_MD_CTX md_ctx; | ||
| 188 | EC_KEY *key = NULL; | ||
| 189 | ECDSA_SIG *signature = NULL; | ||
| 190 | BIGNUM *r = NULL, *s = NULL; | ||
| 191 | |||
| 192 | EVP_MD_CTX_init(&md_ctx); | ||
| 193 | /* get the message digest */ | ||
| 194 | EVP_DigestInit(&md_ctx, EVP_ecdsa()); | ||
| 195 | EVP_DigestUpdate(&md_ctx, (const void*)message, 3); | ||
| 196 | EVP_DigestFinal(&md_ctx, digest, &dgst_len); | ||
| 197 | |||
| 198 | BIO_printf(out, "testing %s: ", OBJ_nid2sn(nid)); | ||
| 199 | /* create the key */ | ||
| 200 | if ((key = EC_KEY_new_by_curve_name(nid)) == NULL) | ||
| 201 | goto x962_int_err; | ||
| 202 | if (!EC_KEY_generate_key(key)) | ||
| 203 | goto x962_int_err; | ||
| 204 | BIO_printf(out, "."); | ||
| 205 | (void)BIO_flush(out); | ||
| 206 | /* create the signature */ | ||
| 207 | signature = ECDSA_do_sign(digest, 20, key); | ||
| 208 | if (signature == NULL) | ||
| 209 | goto x962_int_err; | ||
| 210 | BIO_printf(out, "."); | ||
| 211 | (void)BIO_flush(out); | ||
| 212 | /* compare the created signature with the expected signature */ | ||
| 213 | if ((r = BN_new()) == NULL || (s = BN_new()) == NULL) | ||
| 214 | goto x962_int_err; | ||
| 215 | if (!BN_dec2bn(&r, r_in) || | ||
| 216 | !BN_dec2bn(&s, s_in)) | ||
| 217 | goto x962_int_err; | ||
| 218 | if (BN_cmp(signature->r ,r) || BN_cmp(signature->s, s)) | ||
| 219 | goto x962_int_err; | ||
| 220 | BIO_printf(out, "."); | ||
| 221 | (void)BIO_flush(out); | ||
| 222 | /* verify the signature */ | ||
| 223 | if (ECDSA_do_verify(digest, 20, signature, key) != 1) | ||
| 224 | goto x962_int_err; | ||
| 225 | BIO_printf(out, "."); | ||
| 226 | (void)BIO_flush(out); | ||
| 227 | |||
| 228 | BIO_printf(out, " ok\n"); | ||
| 229 | ret = 1; | ||
| 230 | x962_int_err: | ||
| 231 | if (!ret) | ||
| 232 | BIO_printf(out, " failed\n"); | ||
| 233 | if (key) | ||
| 234 | EC_KEY_free(key); | ||
| 235 | if (signature) | ||
| 236 | ECDSA_SIG_free(signature); | ||
| 237 | if (r) | ||
| 238 | BN_free(r); | ||
| 239 | if (s) | ||
| 240 | BN_free(s); | ||
| 241 | EVP_MD_CTX_cleanup(&md_ctx); | ||
| 242 | return ret; | ||
| 243 | } | ||
| 244 | |||
| 245 | int x9_62_tests(BIO *out) | ||
| 246 | { | ||
| 247 | int ret = 0; | ||
| 248 | |||
| 249 | BIO_printf(out, "some tests from X9.62:\n"); | ||
| 250 | |||
| 251 | /* set own rand method */ | ||
| 252 | if (!change_rand()) | ||
| 253 | goto x962_err; | ||
| 254 | |||
| 255 | if (!x9_62_test_internal(out, NID_X9_62_prime192v1, | ||
| 256 | "3342403536405981729393488334694600415596881826869351677613", | ||
| 257 | "5735822328888155254683894997897571951568553642892029982342")) | ||
| 258 | goto x962_err; | ||
| 259 | if (!x9_62_test_internal(out, NID_X9_62_prime239v1, | ||
| 260 | "3086361431751678114926225473006680188549593787585317781474" | ||
| 261 | "62058306432176", | ||
| 262 | "3238135532097973577080787768312505059318910517550078427819" | ||
| 263 | "78505179448783")) | ||
| 264 | goto x962_err; | ||
| 265 | #ifndef OPENSSL_NO_EC2M | ||
| 266 | if (!x9_62_test_internal(out, NID_X9_62_c2tnb191v1, | ||
| 267 | "87194383164871543355722284926904419997237591535066528048", | ||
| 268 | "308992691965804947361541664549085895292153777025772063598")) | ||
| 269 | goto x962_err; | ||
| 270 | if (!x9_62_test_internal(out, NID_X9_62_c2tnb239v1, | ||
| 271 | "2159633321041961198501834003903461262881815148684178964245" | ||
| 272 | "5876922391552", | ||
| 273 | "1970303740007316867383349976549972270528498040721988191026" | ||
| 274 | "49413465737174")) | ||
| 275 | goto x962_err; | ||
| 276 | #endif | ||
| 277 | ret = 1; | ||
| 278 | x962_err: | ||
| 279 | if (!restore_rand()) | ||
| 280 | ret = 0; | ||
| 281 | return ret; | ||
| 282 | } | ||
| 283 | |||
| 284 | int test_builtin(BIO *out) | ||
| 285 | { | ||
| 286 | EC_builtin_curve *curves = NULL; | ||
| 287 | size_t crv_len = 0, n = 0; | ||
| 288 | EC_KEY *eckey = NULL, *wrong_eckey = NULL; | ||
| 289 | EC_GROUP *group; | ||
| 290 | ECDSA_SIG *ecdsa_sig = NULL; | ||
| 291 | unsigned char digest[20], wrong_digest[20]; | ||
| 292 | unsigned char *signature = NULL; | ||
| 293 | const unsigned char *sig_ptr; | ||
| 294 | unsigned char *sig_ptr2; | ||
| 295 | unsigned char *raw_buf = NULL; | ||
| 296 | unsigned int sig_len, degree, r_len, s_len, bn_len, buf_len; | ||
| 297 | int nid, ret = 0; | ||
| 298 | |||
| 299 | /* fill digest values with some random data */ | ||
| 300 | if (!RAND_pseudo_bytes(digest, 20) || | ||
| 301 | !RAND_pseudo_bytes(wrong_digest, 20)) | ||
| 302 | { | ||
| 303 | BIO_printf(out, "ERROR: unable to get random data\n"); | ||
| 304 | goto builtin_err; | ||
| 305 | } | ||
| 306 | |||
| 307 | /* create and verify a ecdsa signature with every availble curve | ||
| 308 | * (with ) */ | ||
| 309 | BIO_printf(out, "\ntesting ECDSA_sign() and ECDSA_verify() " | ||
| 310 | "with some internal curves:\n"); | ||
| 311 | |||
| 312 | /* get a list of all internal curves */ | ||
| 313 | crv_len = EC_get_builtin_curves(NULL, 0); | ||
| 314 | |||
| 315 | curves = OPENSSL_malloc(sizeof(EC_builtin_curve) * crv_len); | ||
| 316 | |||
| 317 | if (curves == NULL) | ||
| 318 | { | ||
| 319 | BIO_printf(out, "malloc error\n"); | ||
| 320 | goto builtin_err; | ||
| 321 | } | ||
| 322 | |||
| 323 | if (!EC_get_builtin_curves(curves, crv_len)) | ||
| 324 | { | ||
| 325 | BIO_printf(out, "unable to get internal curves\n"); | ||
| 326 | goto builtin_err; | ||
| 327 | } | ||
| 328 | |||
| 329 | /* now create and verify a signature for every curve */ | ||
| 330 | for (n = 0; n < crv_len; n++) | ||
| 331 | { | ||
| 332 | unsigned char dirt, offset; | ||
| 333 | |||
| 334 | nid = curves[n].nid; | ||
| 335 | if (nid == NID_ipsec4) | ||
| 336 | continue; | ||
| 337 | /* create new ecdsa key (== EC_KEY) */ | ||
| 338 | if ((eckey = EC_KEY_new()) == NULL) | ||
| 339 | goto builtin_err; | ||
| 340 | group = EC_GROUP_new_by_curve_name(nid); | ||
| 341 | if (group == NULL) | ||
| 342 | goto builtin_err; | ||
| 343 | if (EC_KEY_set_group(eckey, group) == 0) | ||
| 344 | goto builtin_err; | ||
| 345 | EC_GROUP_free(group); | ||
| 346 | degree = EC_GROUP_get_degree(EC_KEY_get0_group(eckey)); | ||
| 347 | if (degree < 160) | ||
| 348 | /* drop the curve */ | ||
| 349 | { | ||
| 350 | EC_KEY_free(eckey); | ||
| 351 | eckey = NULL; | ||
| 352 | continue; | ||
| 353 | } | ||
| 354 | BIO_printf(out, "%s: ", OBJ_nid2sn(nid)); | ||
| 355 | /* create key */ | ||
| 356 | if (!EC_KEY_generate_key(eckey)) | ||
| 357 | { | ||
| 358 | BIO_printf(out, " failed\n"); | ||
| 359 | goto builtin_err; | ||
| 360 | } | ||
| 361 | /* create second key */ | ||
| 362 | if ((wrong_eckey = EC_KEY_new()) == NULL) | ||
| 363 | goto builtin_err; | ||
| 364 | group = EC_GROUP_new_by_curve_name(nid); | ||
| 365 | if (group == NULL) | ||
| 366 | goto builtin_err; | ||
| 367 | if (EC_KEY_set_group(wrong_eckey, group) == 0) | ||
| 368 | goto builtin_err; | ||
| 369 | EC_GROUP_free(group); | ||
| 370 | if (!EC_KEY_generate_key(wrong_eckey)) | ||
| 371 | { | ||
| 372 | BIO_printf(out, " failed\n"); | ||
| 373 | goto builtin_err; | ||
| 374 | } | ||
| 375 | |||
| 376 | BIO_printf(out, "."); | ||
| 377 | (void)BIO_flush(out); | ||
| 378 | /* check key */ | ||
| 379 | if (!EC_KEY_check_key(eckey)) | ||
| 380 | { | ||
| 381 | BIO_printf(out, " failed\n"); | ||
| 382 | goto builtin_err; | ||
| 383 | } | ||
| 384 | BIO_printf(out, "."); | ||
| 385 | (void)BIO_flush(out); | ||
| 386 | /* create signature */ | ||
| 387 | sig_len = ECDSA_size(eckey); | ||
| 388 | if ((signature = OPENSSL_malloc(sig_len)) == NULL) | ||
| 389 | goto builtin_err; | ||
| 390 | if (!ECDSA_sign(0, digest, 20, signature, &sig_len, eckey)) | ||
| 391 | { | ||
| 392 | BIO_printf(out, " failed\n"); | ||
| 393 | goto builtin_err; | ||
| 394 | } | ||
| 395 | BIO_printf(out, "."); | ||
| 396 | (void)BIO_flush(out); | ||
| 397 | /* verify signature */ | ||
| 398 | if (ECDSA_verify(0, digest, 20, signature, sig_len, eckey) != 1) | ||
| 399 | { | ||
| 400 | BIO_printf(out, " failed\n"); | ||
| 401 | goto builtin_err; | ||
| 402 | } | ||
| 403 | BIO_printf(out, "."); | ||
| 404 | (void)BIO_flush(out); | ||
| 405 | /* verify signature with the wrong key */ | ||
| 406 | if (ECDSA_verify(0, digest, 20, signature, sig_len, | ||
| 407 | wrong_eckey) == 1) | ||
| 408 | { | ||
| 409 | BIO_printf(out, " failed\n"); | ||
| 410 | goto builtin_err; | ||
| 411 | } | ||
| 412 | BIO_printf(out, "."); | ||
| 413 | (void)BIO_flush(out); | ||
| 414 | /* wrong digest */ | ||
| 415 | if (ECDSA_verify(0, wrong_digest, 20, signature, sig_len, | ||
| 416 | eckey) == 1) | ||
| 417 | { | ||
| 418 | BIO_printf(out, " failed\n"); | ||
| 419 | goto builtin_err; | ||
| 420 | } | ||
| 421 | BIO_printf(out, "."); | ||
| 422 | (void)BIO_flush(out); | ||
| 423 | /* wrong length */ | ||
| 424 | if (ECDSA_verify(0, digest, 20, signature, sig_len - 1, | ||
| 425 | eckey) == 1) | ||
| 426 | { | ||
| 427 | BIO_printf(out, " failed\n"); | ||
| 428 | goto builtin_err; | ||
| 429 | } | ||
| 430 | BIO_printf(out, "."); | ||
| 431 | (void)BIO_flush(out); | ||
| 432 | |||
| 433 | /* Modify a single byte of the signature: to ensure we don't | ||
| 434 | * garble the ASN1 structure, we read the raw signature and | ||
| 435 | * modify a byte in one of the bignums directly. */ | ||
| 436 | sig_ptr = signature; | ||
| 437 | if ((ecdsa_sig = d2i_ECDSA_SIG(NULL, &sig_ptr, sig_len)) == NULL) | ||
| 438 | { | ||
| 439 | BIO_printf(out, " failed\n"); | ||
| 440 | goto builtin_err; | ||
| 441 | } | ||
| 442 | |||
| 443 | /* Store the two BIGNUMs in raw_buf. */ | ||
| 444 | r_len = BN_num_bytes(ecdsa_sig->r); | ||
| 445 | s_len = BN_num_bytes(ecdsa_sig->s); | ||
| 446 | bn_len = (degree + 7) / 8; | ||
| 447 | if ((r_len > bn_len) || (s_len > bn_len)) | ||
| 448 | { | ||
| 449 | BIO_printf(out, " failed\n"); | ||
| 450 | goto builtin_err; | ||
| 451 | } | ||
| 452 | buf_len = 2 * bn_len; | ||
| 453 | if ((raw_buf = OPENSSL_malloc(buf_len)) == NULL) | ||
| 454 | goto builtin_err; | ||
| 455 | /* Pad the bignums with leading zeroes. */ | ||
| 456 | memset(raw_buf, 0, buf_len); | ||
| 457 | BN_bn2bin(ecdsa_sig->r, raw_buf + bn_len - r_len); | ||
| 458 | BN_bn2bin(ecdsa_sig->s, raw_buf + buf_len - s_len); | ||
| 459 | |||
| 460 | /* Modify a single byte in the buffer. */ | ||
| 461 | offset = raw_buf[10] % buf_len; | ||
| 462 | dirt = raw_buf[11] ? raw_buf[11] : 1; | ||
| 463 | raw_buf[offset] ^= dirt; | ||
| 464 | /* Now read the BIGNUMs back in from raw_buf. */ | ||
| 465 | if ((BN_bin2bn(raw_buf, bn_len, ecdsa_sig->r) == NULL) || | ||
| 466 | (BN_bin2bn(raw_buf + bn_len, bn_len, ecdsa_sig->s) == NULL)) | ||
| 467 | goto builtin_err; | ||
| 468 | |||
| 469 | sig_ptr2 = signature; | ||
| 470 | sig_len = i2d_ECDSA_SIG(ecdsa_sig, &sig_ptr2); | ||
| 471 | if (ECDSA_verify(0, digest, 20, signature, sig_len, eckey) == 1) | ||
| 472 | { | ||
| 473 | BIO_printf(out, " failed\n"); | ||
| 474 | goto builtin_err; | ||
| 475 | } | ||
| 476 | /* Sanity check: undo the modification and verify signature. */ | ||
| 477 | raw_buf[offset] ^= dirt; | ||
| 478 | if ((BN_bin2bn(raw_buf, bn_len, ecdsa_sig->r) == NULL) || | ||
| 479 | (BN_bin2bn(raw_buf + bn_len, bn_len, ecdsa_sig->s) == NULL)) | ||
| 480 | goto builtin_err; | ||
| 481 | |||
| 482 | sig_ptr2 = signature; | ||
| 483 | sig_len = i2d_ECDSA_SIG(ecdsa_sig, &sig_ptr2); | ||
| 484 | if (ECDSA_verify(0, digest, 20, signature, sig_len, eckey) != 1) | ||
| 485 | { | ||
| 486 | BIO_printf(out, " failed\n"); | ||
| 487 | goto builtin_err; | ||
| 488 | } | ||
| 489 | BIO_printf(out, "."); | ||
| 490 | (void)BIO_flush(out); | ||
| 491 | |||
| 492 | BIO_printf(out, " ok\n"); | ||
| 493 | /* cleanup */ | ||
| 494 | /* clean bogus errors */ | ||
| 495 | ERR_clear_error(); | ||
| 496 | OPENSSL_free(signature); | ||
| 497 | signature = NULL; | ||
| 498 | EC_KEY_free(eckey); | ||
| 499 | eckey = NULL; | ||
| 500 | EC_KEY_free(wrong_eckey); | ||
| 501 | wrong_eckey = NULL; | ||
| 502 | ECDSA_SIG_free(ecdsa_sig); | ||
| 503 | ecdsa_sig = NULL; | ||
| 504 | OPENSSL_free(raw_buf); | ||
| 505 | raw_buf = NULL; | ||
| 506 | } | ||
| 507 | |||
| 508 | ret = 1; | ||
| 509 | builtin_err: | ||
| 510 | if (eckey) | ||
| 511 | EC_KEY_free(eckey); | ||
| 512 | if (wrong_eckey) | ||
| 513 | EC_KEY_free(wrong_eckey); | ||
| 514 | if (ecdsa_sig) | ||
| 515 | ECDSA_SIG_free(ecdsa_sig); | ||
| 516 | if (signature) | ||
| 517 | OPENSSL_free(signature); | ||
| 518 | if (raw_buf) | ||
| 519 | OPENSSL_free(raw_buf); | ||
| 520 | if (curves) | ||
| 521 | OPENSSL_free(curves); | ||
| 522 | |||
| 523 | return ret; | ||
| 524 | } | ||
| 525 | |||
| 526 | int main(void) | ||
| 527 | { | ||
| 528 | int ret = 1; | ||
| 529 | BIO *out; | ||
| 530 | |||
| 531 | out = BIO_new_fp(stdout, BIO_NOCLOSE); | ||
| 532 | |||
| 533 | /* enable memory leak checking unless explicitly disabled */ | ||
| 534 | if (!((getenv("OPENSSL_DEBUG_MEMORY") != NULL) && | ||
| 535 | (0 == strcmp(getenv("OPENSSL_DEBUG_MEMORY"), "off")))) | ||
| 536 | { | ||
| 537 | CRYPTO_malloc_debug_init(); | ||
| 538 | CRYPTO_set_mem_debug_options(V_CRYPTO_MDEBUG_ALL); | ||
| 539 | } | ||
| 540 | else | ||
| 541 | { | ||
| 542 | /* OPENSSL_DEBUG_MEMORY=off */ | ||
| 543 | CRYPTO_set_mem_debug_functions(0, 0, 0, 0, 0); | ||
| 544 | } | ||
| 545 | CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_ON); | ||
| 546 | |||
| 547 | ERR_load_crypto_strings(); | ||
| 548 | |||
| 549 | /* initialize the prng */ | ||
| 550 | RAND_seed(rnd_seed, sizeof(rnd_seed)); | ||
| 551 | |||
| 552 | /* the tests */ | ||
| 553 | if (!x9_62_tests(out)) goto err; | ||
| 554 | if (!test_builtin(out)) goto err; | ||
| 555 | |||
| 556 | ret = 0; | ||
| 557 | err: | ||
| 558 | if (ret) | ||
| 559 | BIO_printf(out, "\nECDSA test failed\n"); | ||
| 560 | else | ||
| 561 | BIO_printf(out, "\nECDSA test passed\n"); | ||
| 562 | if (ret) | ||
| 563 | ERR_print_errors(out); | ||
| 564 | CRYPTO_cleanup_all_ex_data(); | ||
| 565 | ERR_remove_thread_state(NULL); | ||
| 566 | ERR_free_strings(); | ||
| 567 | CRYPTO_mem_leaks(out); | ||
| 568 | if (out != NULL) | ||
| 569 | BIO_free(out); | ||
| 570 | return ret; | ||
| 571 | } | ||
| 572 | #endif | ||
diff --git a/src/lib/libcrypto/engine/Makefile.ssl b/src/lib/libcrypto/engine/Makefile.ssl deleted file mode 100644 index 30a4446ff9..0000000000 --- a/src/lib/libcrypto/engine/Makefile.ssl +++ /dev/null | |||
| @@ -1,538 +0,0 @@ | |||
| 1 | # | ||
| 2 | # OpenSSL/crypto/engine/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= engine | ||
| 6 | TOP= ../.. | ||
| 7 | CC= cc | ||
| 8 | INCLUDES= -I.. -I$(TOP) -I../../include | ||
| 9 | CFLAG=-g | ||
| 10 | INSTALL_PREFIX= | ||
| 11 | OPENSSLDIR= /usr/local/ssl | ||
| 12 | INSTALLTOP=/usr/local/ssl | ||
| 13 | MAKE= make -f Makefile.ssl | ||
| 14 | MAKEDEPPROG= makedepend | ||
| 15 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
| 16 | MAKEFILE= Makefile.ssl | ||
| 17 | AR= ar r | ||
| 18 | |||
| 19 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 20 | |||
| 21 | GENERAL=Makefile | ||
| 22 | TEST= enginetest.c | ||
| 23 | APPS= | ||
| 24 | |||
| 25 | LIB=$(TOP)/libcrypto.a | ||
| 26 | LIBSRC= eng_err.c eng_lib.c eng_list.c eng_init.c eng_ctrl.c \ | ||
| 27 | eng_table.c eng_pkey.c eng_fat.c eng_all.c \ | ||
| 28 | tb_rsa.c tb_dsa.c tb_dh.c tb_rand.c tb_cipher.c tb_digest.c \ | ||
| 29 | eng_openssl.c eng_dyn.c eng_cnf.c \ | ||
| 30 | hw_atalla.c hw_cswift.c hw_ncipher.c hw_nuron.c hw_ubsec.c \ | ||
| 31 | hw_cryptodev.c hw_aep.c hw_sureware.c hw_4758_cca.c | ||
| 32 | LIBOBJ= eng_err.o eng_lib.o eng_list.o eng_init.o eng_ctrl.o \ | ||
| 33 | eng_table.o eng_pkey.o eng_fat.o eng_all.o \ | ||
| 34 | tb_rsa.o tb_dsa.o tb_dh.o tb_rand.o tb_cipher.o tb_digest.o \ | ||
| 35 | eng_openssl.o eng_dyn.o eng_cnf.o \ | ||
| 36 | hw_atalla.o hw_cswift.o hw_ncipher.o hw_nuron.o hw_ubsec.o \ | ||
| 37 | hw_cryptodev.o hw_aep.o hw_sureware.o hw_4758_cca.o | ||
| 38 | |||
| 39 | SRC= $(LIBSRC) | ||
| 40 | |||
| 41 | EXHEADER= engine.h | ||
| 42 | HEADER= $(EXHEADER) | ||
| 43 | |||
| 44 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
| 45 | |||
| 46 | top: | ||
| 47 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
| 48 | |||
| 49 | all: lib | ||
| 50 | |||
| 51 | lib: $(LIBOBJ) | ||
| 52 | $(AR) $(LIB) $(LIBOBJ) | ||
| 53 | $(RANLIB) $(LIB) || echo Never mind. | ||
| 54 | @touch lib | ||
| 55 | |||
| 56 | files: | ||
| 57 | $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
| 58 | |||
| 59 | links: | ||
| 60 | @sh $(TOP)/util/point.sh Makefile.ssl Makefile | ||
| 61 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | ||
| 62 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | ||
| 63 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | ||
| 64 | |||
| 65 | install: | ||
| 66 | @for i in $(EXHEADER) ; \ | ||
| 67 | do \ | ||
| 68 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 69 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
| 70 | done; | ||
| 71 | |||
| 72 | tags: | ||
| 73 | ctags $(SRC) | ||
| 74 | |||
| 75 | errors: | ||
| 76 | $(PERL) $(TOP)/util/mkerr.pl -conf hw.ec \ | ||
| 77 | -nostatic -staticloader -write hw_*.c | ||
| 78 | |||
| 79 | tests: | ||
| 80 | |||
| 81 | lint: | ||
| 82 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
| 83 | |||
| 84 | depend: | ||
| 85 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) | ||
| 86 | |||
| 87 | dclean: | ||
| 88 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 89 | mv -f Makefile.new $(MAKEFILE) | ||
| 90 | |||
| 91 | clean: | ||
| 92 | rm -f *.o */*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
| 93 | |||
| 94 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 95 | |||
| 96 | eng_all.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 97 | eng_all.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h | ||
| 98 | eng_all.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 99 | eng_all.o: ../../include/openssl/e_os2.h ../../include/openssl/engine.h | ||
| 100 | eng_all.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
| 101 | eng_all.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 102 | eng_all.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h | ||
| 103 | eng_all.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 104 | eng_all.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 105 | eng_all.o: ../../include/openssl/ui.h eng_all.c eng_int.h | ||
| 106 | eng_cnf.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 107 | eng_cnf.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 108 | eng_cnf.o: ../../include/openssl/buffer.h ../../include/openssl/conf.h | ||
| 109 | eng_cnf.o: ../../include/openssl/crypto.h ../../include/openssl/dh.h | ||
| 110 | eng_cnf.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 111 | eng_cnf.o: ../../include/openssl/engine.h ../../include/openssl/err.h | ||
| 112 | eng_cnf.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 113 | eng_cnf.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 114 | eng_cnf.o: ../../include/openssl/rand.h ../../include/openssl/rsa.h | ||
| 115 | eng_cnf.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 116 | eng_cnf.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 117 | eng_cnf.o: ../cryptlib.h eng_cnf.c | ||
| 118 | eng_ctrl.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 119 | eng_ctrl.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 120 | eng_ctrl.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 121 | eng_ctrl.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 122 | eng_ctrl.o: ../../include/openssl/e_os2.h ../../include/openssl/engine.h | ||
| 123 | eng_ctrl.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
| 124 | eng_ctrl.o: ../../include/openssl/opensslconf.h | ||
| 125 | eng_ctrl.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 126 | eng_ctrl.o: ../../include/openssl/rand.h ../../include/openssl/rsa.h | ||
| 127 | eng_ctrl.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 128 | eng_ctrl.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 129 | eng_ctrl.o: ../cryptlib.h eng_ctrl.c eng_int.h | ||
| 130 | eng_dyn.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 131 | eng_dyn.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 132 | eng_dyn.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 133 | eng_dyn.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 134 | eng_dyn.o: ../../include/openssl/dso.h ../../include/openssl/e_os2.h | ||
| 135 | eng_dyn.o: ../../include/openssl/engine.h ../../include/openssl/err.h | ||
| 136 | eng_dyn.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 137 | eng_dyn.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 138 | eng_dyn.o: ../../include/openssl/rand.h ../../include/openssl/rsa.h | ||
| 139 | eng_dyn.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 140 | eng_dyn.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 141 | eng_dyn.o: ../cryptlib.h eng_dyn.c eng_int.h | ||
| 142 | eng_err.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 143 | eng_err.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h | ||
| 144 | eng_err.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 145 | eng_err.o: ../../include/openssl/e_os2.h ../../include/openssl/engine.h | ||
| 146 | eng_err.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
| 147 | eng_err.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 148 | eng_err.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h | ||
| 149 | eng_err.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 150 | eng_err.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 151 | eng_err.o: ../../include/openssl/ui.h eng_err.c | ||
| 152 | eng_fat.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 153 | eng_fat.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 154 | eng_fat.o: ../../include/openssl/buffer.h ../../include/openssl/conf.h | ||
| 155 | eng_fat.o: ../../include/openssl/crypto.h ../../include/openssl/dh.h | ||
| 156 | eng_fat.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 157 | eng_fat.o: ../../include/openssl/engine.h ../../include/openssl/err.h | ||
| 158 | eng_fat.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 159 | eng_fat.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 160 | eng_fat.o: ../../include/openssl/rand.h ../../include/openssl/rsa.h | ||
| 161 | eng_fat.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 162 | eng_fat.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 163 | eng_fat.o: ../cryptlib.h eng_fat.c eng_int.h | ||
| 164 | eng_init.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 165 | eng_init.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 166 | eng_init.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 167 | eng_init.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 168 | eng_init.o: ../../include/openssl/e_os2.h ../../include/openssl/engine.h | ||
| 169 | eng_init.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
| 170 | eng_init.o: ../../include/openssl/opensslconf.h | ||
| 171 | eng_init.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 172 | eng_init.o: ../../include/openssl/rand.h ../../include/openssl/rsa.h | ||
| 173 | eng_init.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 174 | eng_init.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 175 | eng_init.o: ../cryptlib.h eng_init.c eng_int.h | ||
| 176 | eng_lib.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 177 | eng_lib.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 178 | eng_lib.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 179 | eng_lib.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 180 | eng_lib.o: ../../include/openssl/e_os2.h ../../include/openssl/engine.h | ||
| 181 | eng_lib.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
| 182 | eng_lib.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 183 | eng_lib.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h | ||
| 184 | eng_lib.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 185 | eng_lib.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 186 | eng_lib.o: ../../include/openssl/ui.h ../cryptlib.h eng_int.h eng_lib.c | ||
| 187 | eng_list.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 188 | eng_list.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 189 | eng_list.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 190 | eng_list.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 191 | eng_list.o: ../../include/openssl/e_os2.h ../../include/openssl/engine.h | ||
| 192 | eng_list.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
| 193 | eng_list.o: ../../include/openssl/opensslconf.h | ||
| 194 | eng_list.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 195 | eng_list.o: ../../include/openssl/rand.h ../../include/openssl/rsa.h | ||
| 196 | eng_list.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 197 | eng_list.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 198 | eng_list.o: ../cryptlib.h eng_int.h eng_list.c | ||
| 199 | eng_openssl.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 200 | eng_openssl.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 201 | eng_openssl.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 202 | eng_openssl.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 203 | eng_openssl.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 204 | eng_openssl.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 205 | eng_openssl.o: ../../include/openssl/dsa.h ../../include/openssl/dso.h | ||
| 206 | eng_openssl.o: ../../include/openssl/e_os2.h ../../include/openssl/engine.h | ||
| 207 | eng_openssl.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 208 | eng_openssl.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 209 | eng_openssl.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 210 | eng_openssl.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 211 | eng_openssl.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 212 | eng_openssl.o: ../../include/openssl/opensslconf.h | ||
| 213 | eng_openssl.o: ../../include/openssl/opensslv.h | ||
| 214 | eng_openssl.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pem.h | ||
| 215 | eng_openssl.o: ../../include/openssl/pem2.h ../../include/openssl/pkcs7.h | ||
| 216 | eng_openssl.o: ../../include/openssl/rand.h ../../include/openssl/rc2.h | ||
| 217 | eng_openssl.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 218 | eng_openssl.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 219 | eng_openssl.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 220 | eng_openssl.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 221 | eng_openssl.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 222 | eng_openssl.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 223 | eng_openssl.o: ../cryptlib.h eng_openssl.c | ||
| 224 | eng_pkey.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 225 | eng_pkey.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 226 | eng_pkey.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 227 | eng_pkey.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 228 | eng_pkey.o: ../../include/openssl/e_os2.h ../../include/openssl/engine.h | ||
| 229 | eng_pkey.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
| 230 | eng_pkey.o: ../../include/openssl/opensslconf.h | ||
| 231 | eng_pkey.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 232 | eng_pkey.o: ../../include/openssl/rand.h ../../include/openssl/rsa.h | ||
| 233 | eng_pkey.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 234 | eng_pkey.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 235 | eng_pkey.o: ../cryptlib.h eng_int.h eng_pkey.c | ||
| 236 | eng_table.o: ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 237 | eng_table.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 238 | eng_table.o: ../../include/openssl/bn.h ../../include/openssl/cast.h | ||
| 239 | eng_table.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 240 | eng_table.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 241 | eng_table.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 242 | eng_table.o: ../../include/openssl/engine.h ../../include/openssl/err.h | ||
| 243 | eng_table.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 244 | eng_table.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 245 | eng_table.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 246 | eng_table.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 247 | eng_table.o: ../../include/openssl/objects.h | ||
| 248 | eng_table.o: ../../include/openssl/opensslconf.h | ||
| 249 | eng_table.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 250 | eng_table.o: ../../include/openssl/rand.h ../../include/openssl/rc2.h | ||
| 251 | eng_table.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 252 | eng_table.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 253 | eng_table.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 254 | eng_table.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 255 | eng_table.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 256 | eng_table.o: eng_int.h eng_table.c | ||
| 257 | hw_4758_cca.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 258 | hw_4758_cca.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 259 | hw_4758_cca.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 260 | hw_4758_cca.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 261 | hw_4758_cca.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 262 | hw_4758_cca.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 263 | hw_4758_cca.o: ../../include/openssl/dsa.h ../../include/openssl/dso.h | ||
| 264 | hw_4758_cca.o: ../../include/openssl/e_os2.h ../../include/openssl/engine.h | ||
| 265 | hw_4758_cca.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 266 | hw_4758_cca.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 267 | hw_4758_cca.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 268 | hw_4758_cca.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 269 | hw_4758_cca.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 270 | hw_4758_cca.o: ../../include/openssl/opensslconf.h | ||
| 271 | hw_4758_cca.o: ../../include/openssl/opensslv.h | ||
| 272 | hw_4758_cca.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs7.h | ||
| 273 | hw_4758_cca.o: ../../include/openssl/rand.h ../../include/openssl/rc2.h | ||
| 274 | hw_4758_cca.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 275 | hw_4758_cca.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 276 | hw_4758_cca.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 277 | hw_4758_cca.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 278 | hw_4758_cca.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 279 | hw_4758_cca.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 280 | hw_4758_cca.o: ../cryptlib.h hw_4758_cca.c hw_4758_cca_err.c hw_4758_cca_err.h | ||
| 281 | hw_4758_cca.o: vendor_defns/hw_4758_cca.h | ||
| 282 | hw_aep.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 283 | hw_aep.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 284 | hw_aep.o: ../../include/openssl/crypto.h ../../include/openssl/dh.h | ||
| 285 | hw_aep.o: ../../include/openssl/dsa.h ../../include/openssl/dso.h | ||
| 286 | hw_aep.o: ../../include/openssl/e_os2.h ../../include/openssl/engine.h | ||
| 287 | hw_aep.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
| 288 | hw_aep.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 289 | hw_aep.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h | ||
| 290 | hw_aep.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 291 | hw_aep.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 292 | hw_aep.o: ../../include/openssl/ui.h hw_aep.c hw_aep_err.c hw_aep_err.h | ||
| 293 | hw_aep.o: vendor_defns/aep.h | ||
| 294 | hw_atalla.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 295 | hw_atalla.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 296 | hw_atalla.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 297 | hw_atalla.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 298 | hw_atalla.o: ../../include/openssl/dso.h ../../include/openssl/e_os2.h | ||
| 299 | hw_atalla.o: ../../include/openssl/engine.h ../../include/openssl/err.h | ||
| 300 | hw_atalla.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 301 | hw_atalla.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 302 | hw_atalla.o: ../../include/openssl/rand.h ../../include/openssl/rsa.h | ||
| 303 | hw_atalla.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 304 | hw_atalla.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 305 | hw_atalla.o: ../cryptlib.h hw_atalla.c hw_atalla_err.c hw_atalla_err.h | ||
| 306 | hw_atalla.o: vendor_defns/atalla.h | ||
| 307 | hw_cryptodev.o: ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 308 | hw_cryptodev.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 309 | hw_cryptodev.o: ../../include/openssl/bn.h ../../include/openssl/cast.h | ||
| 310 | hw_cryptodev.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 311 | hw_cryptodev.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 312 | hw_cryptodev.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 313 | hw_cryptodev.o: ../../include/openssl/engine.h ../../include/openssl/err.h | ||
| 314 | hw_cryptodev.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 315 | hw_cryptodev.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 316 | hw_cryptodev.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 317 | hw_cryptodev.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 318 | hw_cryptodev.o: ../../include/openssl/objects.h | ||
| 319 | hw_cryptodev.o: ../../include/openssl/opensslconf.h | ||
| 320 | hw_cryptodev.o: ../../include/openssl/opensslv.h | ||
| 321 | hw_cryptodev.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h | ||
| 322 | hw_cryptodev.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 323 | hw_cryptodev.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 324 | hw_cryptodev.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 325 | hw_cryptodev.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 326 | hw_cryptodev.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 327 | hw_cryptodev.o: ../../include/openssl/ui_compat.h hw_cryptodev.c | ||
| 328 | hw_cswift.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 329 | hw_cswift.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 330 | hw_cswift.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 331 | hw_cswift.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 332 | hw_cswift.o: ../../include/openssl/dso.h ../../include/openssl/e_os2.h | ||
| 333 | hw_cswift.o: ../../include/openssl/engine.h ../../include/openssl/err.h | ||
| 334 | hw_cswift.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 335 | hw_cswift.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 336 | hw_cswift.o: ../../include/openssl/rand.h ../../include/openssl/rsa.h | ||
| 337 | hw_cswift.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 338 | hw_cswift.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 339 | hw_cswift.o: ../cryptlib.h hw_cswift.c hw_cswift_err.c hw_cswift_err.h | ||
| 340 | hw_cswift.o: vendor_defns/cswift.h | ||
| 341 | hw_ncipher.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 342 | hw_ncipher.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 343 | hw_ncipher.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 344 | hw_ncipher.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 345 | hw_ncipher.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 346 | hw_ncipher.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 347 | hw_ncipher.o: ../../include/openssl/dsa.h ../../include/openssl/dso.h | ||
| 348 | hw_ncipher.o: ../../include/openssl/e_os2.h ../../include/openssl/engine.h | ||
| 349 | hw_ncipher.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 350 | hw_ncipher.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 351 | hw_ncipher.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 352 | hw_ncipher.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 353 | hw_ncipher.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 354 | hw_ncipher.o: ../../include/openssl/opensslconf.h | ||
| 355 | hw_ncipher.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 356 | hw_ncipher.o: ../../include/openssl/pem.h ../../include/openssl/pem2.h | ||
| 357 | hw_ncipher.o: ../../include/openssl/pkcs7.h ../../include/openssl/rand.h | ||
| 358 | hw_ncipher.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 359 | hw_ncipher.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 360 | hw_ncipher.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 361 | hw_ncipher.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 362 | hw_ncipher.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 363 | hw_ncipher.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 364 | hw_ncipher.o: ../../include/openssl/x509_vfy.h ../cryptlib.h hw_ncipher.c | ||
| 365 | hw_ncipher.o: hw_ncipher_err.c hw_ncipher_err.h vendor_defns/hwcryptohook.h | ||
| 366 | hw_nuron.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 367 | hw_nuron.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 368 | hw_nuron.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 369 | hw_nuron.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 370 | hw_nuron.o: ../../include/openssl/dso.h ../../include/openssl/e_os2.h | ||
| 371 | hw_nuron.o: ../../include/openssl/engine.h ../../include/openssl/err.h | ||
| 372 | hw_nuron.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 373 | hw_nuron.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 374 | hw_nuron.o: ../../include/openssl/rand.h ../../include/openssl/rsa.h | ||
| 375 | hw_nuron.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 376 | hw_nuron.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 377 | hw_nuron.o: ../cryptlib.h hw_nuron.c hw_nuron_err.c hw_nuron_err.h | ||
| 378 | hw_sureware.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 379 | hw_sureware.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 380 | hw_sureware.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 381 | hw_sureware.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 382 | hw_sureware.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 383 | hw_sureware.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 384 | hw_sureware.o: ../../include/openssl/dsa.h ../../include/openssl/dso.h | ||
| 385 | hw_sureware.o: ../../include/openssl/e_os2.h ../../include/openssl/engine.h | ||
| 386 | hw_sureware.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 387 | hw_sureware.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 388 | hw_sureware.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 389 | hw_sureware.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 390 | hw_sureware.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 391 | hw_sureware.o: ../../include/openssl/opensslconf.h | ||
| 392 | hw_sureware.o: ../../include/openssl/opensslv.h | ||
| 393 | hw_sureware.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pem.h | ||
| 394 | hw_sureware.o: ../../include/openssl/pem2.h ../../include/openssl/pkcs7.h | ||
| 395 | hw_sureware.o: ../../include/openssl/rand.h ../../include/openssl/rc2.h | ||
| 396 | hw_sureware.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 397 | hw_sureware.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 398 | hw_sureware.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 399 | hw_sureware.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 400 | hw_sureware.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 401 | hw_sureware.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 402 | hw_sureware.o: ../cryptlib.h eng_int.h engine.h hw_sureware.c hw_sureware_err.c | ||
| 403 | hw_sureware.o: hw_sureware_err.h vendor_defns/sureware.h | ||
| 404 | hw_ubsec.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 405 | hw_ubsec.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 406 | hw_ubsec.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 407 | hw_ubsec.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 408 | hw_ubsec.o: ../../include/openssl/dso.h ../../include/openssl/e_os2.h | ||
| 409 | hw_ubsec.o: ../../include/openssl/engine.h ../../include/openssl/err.h | ||
| 410 | hw_ubsec.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 411 | hw_ubsec.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 412 | hw_ubsec.o: ../../include/openssl/rand.h ../../include/openssl/rsa.h | ||
| 413 | hw_ubsec.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 414 | hw_ubsec.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 415 | hw_ubsec.o: ../cryptlib.h hw_ubsec.c hw_ubsec_err.c hw_ubsec_err.h | ||
| 416 | hw_ubsec.o: vendor_defns/hw_ubsec.h | ||
| 417 | tb_cipher.o: ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 418 | tb_cipher.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 419 | tb_cipher.o: ../../include/openssl/bn.h ../../include/openssl/cast.h | ||
| 420 | tb_cipher.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 421 | tb_cipher.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 422 | tb_cipher.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 423 | tb_cipher.o: ../../include/openssl/engine.h ../../include/openssl/err.h | ||
| 424 | tb_cipher.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 425 | tb_cipher.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 426 | tb_cipher.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 427 | tb_cipher.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 428 | tb_cipher.o: ../../include/openssl/objects.h | ||
| 429 | tb_cipher.o: ../../include/openssl/opensslconf.h | ||
| 430 | tb_cipher.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 431 | tb_cipher.o: ../../include/openssl/rand.h ../../include/openssl/rc2.h | ||
| 432 | tb_cipher.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 433 | tb_cipher.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 434 | tb_cipher.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 435 | tb_cipher.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 436 | tb_cipher.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 437 | tb_cipher.o: eng_int.h tb_cipher.c | ||
| 438 | tb_dh.o: ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 439 | tb_dh.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 440 | tb_dh.o: ../../include/openssl/bn.h ../../include/openssl/cast.h | ||
| 441 | tb_dh.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 442 | tb_dh.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 443 | tb_dh.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 444 | tb_dh.o: ../../include/openssl/engine.h ../../include/openssl/err.h | ||
| 445 | tb_dh.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 446 | tb_dh.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 447 | tb_dh.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 448 | tb_dh.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 449 | tb_dh.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 450 | tb_dh.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 451 | tb_dh.o: ../../include/openssl/rand.h ../../include/openssl/rc2.h | ||
| 452 | tb_dh.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 453 | tb_dh.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 454 | tb_dh.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 455 | tb_dh.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 456 | tb_dh.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h eng_int.h | ||
| 457 | tb_dh.o: tb_dh.c | ||
| 458 | tb_digest.o: ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 459 | tb_digest.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 460 | tb_digest.o: ../../include/openssl/bn.h ../../include/openssl/cast.h | ||
| 461 | tb_digest.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 462 | tb_digest.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 463 | tb_digest.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 464 | tb_digest.o: ../../include/openssl/engine.h ../../include/openssl/err.h | ||
| 465 | tb_digest.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 466 | tb_digest.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 467 | tb_digest.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 468 | tb_digest.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 469 | tb_digest.o: ../../include/openssl/objects.h | ||
| 470 | tb_digest.o: ../../include/openssl/opensslconf.h | ||
| 471 | tb_digest.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 472 | tb_digest.o: ../../include/openssl/rand.h ../../include/openssl/rc2.h | ||
| 473 | tb_digest.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 474 | tb_digest.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 475 | tb_digest.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 476 | tb_digest.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 477 | tb_digest.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 478 | tb_digest.o: eng_int.h tb_digest.c | ||
| 479 | tb_dsa.o: ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 480 | tb_dsa.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 481 | tb_dsa.o: ../../include/openssl/bn.h ../../include/openssl/cast.h | ||
| 482 | tb_dsa.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 483 | tb_dsa.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 484 | tb_dsa.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 485 | tb_dsa.o: ../../include/openssl/engine.h ../../include/openssl/err.h | ||
| 486 | tb_dsa.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 487 | tb_dsa.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 488 | tb_dsa.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 489 | tb_dsa.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 490 | tb_dsa.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 491 | tb_dsa.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 492 | tb_dsa.o: ../../include/openssl/rand.h ../../include/openssl/rc2.h | ||
| 493 | tb_dsa.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 494 | tb_dsa.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 495 | tb_dsa.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 496 | tb_dsa.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 497 | tb_dsa.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 498 | tb_dsa.o: eng_int.h tb_dsa.c | ||
| 499 | tb_rand.o: ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 500 | tb_rand.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 501 | tb_rand.o: ../../include/openssl/bn.h ../../include/openssl/cast.h | ||
| 502 | tb_rand.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 503 | tb_rand.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 504 | tb_rand.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 505 | tb_rand.o: ../../include/openssl/engine.h ../../include/openssl/err.h | ||
| 506 | tb_rand.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 507 | tb_rand.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 508 | tb_rand.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 509 | tb_rand.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 510 | tb_rand.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 511 | tb_rand.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 512 | tb_rand.o: ../../include/openssl/rand.h ../../include/openssl/rc2.h | ||
| 513 | tb_rand.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 514 | tb_rand.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 515 | tb_rand.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 516 | tb_rand.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 517 | tb_rand.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 518 | tb_rand.o: eng_int.h tb_rand.c | ||
| 519 | tb_rsa.o: ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 520 | tb_rsa.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 521 | tb_rsa.o: ../../include/openssl/bn.h ../../include/openssl/cast.h | ||
| 522 | tb_rsa.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 523 | tb_rsa.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 524 | tb_rsa.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 525 | tb_rsa.o: ../../include/openssl/engine.h ../../include/openssl/err.h | ||
| 526 | tb_rsa.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 527 | tb_rsa.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 528 | tb_rsa.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 529 | tb_rsa.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 530 | tb_rsa.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 531 | tb_rsa.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 532 | tb_rsa.o: ../../include/openssl/rand.h ../../include/openssl/rc2.h | ||
| 533 | tb_rsa.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 534 | tb_rsa.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 535 | tb_rsa.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 536 | tb_rsa.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 537 | tb_rsa.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 538 | tb_rsa.o: eng_int.h tb_rsa.c | ||
diff --git a/src/lib/libcrypto/engine/eng_rdrand.c b/src/lib/libcrypto/engine/eng_rdrand.c deleted file mode 100644 index 4e9e91d54b..0000000000 --- a/src/lib/libcrypto/engine/eng_rdrand.c +++ /dev/null | |||
| @@ -1,143 +0,0 @@ | |||
| 1 | /* ==================================================================== | ||
| 2 | * Copyright (c) 2011 The OpenSSL Project. All rights reserved. | ||
| 3 | * | ||
| 4 | * Redistribution and use in source and binary forms, with or without | ||
| 5 | * modification, are permitted provided that the following conditions | ||
| 6 | * are met: | ||
| 7 | * | ||
| 8 | * 1. Redistributions of source code must retain the above copyright | ||
| 9 | * notice, this list of conditions and the following disclaimer. | ||
| 10 | * | ||
| 11 | * 2. Redistributions in binary form must reproduce the above copyright | ||
| 12 | * notice, this list of conditions and the following disclaimer in | ||
| 13 | * the documentation and/or other materials provided with the | ||
| 14 | * distribution. | ||
| 15 | * | ||
| 16 | * 3. All advertising materials mentioning features or use of this | ||
| 17 | * software must display the following acknowledgment: | ||
| 18 | * "This product includes software developed by the OpenSSL Project | ||
| 19 | * for use in the OpenSSL Toolkit. (http://www.OpenSSL.org/)" | ||
| 20 | * | ||
| 21 | * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to | ||
| 22 | * endorse or promote products derived from this software without | ||
| 23 | * prior written permission. For written permission, please contact | ||
| 24 | * licensing@OpenSSL.org. | ||
| 25 | * | ||
| 26 | * 5. Products derived from this software may not be called "OpenSSL" | ||
| 27 | * nor may "OpenSSL" appear in their names without prior written | ||
| 28 | * permission of the OpenSSL Project. | ||
| 29 | * | ||
| 30 | * 6. Redistributions of any form whatsoever must retain the following | ||
| 31 | * acknowledgment: | ||
| 32 | * "This product includes software developed by the OpenSSL Project | ||
| 33 | * for use in the OpenSSL Toolkit (http://www.OpenSSL.org/)" | ||
| 34 | * | ||
| 35 | * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY | ||
| 36 | * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
| 37 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | ||
| 38 | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR | ||
| 39 | * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
| 40 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | ||
| 41 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
| 42 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
| 43 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | ||
| 44 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
| 45 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | ||
| 46 | * OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| 47 | * ==================================================================== | ||
| 48 | */ | ||
| 49 | |||
| 50 | #include <openssl/opensslconf.h> | ||
| 51 | |||
| 52 | #include <stdio.h> | ||
| 53 | #include <string.h> | ||
| 54 | #include <openssl/engine.h> | ||
| 55 | #include <openssl/rand.h> | ||
| 56 | #include <openssl/err.h> | ||
| 57 | |||
| 58 | #if (defined(__i386) || defined(__i386__) || defined(_M_IX86) || \ | ||
| 59 | defined(__x86_64) || defined(__x86_64__) || \ | ||
| 60 | defined(_M_AMD64) || defined (_M_X64)) && defined(OPENSSL_CPUID_OBJ) | ||
| 61 | |||
| 62 | size_t OPENSSL_ia32_rdrand(void); | ||
| 63 | |||
| 64 | static int get_random_bytes (unsigned char *buf, int num) | ||
| 65 | { | ||
| 66 | size_t rnd; | ||
| 67 | |||
| 68 | while (num>=(int)sizeof(size_t)) { | ||
| 69 | if ((rnd = OPENSSL_ia32_rdrand()) == 0) return 0; | ||
| 70 | |||
| 71 | *((size_t *)buf) = rnd; | ||
| 72 | buf += sizeof(size_t); | ||
| 73 | num -= sizeof(size_t); | ||
| 74 | } | ||
| 75 | if (num) { | ||
| 76 | if ((rnd = OPENSSL_ia32_rdrand()) == 0) return 0; | ||
| 77 | |||
| 78 | memcpy (buf,&rnd,num); | ||
| 79 | } | ||
| 80 | |||
| 81 | return 1; | ||
| 82 | } | ||
| 83 | |||
| 84 | static int random_status (void) | ||
| 85 | { return 1; } | ||
| 86 | |||
| 87 | static RAND_METHOD rdrand_meth = | ||
| 88 | { | ||
| 89 | NULL, /* seed */ | ||
| 90 | get_random_bytes, | ||
| 91 | NULL, /* cleanup */ | ||
| 92 | NULL, /* add */ | ||
| 93 | get_random_bytes, | ||
| 94 | random_status, | ||
| 95 | }; | ||
| 96 | |||
| 97 | static int rdrand_init(ENGINE *e) | ||
| 98 | { return 1; } | ||
| 99 | |||
| 100 | static const char *engine_e_rdrand_id = "rdrand"; | ||
| 101 | static const char *engine_e_rdrand_name = "Intel RDRAND engine"; | ||
| 102 | |||
| 103 | static int bind_helper(ENGINE *e) | ||
| 104 | { | ||
| 105 | if (!ENGINE_set_id(e, engine_e_rdrand_id) || | ||
| 106 | !ENGINE_set_name(e, engine_e_rdrand_name) || | ||
| 107 | !ENGINE_set_flags(e, ENGINE_FLAGS_NO_REGISTER_ALL) || | ||
| 108 | !ENGINE_set_init_function(e, rdrand_init) || | ||
| 109 | !ENGINE_set_RAND(e, &rdrand_meth) ) | ||
| 110 | return 0; | ||
| 111 | |||
| 112 | return 1; | ||
| 113 | } | ||
| 114 | |||
| 115 | static ENGINE *ENGINE_rdrand(void) | ||
| 116 | { | ||
| 117 | ENGINE *ret = ENGINE_new(); | ||
| 118 | if(!ret) | ||
| 119 | return NULL; | ||
| 120 | if(!bind_helper(ret)) | ||
| 121 | { | ||
| 122 | ENGINE_free(ret); | ||
| 123 | return NULL; | ||
| 124 | } | ||
| 125 | return ret; | ||
| 126 | } | ||
| 127 | |||
| 128 | void ENGINE_load_rdrand (void) | ||
| 129 | { | ||
| 130 | extern unsigned int OPENSSL_ia32cap_P[]; | ||
| 131 | |||
| 132 | if (OPENSSL_ia32cap_P[1] & (1<<(62-32))) | ||
| 133 | { | ||
| 134 | ENGINE *toadd = ENGINE_rdrand(); | ||
| 135 | if(!toadd) return; | ||
| 136 | ENGINE_add(toadd); | ||
| 137 | ENGINE_free(toadd); | ||
| 138 | ERR_clear_error(); | ||
| 139 | } | ||
| 140 | } | ||
| 141 | #else | ||
| 142 | void ENGINE_load_rdrand (void) {} | ||
| 143 | #endif | ||
diff --git a/src/lib/libcrypto/engine/eng_rsax.c b/src/lib/libcrypto/engine/eng_rsax.c deleted file mode 100644 index 96e63477ee..0000000000 --- a/src/lib/libcrypto/engine/eng_rsax.c +++ /dev/null | |||
| @@ -1,668 +0,0 @@ | |||
| 1 | /* crypto/engine/eng_rsax.c */ | ||
| 2 | /* Copyright (c) 2010-2010 Intel Corp. | ||
| 3 | * Author: Vinodh.Gopal@intel.com | ||
| 4 | * Jim Guilford | ||
| 5 | * Erdinc.Ozturk@intel.com | ||
| 6 | * Maxim.Perminov@intel.com | ||
| 7 | * Ying.Huang@intel.com | ||
| 8 | * | ||
| 9 | * More information about algorithm used can be found at: | ||
| 10 | * http://www.cse.buffalo.edu/srds2009/escs2009_submission_Gopal.pdf | ||
| 11 | */ | ||
| 12 | /* ==================================================================== | ||
| 13 | * Copyright (c) 1999-2001 The OpenSSL Project. All rights reserved. | ||
| 14 | * | ||
| 15 | * Redistribution and use in source and binary forms, with or without | ||
| 16 | * modification, are permitted provided that the following conditions | ||
| 17 | * are met: | ||
| 18 | * | ||
| 19 | * 1. Redistributions of source code must retain the above copyright | ||
| 20 | * notice, this list of conditions and the following disclaimer. | ||
| 21 | * | ||
| 22 | * 2. Redistributions in binary form must reproduce the above copyright | ||
| 23 | * notice, this list of conditions and the following disclaimer in | ||
| 24 | * the documentation and/or other materials provided with the | ||
| 25 | * distribution. | ||
| 26 | * | ||
| 27 | * 3. All advertising materials mentioning features or use of this | ||
| 28 | * software must display the following acknowledgment: | ||
| 29 | * "This product includes software developed by the OpenSSL Project | ||
| 30 | * for use in the OpenSSL Toolkit. (http://www.OpenSSL.org/)" | ||
| 31 | * | ||
| 32 | * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to | ||
| 33 | * endorse or promote products derived from this software without | ||
| 34 | * prior written permission. For written permission, please contact | ||
| 35 | * licensing@OpenSSL.org. | ||
| 36 | * | ||
| 37 | * 5. Products derived from this software may not be called "OpenSSL" | ||
| 38 | * nor may "OpenSSL" appear in their names without prior written | ||
| 39 | * permission of the OpenSSL Project. | ||
| 40 | * | ||
| 41 | * 6. Redistributions of any form whatsoever must retain the following | ||
| 42 | * acknowledgment: | ||
| 43 | * "This product includes software developed by the OpenSSL Project | ||
| 44 | * for use in the OpenSSL Toolkit (http://www.OpenSSL.org/)" | ||
| 45 | * | ||
| 46 | * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY | ||
| 47 | * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
| 48 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | ||
| 49 | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR | ||
| 50 | * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
| 51 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | ||
| 52 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
| 53 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
| 54 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | ||
| 55 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
| 56 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | ||
| 57 | * OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| 58 | * ==================================================================== | ||
| 59 | * | ||
| 60 | * This product includes cryptographic software written by Eric Young | ||
| 61 | * (eay@cryptsoft.com). This product includes software written by Tim | ||
| 62 | * Hudson (tjh@cryptsoft.com). | ||
| 63 | */ | ||
| 64 | |||
| 65 | #include <openssl/opensslconf.h> | ||
| 66 | |||
| 67 | #include <stdio.h> | ||
| 68 | #include <string.h> | ||
| 69 | #include <openssl/crypto.h> | ||
| 70 | #include <openssl/buffer.h> | ||
| 71 | #include <openssl/engine.h> | ||
| 72 | #ifndef OPENSSL_NO_RSA | ||
| 73 | #include <openssl/rsa.h> | ||
| 74 | #endif | ||
| 75 | #include <openssl/bn.h> | ||
| 76 | #include <openssl/err.h> | ||
| 77 | |||
| 78 | /* RSAX is available **ONLY* on x86_64 CPUs */ | ||
| 79 | #undef COMPILE_RSAX | ||
| 80 | |||
| 81 | #if (defined(__x86_64) || defined(__x86_64__) || \ | ||
| 82 | defined(_M_AMD64) || defined (_M_X64)) && !defined(OPENSSL_NO_ASM) | ||
| 83 | #define COMPILE_RSAX | ||
| 84 | static ENGINE *ENGINE_rsax (void); | ||
| 85 | #endif | ||
| 86 | |||
| 87 | void ENGINE_load_rsax (void) | ||
| 88 | { | ||
| 89 | /* On non-x86 CPUs it just returns. */ | ||
| 90 | #ifdef COMPILE_RSAX | ||
| 91 | ENGINE *toadd = ENGINE_rsax(); | ||
| 92 | if(!toadd) return; | ||
| 93 | ENGINE_add(toadd); | ||
| 94 | ENGINE_free(toadd); | ||
| 95 | ERR_clear_error(); | ||
| 96 | #endif | ||
| 97 | } | ||
| 98 | |||
| 99 | #ifdef COMPILE_RSAX | ||
| 100 | #define E_RSAX_LIB_NAME "rsax engine" | ||
| 101 | |||
| 102 | static int e_rsax_destroy(ENGINE *e); | ||
| 103 | static int e_rsax_init(ENGINE *e); | ||
| 104 | static int e_rsax_finish(ENGINE *e); | ||
| 105 | static int e_rsax_ctrl(ENGINE *e, int cmd, long i, void *p, void (*f)(void)); | ||
| 106 | |||
| 107 | #ifndef OPENSSL_NO_RSA | ||
| 108 | /* RSA stuff */ | ||
| 109 | static int e_rsax_rsa_mod_exp(BIGNUM *r, const BIGNUM *I, RSA *rsa, BN_CTX *ctx); | ||
| 110 | static int e_rsax_rsa_finish(RSA *r); | ||
| 111 | #endif | ||
| 112 | |||
| 113 | static const ENGINE_CMD_DEFN e_rsax_cmd_defns[] = { | ||
| 114 | {0, NULL, NULL, 0} | ||
| 115 | }; | ||
| 116 | |||
| 117 | #ifndef OPENSSL_NO_RSA | ||
| 118 | /* Our internal RSA_METHOD that we provide pointers to */ | ||
| 119 | static RSA_METHOD e_rsax_rsa = | ||
| 120 | { | ||
| 121 | "Intel RSA-X method", | ||
| 122 | NULL, | ||
| 123 | NULL, | ||
| 124 | NULL, | ||
| 125 | NULL, | ||
| 126 | e_rsax_rsa_mod_exp, | ||
| 127 | NULL, | ||
| 128 | NULL, | ||
| 129 | e_rsax_rsa_finish, | ||
| 130 | RSA_FLAG_CACHE_PUBLIC|RSA_FLAG_CACHE_PRIVATE, | ||
| 131 | NULL, | ||
| 132 | NULL, | ||
| 133 | NULL | ||
| 134 | }; | ||
| 135 | #endif | ||
| 136 | |||
| 137 | /* Constants used when creating the ENGINE */ | ||
| 138 | static const char *engine_e_rsax_id = "rsax"; | ||
| 139 | static const char *engine_e_rsax_name = "RSAX engine support"; | ||
| 140 | |||
| 141 | /* This internal function is used by ENGINE_rsax() */ | ||
| 142 | static int bind_helper(ENGINE *e) | ||
| 143 | { | ||
| 144 | #ifndef OPENSSL_NO_RSA | ||
| 145 | const RSA_METHOD *meth1; | ||
| 146 | #endif | ||
| 147 | if(!ENGINE_set_id(e, engine_e_rsax_id) || | ||
| 148 | !ENGINE_set_name(e, engine_e_rsax_name) || | ||
| 149 | #ifndef OPENSSL_NO_RSA | ||
| 150 | !ENGINE_set_RSA(e, &e_rsax_rsa) || | ||
| 151 | #endif | ||
| 152 | !ENGINE_set_destroy_function(e, e_rsax_destroy) || | ||
| 153 | !ENGINE_set_init_function(e, e_rsax_init) || | ||
| 154 | !ENGINE_set_finish_function(e, e_rsax_finish) || | ||
| 155 | !ENGINE_set_ctrl_function(e, e_rsax_ctrl) || | ||
| 156 | !ENGINE_set_cmd_defns(e, e_rsax_cmd_defns)) | ||
| 157 | return 0; | ||
| 158 | |||
| 159 | #ifndef OPENSSL_NO_RSA | ||
| 160 | meth1 = RSA_PKCS1_SSLeay(); | ||
| 161 | e_rsax_rsa.rsa_pub_enc = meth1->rsa_pub_enc; | ||
| 162 | e_rsax_rsa.rsa_pub_dec = meth1->rsa_pub_dec; | ||
| 163 | e_rsax_rsa.rsa_priv_enc = meth1->rsa_priv_enc; | ||
| 164 | e_rsax_rsa.rsa_priv_dec = meth1->rsa_priv_dec; | ||
| 165 | e_rsax_rsa.bn_mod_exp = meth1->bn_mod_exp; | ||
| 166 | #endif | ||
| 167 | return 1; | ||
| 168 | } | ||
| 169 | |||
| 170 | static ENGINE *ENGINE_rsax(void) | ||
| 171 | { | ||
| 172 | ENGINE *ret = ENGINE_new(); | ||
| 173 | if(!ret) | ||
| 174 | return NULL; | ||
| 175 | if(!bind_helper(ret)) | ||
| 176 | { | ||
| 177 | ENGINE_free(ret); | ||
| 178 | return NULL; | ||
| 179 | } | ||
| 180 | return ret; | ||
| 181 | } | ||
| 182 | |||
| 183 | #ifndef OPENSSL_NO_RSA | ||
| 184 | /* Used to attach our own key-data to an RSA structure */ | ||
| 185 | static int rsax_ex_data_idx = -1; | ||
| 186 | #endif | ||
| 187 | |||
| 188 | static int e_rsax_destroy(ENGINE *e) | ||
| 189 | { | ||
| 190 | return 1; | ||
| 191 | } | ||
| 192 | |||
| 193 | /* (de)initialisation functions. */ | ||
| 194 | static int e_rsax_init(ENGINE *e) | ||
| 195 | { | ||
| 196 | #ifndef OPENSSL_NO_RSA | ||
| 197 | if (rsax_ex_data_idx == -1) | ||
| 198 | rsax_ex_data_idx = RSA_get_ex_new_index(0, | ||
| 199 | NULL, | ||
| 200 | NULL, NULL, NULL); | ||
| 201 | #endif | ||
| 202 | if (rsax_ex_data_idx == -1) | ||
| 203 | return 0; | ||
| 204 | return 1; | ||
| 205 | } | ||
| 206 | |||
| 207 | static int e_rsax_finish(ENGINE *e) | ||
| 208 | { | ||
| 209 | return 1; | ||
| 210 | } | ||
| 211 | |||
| 212 | static int e_rsax_ctrl(ENGINE *e, int cmd, long i, void *p, void (*f)(void)) | ||
| 213 | { | ||
| 214 | int to_return = 1; | ||
| 215 | |||
| 216 | switch(cmd) | ||
| 217 | { | ||
| 218 | /* The command isn't understood by this engine */ | ||
| 219 | default: | ||
| 220 | to_return = 0; | ||
| 221 | break; | ||
| 222 | } | ||
| 223 | |||
| 224 | return to_return; | ||
| 225 | } | ||
| 226 | |||
| 227 | |||
| 228 | #ifndef OPENSSL_NO_RSA | ||
| 229 | |||
| 230 | #ifdef _WIN32 | ||
| 231 | typedef unsigned __int64 UINT64; | ||
| 232 | #else | ||
| 233 | typedef unsigned long long UINT64; | ||
| 234 | #endif | ||
| 235 | typedef unsigned short UINT16; | ||
| 236 | |||
| 237 | /* Table t is interleaved in the following manner: | ||
| 238 | * The order in memory is t[0][0], t[0][1], ..., t[0][7], t[1][0], ... | ||
| 239 | * A particular 512-bit value is stored in t[][index] rather than the more | ||
| 240 | * normal t[index][]; i.e. the qwords of a particular entry in t are not | ||
| 241 | * adjacent in memory | ||
| 242 | */ | ||
| 243 | |||
| 244 | /* Init BIGNUM b from the interleaved UINT64 array */ | ||
| 245 | static int interleaved_array_to_bn_512(BIGNUM* b, UINT64 *array); | ||
| 246 | |||
| 247 | /* Extract array elements from BIGNUM b | ||
| 248 | * To set the whole array from b, call with n=8 | ||
| 249 | */ | ||
| 250 | static int bn_extract_to_array_512(const BIGNUM* b, unsigned int n, UINT64 *array); | ||
| 251 | |||
| 252 | struct mod_ctx_512 { | ||
| 253 | UINT64 t[8][8]; | ||
| 254 | UINT64 m[8]; | ||
| 255 | UINT64 m1[8]; /* 2^278 % m */ | ||
| 256 | UINT64 m2[8]; /* 2^640 % m */ | ||
| 257 | UINT64 k1[2]; /* (- 1/m) % 2^128 */ | ||
| 258 | }; | ||
| 259 | |||
| 260 | static int mod_exp_pre_compute_data_512(UINT64 *m, struct mod_ctx_512 *data); | ||
| 261 | |||
| 262 | void mod_exp_512(UINT64 *result, /* 512 bits, 8 qwords */ | ||
| 263 | UINT64 *g, /* 512 bits, 8 qwords */ | ||
| 264 | UINT64 *exp, /* 512 bits, 8 qwords */ | ||
| 265 | struct mod_ctx_512 *data); | ||
| 266 | |||
| 267 | typedef struct st_e_rsax_mod_ctx | ||
| 268 | { | ||
| 269 | UINT64 type; | ||
| 270 | union { | ||
| 271 | struct mod_ctx_512 b512; | ||
| 272 | } ctx; | ||
| 273 | |||
| 274 | } E_RSAX_MOD_CTX; | ||
| 275 | |||
| 276 | static E_RSAX_MOD_CTX *e_rsax_get_ctx(RSA *rsa, int idx, BIGNUM* m) | ||
| 277 | { | ||
| 278 | E_RSAX_MOD_CTX *hptr; | ||
| 279 | |||
| 280 | if (idx < 0 || idx > 2) | ||
| 281 | return NULL; | ||
| 282 | |||
| 283 | hptr = RSA_get_ex_data(rsa, rsax_ex_data_idx); | ||
| 284 | if (!hptr) { | ||
| 285 | hptr = OPENSSL_malloc(3*sizeof(E_RSAX_MOD_CTX)); | ||
| 286 | if (!hptr) return NULL; | ||
| 287 | hptr[2].type = hptr[1].type= hptr[0].type = 0; | ||
| 288 | RSA_set_ex_data(rsa, rsax_ex_data_idx, hptr); | ||
| 289 | } | ||
| 290 | |||
| 291 | if (hptr[idx].type == (UINT64)BN_num_bits(m)) | ||
| 292 | return hptr+idx; | ||
| 293 | |||
| 294 | if (BN_num_bits(m) == 512) { | ||
| 295 | UINT64 _m[8]; | ||
| 296 | bn_extract_to_array_512(m, 8, _m); | ||
| 297 | memset( &hptr[idx].ctx.b512, 0, sizeof(struct mod_ctx_512)); | ||
| 298 | mod_exp_pre_compute_data_512(_m, &hptr[idx].ctx.b512); | ||
| 299 | } | ||
| 300 | |||
| 301 | hptr[idx].type = BN_num_bits(m); | ||
| 302 | return hptr+idx; | ||
| 303 | } | ||
| 304 | |||
| 305 | static int e_rsax_rsa_finish(RSA *rsa) | ||
| 306 | { | ||
| 307 | E_RSAX_MOD_CTX *hptr = RSA_get_ex_data(rsa, rsax_ex_data_idx); | ||
| 308 | if(hptr) | ||
| 309 | { | ||
| 310 | OPENSSL_free(hptr); | ||
| 311 | RSA_set_ex_data(rsa, rsax_ex_data_idx, NULL); | ||
| 312 | } | ||
| 313 | if (rsa->_method_mod_n) | ||
| 314 | BN_MONT_CTX_free(rsa->_method_mod_n); | ||
| 315 | if (rsa->_method_mod_p) | ||
| 316 | BN_MONT_CTX_free(rsa->_method_mod_p); | ||
| 317 | if (rsa->_method_mod_q) | ||
| 318 | BN_MONT_CTX_free(rsa->_method_mod_q); | ||
| 319 | return 1; | ||
| 320 | } | ||
| 321 | |||
| 322 | |||
| 323 | static int e_rsax_bn_mod_exp(BIGNUM *r, const BIGNUM *g, const BIGNUM *e, | ||
| 324 | const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *in_mont, E_RSAX_MOD_CTX* rsax_mod_ctx ) | ||
| 325 | { | ||
| 326 | if (rsax_mod_ctx && BN_get_flags(e, BN_FLG_CONSTTIME) != 0) { | ||
| 327 | if (BN_num_bits(m) == 512) { | ||
| 328 | UINT64 _r[8]; | ||
| 329 | UINT64 _g[8]; | ||
| 330 | UINT64 _e[8]; | ||
| 331 | |||
| 332 | /* Init the arrays from the BIGNUMs */ | ||
| 333 | bn_extract_to_array_512(g, 8, _g); | ||
| 334 | bn_extract_to_array_512(e, 8, _e); | ||
| 335 | |||
| 336 | mod_exp_512(_r, _g, _e, &rsax_mod_ctx->ctx.b512); | ||
| 337 | /* Return the result in the BIGNUM */ | ||
| 338 | interleaved_array_to_bn_512(r, _r); | ||
| 339 | return 1; | ||
| 340 | } | ||
| 341 | } | ||
| 342 | |||
| 343 | return BN_mod_exp_mont(r, g, e, m, ctx, in_mont); | ||
| 344 | } | ||
| 345 | |||
| 346 | /* Declares for the Intel CIAP 512-bit / CRT / 1024 bit RSA modular | ||
| 347 | * exponentiation routine precalculations and a structure to hold the | ||
| 348 | * necessary values. These files are meant to live in crypto/rsa/ in | ||
| 349 | * the target openssl. | ||
| 350 | */ | ||
| 351 | |||
| 352 | /* | ||
| 353 | * Local method: extracts a piece from a BIGNUM, to fit it into | ||
| 354 | * an array. Call with n=8 to extract an entire 512-bit BIGNUM | ||
| 355 | */ | ||
| 356 | static int bn_extract_to_array_512(const BIGNUM* b, unsigned int n, UINT64 *array) | ||
| 357 | { | ||
| 358 | int i; | ||
| 359 | UINT64 tmp; | ||
| 360 | unsigned char bn_buff[64]; | ||
| 361 | memset(bn_buff, 0, 64); | ||
| 362 | if (BN_num_bytes(b) > 64) { | ||
| 363 | printf ("Can't support this byte size\n"); | ||
| 364 | return 0; } | ||
| 365 | if (BN_num_bytes(b)!=0) { | ||
| 366 | if (!BN_bn2bin(b, bn_buff+(64-BN_num_bytes(b)))) { | ||
| 367 | printf ("Error's in bn2bin\n"); | ||
| 368 | /* We have to error, here */ | ||
| 369 | return 0; } } | ||
| 370 | while (n-- > 0) { | ||
| 371 | array[n] = 0; | ||
| 372 | for (i=7; i>=0; i--) { | ||
| 373 | tmp = bn_buff[63-(n*8+i)]; | ||
| 374 | array[n] |= tmp << (8*i); } } | ||
| 375 | return 1; | ||
| 376 | } | ||
| 377 | |||
| 378 | /* Init a 512-bit BIGNUM from the UINT64*_ (8 * 64) interleaved array */ | ||
| 379 | static int interleaved_array_to_bn_512(BIGNUM* b, UINT64 *array) | ||
| 380 | { | ||
| 381 | unsigned char tmp[64]; | ||
| 382 | int n=8; | ||
| 383 | int i; | ||
| 384 | while (n-- > 0) { | ||
| 385 | for (i = 7; i>=0; i--) { | ||
| 386 | tmp[63-(n*8+i)] = (unsigned char)(array[n]>>(8*i)); } } | ||
| 387 | BN_bin2bn(tmp, 64, b); | ||
| 388 | return 0; | ||
| 389 | } | ||
| 390 | |||
| 391 | |||
| 392 | /* The main 512bit precompute call */ | ||
| 393 | static int mod_exp_pre_compute_data_512(UINT64 *m, struct mod_ctx_512 *data) | ||
| 394 | { | ||
| 395 | BIGNUM two_768, two_640, two_128, two_512, tmp, _m, tmp2; | ||
| 396 | |||
| 397 | /* We need a BN_CTX for the modulo functions */ | ||
| 398 | BN_CTX* ctx; | ||
| 399 | /* Some tmps */ | ||
| 400 | UINT64 _t[8]; | ||
| 401 | int i, j, ret = 0; | ||
| 402 | |||
| 403 | /* Init _m with m */ | ||
| 404 | BN_init(&_m); | ||
| 405 | interleaved_array_to_bn_512(&_m, m); | ||
| 406 | memset(_t, 0, 64); | ||
| 407 | |||
| 408 | /* Inits */ | ||
| 409 | BN_init(&two_768); | ||
| 410 | BN_init(&two_640); | ||
| 411 | BN_init(&two_128); | ||
| 412 | BN_init(&two_512); | ||
| 413 | BN_init(&tmp); | ||
| 414 | BN_init(&tmp2); | ||
| 415 | |||
| 416 | /* Create our context */ | ||
| 417 | if ((ctx=BN_CTX_new()) == NULL) { goto err; } | ||
| 418 | BN_CTX_start(ctx); | ||
| 419 | |||
| 420 | /* | ||
| 421 | * For production, if you care, these only need to be set once, | ||
| 422 | * and may be made constants. | ||
| 423 | */ | ||
| 424 | BN_lshift(&two_768, BN_value_one(), 768); | ||
| 425 | BN_lshift(&two_640, BN_value_one(), 640); | ||
| 426 | BN_lshift(&two_128, BN_value_one(), 128); | ||
| 427 | BN_lshift(&two_512, BN_value_one(), 512); | ||
| 428 | |||
| 429 | if (0 == (m[7] & 0x8000000000000000)) { | ||
| 430 | exit(1); | ||
| 431 | } | ||
| 432 | if (0 == (m[0] & 0x1)) { /* Odd modulus required for Mont */ | ||
| 433 | exit(1); | ||
| 434 | } | ||
| 435 | |||
| 436 | /* Precompute m1 */ | ||
| 437 | BN_mod(&tmp, &two_768, &_m, ctx); | ||
| 438 | if (!bn_extract_to_array_512(&tmp, 8, &data->m1[0])) { | ||
| 439 | goto err; } | ||
| 440 | |||
| 441 | /* Precompute m2 */ | ||
| 442 | BN_mod(&tmp, &two_640, &_m, ctx); | ||
| 443 | if (!bn_extract_to_array_512(&tmp, 8, &data->m2[0])) { | ||
| 444 | goto err; | ||
| 445 | } | ||
| 446 | |||
| 447 | /* | ||
| 448 | * Precompute k1, a 128b number = ((-1)* m-1 ) mod 2128; k1 should | ||
| 449 | * be non-negative. | ||
| 450 | */ | ||
| 451 | BN_mod_inverse(&tmp, &_m, &two_128, ctx); | ||
| 452 | if (!BN_is_zero(&tmp)) { BN_sub(&tmp, &two_128, &tmp); } | ||
| 453 | if (!bn_extract_to_array_512(&tmp, 2, &data->k1[0])) { | ||
| 454 | goto err; } | ||
| 455 | |||
| 456 | /* Precompute t */ | ||
| 457 | for (i=0; i<8; i++) { | ||
| 458 | BN_zero(&tmp); | ||
| 459 | if (i & 1) { BN_add(&tmp, &two_512, &tmp); } | ||
| 460 | if (i & 2) { BN_add(&tmp, &two_512, &tmp); } | ||
| 461 | if (i & 4) { BN_add(&tmp, &two_640, &tmp); } | ||
| 462 | |||
| 463 | BN_nnmod(&tmp2, &tmp, &_m, ctx); | ||
| 464 | if (!bn_extract_to_array_512(&tmp2, 8, _t)) { | ||
| 465 | goto err; } | ||
| 466 | for (j=0; j<8; j++) data->t[j][i] = _t[j]; } | ||
| 467 | |||
| 468 | /* Precompute m */ | ||
| 469 | for (i=0; i<8; i++) { | ||
| 470 | data->m[i] = m[i]; } | ||
| 471 | |||
| 472 | ret = 1; | ||
| 473 | |||
| 474 | err: | ||
| 475 | /* Cleanup */ | ||
| 476 | if (ctx != NULL) { | ||
| 477 | BN_CTX_end(ctx); BN_CTX_free(ctx); } | ||
| 478 | BN_free(&two_768); | ||
| 479 | BN_free(&two_640); | ||
| 480 | BN_free(&two_128); | ||
| 481 | BN_free(&two_512); | ||
| 482 | BN_free(&tmp); | ||
| 483 | BN_free(&tmp2); | ||
| 484 | BN_free(&_m); | ||
| 485 | |||
| 486 | return ret; | ||
| 487 | } | ||
| 488 | |||
| 489 | |||
| 490 | static int e_rsax_rsa_mod_exp(BIGNUM *r0, const BIGNUM *I, RSA *rsa, BN_CTX *ctx) | ||
| 491 | { | ||
| 492 | BIGNUM *r1,*m1,*vrfy; | ||
| 493 | BIGNUM local_dmp1,local_dmq1,local_c,local_r1; | ||
| 494 | BIGNUM *dmp1,*dmq1,*c,*pr1; | ||
| 495 | int ret=0; | ||
| 496 | |||
| 497 | BN_CTX_start(ctx); | ||
| 498 | r1 = BN_CTX_get(ctx); | ||
| 499 | m1 = BN_CTX_get(ctx); | ||
| 500 | vrfy = BN_CTX_get(ctx); | ||
| 501 | |||
| 502 | { | ||
| 503 | BIGNUM local_p, local_q; | ||
| 504 | BIGNUM *p = NULL, *q = NULL; | ||
| 505 | int error = 0; | ||
| 506 | |||
| 507 | /* Make sure BN_mod_inverse in Montgomery | ||
| 508 | * intialization uses the BN_FLG_CONSTTIME flag | ||
| 509 | * (unless RSA_FLAG_NO_CONSTTIME is set) | ||
| 510 | */ | ||
| 511 | if (!(rsa->flags & RSA_FLAG_NO_CONSTTIME)) | ||
| 512 | { | ||
| 513 | BN_init(&local_p); | ||
| 514 | p = &local_p; | ||
| 515 | BN_with_flags(p, rsa->p, BN_FLG_CONSTTIME); | ||
| 516 | |||
| 517 | BN_init(&local_q); | ||
| 518 | q = &local_q; | ||
| 519 | BN_with_flags(q, rsa->q, BN_FLG_CONSTTIME); | ||
| 520 | } | ||
| 521 | else | ||
| 522 | { | ||
| 523 | p = rsa->p; | ||
| 524 | q = rsa->q; | ||
| 525 | } | ||
| 526 | |||
| 527 | if (rsa->flags & RSA_FLAG_CACHE_PRIVATE) | ||
| 528 | { | ||
| 529 | if (!BN_MONT_CTX_set_locked(&rsa->_method_mod_p, CRYPTO_LOCK_RSA, p, ctx)) | ||
| 530 | error = 1; | ||
| 531 | if (!BN_MONT_CTX_set_locked(&rsa->_method_mod_q, CRYPTO_LOCK_RSA, q, ctx)) | ||
| 532 | error = 1; | ||
| 533 | } | ||
| 534 | |||
| 535 | /* clean up */ | ||
| 536 | if (!(rsa->flags & RSA_FLAG_NO_CONSTTIME)) | ||
| 537 | { | ||
| 538 | BN_free(&local_p); | ||
| 539 | BN_free(&local_q); | ||
| 540 | } | ||
| 541 | if ( error ) | ||
| 542 | goto err; | ||
| 543 | } | ||
| 544 | |||
| 545 | if (rsa->flags & RSA_FLAG_CACHE_PUBLIC) | ||
| 546 | if (!BN_MONT_CTX_set_locked(&rsa->_method_mod_n, CRYPTO_LOCK_RSA, rsa->n, ctx)) | ||
| 547 | goto err; | ||
| 548 | |||
| 549 | /* compute I mod q */ | ||
| 550 | if (!(rsa->flags & RSA_FLAG_NO_CONSTTIME)) | ||
| 551 | { | ||
| 552 | c = &local_c; | ||
| 553 | BN_with_flags(c, I, BN_FLG_CONSTTIME); | ||
| 554 | if (!BN_mod(r1,c,rsa->q,ctx)) goto err; | ||
| 555 | } | ||
| 556 | else | ||
| 557 | { | ||
| 558 | if (!BN_mod(r1,I,rsa->q,ctx)) goto err; | ||
| 559 | } | ||
| 560 | |||
| 561 | /* compute r1^dmq1 mod q */ | ||
| 562 | if (!(rsa->flags & RSA_FLAG_NO_CONSTTIME)) | ||
| 563 | { | ||
| 564 | dmq1 = &local_dmq1; | ||
| 565 | BN_with_flags(dmq1, rsa->dmq1, BN_FLG_CONSTTIME); | ||
| 566 | } | ||
| 567 | else | ||
| 568 | dmq1 = rsa->dmq1; | ||
| 569 | |||
| 570 | if (!e_rsax_bn_mod_exp(m1,r1,dmq1,rsa->q,ctx, | ||
| 571 | rsa->_method_mod_q, e_rsax_get_ctx(rsa, 0, rsa->q) )) goto err; | ||
| 572 | |||
| 573 | /* compute I mod p */ | ||
| 574 | if (!(rsa->flags & RSA_FLAG_NO_CONSTTIME)) | ||
| 575 | { | ||
| 576 | c = &local_c; | ||
| 577 | BN_with_flags(c, I, BN_FLG_CONSTTIME); | ||
| 578 | if (!BN_mod(r1,c,rsa->p,ctx)) goto err; | ||
| 579 | } | ||
| 580 | else | ||
| 581 | { | ||
| 582 | if (!BN_mod(r1,I,rsa->p,ctx)) goto err; | ||
| 583 | } | ||
| 584 | |||
| 585 | /* compute r1^dmp1 mod p */ | ||
| 586 | if (!(rsa->flags & RSA_FLAG_NO_CONSTTIME)) | ||
| 587 | { | ||
| 588 | dmp1 = &local_dmp1; | ||
| 589 | BN_with_flags(dmp1, rsa->dmp1, BN_FLG_CONSTTIME); | ||
| 590 | } | ||
| 591 | else | ||
| 592 | dmp1 = rsa->dmp1; | ||
| 593 | |||
| 594 | if (!e_rsax_bn_mod_exp(r0,r1,dmp1,rsa->p,ctx, | ||
| 595 | rsa->_method_mod_p, e_rsax_get_ctx(rsa, 1, rsa->p) )) goto err; | ||
| 596 | |||
| 597 | if (!BN_sub(r0,r0,m1)) goto err; | ||
| 598 | /* This will help stop the size of r0 increasing, which does | ||
| 599 | * affect the multiply if it optimised for a power of 2 size */ | ||
| 600 | if (BN_is_negative(r0)) | ||
| 601 | if (!BN_add(r0,r0,rsa->p)) goto err; | ||
| 602 | |||
| 603 | if (!BN_mul(r1,r0,rsa->iqmp,ctx)) goto err; | ||
| 604 | |||
| 605 | /* Turn BN_FLG_CONSTTIME flag on before division operation */ | ||
| 606 | if (!(rsa->flags & RSA_FLAG_NO_CONSTTIME)) | ||
| 607 | { | ||
| 608 | pr1 = &local_r1; | ||
| 609 | BN_with_flags(pr1, r1, BN_FLG_CONSTTIME); | ||
| 610 | } | ||
| 611 | else | ||
| 612 | pr1 = r1; | ||
| 613 | if (!BN_mod(r0,pr1,rsa->p,ctx)) goto err; | ||
| 614 | |||
| 615 | /* If p < q it is occasionally possible for the correction of | ||
| 616 | * adding 'p' if r0 is negative above to leave the result still | ||
| 617 | * negative. This can break the private key operations: the following | ||
| 618 | * second correction should *always* correct this rare occurrence. | ||
| 619 | * This will *never* happen with OpenSSL generated keys because | ||
| 620 | * they ensure p > q [steve] | ||
| 621 | */ | ||
| 622 | if (BN_is_negative(r0)) | ||
| 623 | if (!BN_add(r0,r0,rsa->p)) goto err; | ||
| 624 | if (!BN_mul(r1,r0,rsa->q,ctx)) goto err; | ||
| 625 | if (!BN_add(r0,r1,m1)) goto err; | ||
| 626 | |||
| 627 | if (rsa->e && rsa->n) | ||
| 628 | { | ||
| 629 | if (!e_rsax_bn_mod_exp(vrfy,r0,rsa->e,rsa->n,ctx,rsa->_method_mod_n, e_rsax_get_ctx(rsa, 2, rsa->n) )) | ||
| 630 | goto err; | ||
| 631 | |||
| 632 | /* If 'I' was greater than (or equal to) rsa->n, the operation | ||
| 633 | * will be equivalent to using 'I mod n'. However, the result of | ||
| 634 | * the verify will *always* be less than 'n' so we don't check | ||
| 635 | * for absolute equality, just congruency. */ | ||
| 636 | if (!BN_sub(vrfy, vrfy, I)) goto err; | ||
| 637 | if (!BN_mod(vrfy, vrfy, rsa->n, ctx)) goto err; | ||
| 638 | if (BN_is_negative(vrfy)) | ||
| 639 | if (!BN_add(vrfy, vrfy, rsa->n)) goto err; | ||
| 640 | if (!BN_is_zero(vrfy)) | ||
| 641 | { | ||
| 642 | /* 'I' and 'vrfy' aren't congruent mod n. Don't leak | ||
| 643 | * miscalculated CRT output, just do a raw (slower) | ||
| 644 | * mod_exp and return that instead. */ | ||
| 645 | |||
| 646 | BIGNUM local_d; | ||
| 647 | BIGNUM *d = NULL; | ||
| 648 | |||
| 649 | if (!(rsa->flags & RSA_FLAG_NO_CONSTTIME)) | ||
| 650 | { | ||
| 651 | d = &local_d; | ||
| 652 | BN_with_flags(d, rsa->d, BN_FLG_CONSTTIME); | ||
| 653 | } | ||
| 654 | else | ||
| 655 | d = rsa->d; | ||
| 656 | if (!e_rsax_bn_mod_exp(r0,I,d,rsa->n,ctx, | ||
| 657 | rsa->_method_mod_n, e_rsax_get_ctx(rsa, 2, rsa->n) )) goto err; | ||
| 658 | } | ||
| 659 | } | ||
| 660 | ret=1; | ||
| 661 | |||
| 662 | err: | ||
| 663 | BN_CTX_end(ctx); | ||
| 664 | |||
| 665 | return ret; | ||
| 666 | } | ||
| 667 | #endif /* !OPENSSL_NO_RSA */ | ||
| 668 | #endif /* !COMPILE_RSAX */ | ||
diff --git a/src/lib/libcrypto/engine/hw_openbsd_dev_crypto.c b/src/lib/libcrypto/engine/hw_openbsd_dev_crypto.c deleted file mode 100644 index b8aab545db..0000000000 --- a/src/lib/libcrypto/engine/hw_openbsd_dev_crypto.c +++ /dev/null | |||
| @@ -1,594 +0,0 @@ | |||
| 1 | /* Written by Ben Laurie <ben@algroup.co.uk> August 2001 */ | ||
| 2 | /* ==================================================================== | ||
| 3 | * Copyright (c) 1999-2001 The OpenSSL Project. All rights reserved. | ||
| 4 | * | ||
| 5 | * Redistribution and use in source and binary forms, with or without | ||
| 6 | * modification, are permitted provided that the following conditions | ||
| 7 | * are met: | ||
| 8 | * | ||
| 9 | * 1. Redistributions of source code must retain the above copyright | ||
| 10 | * notice, this list of conditions and the following disclaimer. | ||
| 11 | * | ||
| 12 | * 2. Redistributions in binary form must reproduce the above copyright | ||
| 13 | * notice, this list of conditions and the following disclaimer in | ||
| 14 | * the documentation and/or other materials provided with the | ||
| 15 | * distribution. | ||
| 16 | * | ||
| 17 | * 3. All advertising materials mentioning features or use of this | ||
| 18 | * software must display the following acknowledgment: | ||
| 19 | * "This product includes software developed by the OpenSSL Project | ||
| 20 | * for use in the OpenSSL Toolkit. (http://www.OpenSSL.org/)" | ||
| 21 | * | ||
| 22 | * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to | ||
| 23 | * endorse or promote products derived from this software without | ||
| 24 | * prior written permission. For written permission, please contact | ||
| 25 | * licensing@OpenSSL.org. | ||
| 26 | * | ||
| 27 | * 5. Products derived from this software may not be called "OpenSSL" | ||
| 28 | * nor may "OpenSSL" appear in their names without prior written | ||
| 29 | * permission of the OpenSSL Project. | ||
| 30 | * | ||
| 31 | * 6. Redistributions of any form whatsoever must retain the following | ||
| 32 | * acknowledgment: | ||
| 33 | * "This product includes software developed by the OpenSSL Project | ||
| 34 | * for use in the OpenSSL Toolkit (http://www.OpenSSL.org/)" | ||
| 35 | * | ||
| 36 | * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY | ||
| 37 | * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
| 38 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | ||
| 39 | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR | ||
| 40 | * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
| 41 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | ||
| 42 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
| 43 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
| 44 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | ||
| 45 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
| 46 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | ||
| 47 | * OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| 48 | * ==================================================================== | ||
| 49 | * | ||
| 50 | * This product includes cryptographic software written by Eric Young | ||
| 51 | * (eay@cryptsoft.com). This product includes software written by Tim | ||
| 52 | * Hudson (tjh@cryptsoft.com). | ||
| 53 | * | ||
| 54 | */ | ||
| 55 | |||
| 56 | #include <openssl/engine.h> | ||
| 57 | #include <openssl/evp.h> | ||
| 58 | #include "eng_int.h" | ||
| 59 | /* Maybe this is needed? ... */ | ||
| 60 | #ifdef FLAT_INC | ||
| 61 | #include "evp_locl.h" | ||
| 62 | #else | ||
| 63 | #include "../evp/evp_locl.h" | ||
| 64 | #endif | ||
| 65 | #include <openssl/conf.h> | ||
| 66 | |||
| 67 | #ifndef OPENSSL_OPENBSD_DEV_CRYPTO | ||
| 68 | |||
| 69 | void ENGINE_load_openbsd_dev_crypto(void) | ||
| 70 | { | ||
| 71 | /* This is a NOP unless OPENSSL_OPENBSD_DEV_CRYPTO is defined */ | ||
| 72 | return; | ||
| 73 | } | ||
| 74 | |||
| 75 | #else /* OPENSSL_OPENBSD_DEV_CRYPTO */ | ||
| 76 | |||
| 77 | #include <fcntl.h> | ||
| 78 | #include <stdio.h> | ||
| 79 | #include <errno.h> | ||
| 80 | #include <assert.h> | ||
| 81 | #include <unistd.h> | ||
| 82 | #include <sys/ioctl.h> | ||
| 83 | |||
| 84 | #include <crypto/cryptodev.h> | ||
| 85 | |||
| 86 | /****************************************************/ | ||
| 87 | /* Declare the normal generic ENGINE stuff here ... */ | ||
| 88 | |||
| 89 | static int dev_crypto_ciphers(ENGINE *e, const EVP_CIPHER **cipher, | ||
| 90 | const int **nids, int nid); | ||
| 91 | static int dev_crypto_digests(ENGINE *e, const EVP_MD **digest, | ||
| 92 | const int **nids, int nid); | ||
| 93 | |||
| 94 | static const char dev_crypto_id[] = "openbsd_dev_crypto"; | ||
| 95 | static const char dev_crypto_name[] = "OpenBSD /dev/crypto"; | ||
| 96 | |||
| 97 | static long allow_misaligned; | ||
| 98 | |||
| 99 | #define DEV_CRYPTO_CMD_ALLOW_MISALIGNED ENGINE_CMD_BASE | ||
| 100 | static const ENGINE_CMD_DEFN dev_crypto_cmd_defns[]= | ||
| 101 | { | ||
| 102 | { DEV_CRYPTO_CMD_ALLOW_MISALIGNED, | ||
| 103 | "allow_misaligned", | ||
| 104 | "Permit misaligned data to be used", | ||
| 105 | ENGINE_CMD_FLAG_NUMERIC }, | ||
| 106 | { 0, NULL, NULL, 0 } | ||
| 107 | }; | ||
| 108 | |||
| 109 | static int dev_crypto_ctrl(ENGINE *e, int cmd, long i, void *p, void (*f)()) | ||
| 110 | { | ||
| 111 | switch(cmd) | ||
| 112 | { | ||
| 113 | case DEV_CRYPTO_CMD_ALLOW_MISALIGNED: | ||
| 114 | allow_misaligned=i; | ||
| 115 | printf("allow misaligned=%ld\n",allow_misaligned); | ||
| 116 | break; | ||
| 117 | } | ||
| 118 | |||
| 119 | return 1; | ||
| 120 | } | ||
| 121 | |||
| 122 | static ENGINE *engine_openbsd_dev_crypto(void) | ||
| 123 | { | ||
| 124 | ENGINE *engine=ENGINE_new(); | ||
| 125 | |||
| 126 | if(!ENGINE_set_id(engine, dev_crypto_id) || | ||
| 127 | !ENGINE_set_name(engine, dev_crypto_name) || | ||
| 128 | !ENGINE_set_ciphers(engine, dev_crypto_ciphers) || | ||
| 129 | !ENGINE_set_digests(engine, dev_crypto_digests) || | ||
| 130 | !ENGINE_set_ctrl_function(engine, dev_crypto_ctrl) || | ||
| 131 | !ENGINE_set_cmd_defns(engine, dev_crypto_cmd_defns)) | ||
| 132 | { | ||
| 133 | ENGINE_free(engine); | ||
| 134 | return NULL; | ||
| 135 | } | ||
| 136 | |||
| 137 | return engine; | ||
| 138 | } | ||
| 139 | |||
| 140 | void ENGINE_load_openbsd_dev_crypto(void) | ||
| 141 | { | ||
| 142 | /* Copied from eng_[openssl|dyn].c */ | ||
| 143 | ENGINE *toadd = engine_openbsd_dev_crypto(); | ||
| 144 | if(!toadd) return; | ||
| 145 | ENGINE_add(toadd); | ||
| 146 | ENGINE_free(toadd); | ||
| 147 | ERR_clear_error(); | ||
| 148 | } | ||
| 149 | |||
| 150 | /******************************************************************************/ | ||
| 151 | /* Clip in the stuff from crypto/evp/openbsd_hw.c here. NB: What has changed? */ | ||
| 152 | /* I've removed the exposed EVP_*** functions, they're accessed through the */ | ||
| 153 | /* "dev_crypto_[ciphers|digests]" handlers. I've also moved the EVP_CIPHER */ | ||
| 154 | /* and EVP_MD structures to the bottom where they are close to the handlers */ | ||
| 155 | /* that expose them. What should be done? The global data (file-descriptors, */ | ||
| 156 | /* etc) should be put into ENGINE's ex_data support, and per-context data */ | ||
| 157 | /* (also file-descriptors perhaps) should be put into the contexts. Also code */ | ||
| 158 | /* formatting, fprintf statements, and OpenSSL-style error handling should be */ | ||
| 159 | /* added (dynamically, like the other ENGINEs). Also, "dynamic" support */ | ||
| 160 | /* be added to this ENGINE once it's up and running so that it could be built */ | ||
| 161 | /* as a shared-library. What else? device initialisation should take place */ | ||
| 162 | /* inside an ENGINE 'init()' handler (and likewise 'finish()'). ciphers and */ | ||
| 163 | /* digests won't be used by the framework unless the ENGINE has been */ | ||
| 164 | /* successfully initialised (that's one of the things you get for free) so */ | ||
| 165 | /* initialisation, including returning failure if device setup fails, can be */ | ||
| 166 | /* handled quite cleanly. This could presumably handle the opening (and then */ | ||
| 167 | /* closing inside 'finish()') of the 'cryptodev_fd' file-descriptor). */ | ||
| 168 | |||
| 169 | /* longest key supported in hardware */ | ||
| 170 | #define MAX_HW_KEY 24 | ||
| 171 | #define MAX_HW_IV 8 | ||
| 172 | |||
| 173 | #define MD5_DIGEST_LENGTH 16 | ||
| 174 | #define MD5_CBLOCK 64 | ||
| 175 | |||
| 176 | static int fd; | ||
| 177 | static int dev_failed; | ||
| 178 | |||
| 179 | typedef struct session_op session_op; | ||
| 180 | |||
| 181 | #define CDATA(ctx) EVP_C_DATA(session_op,ctx) | ||
| 182 | |||
| 183 | static void err(const char *str) | ||
| 184 | { | ||
| 185 | fprintf(stderr,"%s: errno %d\n",str,errno); | ||
| 186 | } | ||
| 187 | |||
| 188 | static int dev_crypto_init(session_op *ses) | ||
| 189 | { | ||
| 190 | if(dev_failed) | ||
| 191 | return 0; | ||
| 192 | if(!fd) | ||
| 193 | { | ||
| 194 | int cryptodev_fd; | ||
| 195 | |||
| 196 | if ((cryptodev_fd=open("/dev/crypto",O_RDWR,0)) < 0) | ||
| 197 | { | ||
| 198 | err("/dev/crypto"); | ||
| 199 | dev_failed=1; | ||
| 200 | return 0; | ||
| 201 | } | ||
| 202 | if (ioctl(cryptodev_fd,CRIOGET,&fd) == -1) | ||
| 203 | { | ||
| 204 | err("CRIOGET failed"); | ||
| 205 | close(cryptodev_fd); | ||
| 206 | dev_failed=1; | ||
| 207 | return 0; | ||
| 208 | } | ||
| 209 | close(cryptodev_fd); | ||
| 210 | } | ||
| 211 | assert(ses); | ||
| 212 | memset(ses,'\0',sizeof *ses); | ||
| 213 | |||
| 214 | return 1; | ||
| 215 | } | ||
| 216 | |||
| 217 | static int dev_crypto_cleanup(EVP_CIPHER_CTX *ctx) | ||
| 218 | { | ||
| 219 | fprintf(stderr,"cleanup %d\n",CDATA(ctx)->ses); | ||
| 220 | if(ioctl(fd,CIOCFSESSION,&CDATA(ctx)->ses) == -1) | ||
| 221 | err("CIOCFSESSION failed"); | ||
| 222 | |||
| 223 | OPENSSL_free(CDATA(ctx)->key); | ||
| 224 | |||
| 225 | return 1; | ||
| 226 | } | ||
| 227 | |||
| 228 | static int dev_crypto_init_key(EVP_CIPHER_CTX *ctx,int cipher, | ||
| 229 | const unsigned char *key,int klen) | ||
| 230 | { | ||
| 231 | if(!dev_crypto_init(CDATA(ctx))) | ||
| 232 | return 0; | ||
| 233 | |||
| 234 | CDATA(ctx)->key=OPENSSL_malloc(MAX_HW_KEY); | ||
| 235 | |||
| 236 | assert(ctx->cipher->iv_len <= MAX_HW_IV); | ||
| 237 | |||
| 238 | memcpy(CDATA(ctx)->key,key,klen); | ||
| 239 | |||
| 240 | CDATA(ctx)->cipher=cipher; | ||
| 241 | CDATA(ctx)->keylen=klen; | ||
| 242 | |||
| 243 | if (ioctl(fd,CIOCGSESSION,CDATA(ctx)) == -1) | ||
| 244 | { | ||
| 245 | err("CIOCGSESSION failed"); | ||
| 246 | return 0; | ||
| 247 | } | ||
| 248 | return 1; | ||
| 249 | } | ||
| 250 | |||
| 251 | static int dev_crypto_cipher(EVP_CIPHER_CTX *ctx,unsigned char *out, | ||
| 252 | const unsigned char *in,unsigned int inl) | ||
| 253 | { | ||
| 254 | struct crypt_op cryp; | ||
| 255 | unsigned char lb[MAX_HW_IV]; | ||
| 256 | |||
| 257 | if(!inl) | ||
| 258 | return 1; | ||
| 259 | |||
| 260 | assert(CDATA(ctx)); | ||
| 261 | assert(!dev_failed); | ||
| 262 | |||
| 263 | memset(&cryp,'\0',sizeof cryp); | ||
| 264 | cryp.ses=CDATA(ctx)->ses; | ||
| 265 | cryp.op=ctx->encrypt ? COP_ENCRYPT : COP_DECRYPT; | ||
| 266 | cryp.flags=0; | ||
| 267 | cryp.len=inl; | ||
| 268 | assert((inl&(ctx->cipher->block_size-1)) == 0); | ||
| 269 | cryp.src=(caddr_t)in; | ||
| 270 | cryp.dst=(caddr_t)out; | ||
| 271 | cryp.mac=0; | ||
| 272 | if(ctx->cipher->iv_len) | ||
| 273 | cryp.iv=(caddr_t)ctx->iv; | ||
| 274 | |||
| 275 | if(!ctx->encrypt) | ||
| 276 | memcpy(lb,&in[cryp.len-ctx->cipher->iv_len],ctx->cipher->iv_len); | ||
| 277 | |||
| 278 | if(ioctl(fd, CIOCCRYPT, &cryp) == -1) | ||
| 279 | { | ||
| 280 | if(errno == EINVAL) /* buffers are misaligned */ | ||
| 281 | { | ||
| 282 | unsigned int cinl=0; | ||
| 283 | char *cin=NULL; | ||
| 284 | char *cout=NULL; | ||
| 285 | |||
| 286 | /* NB: this can only make cinl != inl with stream ciphers */ | ||
| 287 | cinl=(inl+3)/4*4; | ||
| 288 | |||
| 289 | if(((unsigned long)in&3) || cinl != inl) | ||
| 290 | { | ||
| 291 | cin=OPENSSL_malloc(cinl); | ||
| 292 | memcpy(cin,in,inl); | ||
| 293 | cryp.src=cin; | ||
| 294 | } | ||
| 295 | |||
| 296 | if(((unsigned long)out&3) || cinl != inl) | ||
| 297 | { | ||
| 298 | cout=OPENSSL_malloc(cinl); | ||
| 299 | cryp.dst=cout; | ||
| 300 | } | ||
| 301 | |||
| 302 | cryp.len=cinl; | ||
| 303 | |||
| 304 | if(ioctl(fd, CIOCCRYPT, &cryp) == -1) | ||
| 305 | { | ||
| 306 | err("CIOCCRYPT(2) failed"); | ||
| 307 | printf("src=%p dst=%p\n",cryp.src,cryp.dst); | ||
| 308 | abort(); | ||
| 309 | return 0; | ||
| 310 | } | ||
| 311 | |||
| 312 | if(cout) | ||
| 313 | { | ||
| 314 | memcpy(out,cout,inl); | ||
| 315 | OPENSSL_free(cout); | ||
| 316 | } | ||
| 317 | if(cin) | ||
| 318 | OPENSSL_free(cin); | ||
| 319 | } | ||
| 320 | else | ||
| 321 | { | ||
| 322 | err("CIOCCRYPT failed"); | ||
| 323 | abort(); | ||
| 324 | return 0; | ||
| 325 | } | ||
| 326 | } | ||
| 327 | |||
| 328 | if(ctx->encrypt) | ||
| 329 | memcpy(ctx->iv,&out[cryp.len-ctx->cipher->iv_len],ctx->cipher->iv_len); | ||
| 330 | else | ||
| 331 | memcpy(ctx->iv,lb,ctx->cipher->iv_len); | ||
| 332 | |||
| 333 | return 1; | ||
| 334 | } | ||
| 335 | |||
| 336 | static int dev_crypto_des_ede3_init_key(EVP_CIPHER_CTX *ctx, | ||
| 337 | const unsigned char *key, | ||
| 338 | const unsigned char *iv, int enc) | ||
| 339 | { return dev_crypto_init_key(ctx,CRYPTO_3DES_CBC,key,24); } | ||
| 340 | |||
| 341 | static int dev_crypto_rc4_init_key(EVP_CIPHER_CTX *ctx, | ||
| 342 | const unsigned char *key, | ||
| 343 | const unsigned char *iv, int enc) | ||
| 344 | { return dev_crypto_init_key(ctx,CRYPTO_ARC4,key,16); } | ||
| 345 | |||
| 346 | typedef struct | ||
| 347 | { | ||
| 348 | session_op sess; | ||
| 349 | char *data; | ||
| 350 | int len; | ||
| 351 | unsigned char md[EVP_MAX_MD_SIZE]; | ||
| 352 | } MD_DATA; | ||
| 353 | |||
| 354 | static int dev_crypto_init_digest(MD_DATA *md_data,int mac) | ||
| 355 | { | ||
| 356 | if(!dev_crypto_init(&md_data->sess)) | ||
| 357 | return 0; | ||
| 358 | |||
| 359 | md_data->len=0; | ||
| 360 | md_data->data=NULL; | ||
| 361 | |||
| 362 | md_data->sess.mac=mac; | ||
| 363 | |||
| 364 | if (ioctl(fd,CIOCGSESSION,&md_data->sess) == -1) | ||
| 365 | { | ||
| 366 | err("CIOCGSESSION failed"); | ||
| 367 | return 0; | ||
| 368 | } | ||
| 369 | fprintf(stderr,"opened %d\n",md_data->sess.ses); | ||
| 370 | return 1; | ||
| 371 | } | ||
| 372 | |||
| 373 | static int dev_crypto_cleanup_digest(MD_DATA *md_data) | ||
| 374 | { | ||
| 375 | fprintf(stderr,"cleanup %d\n",md_data->sess.ses); | ||
| 376 | if (ioctl(fd,CIOCFSESSION,&md_data->sess.ses) == -1) | ||
| 377 | { | ||
| 378 | err("CIOCFSESSION failed"); | ||
| 379 | return 0; | ||
| 380 | } | ||
| 381 | |||
| 382 | return 1; | ||
| 383 | } | ||
| 384 | |||
| 385 | /* FIXME: if device can do chained MACs, then don't accumulate */ | ||
| 386 | /* FIXME: move accumulation to the framework */ | ||
| 387 | static int dev_crypto_md5_init(EVP_MD_CTX *ctx) | ||
| 388 | { return dev_crypto_init_digest(ctx->md_data,CRYPTO_MD5); } | ||
| 389 | |||
| 390 | static int do_digest(int ses,unsigned char *md,const void *data,int len) | ||
| 391 | { | ||
| 392 | struct crypt_op cryp; | ||
| 393 | static unsigned char md5zero[16]= | ||
| 394 | { | ||
| 395 | 0xd4,0x1d,0x8c,0xd9,0x8f,0x00,0xb2,0x04, | ||
| 396 | 0xe9,0x80,0x09,0x98,0xec,0xf8,0x42,0x7e | ||
| 397 | }; | ||
| 398 | |||
| 399 | /* some cards can't do zero length */ | ||
| 400 | if(!len) | ||
| 401 | { | ||
| 402 | memcpy(md,md5zero,16); | ||
| 403 | return 1; | ||
| 404 | } | ||
| 405 | |||
| 406 | memset(&cryp,'\0',sizeof cryp); | ||
| 407 | cryp.ses=ses; | ||
| 408 | cryp.op=COP_ENCRYPT;/* required to do the MAC rather than check it */ | ||
| 409 | cryp.len=len; | ||
| 410 | cryp.src=(caddr_t)data; | ||
| 411 | cryp.dst=(caddr_t)data; /* FIXME!!! */ | ||
| 412 | cryp.mac=(caddr_t)md; | ||
| 413 | |||
| 414 | if(ioctl(fd, CIOCCRYPT, &cryp) == -1) | ||
| 415 | { | ||
| 416 | if(errno == EINVAL && allow_misaligned) /* buffer is misaligned */ | ||
| 417 | { | ||
| 418 | char *dcopy; | ||
| 419 | |||
| 420 | dcopy=OPENSSL_malloc(len); | ||
| 421 | memcpy(dcopy,data,len); | ||
| 422 | cryp.src=dcopy; | ||
| 423 | cryp.dst=cryp.src; /* FIXME!!! */ | ||
| 424 | |||
| 425 | if(ioctl(fd, CIOCCRYPT, &cryp) == -1) | ||
| 426 | { | ||
| 427 | err("CIOCCRYPT(MAC2) failed"); | ||
| 428 | abort(); | ||
| 429 | return 0; | ||
| 430 | } | ||
| 431 | OPENSSL_free(dcopy); | ||
| 432 | } | ||
| 433 | else | ||
| 434 | { | ||
| 435 | err("CIOCCRYPT(MAC) failed"); | ||
| 436 | abort(); | ||
| 437 | return 0; | ||
| 438 | } | ||
| 439 | } | ||
| 440 | /* printf("done\n"); */ | ||
| 441 | |||
| 442 | return 1; | ||
| 443 | } | ||
| 444 | |||
| 445 | static int dev_crypto_md5_update(EVP_MD_CTX *ctx,const void *data, | ||
| 446 | unsigned long len) | ||
| 447 | { | ||
| 448 | MD_DATA *md_data=ctx->md_data; | ||
| 449 | |||
| 450 | if(ctx->flags&EVP_MD_CTX_FLAG_ONESHOT) | ||
| 451 | return do_digest(md_data->sess.ses,md_data->md,data,len); | ||
| 452 | |||
| 453 | md_data->data=OPENSSL_realloc(md_data->data,md_data->len+len); | ||
| 454 | memcpy(md_data->data+md_data->len,data,len); | ||
| 455 | md_data->len+=len; | ||
| 456 | |||
| 457 | return 1; | ||
| 458 | } | ||
| 459 | |||
| 460 | static int dev_crypto_md5_final(EVP_MD_CTX *ctx,unsigned char *md) | ||
| 461 | { | ||
| 462 | int ret; | ||
| 463 | MD_DATA *md_data=ctx->md_data; | ||
| 464 | |||
| 465 | if(ctx->flags&EVP_MD_CTX_FLAG_ONESHOT) | ||
| 466 | { | ||
| 467 | memcpy(md,md_data->md,MD5_DIGEST_LENGTH); | ||
| 468 | ret=1; | ||
| 469 | } | ||
| 470 | else | ||
| 471 | { | ||
| 472 | ret=do_digest(md_data->sess.ses,md,md_data->data,md_data->len); | ||
| 473 | OPENSSL_free(md_data->data); | ||
| 474 | md_data->data=NULL; | ||
| 475 | md_data->len=0; | ||
| 476 | } | ||
| 477 | |||
| 478 | return ret; | ||
| 479 | } | ||
| 480 | |||
| 481 | static int dev_crypto_md5_copy(EVP_MD_CTX *to,const EVP_MD_CTX *from) | ||
| 482 | { | ||
| 483 | const MD_DATA *from_md=from->md_data; | ||
| 484 | MD_DATA *to_md=to->md_data; | ||
| 485 | |||
| 486 | /* How do we copy sessions? */ | ||
| 487 | assert(from->digest->flags&EVP_MD_FLAG_ONESHOT); | ||
| 488 | |||
| 489 | to_md->data=OPENSSL_malloc(from_md->len); | ||
| 490 | memcpy(to_md->data,from_md->data,from_md->len); | ||
| 491 | |||
| 492 | return 1; | ||
| 493 | } | ||
| 494 | |||
| 495 | static int dev_crypto_md5_cleanup(EVP_MD_CTX *ctx) | ||
| 496 | { | ||
| 497 | return dev_crypto_cleanup_digest(ctx->md_data); | ||
| 498 | } | ||
| 499 | |||
| 500 | /**************************************************************************/ | ||
| 501 | /* Here are the moved declarations of the EVP_CIPHER and EVP_MD */ | ||
| 502 | /* implementations. They're down here to be within easy editor-distance */ | ||
| 503 | /* of the digests and ciphers handler functions. */ | ||
| 504 | |||
| 505 | #define dev_crypto_des_ede3_cbc_cipher dev_crypto_cipher | ||
| 506 | |||
| 507 | BLOCK_CIPHER_def_cbc(dev_crypto_des_ede3, session_op, NID_des_ede3, 8, 24, 8, | ||
| 508 | 0, dev_crypto_des_ede3_init_key, | ||
| 509 | dev_crypto_cleanup, | ||
| 510 | EVP_CIPHER_set_asn1_iv, | ||
| 511 | EVP_CIPHER_get_asn1_iv, | ||
| 512 | NULL) | ||
| 513 | |||
| 514 | static const EVP_CIPHER r4_cipher= | ||
| 515 | { | ||
| 516 | NID_rc4, | ||
| 517 | 1,16,0, /* FIXME: key should be up to 256 bytes */ | ||
| 518 | EVP_CIPH_VARIABLE_LENGTH, | ||
| 519 | dev_crypto_rc4_init_key, | ||
| 520 | dev_crypto_cipher, | ||
| 521 | dev_crypto_cleanup, | ||
| 522 | sizeof(session_op), | ||
| 523 | NULL, | ||
| 524 | NULL, | ||
| 525 | NULL | ||
| 526 | }; | ||
| 527 | |||
| 528 | static const EVP_MD md5_md= | ||
| 529 | { | ||
| 530 | NID_md5, | ||
| 531 | NID_md5WithRSAEncryption, | ||
| 532 | MD5_DIGEST_LENGTH, | ||
| 533 | EVP_MD_FLAG_ONESHOT, /* XXX: set according to device info... */ | ||
| 534 | dev_crypto_md5_init, | ||
| 535 | dev_crypto_md5_update, | ||
| 536 | dev_crypto_md5_final, | ||
| 537 | dev_crypto_md5_copy, | ||
| 538 | dev_crypto_md5_cleanup, | ||
| 539 | EVP_PKEY_RSA_method, | ||
| 540 | MD5_CBLOCK, | ||
| 541 | sizeof(MD_DATA), | ||
| 542 | }; | ||
| 543 | |||
| 544 | /****************************************************************/ | ||
| 545 | /* Implement the dev_crypto_[ciphers|digests] handlers here ... */ | ||
| 546 | |||
| 547 | static int cipher_nids[] = {NID_des_ede3_cbc, NID_rc4}; | ||
| 548 | static int cipher_nids_num = 2; | ||
| 549 | static int digest_nids[] = {NID_md5}; | ||
| 550 | static int digest_nids_num = 1; | ||
| 551 | |||
| 552 | static int dev_crypto_ciphers(ENGINE *e, const EVP_CIPHER **cipher, | ||
| 553 | const int **nids, int nid) | ||
| 554 | { | ||
| 555 | if(!cipher) | ||
| 556 | { | ||
| 557 | /* We are returning a list of supported nids */ | ||
| 558 | *nids = cipher_nids; | ||
| 559 | return cipher_nids_num; | ||
| 560 | } | ||
| 561 | /* We are being asked for a specific cipher */ | ||
| 562 | if(nid == NID_rc4) | ||
| 563 | *cipher = &r4_cipher; | ||
| 564 | else if(nid == NID_des_ede3_cbc) | ||
| 565 | *cipher = &dev_crypto_des_ede3_cbc; | ||
| 566 | else | ||
| 567 | { | ||
| 568 | *cipher = NULL; | ||
| 569 | return 0; | ||
| 570 | } | ||
| 571 | return 1; | ||
| 572 | } | ||
| 573 | |||
| 574 | static int dev_crypto_digests(ENGINE *e, const EVP_MD **digest, | ||
| 575 | const int **nids, int nid) | ||
| 576 | { | ||
| 577 | if(!digest) | ||
| 578 | { | ||
| 579 | /* We are returning a list of supported nids */ | ||
| 580 | *nids = digest_nids; | ||
| 581 | return digest_nids_num; | ||
| 582 | } | ||
| 583 | /* We are being asked for a specific digest */ | ||
| 584 | if(nid == NID_md5) | ||
| 585 | *digest = &md5_md; | ||
| 586 | else | ||
| 587 | { | ||
| 588 | *digest = NULL; | ||
| 589 | return 0; | ||
| 590 | } | ||
| 591 | return 1; | ||
| 592 | } | ||
| 593 | |||
| 594 | #endif /* OPENSSL_OPENBSD_DEV_CRYPTO */ | ||
diff --git a/src/lib/libcrypto/err/Makefile.ssl b/src/lib/libcrypto/err/Makefile.ssl deleted file mode 100644 index b253061d07..0000000000 --- a/src/lib/libcrypto/err/Makefile.ssl +++ /dev/null | |||
| @@ -1,119 +0,0 @@ | |||
| 1 | # | ||
| 2 | # SSLeay/crypto/err/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= err | ||
| 6 | TOP= ../.. | ||
| 7 | CC= cc | ||
| 8 | INCLUDES= -I.. -I$(TOP) -I../../include | ||
| 9 | CFLAG=-g | ||
| 10 | INSTALL_PREFIX= | ||
| 11 | OPENSSLDIR= /usr/local/ssl | ||
| 12 | INSTALLTOP=/usr/local/ssl | ||
| 13 | MAKE= make -f Makefile.ssl | ||
| 14 | MAKEDEPPROG= makedepend | ||
| 15 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
| 16 | MAKEFILE= Makefile.ssl | ||
| 17 | AR= ar r | ||
| 18 | |||
| 19 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 20 | |||
| 21 | GENERAL=Makefile | ||
| 22 | TEST= | ||
| 23 | APPS= | ||
| 24 | |||
| 25 | LIB=$(TOP)/libcrypto.a | ||
| 26 | LIBSRC=err.c err_all.c err_prn.c | ||
| 27 | LIBOBJ=err.o err_all.o err_prn.o | ||
| 28 | |||
| 29 | SRC= $(LIBSRC) | ||
| 30 | |||
| 31 | EXHEADER= err.h | ||
| 32 | HEADER= $(EXHEADER) | ||
| 33 | |||
| 34 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
| 35 | |||
| 36 | top: | ||
| 37 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
| 38 | |||
| 39 | all: lib | ||
| 40 | |||
| 41 | lib: $(LIBOBJ) | ||
| 42 | $(AR) $(LIB) $(LIBOBJ) | ||
| 43 | $(RANLIB) $(LIB) || echo Never mind. | ||
| 44 | @touch lib | ||
| 45 | |||
| 46 | files: | ||
| 47 | $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
| 48 | |||
| 49 | links: | ||
| 50 | @sh $(TOP)/util/point.sh Makefile.ssl Makefile | ||
| 51 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | ||
| 52 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | ||
| 53 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | ||
| 54 | |||
| 55 | install: | ||
| 56 | @for i in $(EXHEADER) ; \ | ||
| 57 | do \ | ||
| 58 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 59 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
| 60 | done; | ||
| 61 | |||
| 62 | tags: | ||
| 63 | ctags $(SRC) | ||
| 64 | |||
| 65 | tests: | ||
| 66 | |||
| 67 | lint: | ||
| 68 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
| 69 | |||
| 70 | depend: | ||
| 71 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) | ||
| 72 | |||
| 73 | dclean: | ||
| 74 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 75 | mv -f Makefile.new $(MAKEFILE) | ||
| 76 | |||
| 77 | clean: | ||
| 78 | rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
| 79 | |||
| 80 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 81 | |||
| 82 | err.o: ../../e_os.h ../../include/openssl/bio.h ../../include/openssl/buffer.h | ||
| 83 | err.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 84 | err.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
| 85 | err.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 86 | err.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 87 | err.o: ../../include/openssl/symhacks.h ../cryptlib.h err.c | ||
| 88 | err_all.o: ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 89 | err_all.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 90 | err_all.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 91 | err_all.o: ../../include/openssl/cast.h ../../include/openssl/conf.h | ||
| 92 | err_all.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 93 | err_all.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 94 | err_all.o: ../../include/openssl/dsa.h ../../include/openssl/dso.h | ||
| 95 | err_all.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h | ||
| 96 | err_all.o: ../../include/openssl/engine.h ../../include/openssl/err.h | ||
| 97 | err_all.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 98 | err_all.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 99 | err_all.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 100 | err_all.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 101 | err_all.o: ../../include/openssl/objects.h ../../include/openssl/ocsp.h | ||
| 102 | err_all.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 103 | err_all.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pem2.h | ||
| 104 | err_all.o: ../../include/openssl/pkcs12.h ../../include/openssl/pkcs7.h | ||
| 105 | err_all.o: ../../include/openssl/rand.h ../../include/openssl/rc2.h | ||
| 106 | err_all.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 107 | err_all.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 108 | err_all.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 109 | err_all.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 110 | err_all.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 111 | err_all.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 112 | err_all.o: ../../include/openssl/x509v3.h err_all.c | ||
| 113 | err_prn.o: ../../e_os.h ../../include/openssl/bio.h | ||
| 114 | err_prn.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 115 | err_prn.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 116 | err_prn.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 117 | err_prn.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 118 | err_prn.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 119 | err_prn.o: ../cryptlib.h err_prn.c | ||
diff --git a/src/lib/libcrypto/evp/Makefile.ssl b/src/lib/libcrypto/evp/Makefile.ssl deleted file mode 100644 index f33aebd33a..0000000000 --- a/src/lib/libcrypto/evp/Makefile.ssl +++ /dev/null | |||
| @@ -1,1059 +0,0 @@ | |||
| 1 | # | ||
| 2 | # SSLeay/crypto/evp/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= evp | ||
| 6 | TOP= ../.. | ||
| 7 | CC= cc | ||
| 8 | INCLUDES= -I.. -I$(TOP) -I../../include | ||
| 9 | CFLAG=-g | ||
| 10 | INSTALL_PREFIX= | ||
| 11 | OPENSSLDIR= /usr/local/ssl | ||
| 12 | INSTALLTOP=/usr/local/ssl | ||
| 13 | MAKE= make -f Makefile.ssl | ||
| 14 | MAKEDEPPROG= makedepend | ||
| 15 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
| 16 | MAKEFILE= Makefile.ssl | ||
| 17 | AR= ar r | ||
| 18 | |||
| 19 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 20 | |||
| 21 | GENERAL=Makefile | ||
| 22 | TEST=evp_test.c | ||
| 23 | TESTDATA=evptests.txt | ||
| 24 | APPS= | ||
| 25 | |||
| 26 | LIB=$(TOP)/libcrypto.a | ||
| 27 | LIBSRC= encode.c digest.c evp_enc.c evp_key.c evp_acnf.c \ | ||
| 28 | e_des.c e_bf.c e_idea.c e_des3.c \ | ||
| 29 | e_rc4.c e_aes.c names.c \ | ||
| 30 | e_xcbc_d.c e_rc2.c e_cast.c e_rc5.c \ | ||
| 31 | m_null.c m_md2.c m_md4.c m_md5.c m_sha.c m_sha1.c \ | ||
| 32 | m_dss.c m_dss1.c m_mdc2.c m_ripemd.c \ | ||
| 33 | p_open.c p_seal.c p_sign.c p_verify.c p_lib.c p_enc.c p_dec.c \ | ||
| 34 | bio_md.c bio_b64.c bio_enc.c evp_err.c e_null.c \ | ||
| 35 | c_all.c c_allc.c c_alld.c evp_lib.c bio_ok.c \ | ||
| 36 | evp_pkey.c evp_pbe.c p5_crpt.c p5_crpt2.c | ||
| 37 | |||
| 38 | LIBOBJ= encode.o digest.o evp_enc.o evp_key.o evp_acnf.o \ | ||
| 39 | e_des.o e_bf.o e_idea.o e_des3.o \ | ||
| 40 | e_rc4.o e_aes.o names.o \ | ||
| 41 | e_xcbc_d.o e_rc2.o e_cast.o e_rc5.o \ | ||
| 42 | m_null.o m_md2.o m_md4.o m_md5.o m_sha.o m_sha1.o \ | ||
| 43 | m_dss.o m_dss1.o m_mdc2.o m_ripemd.o \ | ||
| 44 | p_open.o p_seal.o p_sign.o p_verify.o p_lib.o p_enc.o p_dec.o \ | ||
| 45 | bio_md.o bio_b64.o bio_enc.o evp_err.o e_null.o \ | ||
| 46 | c_all.o c_allc.o c_alld.o evp_lib.o bio_ok.o \ | ||
| 47 | evp_pkey.o evp_pbe.o p5_crpt.o p5_crpt2.o | ||
| 48 | |||
| 49 | SRC= $(LIBSRC) | ||
| 50 | |||
| 51 | EXHEADER= evp.h | ||
| 52 | HEADER= $(EXHEADER) | ||
| 53 | |||
| 54 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
| 55 | |||
| 56 | top: | ||
| 57 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
| 58 | |||
| 59 | all: lib | ||
| 60 | |||
| 61 | lib: $(LIBOBJ) | ||
| 62 | $(AR) $(LIB) $(LIBOBJ) | ||
| 63 | $(RANLIB) $(LIB) || echo Never mind. | ||
| 64 | @touch lib | ||
| 65 | |||
| 66 | files: | ||
| 67 | $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
| 68 | |||
| 69 | links: | ||
| 70 | @sh $(TOP)/util/point.sh Makefile.ssl Makefile | ||
| 71 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | ||
| 72 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | ||
| 73 | cp $(TESTDATA) ../../test | ||
| 74 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | ||
| 75 | |||
| 76 | install: | ||
| 77 | @for i in $(EXHEADER) ; \ | ||
| 78 | do \ | ||
| 79 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 80 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
| 81 | done; | ||
| 82 | |||
| 83 | tags: | ||
| 84 | ctags $(SRC) | ||
| 85 | |||
| 86 | tests: | ||
| 87 | |||
| 88 | lint: | ||
| 89 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
| 90 | |||
| 91 | depend: | ||
| 92 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(LIBSRC) | ||
| 93 | |||
| 94 | dclean: | ||
| 95 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 96 | mv -f Makefile.new $(MAKEFILE) | ||
| 97 | |||
| 98 | clean: | ||
| 99 | rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
| 100 | |||
| 101 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 102 | |||
| 103 | bio_b64.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 104 | bio_b64.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 105 | bio_b64.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 106 | bio_b64.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 107 | bio_b64.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 108 | bio_b64.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 109 | bio_b64.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 110 | bio_b64.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 111 | bio_b64.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 112 | bio_b64.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 113 | bio_b64.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 114 | bio_b64.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 115 | bio_b64.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 116 | bio_b64.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rc2.h | ||
| 117 | bio_b64.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 118 | bio_b64.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 119 | bio_b64.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 120 | bio_b64.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 121 | bio_b64.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 122 | bio_b64.o: ../cryptlib.h bio_b64.c | ||
| 123 | bio_enc.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 124 | bio_enc.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 125 | bio_enc.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 126 | bio_enc.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 127 | bio_enc.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 128 | bio_enc.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 129 | bio_enc.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 130 | bio_enc.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 131 | bio_enc.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 132 | bio_enc.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 133 | bio_enc.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 134 | bio_enc.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 135 | bio_enc.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 136 | bio_enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rc2.h | ||
| 137 | bio_enc.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 138 | bio_enc.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 139 | bio_enc.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 140 | bio_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 141 | bio_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 142 | bio_enc.o: ../cryptlib.h bio_enc.c | ||
| 143 | bio_md.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 144 | bio_md.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 145 | bio_md.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 146 | bio_md.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 147 | bio_md.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 148 | bio_md.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 149 | bio_md.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 150 | bio_md.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 151 | bio_md.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 152 | bio_md.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 153 | bio_md.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 154 | bio_md.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 155 | bio_md.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 156 | bio_md.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 157 | bio_md.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 158 | bio_md.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 159 | bio_md.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 160 | bio_md.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 161 | bio_md.o: ../../include/openssl/ui_compat.h ../cryptlib.h bio_md.c | ||
| 162 | bio_ok.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 163 | bio_ok.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 164 | bio_ok.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 165 | bio_ok.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 166 | bio_ok.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 167 | bio_ok.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 168 | bio_ok.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 169 | bio_ok.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 170 | bio_ok.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 171 | bio_ok.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 172 | bio_ok.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 173 | bio_ok.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 174 | bio_ok.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 175 | bio_ok.o: ../../include/openssl/rand.h ../../include/openssl/rc2.h | ||
| 176 | bio_ok.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 177 | bio_ok.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 178 | bio_ok.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 179 | bio_ok.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 180 | bio_ok.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 181 | bio_ok.o: ../cryptlib.h bio_ok.c | ||
| 182 | c_all.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 183 | c_all.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 184 | c_all.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 185 | c_all.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 186 | c_all.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 187 | c_all.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 188 | c_all.o: ../../include/openssl/e_os2.h ../../include/openssl/engine.h | ||
| 189 | c_all.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 190 | c_all.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 191 | c_all.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 192 | c_all.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 193 | c_all.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 194 | c_all.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 195 | c_all.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h | ||
| 196 | c_all.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 197 | c_all.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 198 | c_all.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 199 | c_all.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 200 | c_all.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 201 | c_all.o: ../../include/openssl/ui_compat.h ../cryptlib.h c_all.c | ||
| 202 | c_allc.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 203 | c_allc.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 204 | c_allc.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 205 | c_allc.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 206 | c_allc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 207 | c_allc.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 208 | c_allc.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 209 | c_allc.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 210 | c_allc.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 211 | c_allc.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 212 | c_allc.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 213 | c_allc.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 214 | c_allc.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 215 | c_allc.o: ../../include/openssl/pkcs12.h ../../include/openssl/pkcs7.h | ||
| 216 | c_allc.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 217 | c_allc.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 218 | c_allc.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 219 | c_allc.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 220 | c_allc.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 221 | c_allc.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 222 | c_allc.o: ../../include/openssl/x509_vfy.h ../cryptlib.h c_allc.c | ||
| 223 | c_alld.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 224 | c_alld.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 225 | c_alld.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 226 | c_alld.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 227 | c_alld.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 228 | c_alld.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 229 | c_alld.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 230 | c_alld.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 231 | c_alld.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 232 | c_alld.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 233 | c_alld.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 234 | c_alld.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 235 | c_alld.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 236 | c_alld.o: ../../include/openssl/pkcs12.h ../../include/openssl/pkcs7.h | ||
| 237 | c_alld.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 238 | c_alld.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 239 | c_alld.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 240 | c_alld.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 241 | c_alld.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 242 | c_alld.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 243 | c_alld.o: ../../include/openssl/x509_vfy.h ../cryptlib.h c_alld.c | ||
| 244 | digest.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 245 | digest.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 246 | digest.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 247 | digest.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 248 | digest.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 249 | digest.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 250 | digest.o: ../../include/openssl/e_os2.h ../../include/openssl/engine.h | ||
| 251 | digest.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 252 | digest.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 253 | digest.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 254 | digest.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 255 | digest.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 256 | digest.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 257 | digest.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h | ||
| 258 | digest.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 259 | digest.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 260 | digest.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 261 | digest.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 262 | digest.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 263 | digest.o: ../../include/openssl/ui_compat.h ../cryptlib.h digest.c | ||
| 264 | e_aes.o: ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 265 | e_aes.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 266 | e_aes.o: ../../include/openssl/bn.h ../../include/openssl/cast.h | ||
| 267 | e_aes.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 268 | e_aes.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 269 | e_aes.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 270 | e_aes.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 271 | e_aes.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 272 | e_aes.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 273 | e_aes.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 274 | e_aes.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 275 | e_aes.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 276 | e_aes.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rc2.h | ||
| 277 | e_aes.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 278 | e_aes.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 279 | e_aes.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 280 | e_aes.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 281 | e_aes.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h e_aes.c | ||
| 282 | e_aes.o: evp_locl.h | ||
| 283 | e_bf.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 284 | e_bf.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 285 | e_bf.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 286 | e_bf.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 287 | e_bf.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 288 | e_bf.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 289 | e_bf.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 290 | e_bf.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 291 | e_bf.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 292 | e_bf.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 293 | e_bf.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 294 | e_bf.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 295 | e_bf.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 296 | e_bf.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 297 | e_bf.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 298 | e_bf.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 299 | e_bf.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 300 | e_bf.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 301 | e_bf.o: ../../include/openssl/ui_compat.h ../cryptlib.h e_bf.c evp_locl.h | ||
| 302 | e_cast.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 303 | e_cast.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 304 | e_cast.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 305 | e_cast.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 306 | e_cast.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 307 | e_cast.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 308 | e_cast.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 309 | e_cast.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 310 | e_cast.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 311 | e_cast.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 312 | e_cast.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 313 | e_cast.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 314 | e_cast.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 315 | e_cast.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 316 | e_cast.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 317 | e_cast.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 318 | e_cast.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 319 | e_cast.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 320 | e_cast.o: ../../include/openssl/ui_compat.h ../cryptlib.h e_cast.c evp_locl.h | ||
| 321 | e_des.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 322 | e_des.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 323 | e_des.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 324 | e_des.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 325 | e_des.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 326 | e_des.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 327 | e_des.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 328 | e_des.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 329 | e_des.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 330 | e_des.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 331 | e_des.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 332 | e_des.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 333 | e_des.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 334 | e_des.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 335 | e_des.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 336 | e_des.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 337 | e_des.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 338 | e_des.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 339 | e_des.o: ../../include/openssl/ui_compat.h ../cryptlib.h e_des.c evp_locl.h | ||
| 340 | e_des3.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 341 | e_des3.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 342 | e_des3.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 343 | e_des3.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 344 | e_des3.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 345 | e_des3.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 346 | e_des3.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 347 | e_des3.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 348 | e_des3.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 349 | e_des3.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 350 | e_des3.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 351 | e_des3.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 352 | e_des3.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 353 | e_des3.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 354 | e_des3.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 355 | e_des3.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 356 | e_des3.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 357 | e_des3.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 358 | e_des3.o: ../../include/openssl/ui_compat.h ../cryptlib.h e_des3.c evp_locl.h | ||
| 359 | e_idea.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 360 | e_idea.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 361 | e_idea.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 362 | e_idea.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 363 | e_idea.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 364 | e_idea.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 365 | e_idea.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 366 | e_idea.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 367 | e_idea.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 368 | e_idea.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 369 | e_idea.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 370 | e_idea.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 371 | e_idea.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 372 | e_idea.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 373 | e_idea.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 374 | e_idea.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 375 | e_idea.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 376 | e_idea.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 377 | e_idea.o: ../../include/openssl/ui_compat.h ../cryptlib.h e_idea.c evp_locl.h | ||
| 378 | e_null.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 379 | e_null.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 380 | e_null.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 381 | e_null.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 382 | e_null.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 383 | e_null.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 384 | e_null.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 385 | e_null.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 386 | e_null.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 387 | e_null.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 388 | e_null.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 389 | e_null.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 390 | e_null.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 391 | e_null.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 392 | e_null.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 393 | e_null.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 394 | e_null.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 395 | e_null.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 396 | e_null.o: ../../include/openssl/ui_compat.h ../cryptlib.h e_null.c | ||
| 397 | e_rc2.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 398 | e_rc2.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 399 | e_rc2.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 400 | e_rc2.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 401 | e_rc2.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 402 | e_rc2.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 403 | e_rc2.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 404 | e_rc2.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 405 | e_rc2.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 406 | e_rc2.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 407 | e_rc2.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 408 | e_rc2.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 409 | e_rc2.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 410 | e_rc2.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 411 | e_rc2.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 412 | e_rc2.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 413 | e_rc2.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 414 | e_rc2.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 415 | e_rc2.o: ../../include/openssl/ui_compat.h ../cryptlib.h e_rc2.c evp_locl.h | ||
| 416 | e_rc4.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 417 | e_rc4.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 418 | e_rc4.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 419 | e_rc4.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 420 | e_rc4.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 421 | e_rc4.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 422 | e_rc4.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 423 | e_rc4.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 424 | e_rc4.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 425 | e_rc4.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 426 | e_rc4.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 427 | e_rc4.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 428 | e_rc4.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 429 | e_rc4.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 430 | e_rc4.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 431 | e_rc4.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 432 | e_rc4.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 433 | e_rc4.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 434 | e_rc4.o: ../../include/openssl/ui_compat.h ../cryptlib.h e_rc4.c | ||
| 435 | e_rc5.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 436 | e_rc5.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 437 | e_rc5.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 438 | e_rc5.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 439 | e_rc5.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 440 | e_rc5.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 441 | e_rc5.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 442 | e_rc5.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 443 | e_rc5.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 444 | e_rc5.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 445 | e_rc5.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 446 | e_rc5.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 447 | e_rc5.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 448 | e_rc5.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 449 | e_rc5.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 450 | e_rc5.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 451 | e_rc5.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 452 | e_rc5.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 453 | e_rc5.o: ../../include/openssl/ui_compat.h ../cryptlib.h e_rc5.c evp_locl.h | ||
| 454 | e_xcbc_d.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 455 | e_xcbc_d.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 456 | e_xcbc_d.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 457 | e_xcbc_d.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 458 | e_xcbc_d.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 459 | e_xcbc_d.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 460 | e_xcbc_d.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 461 | e_xcbc_d.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 462 | e_xcbc_d.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 463 | e_xcbc_d.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 464 | e_xcbc_d.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 465 | e_xcbc_d.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 466 | e_xcbc_d.o: ../../include/openssl/opensslconf.h | ||
| 467 | e_xcbc_d.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 468 | e_xcbc_d.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 469 | e_xcbc_d.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 470 | e_xcbc_d.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 471 | e_xcbc_d.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 472 | e_xcbc_d.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 473 | e_xcbc_d.o: ../../include/openssl/ui_compat.h ../cryptlib.h e_xcbc_d.c | ||
| 474 | encode.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 475 | encode.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 476 | encode.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 477 | encode.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 478 | encode.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 479 | encode.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 480 | encode.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 481 | encode.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 482 | encode.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 483 | encode.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 484 | encode.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 485 | encode.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 486 | encode.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 487 | encode.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 488 | encode.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 489 | encode.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 490 | encode.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 491 | encode.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 492 | encode.o: ../../include/openssl/ui_compat.h ../cryptlib.h encode.c | ||
| 493 | evp_acnf.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 494 | evp_acnf.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 495 | evp_acnf.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 496 | evp_acnf.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 497 | evp_acnf.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h | ||
| 498 | evp_acnf.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 499 | evp_acnf.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 500 | evp_acnf.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 501 | evp_acnf.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 502 | evp_acnf.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 503 | evp_acnf.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 504 | evp_acnf.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 505 | evp_acnf.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 506 | evp_acnf.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 507 | evp_acnf.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 508 | evp_acnf.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 509 | evp_acnf.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 510 | evp_acnf.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 511 | evp_acnf.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 512 | evp_acnf.o: ../../include/openssl/ui_compat.h ../cryptlib.h evp_acnf.c | ||
| 513 | evp_enc.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 514 | evp_enc.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 515 | evp_enc.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 516 | evp_enc.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 517 | evp_enc.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 518 | evp_enc.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 519 | evp_enc.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 520 | evp_enc.o: ../../include/openssl/engine.h ../../include/openssl/err.h | ||
| 521 | evp_enc.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 522 | evp_enc.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 523 | evp_enc.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 524 | evp_enc.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 525 | evp_enc.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 526 | evp_enc.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 527 | evp_enc.o: ../../include/openssl/rand.h ../../include/openssl/rc2.h | ||
| 528 | evp_enc.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 529 | evp_enc.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 530 | evp_enc.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 531 | evp_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 532 | evp_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 533 | evp_enc.o: ../cryptlib.h evp_enc.c evp_locl.h | ||
| 534 | evp_err.o: ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 535 | evp_err.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 536 | evp_err.o: ../../include/openssl/bn.h ../../include/openssl/cast.h | ||
| 537 | evp_err.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 538 | evp_err.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 539 | evp_err.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 540 | evp_err.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 541 | evp_err.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 542 | evp_err.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 543 | evp_err.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 544 | evp_err.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 545 | evp_err.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 546 | evp_err.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rc2.h | ||
| 547 | evp_err.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 548 | evp_err.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 549 | evp_err.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 550 | evp_err.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 551 | evp_err.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 552 | evp_err.o: evp_err.c | ||
| 553 | evp_key.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 554 | evp_key.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 555 | evp_key.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 556 | evp_key.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 557 | evp_key.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 558 | evp_key.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 559 | evp_key.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 560 | evp_key.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 561 | evp_key.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 562 | evp_key.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 563 | evp_key.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 564 | evp_key.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 565 | evp_key.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 566 | evp_key.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs7.h | ||
| 567 | evp_key.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 568 | evp_key.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 569 | evp_key.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 570 | evp_key.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 571 | evp_key.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 572 | evp_key.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 573 | evp_key.o: ../../include/openssl/x509_vfy.h ../cryptlib.h evp_key.c | ||
| 574 | evp_lib.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 575 | evp_lib.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 576 | evp_lib.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 577 | evp_lib.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 578 | evp_lib.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 579 | evp_lib.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 580 | evp_lib.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 581 | evp_lib.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 582 | evp_lib.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 583 | evp_lib.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 584 | evp_lib.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 585 | evp_lib.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 586 | evp_lib.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 587 | evp_lib.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rc2.h | ||
| 588 | evp_lib.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 589 | evp_lib.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 590 | evp_lib.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 591 | evp_lib.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 592 | evp_lib.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 593 | evp_lib.o: ../cryptlib.h evp_lib.c | ||
| 594 | evp_pbe.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 595 | evp_pbe.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 596 | evp_pbe.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 597 | evp_pbe.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 598 | evp_pbe.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 599 | evp_pbe.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 600 | evp_pbe.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 601 | evp_pbe.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 602 | evp_pbe.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 603 | evp_pbe.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 604 | evp_pbe.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 605 | evp_pbe.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 606 | evp_pbe.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 607 | evp_pbe.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs7.h | ||
| 608 | evp_pbe.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 609 | evp_pbe.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 610 | evp_pbe.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 611 | evp_pbe.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 612 | evp_pbe.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 613 | evp_pbe.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 614 | evp_pbe.o: ../../include/openssl/x509_vfy.h ../cryptlib.h evp_pbe.c | ||
| 615 | evp_pkey.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 616 | evp_pkey.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 617 | evp_pkey.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 618 | evp_pkey.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 619 | evp_pkey.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 620 | evp_pkey.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 621 | evp_pkey.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 622 | evp_pkey.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 623 | evp_pkey.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 624 | evp_pkey.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 625 | evp_pkey.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 626 | evp_pkey.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 627 | evp_pkey.o: ../../include/openssl/opensslconf.h | ||
| 628 | evp_pkey.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 629 | evp_pkey.o: ../../include/openssl/pkcs7.h ../../include/openssl/rand.h | ||
| 630 | evp_pkey.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 631 | evp_pkey.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 632 | evp_pkey.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 633 | evp_pkey.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 634 | evp_pkey.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 635 | evp_pkey.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 636 | evp_pkey.o: ../../include/openssl/x509_vfy.h ../cryptlib.h evp_pkey.c | ||
| 637 | m_dss.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 638 | m_dss.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 639 | m_dss.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 640 | m_dss.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 641 | m_dss.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 642 | m_dss.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 643 | m_dss.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 644 | m_dss.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 645 | m_dss.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 646 | m_dss.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 647 | m_dss.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 648 | m_dss.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 649 | m_dss.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 650 | m_dss.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 651 | m_dss.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 652 | m_dss.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 653 | m_dss.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 654 | m_dss.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 655 | m_dss.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 656 | m_dss.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 657 | m_dss.o: ../cryptlib.h m_dss.c | ||
| 658 | m_dss1.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 659 | m_dss1.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 660 | m_dss1.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 661 | m_dss1.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 662 | m_dss1.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 663 | m_dss1.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 664 | m_dss1.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 665 | m_dss1.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 666 | m_dss1.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 667 | m_dss1.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 668 | m_dss1.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 669 | m_dss1.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 670 | m_dss1.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 671 | m_dss1.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 672 | m_dss1.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 673 | m_dss1.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 674 | m_dss1.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 675 | m_dss1.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 676 | m_dss1.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 677 | m_dss1.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 678 | m_dss1.o: ../cryptlib.h m_dss1.c | ||
| 679 | m_md2.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 680 | m_md2.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 681 | m_md2.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 682 | m_md2.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 683 | m_md2.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 684 | m_md2.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 685 | m_md2.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 686 | m_md2.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 687 | m_md2.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 688 | m_md2.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 689 | m_md2.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 690 | m_md2.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 691 | m_md2.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 692 | m_md2.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 693 | m_md2.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 694 | m_md2.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 695 | m_md2.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 696 | m_md2.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 697 | m_md2.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 698 | m_md2.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 699 | m_md2.o: ../cryptlib.h m_md2.c | ||
| 700 | m_md4.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 701 | m_md4.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 702 | m_md4.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 703 | m_md4.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 704 | m_md4.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 705 | m_md4.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 706 | m_md4.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 707 | m_md4.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 708 | m_md4.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 709 | m_md4.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 710 | m_md4.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 711 | m_md4.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 712 | m_md4.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 713 | m_md4.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 714 | m_md4.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 715 | m_md4.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 716 | m_md4.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 717 | m_md4.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 718 | m_md4.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 719 | m_md4.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 720 | m_md4.o: ../cryptlib.h m_md4.c | ||
| 721 | m_md5.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 722 | m_md5.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 723 | m_md5.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 724 | m_md5.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 725 | m_md5.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 726 | m_md5.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 727 | m_md5.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 728 | m_md5.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 729 | m_md5.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 730 | m_md5.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 731 | m_md5.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 732 | m_md5.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 733 | m_md5.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 734 | m_md5.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 735 | m_md5.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 736 | m_md5.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 737 | m_md5.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 738 | m_md5.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 739 | m_md5.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 740 | m_md5.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 741 | m_md5.o: ../cryptlib.h m_md5.c | ||
| 742 | m_mdc2.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 743 | m_mdc2.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 744 | m_mdc2.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 745 | m_mdc2.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 746 | m_mdc2.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 747 | m_mdc2.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 748 | m_mdc2.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 749 | m_mdc2.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 750 | m_mdc2.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 751 | m_mdc2.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 752 | m_mdc2.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 753 | m_mdc2.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 754 | m_mdc2.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 755 | m_mdc2.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 756 | m_mdc2.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 757 | m_mdc2.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 758 | m_mdc2.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 759 | m_mdc2.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 760 | m_mdc2.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 761 | m_mdc2.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 762 | m_mdc2.o: ../cryptlib.h m_mdc2.c | ||
| 763 | m_null.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 764 | m_null.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 765 | m_null.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 766 | m_null.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 767 | m_null.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 768 | m_null.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 769 | m_null.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 770 | m_null.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 771 | m_null.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 772 | m_null.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 773 | m_null.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 774 | m_null.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 775 | m_null.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 776 | m_null.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 777 | m_null.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 778 | m_null.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 779 | m_null.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 780 | m_null.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 781 | m_null.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 782 | m_null.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 783 | m_null.o: ../cryptlib.h m_null.c | ||
| 784 | m_ripemd.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 785 | m_ripemd.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 786 | m_ripemd.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 787 | m_ripemd.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 788 | m_ripemd.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 789 | m_ripemd.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 790 | m_ripemd.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 791 | m_ripemd.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 792 | m_ripemd.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 793 | m_ripemd.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 794 | m_ripemd.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 795 | m_ripemd.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 796 | m_ripemd.o: ../../include/openssl/opensslconf.h | ||
| 797 | m_ripemd.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 798 | m_ripemd.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 799 | m_ripemd.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 800 | m_ripemd.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 801 | m_ripemd.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 802 | m_ripemd.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 803 | m_ripemd.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 804 | m_ripemd.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 805 | m_ripemd.o: ../cryptlib.h m_ripemd.c | ||
| 806 | m_sha.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 807 | m_sha.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 808 | m_sha.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 809 | m_sha.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 810 | m_sha.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 811 | m_sha.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 812 | m_sha.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 813 | m_sha.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 814 | m_sha.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 815 | m_sha.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 816 | m_sha.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 817 | m_sha.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 818 | m_sha.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 819 | m_sha.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 820 | m_sha.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 821 | m_sha.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 822 | m_sha.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 823 | m_sha.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 824 | m_sha.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 825 | m_sha.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 826 | m_sha.o: ../cryptlib.h m_sha.c | ||
| 827 | m_sha1.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 828 | m_sha1.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 829 | m_sha1.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 830 | m_sha1.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 831 | m_sha1.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 832 | m_sha1.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 833 | m_sha1.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 834 | m_sha1.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 835 | m_sha1.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 836 | m_sha1.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 837 | m_sha1.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 838 | m_sha1.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 839 | m_sha1.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 840 | m_sha1.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 841 | m_sha1.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 842 | m_sha1.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 843 | m_sha1.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 844 | m_sha1.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 845 | m_sha1.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 846 | m_sha1.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 847 | m_sha1.o: ../cryptlib.h m_sha1.c | ||
| 848 | names.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 849 | names.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 850 | names.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 851 | names.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 852 | names.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 853 | names.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 854 | names.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 855 | names.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 856 | names.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 857 | names.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 858 | names.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 859 | names.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 860 | names.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 861 | names.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 862 | names.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 863 | names.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 864 | names.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 865 | names.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 866 | names.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 867 | names.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 868 | names.o: ../cryptlib.h names.c | ||
| 869 | p5_crpt.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 870 | p5_crpt.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 871 | p5_crpt.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 872 | p5_crpt.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 873 | p5_crpt.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 874 | p5_crpt.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 875 | p5_crpt.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 876 | p5_crpt.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 877 | p5_crpt.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 878 | p5_crpt.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 879 | p5_crpt.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 880 | p5_crpt.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 881 | p5_crpt.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 882 | p5_crpt.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs7.h | ||
| 883 | p5_crpt.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 884 | p5_crpt.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 885 | p5_crpt.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 886 | p5_crpt.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 887 | p5_crpt.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 888 | p5_crpt.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 889 | p5_crpt.o: ../../include/openssl/x509_vfy.h ../cryptlib.h p5_crpt.c | ||
| 890 | p5_crpt2.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 891 | p5_crpt2.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 892 | p5_crpt2.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 893 | p5_crpt2.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 894 | p5_crpt2.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 895 | p5_crpt2.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 896 | p5_crpt2.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 897 | p5_crpt2.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 898 | p5_crpt2.o: ../../include/openssl/hmac.h ../../include/openssl/idea.h | ||
| 899 | p5_crpt2.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 900 | p5_crpt2.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 901 | p5_crpt2.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 902 | p5_crpt2.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 903 | p5_crpt2.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 904 | p5_crpt2.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 905 | p5_crpt2.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 906 | p5_crpt2.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 907 | p5_crpt2.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 908 | p5_crpt2.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 909 | p5_crpt2.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 910 | p5_crpt2.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 911 | p5_crpt2.o: ../cryptlib.h p5_crpt2.c | ||
| 912 | p_dec.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 913 | p_dec.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 914 | p_dec.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 915 | p_dec.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 916 | p_dec.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 917 | p_dec.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 918 | p_dec.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 919 | p_dec.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 920 | p_dec.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 921 | p_dec.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 922 | p_dec.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 923 | p_dec.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 924 | p_dec.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 925 | p_dec.o: ../../include/openssl/pkcs7.h ../../include/openssl/rand.h | ||
| 926 | p_dec.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 927 | p_dec.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 928 | p_dec.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 929 | p_dec.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 930 | p_dec.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 931 | p_dec.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 932 | p_dec.o: ../../include/openssl/x509_vfy.h ../cryptlib.h p_dec.c | ||
| 933 | p_enc.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 934 | p_enc.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 935 | p_enc.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 936 | p_enc.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 937 | p_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 938 | p_enc.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 939 | p_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 940 | p_enc.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 941 | p_enc.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 942 | p_enc.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 943 | p_enc.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 944 | p_enc.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 945 | p_enc.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 946 | p_enc.o: ../../include/openssl/pkcs7.h ../../include/openssl/rand.h | ||
| 947 | p_enc.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 948 | p_enc.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 949 | p_enc.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 950 | p_enc.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 951 | p_enc.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 952 | p_enc.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 953 | p_enc.o: ../../include/openssl/x509_vfy.h ../cryptlib.h p_enc.c | ||
| 954 | p_lib.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 955 | p_lib.o: ../../include/openssl/asn1_mac.h ../../include/openssl/bio.h | ||
| 956 | p_lib.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 957 | p_lib.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 958 | p_lib.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 959 | p_lib.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 960 | p_lib.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 961 | p_lib.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 962 | p_lib.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 963 | p_lib.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 964 | p_lib.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 965 | p_lib.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 966 | p_lib.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 967 | p_lib.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs7.h | ||
| 968 | p_lib.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 969 | p_lib.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 970 | p_lib.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 971 | p_lib.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 972 | p_lib.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 973 | p_lib.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 974 | p_lib.o: ../../include/openssl/x509_vfy.h ../cryptlib.h p_lib.c | ||
| 975 | p_open.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 976 | p_open.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 977 | p_open.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 978 | p_open.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 979 | p_open.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 980 | p_open.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 981 | p_open.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 982 | p_open.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 983 | p_open.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 984 | p_open.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 985 | p_open.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 986 | p_open.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 987 | p_open.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 988 | p_open.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 989 | p_open.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 990 | p_open.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 991 | p_open.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 992 | p_open.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 993 | p_open.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 994 | p_open.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 995 | p_open.o: ../cryptlib.h p_open.c | ||
| 996 | p_seal.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 997 | p_seal.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 998 | p_seal.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 999 | p_seal.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 1000 | p_seal.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 1001 | p_seal.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 1002 | p_seal.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 1003 | p_seal.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 1004 | p_seal.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 1005 | p_seal.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 1006 | p_seal.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 1007 | p_seal.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 1008 | p_seal.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 1009 | p_seal.o: ../../include/openssl/pkcs7.h ../../include/openssl/rand.h | ||
| 1010 | p_seal.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 1011 | p_seal.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 1012 | p_seal.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 1013 | p_seal.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 1014 | p_seal.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 1015 | p_seal.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 1016 | p_seal.o: ../../include/openssl/x509_vfy.h ../cryptlib.h p_seal.c | ||
| 1017 | p_sign.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 1018 | p_sign.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 1019 | p_sign.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 1020 | p_sign.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 1021 | p_sign.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 1022 | p_sign.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 1023 | p_sign.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 1024 | p_sign.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 1025 | p_sign.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 1026 | p_sign.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 1027 | p_sign.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 1028 | p_sign.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 1029 | p_sign.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 1030 | p_sign.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 1031 | p_sign.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 1032 | p_sign.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 1033 | p_sign.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 1034 | p_sign.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 1035 | p_sign.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 1036 | p_sign.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 1037 | p_sign.o: ../cryptlib.h p_sign.c | ||
| 1038 | p_verify.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 1039 | p_verify.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 1040 | p_verify.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 1041 | p_verify.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 1042 | p_verify.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 1043 | p_verify.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 1044 | p_verify.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 1045 | p_verify.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 1046 | p_verify.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 1047 | p_verify.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 1048 | p_verify.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 1049 | p_verify.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 1050 | p_verify.o: ../../include/openssl/opensslconf.h | ||
| 1051 | p_verify.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 1052 | p_verify.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 1053 | p_verify.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 1054 | p_verify.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 1055 | p_verify.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 1056 | p_verify.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 1057 | p_verify.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 1058 | p_verify.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 1059 | p_verify.o: ../cryptlib.h p_verify.c | ||
diff --git a/src/lib/libcrypto/evp/e_seed.c b/src/lib/libcrypto/evp/e_seed.c deleted file mode 100644 index 2d1759d276..0000000000 --- a/src/lib/libcrypto/evp/e_seed.c +++ /dev/null | |||
| @@ -1,83 +0,0 @@ | |||
| 1 | /* crypto/evp/e_seed.c -*- mode:C; c-file-style: "eay" -*- */ | ||
| 2 | /* ==================================================================== | ||
| 3 | * Copyright (c) 2007 The OpenSSL Project. All rights reserved. | ||
| 4 | * | ||
| 5 | * Redistribution and use in source and binary forms, with or without | ||
| 6 | * modification, are permitted provided that the following conditions | ||
| 7 | * are met: | ||
| 8 | * | ||
| 9 | * 1. Redistributions of source code must retain the above copyright | ||
| 10 | * notice, this list of conditions and the following disclaimer. | ||
| 11 | * | ||
| 12 | * 2. Redistributions in binary form must reproduce the above copyright | ||
| 13 | * notice, this list of conditions and the following disclaimer in | ||
| 14 | * the documentation and/or other materials provided with the | ||
| 15 | * distribution. | ||
| 16 | * | ||
| 17 | * 3. All advertising materials mentioning features or use of this | ||
| 18 | * software must display the following acknowledgment: | ||
| 19 | * "This product includes software developed by the OpenSSL Project | ||
| 20 | * for use in the OpenSSL Toolkit. (http://www.openssl.org/)" | ||
| 21 | * | ||
| 22 | * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to | ||
| 23 | * endorse or promote products derived from this software without | ||
| 24 | * prior written permission. For written permission, please contact | ||
| 25 | * openssl-core@openssl.org. | ||
| 26 | * | ||
| 27 | * 5. Products derived from this software may not be called "OpenSSL" | ||
| 28 | * nor may "OpenSSL" appear in their names without prior written | ||
| 29 | * permission of the OpenSSL Project. | ||
| 30 | * | ||
| 31 | * 6. Redistributions of any form whatsoever must retain the following | ||
| 32 | * acknowledgment: | ||
| 33 | * "This product includes software developed by the OpenSSL Project | ||
| 34 | * for use in the OpenSSL Toolkit (http://www.openssl.org/)" | ||
| 35 | * | ||
| 36 | * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY | ||
| 37 | * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
| 38 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | ||
| 39 | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR | ||
| 40 | * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
| 41 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | ||
| 42 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
| 43 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
| 44 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | ||
| 45 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
| 46 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | ||
| 47 | * OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| 48 | * ==================================================================== | ||
| 49 | * | ||
| 50 | * This product includes cryptographic software written by Eric Young | ||
| 51 | * (eay@cryptsoft.com). This product includes software written by Tim | ||
| 52 | * Hudson (tjh@cryptsoft.com). | ||
| 53 | * | ||
| 54 | */ | ||
| 55 | |||
| 56 | #include <openssl/opensslconf.h> | ||
| 57 | #ifndef OPENSSL_NO_SEED | ||
| 58 | #include <openssl/evp.h> | ||
| 59 | #include <openssl/err.h> | ||
| 60 | #include <string.h> | ||
| 61 | #include <assert.h> | ||
| 62 | #include <openssl/seed.h> | ||
| 63 | #include "evp_locl.h" | ||
| 64 | |||
| 65 | static int seed_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key, const unsigned char *iv, int enc); | ||
| 66 | |||
| 67 | typedef struct | ||
| 68 | { | ||
| 69 | SEED_KEY_SCHEDULE ks; | ||
| 70 | } EVP_SEED_KEY; | ||
| 71 | |||
| 72 | IMPLEMENT_BLOCK_CIPHER(seed, ks, SEED, EVP_SEED_KEY, NID_seed, | ||
| 73 | 16, 16, 16, 128, | ||
| 74 | 0, seed_init_key, 0, 0, 0, 0) | ||
| 75 | |||
| 76 | static int seed_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key, | ||
| 77 | const unsigned char *iv, int enc) | ||
| 78 | { | ||
| 79 | SEED_set_key(key, ctx->cipher_data); | ||
| 80 | return 1; | ||
| 81 | } | ||
| 82 | |||
| 83 | #endif | ||
diff --git a/src/lib/libcrypto/evp/evp_fips.c b/src/lib/libcrypto/evp/evp_fips.c deleted file mode 100644 index cb7f4fc0fa..0000000000 --- a/src/lib/libcrypto/evp/evp_fips.c +++ /dev/null | |||
| @@ -1,113 +0,0 @@ | |||
| 1 | /* crypto/evp/evp_fips.c */ | ||
| 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | ||
| 3 | * project. | ||
| 4 | */ | ||
| 5 | /* ==================================================================== | ||
| 6 | * Copyright (c) 2011 The OpenSSL Project. All rights reserved. | ||
| 7 | * | ||
| 8 | * Redistribution and use in source and binary forms, with or without | ||
| 9 | * modification, are permitted provided that the following conditions | ||
| 10 | * are met: | ||
| 11 | * | ||
| 12 | * 1. Redistributions of source code must retain the above copyright | ||
| 13 | * notice, this list of conditions and the following disclaimer. | ||
| 14 | * | ||
| 15 | * 2. Redistributions in binary form must reproduce the above copyright | ||
| 16 | * notice, this list of conditions and the following disclaimer in | ||
| 17 | * the documentation and/or other materials provided with the | ||
| 18 | * distribution. | ||
| 19 | * | ||
| 20 | * 3. All advertising materials mentioning features or use of this | ||
| 21 | * software must display the following acknowledgment: | ||
| 22 | * "This product includes software developed by the OpenSSL Project | ||
| 23 | * for use in the OpenSSL Toolkit. (http://www.OpenSSL.org/)" | ||
| 24 | * | ||
| 25 | * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to | ||
| 26 | * endorse or promote products derived from this software without | ||
| 27 | * prior written permission. For written permission, please contact | ||
| 28 | * licensing@OpenSSL.org. | ||
| 29 | * | ||
| 30 | * 5. Products derived from this software may not be called "OpenSSL" | ||
| 31 | * nor may "OpenSSL" appear in their names without prior written | ||
| 32 | * permission of the OpenSSL Project. | ||
| 33 | * | ||
| 34 | * 6. Redistributions of any form whatsoever must retain the following | ||
| 35 | * acknowledgment: | ||
| 36 | * "This product includes software developed by the OpenSSL Project | ||
| 37 | * for use in the OpenSSL Toolkit (http://www.OpenSSL.org/)" | ||
| 38 | * | ||
| 39 | * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY | ||
| 40 | * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
| 41 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | ||
| 42 | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR | ||
| 43 | * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
| 44 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | ||
| 45 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
| 46 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
| 47 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | ||
| 48 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
| 49 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | ||
| 50 | * OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| 51 | * ==================================================================== | ||
| 52 | */ | ||
| 53 | |||
| 54 | |||
| 55 | #include <openssl/evp.h> | ||
| 56 | |||
| 57 | #ifdef OPENSSL_FIPS | ||
| 58 | #include <openssl/fips.h> | ||
| 59 | |||
| 60 | const EVP_CIPHER *EVP_aes_128_cbc(void) { return FIPS_evp_aes_128_cbc(); } | ||
| 61 | const EVP_CIPHER *EVP_aes_128_ccm(void) { return FIPS_evp_aes_128_ccm(); } | ||
| 62 | const EVP_CIPHER *EVP_aes_128_cfb1(void) { return FIPS_evp_aes_128_cfb1(); } | ||
| 63 | const EVP_CIPHER *EVP_aes_128_cfb128(void) { return FIPS_evp_aes_128_cfb128(); } | ||
| 64 | const EVP_CIPHER *EVP_aes_128_cfb8(void) { return FIPS_evp_aes_128_cfb8(); } | ||
| 65 | const EVP_CIPHER *EVP_aes_128_ctr(void) { return FIPS_evp_aes_128_ctr(); } | ||
| 66 | const EVP_CIPHER *EVP_aes_128_ecb(void) { return FIPS_evp_aes_128_ecb(); } | ||
| 67 | const EVP_CIPHER *EVP_aes_128_gcm(void) { return FIPS_evp_aes_128_gcm(); } | ||
| 68 | const EVP_CIPHER *EVP_aes_128_ofb(void) { return FIPS_evp_aes_128_ofb(); } | ||
| 69 | const EVP_CIPHER *EVP_aes_128_xts(void) { return FIPS_evp_aes_128_xts(); } | ||
| 70 | const EVP_CIPHER *EVP_aes_192_cbc(void) { return FIPS_evp_aes_192_cbc(); } | ||
| 71 | const EVP_CIPHER *EVP_aes_192_ccm(void) { return FIPS_evp_aes_192_ccm(); } | ||
| 72 | const EVP_CIPHER *EVP_aes_192_cfb1(void) { return FIPS_evp_aes_192_cfb1(); } | ||
| 73 | const EVP_CIPHER *EVP_aes_192_cfb128(void) { return FIPS_evp_aes_192_cfb128(); } | ||
| 74 | const EVP_CIPHER *EVP_aes_192_cfb8(void) { return FIPS_evp_aes_192_cfb8(); } | ||
| 75 | const EVP_CIPHER *EVP_aes_192_ctr(void) { return FIPS_evp_aes_192_ctr(); } | ||
| 76 | const EVP_CIPHER *EVP_aes_192_ecb(void) { return FIPS_evp_aes_192_ecb(); } | ||
| 77 | const EVP_CIPHER *EVP_aes_192_gcm(void) { return FIPS_evp_aes_192_gcm(); } | ||
| 78 | const EVP_CIPHER *EVP_aes_192_ofb(void) { return FIPS_evp_aes_192_ofb(); } | ||
| 79 | const EVP_CIPHER *EVP_aes_256_cbc(void) { return FIPS_evp_aes_256_cbc(); } | ||
| 80 | const EVP_CIPHER *EVP_aes_256_ccm(void) { return FIPS_evp_aes_256_ccm(); } | ||
| 81 | const EVP_CIPHER *EVP_aes_256_cfb1(void) { return FIPS_evp_aes_256_cfb1(); } | ||
| 82 | const EVP_CIPHER *EVP_aes_256_cfb128(void) { return FIPS_evp_aes_256_cfb128(); } | ||
| 83 | const EVP_CIPHER *EVP_aes_256_cfb8(void) { return FIPS_evp_aes_256_cfb8(); } | ||
| 84 | const EVP_CIPHER *EVP_aes_256_ctr(void) { return FIPS_evp_aes_256_ctr(); } | ||
| 85 | const EVP_CIPHER *EVP_aes_256_ecb(void) { return FIPS_evp_aes_256_ecb(); } | ||
| 86 | const EVP_CIPHER *EVP_aes_256_gcm(void) { return FIPS_evp_aes_256_gcm(); } | ||
| 87 | const EVP_CIPHER *EVP_aes_256_ofb(void) { return FIPS_evp_aes_256_ofb(); } | ||
| 88 | const EVP_CIPHER *EVP_aes_256_xts(void) { return FIPS_evp_aes_256_xts(); } | ||
| 89 | const EVP_CIPHER *EVP_des_ede(void) { return FIPS_evp_des_ede(); } | ||
| 90 | const EVP_CIPHER *EVP_des_ede3(void) { return FIPS_evp_des_ede3(); } | ||
| 91 | const EVP_CIPHER *EVP_des_ede3_cbc(void) { return FIPS_evp_des_ede3_cbc(); } | ||
| 92 | const EVP_CIPHER *EVP_des_ede3_cfb1(void) { return FIPS_evp_des_ede3_cfb1(); } | ||
| 93 | const EVP_CIPHER *EVP_des_ede3_cfb64(void) { return FIPS_evp_des_ede3_cfb64(); } | ||
| 94 | const EVP_CIPHER *EVP_des_ede3_cfb8(void) { return FIPS_evp_des_ede3_cfb8(); } | ||
| 95 | const EVP_CIPHER *EVP_des_ede3_ecb(void) { return FIPS_evp_des_ede3_ecb(); } | ||
| 96 | const EVP_CIPHER *EVP_des_ede3_ofb(void) { return FIPS_evp_des_ede3_ofb(); } | ||
| 97 | const EVP_CIPHER *EVP_des_ede_cbc(void) { return FIPS_evp_des_ede_cbc(); } | ||
| 98 | const EVP_CIPHER *EVP_des_ede_cfb64(void) { return FIPS_evp_des_ede_cfb64(); } | ||
| 99 | const EVP_CIPHER *EVP_des_ede_ecb(void) { return FIPS_evp_des_ede_ecb(); } | ||
| 100 | const EVP_CIPHER *EVP_des_ede_ofb(void) { return FIPS_evp_des_ede_ofb(); } | ||
| 101 | const EVP_CIPHER *EVP_enc_null(void) { return FIPS_evp_enc_null(); } | ||
| 102 | |||
| 103 | const EVP_MD *EVP_sha1(void) { return FIPS_evp_sha1(); } | ||
| 104 | const EVP_MD *EVP_sha224(void) { return FIPS_evp_sha224(); } | ||
| 105 | const EVP_MD *EVP_sha256(void) { return FIPS_evp_sha256(); } | ||
| 106 | const EVP_MD *EVP_sha384(void) { return FIPS_evp_sha384(); } | ||
| 107 | const EVP_MD *EVP_sha512(void) { return FIPS_evp_sha512(); } | ||
| 108 | |||
| 109 | const EVP_MD *EVP_dss(void) { return FIPS_evp_dss(); } | ||
| 110 | const EVP_MD *EVP_dss1(void) { return FIPS_evp_dss1(); } | ||
| 111 | const EVP_MD *EVP_ecdsa(void) { return FIPS_evp_ecdsa(); } | ||
| 112 | |||
| 113 | #endif | ||
diff --git a/src/lib/libcrypto/fips_err.h b/src/lib/libcrypto/fips_err.h deleted file mode 100644 index c671691b47..0000000000 --- a/src/lib/libcrypto/fips_err.h +++ /dev/null | |||
| @@ -1,209 +0,0 @@ | |||
| 1 | /* crypto/fips_err.h */ | ||
| 2 | /* ==================================================================== | ||
| 3 | * Copyright (c) 1999-2011 The OpenSSL Project. All rights reserved. | ||
| 4 | * | ||
| 5 | * Redistribution and use in source and binary forms, with or without | ||
| 6 | * modification, are permitted provided that the following conditions | ||
| 7 | * are met: | ||
| 8 | * | ||
| 9 | * 1. Redistributions of source code must retain the above copyright | ||
| 10 | * notice, this list of conditions and the following disclaimer. | ||
| 11 | * | ||
| 12 | * 2. Redistributions in binary form must reproduce the above copyright | ||
| 13 | * notice, this list of conditions and the following disclaimer in | ||
| 14 | * the documentation and/or other materials provided with the | ||
| 15 | * distribution. | ||
| 16 | * | ||
| 17 | * 3. All advertising materials mentioning features or use of this | ||
| 18 | * software must display the following acknowledgment: | ||
| 19 | * "This product includes software developed by the OpenSSL Project | ||
| 20 | * for use in the OpenSSL Toolkit. (http://www.OpenSSL.org/)" | ||
| 21 | * | ||
| 22 | * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to | ||
| 23 | * endorse or promote products derived from this software without | ||
| 24 | * prior written permission. For written permission, please contact | ||
| 25 | * openssl-core@OpenSSL.org. | ||
| 26 | * | ||
| 27 | * 5. Products derived from this software may not be called "OpenSSL" | ||
| 28 | * nor may "OpenSSL" appear in their names without prior written | ||
| 29 | * permission of the OpenSSL Project. | ||
| 30 | * | ||
| 31 | * 6. Redistributions of any form whatsoever must retain the following | ||
| 32 | * acknowledgment: | ||
| 33 | * "This product includes software developed by the OpenSSL Project | ||
| 34 | * for use in the OpenSSL Toolkit (http://www.OpenSSL.org/)" | ||
| 35 | * | ||
| 36 | * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY | ||
| 37 | * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
| 38 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | ||
| 39 | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR | ||
| 40 | * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
| 41 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | ||
| 42 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
| 43 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
| 44 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | ||
| 45 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
| 46 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | ||
| 47 | * OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| 48 | * ==================================================================== | ||
| 49 | * | ||
| 50 | * This product includes cryptographic software written by Eric Young | ||
| 51 | * (eay@cryptsoft.com). This product includes software written by Tim | ||
| 52 | * Hudson (tjh@cryptsoft.com). | ||
| 53 | * | ||
| 54 | */ | ||
| 55 | |||
| 56 | /* NOTE: this file was auto generated by the mkerr.pl script: any changes | ||
| 57 | * made to it will be overwritten when the script next updates this file, | ||
| 58 | * only reason strings will be preserved. | ||
| 59 | */ | ||
| 60 | |||
| 61 | #include <stdio.h> | ||
| 62 | #include <openssl/err.h> | ||
| 63 | #include <openssl/fips.h> | ||
| 64 | |||
| 65 | /* BEGIN ERROR CODES */ | ||
| 66 | #ifndef OPENSSL_NO_ERR | ||
| 67 | |||
| 68 | #define ERR_FUNC(func) ERR_PACK(ERR_LIB_FIPS,func,0) | ||
| 69 | #define ERR_REASON(reason) ERR_PACK(ERR_LIB_FIPS,0,reason) | ||
| 70 | |||
| 71 | static ERR_STRING_DATA FIPS_str_functs[]= | ||
| 72 | { | ||
| 73 | {ERR_FUNC(FIPS_F_DH_BUILTIN_GENPARAMS), "DH_BUILTIN_GENPARAMS"}, | ||
| 74 | {ERR_FUNC(FIPS_F_DH_INIT), "DH_INIT"}, | ||
| 75 | {ERR_FUNC(FIPS_F_DRBG_RESEED), "DRBG_RESEED"}, | ||
| 76 | {ERR_FUNC(FIPS_F_DSA_BUILTIN_PARAMGEN), "DSA_BUILTIN_PARAMGEN"}, | ||
| 77 | {ERR_FUNC(FIPS_F_DSA_BUILTIN_PARAMGEN2), "DSA_BUILTIN_PARAMGEN2"}, | ||
| 78 | {ERR_FUNC(FIPS_F_DSA_DO_SIGN), "DSA_do_sign"}, | ||
| 79 | {ERR_FUNC(FIPS_F_DSA_DO_VERIFY), "DSA_do_verify"}, | ||
| 80 | {ERR_FUNC(FIPS_F_FIPS_CHECK_DSA), "FIPS_CHECK_DSA"}, | ||
| 81 | {ERR_FUNC(FIPS_F_FIPS_CHECK_DSA_PRNG), "fips_check_dsa_prng"}, | ||
| 82 | {ERR_FUNC(FIPS_F_FIPS_CHECK_EC), "FIPS_CHECK_EC"}, | ||
| 83 | {ERR_FUNC(FIPS_F_FIPS_CHECK_EC_PRNG), "fips_check_ec_prng"}, | ||
| 84 | {ERR_FUNC(FIPS_F_FIPS_CHECK_INCORE_FINGERPRINT), "FIPS_check_incore_fingerprint"}, | ||
| 85 | {ERR_FUNC(FIPS_F_FIPS_CHECK_RSA), "fips_check_rsa"}, | ||
| 86 | {ERR_FUNC(FIPS_F_FIPS_CHECK_RSA_PRNG), "fips_check_rsa_prng"}, | ||
| 87 | {ERR_FUNC(FIPS_F_FIPS_CIPHER), "FIPS_cipher"}, | ||
| 88 | {ERR_FUNC(FIPS_F_FIPS_CIPHERINIT), "FIPS_cipherinit"}, | ||
| 89 | {ERR_FUNC(FIPS_F_FIPS_CIPHER_CTX_CTRL), "FIPS_CIPHER_CTX_CTRL"}, | ||
| 90 | {ERR_FUNC(FIPS_F_FIPS_DIGESTFINAL), "FIPS_digestfinal"}, | ||
| 91 | {ERR_FUNC(FIPS_F_FIPS_DIGESTINIT), "FIPS_digestinit"}, | ||
| 92 | {ERR_FUNC(FIPS_F_FIPS_DIGESTUPDATE), "FIPS_digestupdate"}, | ||
| 93 | {ERR_FUNC(FIPS_F_FIPS_DRBG_BYTES), "FIPS_DRBG_BYTES"}, | ||
| 94 | {ERR_FUNC(FIPS_F_FIPS_DRBG_CHECK), "FIPS_DRBG_CHECK"}, | ||
| 95 | {ERR_FUNC(FIPS_F_FIPS_DRBG_CPRNG_TEST), "FIPS_DRBG_CPRNG_TEST"}, | ||
| 96 | {ERR_FUNC(FIPS_F_FIPS_DRBG_ERROR_CHECK), "FIPS_DRBG_ERROR_CHECK"}, | ||
| 97 | {ERR_FUNC(FIPS_F_FIPS_DRBG_GENERATE), "FIPS_drbg_generate"}, | ||
| 98 | {ERR_FUNC(FIPS_F_FIPS_DRBG_INIT), "FIPS_drbg_init"}, | ||
| 99 | {ERR_FUNC(FIPS_F_FIPS_DRBG_INSTANTIATE), "FIPS_drbg_instantiate"}, | ||
| 100 | {ERR_FUNC(FIPS_F_FIPS_DRBG_NEW), "FIPS_drbg_new"}, | ||
| 101 | {ERR_FUNC(FIPS_F_FIPS_DRBG_RESEED), "FIPS_drbg_reseed"}, | ||
| 102 | {ERR_FUNC(FIPS_F_FIPS_DRBG_SINGLE_KAT), "FIPS_DRBG_SINGLE_KAT"}, | ||
| 103 | {ERR_FUNC(FIPS_F_FIPS_DSA_SIGN_DIGEST), "FIPS_dsa_sign_digest"}, | ||
| 104 | {ERR_FUNC(FIPS_F_FIPS_DSA_VERIFY_DIGEST), "FIPS_dsa_verify_digest"}, | ||
| 105 | {ERR_FUNC(FIPS_F_FIPS_GET_ENTROPY), "FIPS_GET_ENTROPY"}, | ||
| 106 | {ERR_FUNC(FIPS_F_FIPS_MODULE_MODE_SET), "FIPS_module_mode_set"}, | ||
| 107 | {ERR_FUNC(FIPS_F_FIPS_PKEY_SIGNATURE_TEST), "fips_pkey_signature_test"}, | ||
| 108 | {ERR_FUNC(FIPS_F_FIPS_RAND_ADD), "FIPS_rand_add"}, | ||
| 109 | {ERR_FUNC(FIPS_F_FIPS_RAND_BYTES), "FIPS_rand_bytes"}, | ||
| 110 | {ERR_FUNC(FIPS_F_FIPS_RAND_PSEUDO_BYTES), "FIPS_rand_pseudo_bytes"}, | ||
| 111 | {ERR_FUNC(FIPS_F_FIPS_RAND_SEED), "FIPS_rand_seed"}, | ||
| 112 | {ERR_FUNC(FIPS_F_FIPS_RAND_SET_METHOD), "FIPS_rand_set_method"}, | ||
| 113 | {ERR_FUNC(FIPS_F_FIPS_RAND_STATUS), "FIPS_rand_status"}, | ||
| 114 | {ERR_FUNC(FIPS_F_FIPS_RSA_SIGN_DIGEST), "FIPS_rsa_sign_digest"}, | ||
| 115 | {ERR_FUNC(FIPS_F_FIPS_RSA_VERIFY_DIGEST), "FIPS_rsa_verify_digest"}, | ||
| 116 | {ERR_FUNC(FIPS_F_FIPS_SELFTEST_AES), "FIPS_selftest_aes"}, | ||
| 117 | {ERR_FUNC(FIPS_F_FIPS_SELFTEST_AES_CCM), "FIPS_selftest_aes_ccm"}, | ||
| 118 | {ERR_FUNC(FIPS_F_FIPS_SELFTEST_AES_GCM), "FIPS_selftest_aes_gcm"}, | ||
| 119 | {ERR_FUNC(FIPS_F_FIPS_SELFTEST_AES_XTS), "FIPS_selftest_aes_xts"}, | ||
| 120 | {ERR_FUNC(FIPS_F_FIPS_SELFTEST_CMAC), "FIPS_selftest_cmac"}, | ||
| 121 | {ERR_FUNC(FIPS_F_FIPS_SELFTEST_DES), "FIPS_selftest_des"}, | ||
| 122 | {ERR_FUNC(FIPS_F_FIPS_SELFTEST_DSA), "FIPS_selftest_dsa"}, | ||
| 123 | {ERR_FUNC(FIPS_F_FIPS_SELFTEST_ECDSA), "FIPS_selftest_ecdsa"}, | ||
| 124 | {ERR_FUNC(FIPS_F_FIPS_SELFTEST_HMAC), "FIPS_selftest_hmac"}, | ||
| 125 | {ERR_FUNC(FIPS_F_FIPS_SELFTEST_SHA1), "FIPS_selftest_sha1"}, | ||
| 126 | {ERR_FUNC(FIPS_F_FIPS_SELFTEST_X931), "FIPS_selftest_x931"}, | ||
| 127 | {ERR_FUNC(FIPS_F_FIPS_SET_PRNG_KEY), "FIPS_SET_PRNG_KEY"}, | ||
| 128 | {ERR_FUNC(FIPS_F_HASH_FINAL), "HASH_FINAL"}, | ||
| 129 | {ERR_FUNC(FIPS_F_RSA_BUILTIN_KEYGEN), "RSA_BUILTIN_KEYGEN"}, | ||
| 130 | {ERR_FUNC(FIPS_F_RSA_EAY_INIT), "RSA_EAY_INIT"}, | ||
| 131 | {ERR_FUNC(FIPS_F_RSA_EAY_PRIVATE_DECRYPT), "RSA_EAY_PRIVATE_DECRYPT"}, | ||
| 132 | {ERR_FUNC(FIPS_F_RSA_EAY_PRIVATE_ENCRYPT), "RSA_EAY_PRIVATE_ENCRYPT"}, | ||
| 133 | {ERR_FUNC(FIPS_F_RSA_EAY_PUBLIC_DECRYPT), "RSA_EAY_PUBLIC_DECRYPT"}, | ||
| 134 | {ERR_FUNC(FIPS_F_RSA_EAY_PUBLIC_ENCRYPT), "RSA_EAY_PUBLIC_ENCRYPT"}, | ||
| 135 | {ERR_FUNC(FIPS_F_RSA_X931_GENERATE_KEY_EX), "RSA_X931_generate_key_ex"}, | ||
| 136 | {0,NULL} | ||
| 137 | }; | ||
| 138 | |||
| 139 | static ERR_STRING_DATA FIPS_str_reasons[]= | ||
| 140 | { | ||
| 141 | {ERR_REASON(FIPS_R_ADDITIONAL_INPUT_ERROR_UNDETECTED),"additional input error undetected"}, | ||
| 142 | {ERR_REASON(FIPS_R_ADDITIONAL_INPUT_TOO_LONG),"additional input too long"}, | ||
| 143 | {ERR_REASON(FIPS_R_ALREADY_INSTANTIATED) ,"already instantiated"}, | ||
| 144 | {ERR_REASON(FIPS_R_AUTHENTICATION_FAILURE),"authentication failure"}, | ||
| 145 | {ERR_REASON(FIPS_R_CONTRADICTING_EVIDENCE),"contradicting evidence"}, | ||
| 146 | {ERR_REASON(FIPS_R_DRBG_NOT_INITIALISED) ,"drbg not initialised"}, | ||
| 147 | {ERR_REASON(FIPS_R_DRBG_STUCK) ,"drbg stuck"}, | ||
| 148 | {ERR_REASON(FIPS_R_ENTROPY_ERROR_UNDETECTED),"entropy error undetected"}, | ||
| 149 | {ERR_REASON(FIPS_R_ENTROPY_NOT_REQUESTED_FOR_RESEED),"entropy not requested for reseed"}, | ||
| 150 | {ERR_REASON(FIPS_R_ENTROPY_SOURCE_STUCK) ,"entropy source stuck"}, | ||
| 151 | {ERR_REASON(FIPS_R_ERROR_INITIALISING_DRBG),"error initialising drbg"}, | ||
| 152 | {ERR_REASON(FIPS_R_ERROR_INSTANTIATING_DRBG),"error instantiating drbg"}, | ||
| 153 | {ERR_REASON(FIPS_R_ERROR_RETRIEVING_ADDITIONAL_INPUT),"error retrieving additional input"}, | ||
| 154 | {ERR_REASON(FIPS_R_ERROR_RETRIEVING_ENTROPY),"error retrieving entropy"}, | ||
| 155 | {ERR_REASON(FIPS_R_ERROR_RETRIEVING_NONCE),"error retrieving nonce"}, | ||
| 156 | {ERR_REASON(FIPS_R_FINGERPRINT_DOES_NOT_MATCH),"fingerprint does not match"}, | ||
| 157 | {ERR_REASON(FIPS_R_FINGERPRINT_DOES_NOT_MATCH_NONPIC_RELOCATED),"fingerprint does not match nonpic relocated"}, | ||
| 158 | {ERR_REASON(FIPS_R_FINGERPRINT_DOES_NOT_MATCH_SEGMENT_ALIASING),"fingerprint does not match segment aliasing"}, | ||
| 159 | {ERR_REASON(FIPS_R_FIPS_MODE_ALREADY_SET),"fips mode already set"}, | ||
| 160 | {ERR_REASON(FIPS_R_FIPS_SELFTEST_FAILED) ,"fips selftest failed"}, | ||
| 161 | {ERR_REASON(FIPS_R_FUNCTION_ERROR) ,"function error"}, | ||
| 162 | {ERR_REASON(FIPS_R_GENERATE_ERROR) ,"generate error"}, | ||
| 163 | {ERR_REASON(FIPS_R_GENERATE_ERROR_UNDETECTED),"generate error undetected"}, | ||
| 164 | {ERR_REASON(FIPS_R_INSTANTIATE_ERROR) ,"instantiate error"}, | ||
| 165 | {ERR_REASON(FIPS_R_INSUFFICIENT_SECURITY_STRENGTH),"insufficient security strength"}, | ||
| 166 | {ERR_REASON(FIPS_R_INTERNAL_ERROR) ,"internal error"}, | ||
| 167 | {ERR_REASON(FIPS_R_INVALID_KEY_LENGTH) ,"invalid key length"}, | ||
| 168 | {ERR_REASON(FIPS_R_INVALID_PARAMETERS) ,"invalid parameters"}, | ||
| 169 | {ERR_REASON(FIPS_R_IN_ERROR_STATE) ,"in error state"}, | ||
| 170 | {ERR_REASON(FIPS_R_KEY_TOO_SHORT) ,"key too short"}, | ||
| 171 | {ERR_REASON(FIPS_R_NONCE_ERROR_UNDETECTED),"nonce error undetected"}, | ||
| 172 | {ERR_REASON(FIPS_R_NON_FIPS_METHOD) ,"non fips method"}, | ||
| 173 | {ERR_REASON(FIPS_R_NOPR_TEST1_FAILURE) ,"nopr test1 failure"}, | ||
| 174 | {ERR_REASON(FIPS_R_NOPR_TEST2_FAILURE) ,"nopr test2 failure"}, | ||
| 175 | {ERR_REASON(FIPS_R_NOT_INSTANTIATED) ,"not instantiated"}, | ||
| 176 | {ERR_REASON(FIPS_R_PAIRWISE_TEST_FAILED) ,"pairwise test failed"}, | ||
| 177 | {ERR_REASON(FIPS_R_PERSONALISATION_ERROR_UNDETECTED),"personalisation error undetected"}, | ||
| 178 | {ERR_REASON(FIPS_R_PERSONALISATION_STRING_TOO_LONG),"personalisation string too long"}, | ||
| 179 | {ERR_REASON(FIPS_R_PRNG_STRENGTH_TOO_LOW),"prng strength too low"}, | ||
| 180 | {ERR_REASON(FIPS_R_PR_TEST1_FAILURE) ,"pr test1 failure"}, | ||
| 181 | {ERR_REASON(FIPS_R_PR_TEST2_FAILURE) ,"pr test2 failure"}, | ||
| 182 | {ERR_REASON(FIPS_R_REQUEST_LENGTH_ERROR_UNDETECTED),"request length error undetected"}, | ||
| 183 | {ERR_REASON(FIPS_R_REQUEST_TOO_LARGE_FOR_DRBG),"request too large for drbg"}, | ||
| 184 | {ERR_REASON(FIPS_R_RESEED_COUNTER_ERROR) ,"reseed counter error"}, | ||
| 185 | {ERR_REASON(FIPS_R_RESEED_ERROR) ,"reseed error"}, | ||
| 186 | {ERR_REASON(FIPS_R_SELFTEST_FAILED) ,"selftest failed"}, | ||
| 187 | {ERR_REASON(FIPS_R_SELFTEST_FAILURE) ,"selftest failure"}, | ||
| 188 | {ERR_REASON(FIPS_R_STRENGTH_ERROR_UNDETECTED),"strength error undetected"}, | ||
| 189 | {ERR_REASON(FIPS_R_TEST_FAILURE) ,"test failure"}, | ||
| 190 | {ERR_REASON(FIPS_R_UNINSTANTIATE_ERROR) ,"uninstantiate error"}, | ||
| 191 | {ERR_REASON(FIPS_R_UNINSTANTIATE_ZEROISE_ERROR),"uninstantiate zeroise error"}, | ||
| 192 | {ERR_REASON(FIPS_R_UNSUPPORTED_DRBG_TYPE),"unsupported drbg type"}, | ||
| 193 | {ERR_REASON(FIPS_R_UNSUPPORTED_PLATFORM) ,"unsupported platform"}, | ||
| 194 | {0,NULL} | ||
| 195 | }; | ||
| 196 | |||
| 197 | #endif | ||
| 198 | |||
| 199 | void ERR_load_FIPS_strings(void) | ||
| 200 | { | ||
| 201 | #ifndef OPENSSL_NO_ERR | ||
| 202 | |||
| 203 | if (ERR_func_error_string(FIPS_str_functs[0].error) == NULL) | ||
| 204 | { | ||
| 205 | ERR_load_strings(0,FIPS_str_functs); | ||
| 206 | ERR_load_strings(0,FIPS_str_reasons); | ||
| 207 | } | ||
| 208 | #endif | ||
| 209 | } | ||
diff --git a/src/lib/libcrypto/fips_ers.c b/src/lib/libcrypto/fips_ers.c deleted file mode 100644 index 09f11748f6..0000000000 --- a/src/lib/libcrypto/fips_ers.c +++ /dev/null | |||
| @@ -1,7 +0,0 @@ | |||
| 1 | #include <openssl/opensslconf.h> | ||
| 2 | |||
| 3 | #ifdef OPENSSL_FIPS | ||
| 4 | # include "fips_err.h" | ||
| 5 | #else | ||
| 6 | static void *dummy=&dummy; | ||
| 7 | #endif | ||
diff --git a/src/lib/libcrypto/hmac/Makefile.ssl b/src/lib/libcrypto/hmac/Makefile.ssl deleted file mode 100644 index f1c07322c4..0000000000 --- a/src/lib/libcrypto/hmac/Makefile.ssl +++ /dev/null | |||
| @@ -1,101 +0,0 @@ | |||
| 1 | # | ||
| 2 | # SSLeay/crypto/md/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= hmac | ||
| 6 | TOP= ../.. | ||
| 7 | CC= cc | ||
| 8 | INCLUDES= | ||
| 9 | CFLAG=-g | ||
| 10 | INSTALL_PREFIX= | ||
| 11 | OPENSSLDIR= /usr/local/ssl | ||
| 12 | INSTALLTOP=/usr/local/ssl | ||
| 13 | MAKE= make -f Makefile.ssl | ||
| 14 | MAKEDEPPROG= makedepend | ||
| 15 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
| 16 | MAKEFILE= Makefile.ssl | ||
| 17 | AR= ar r | ||
| 18 | |||
| 19 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 20 | |||
| 21 | GENERAL=Makefile | ||
| 22 | TEST=hmactest.c | ||
| 23 | APPS= | ||
| 24 | |||
| 25 | LIB=$(TOP)/libcrypto.a | ||
| 26 | LIBSRC=hmac.c | ||
| 27 | LIBOBJ=hmac.o | ||
| 28 | |||
| 29 | SRC= $(LIBSRC) | ||
| 30 | |||
| 31 | EXHEADER= hmac.h | ||
| 32 | HEADER= $(EXHEADER) | ||
| 33 | |||
| 34 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
| 35 | |||
| 36 | top: | ||
| 37 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
| 38 | |||
| 39 | all: lib | ||
| 40 | |||
| 41 | lib: $(LIBOBJ) | ||
| 42 | $(AR) $(LIB) $(LIBOBJ) | ||
| 43 | $(RANLIB) $(LIB) || echo Never mind. | ||
| 44 | @touch lib | ||
| 45 | |||
| 46 | files: | ||
| 47 | $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
| 48 | |||
| 49 | links: | ||
| 50 | @sh $(TOP)/util/point.sh Makefile.ssl Makefile | ||
| 51 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | ||
| 52 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | ||
| 53 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | ||
| 54 | |||
| 55 | install: | ||
| 56 | @for i in $(EXHEADER) ; \ | ||
| 57 | do \ | ||
| 58 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 59 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
| 60 | done; | ||
| 61 | |||
| 62 | tags: | ||
| 63 | ctags $(SRC) | ||
| 64 | |||
| 65 | tests: | ||
| 66 | |||
| 67 | lint: | ||
| 68 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
| 69 | |||
| 70 | depend: | ||
| 71 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) | ||
| 72 | |||
| 73 | dclean: | ||
| 74 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 75 | mv -f Makefile.new $(MAKEFILE) | ||
| 76 | |||
| 77 | clean: | ||
| 78 | rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
| 79 | |||
| 80 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 81 | |||
| 82 | hmac.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 83 | hmac.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 84 | hmac.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 85 | hmac.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 86 | hmac.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 87 | hmac.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 88 | hmac.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 89 | hmac.o: ../../include/openssl/evp.h ../../include/openssl/hmac.h | ||
| 90 | hmac.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 91 | hmac.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 92 | hmac.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 93 | hmac.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 94 | hmac.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 95 | hmac.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rc2.h | ||
| 96 | hmac.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 97 | hmac.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 98 | hmac.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 99 | hmac.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 100 | hmac.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 101 | hmac.o: ../cryptlib.h hmac.c | ||
diff --git a/src/lib/libcrypto/idea/Makefile.ssl b/src/lib/libcrypto/idea/Makefile.ssl deleted file mode 100644 index fa016ea399..0000000000 --- a/src/lib/libcrypto/idea/Makefile.ssl +++ /dev/null | |||
| @@ -1,91 +0,0 @@ | |||
| 1 | # | ||
| 2 | # SSLeay/crypto/idea/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= idea | ||
| 6 | TOP= ../.. | ||
| 7 | CC= cc | ||
| 8 | INCLUDES= | ||
| 9 | CFLAG=-g | ||
| 10 | INSTALL_PREFIX= | ||
| 11 | OPENSSLDIR= /usr/local/ssl | ||
| 12 | INSTALLTOP=/usr/local/ssl | ||
| 13 | MAKE= make -f Makefile.ssl | ||
| 14 | MAKEDEPPROG= makedepend | ||
| 15 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
| 16 | MAKEFILE= Makefile.ssl | ||
| 17 | AR= ar r | ||
| 18 | |||
| 19 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 20 | |||
| 21 | GENERAL=Makefile | ||
| 22 | TEST=ideatest.c | ||
| 23 | APPS= | ||
| 24 | |||
| 25 | LIB=$(TOP)/libcrypto.a | ||
| 26 | LIBSRC=i_cbc.c i_cfb64.c i_ofb64.c i_ecb.c i_skey.c | ||
| 27 | LIBOBJ=i_cbc.o i_cfb64.o i_ofb64.o i_ecb.o i_skey.o | ||
| 28 | |||
| 29 | SRC= $(LIBSRC) | ||
| 30 | |||
| 31 | EXHEADER= idea.h | ||
| 32 | HEADER= idea_lcl.h $(EXHEADER) | ||
| 33 | |||
| 34 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
| 35 | |||
| 36 | top: | ||
| 37 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
| 38 | |||
| 39 | all: lib | ||
| 40 | |||
| 41 | lib: $(LIBOBJ) | ||
| 42 | $(AR) $(LIB) $(LIBOBJ) | ||
| 43 | $(RANLIB) $(LIB) || echo Never mind. | ||
| 44 | @touch lib | ||
| 45 | |||
| 46 | files: | ||
| 47 | $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
| 48 | |||
| 49 | links: | ||
| 50 | @sh $(TOP)/util/point.sh Makefile.ssl Makefile | ||
| 51 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | ||
| 52 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | ||
| 53 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | ||
| 54 | |||
| 55 | install: | ||
| 56 | @for i in $(EXHEADER) ; \ | ||
| 57 | do \ | ||
| 58 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 59 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
| 60 | done; | ||
| 61 | |||
| 62 | tags: | ||
| 63 | ctags $(SRC) | ||
| 64 | |||
| 65 | tests: | ||
| 66 | |||
| 67 | lint: | ||
| 68 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
| 69 | |||
| 70 | depend: | ||
| 71 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) | ||
| 72 | |||
| 73 | dclean: | ||
| 74 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 75 | mv -f Makefile.new $(MAKEFILE) | ||
| 76 | |||
| 77 | clean: | ||
| 78 | rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
| 79 | |||
| 80 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 81 | |||
| 82 | i_cbc.o: ../../include/openssl/idea.h ../../include/openssl/opensslconf.h | ||
| 83 | i_cbc.o: i_cbc.c idea_lcl.h | ||
| 84 | i_cfb64.o: ../../include/openssl/idea.h ../../include/openssl/opensslconf.h | ||
| 85 | i_cfb64.o: i_cfb64.c idea_lcl.h | ||
| 86 | i_ecb.o: ../../include/openssl/idea.h ../../include/openssl/opensslconf.h | ||
| 87 | i_ecb.o: ../../include/openssl/opensslv.h i_ecb.c idea_lcl.h | ||
| 88 | i_ofb64.o: ../../include/openssl/idea.h ../../include/openssl/opensslconf.h | ||
| 89 | i_ofb64.o: i_ofb64.c idea_lcl.h | ||
| 90 | i_skey.o: ../../include/openssl/idea.h ../../include/openssl/opensslconf.h | ||
| 91 | i_skey.o: i_skey.c idea_lcl.h | ||
diff --git a/src/lib/libcrypto/idea/idea_spd.c b/src/lib/libcrypto/idea/idea_spd.c deleted file mode 100644 index 699353e871..0000000000 --- a/src/lib/libcrypto/idea/idea_spd.c +++ /dev/null | |||
| @@ -1,299 +0,0 @@ | |||
| 1 | /* crypto/idea/idea_spd.c */ | ||
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | ||
| 3 | * All rights reserved. | ||
| 4 | * | ||
| 5 | * This package is an SSL implementation written | ||
| 6 | * by Eric Young (eay@cryptsoft.com). | ||
| 7 | * The implementation was written so as to conform with Netscapes SSL. | ||
| 8 | * | ||
| 9 | * This library is free for commercial and non-commercial use as long as | ||
| 10 | * the following conditions are aheared to. The following conditions | ||
| 11 | * apply to all code found in this distribution, be it the RC4, RSA, | ||
| 12 | * lhash, DES, etc., code; not just the SSL code. The SSL documentation | ||
| 13 | * included with this distribution is covered by the same copyright terms | ||
| 14 | * except that the holder is Tim Hudson (tjh@cryptsoft.com). | ||
| 15 | * | ||
| 16 | * Copyright remains Eric Young's, and as such any Copyright notices in | ||
| 17 | * the code are not to be removed. | ||
| 18 | * If this package is used in a product, Eric Young should be given attribution | ||
| 19 | * as the author of the parts of the library used. | ||
| 20 | * This can be in the form of a textual message at program startup or | ||
| 21 | * in documentation (online or textual) provided with the package. | ||
| 22 | * | ||
| 23 | * Redistribution and use in source and binary forms, with or without | ||
| 24 | * modification, are permitted provided that the following conditions | ||
| 25 | * are met: | ||
| 26 | * 1. Redistributions of source code must retain the copyright | ||
| 27 | * notice, this list of conditions and the following disclaimer. | ||
| 28 | * 2. Redistributions in binary form must reproduce the above copyright | ||
| 29 | * notice, this list of conditions and the following disclaimer in the | ||
| 30 | * documentation and/or other materials provided with the distribution. | ||
| 31 | * 3. All advertising materials mentioning features or use of this software | ||
| 32 | * must display the following acknowledgement: | ||
| 33 | * "This product includes cryptographic software written by | ||
| 34 | * Eric Young (eay@cryptsoft.com)" | ||
| 35 | * The word 'cryptographic' can be left out if the rouines from the library | ||
| 36 | * being used are not cryptographic related :-). | ||
| 37 | * 4. If you include any Windows specific code (or a derivative thereof) from | ||
| 38 | * the apps directory (application code) you must include an acknowledgement: | ||
| 39 | * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" | ||
| 40 | * | ||
| 41 | * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND | ||
| 42 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
| 43 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
| 44 | * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE | ||
| 45 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
| 46 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | ||
| 47 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
| 48 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
| 49 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||
| 50 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||
| 51 | * SUCH DAMAGE. | ||
| 52 | * | ||
| 53 | * The licence and distribution terms for any publically available version or | ||
| 54 | * derivative of this code cannot be changed. i.e. this code cannot simply be | ||
| 55 | * copied and put under another distribution licence | ||
| 56 | * [including the GNU Public Licence.] | ||
| 57 | */ | ||
| 58 | |||
| 59 | /* 11-Sep-92 Andrew Daviel Support for Silicon Graphics IRIX added */ | ||
| 60 | /* 06-Apr-92 Luke Brennan Support for VMS and add extra signal calls */ | ||
| 61 | |||
| 62 | #if !defined(OPENSSL_SYS_MSDOS) && (!defined(OPENSSL_SYS_VMS) || defined(__DECC)) && !defined(OPENSSL_SYS_MACOSX) | ||
| 63 | #define TIMES | ||
| 64 | #endif | ||
| 65 | |||
| 66 | #include <stdio.h> | ||
| 67 | |||
| 68 | #include <openssl/e_os2.h> | ||
| 69 | #include OPENSSL_UNISTD_IO | ||
| 70 | OPENSSL_DECLARE_EXIT | ||
| 71 | |||
| 72 | #ifndef OPENSSL_SYS_NETWARE | ||
| 73 | #include <signal.h> | ||
| 74 | #endif | ||
| 75 | |||
| 76 | #ifndef _IRIX | ||
| 77 | #include <time.h> | ||
| 78 | #endif | ||
| 79 | #ifdef TIMES | ||
| 80 | #include <sys/types.h> | ||
| 81 | #include <sys/times.h> | ||
| 82 | #endif | ||
| 83 | |||
| 84 | /* Depending on the VMS version, the tms structure is perhaps defined. | ||
| 85 | The __TMS macro will show if it was. If it wasn't defined, we should | ||
| 86 | undefine TIMES, since that tells the rest of the program how things | ||
| 87 | should be handled. -- Richard Levitte */ | ||
| 88 | #if defined(OPENSSL_SYS_VMS_DECC) && !defined(__TMS) | ||
| 89 | #undef TIMES | ||
| 90 | #endif | ||
| 91 | |||
| 92 | #ifndef TIMES | ||
| 93 | #include <sys/timeb.h> | ||
| 94 | #endif | ||
| 95 | |||
| 96 | #if defined(sun) || defined(__ultrix) | ||
| 97 | #define _POSIX_SOURCE | ||
| 98 | #include <limits.h> | ||
| 99 | #include <sys/param.h> | ||
| 100 | #endif | ||
| 101 | |||
| 102 | #include <openssl/idea.h> | ||
| 103 | |||
| 104 | /* The following if from times(3) man page. It may need to be changed */ | ||
| 105 | #ifndef HZ | ||
| 106 | #ifndef CLK_TCK | ||
| 107 | #define HZ 100.0 | ||
| 108 | #else /* CLK_TCK */ | ||
| 109 | #define HZ ((double)CLK_TCK) | ||
| 110 | #endif | ||
| 111 | #endif | ||
| 112 | |||
| 113 | #define BUFSIZE ((long)1024) | ||
| 114 | long run=0; | ||
| 115 | |||
| 116 | double Time_F(int s); | ||
| 117 | #ifdef SIGALRM | ||
| 118 | #if defined(__STDC__) || defined(sgi) || defined(_AIX) | ||
| 119 | #define SIGRETTYPE void | ||
| 120 | #else | ||
| 121 | #define SIGRETTYPE int | ||
| 122 | #endif | ||
| 123 | |||
| 124 | SIGRETTYPE sig_done(int sig); | ||
| 125 | SIGRETTYPE sig_done(int sig) | ||
| 126 | { | ||
| 127 | signal(SIGALRM,sig_done); | ||
| 128 | run=0; | ||
| 129 | #ifdef LINT | ||
| 130 | sig=sig; | ||
| 131 | #endif | ||
| 132 | } | ||
| 133 | #endif | ||
| 134 | |||
| 135 | #define START 0 | ||
| 136 | #define STOP 1 | ||
| 137 | |||
| 138 | double Time_F(int s) | ||
| 139 | { | ||
| 140 | double ret; | ||
| 141 | #ifdef TIMES | ||
| 142 | static struct tms tstart,tend; | ||
| 143 | |||
| 144 | if (s == START) | ||
| 145 | { | ||
| 146 | times(&tstart); | ||
| 147 | return(0); | ||
| 148 | } | ||
| 149 | else | ||
| 150 | { | ||
| 151 | times(&tend); | ||
| 152 | ret=((double)(tend.tms_utime-tstart.tms_utime))/HZ; | ||
| 153 | return((ret == 0.0)?1e-6:ret); | ||
| 154 | } | ||
| 155 | #else /* !times() */ | ||
| 156 | static struct timeb tstart,tend; | ||
| 157 | long i; | ||
| 158 | |||
| 159 | if (s == START) | ||
| 160 | { | ||
| 161 | ftime(&tstart); | ||
| 162 | return(0); | ||
| 163 | } | ||
| 164 | else | ||
| 165 | { | ||
| 166 | ftime(&tend); | ||
| 167 | i=(long)tend.millitm-(long)tstart.millitm; | ||
| 168 | ret=((double)(tend.time-tstart.time))+((double)i)/1e3; | ||
| 169 | return((ret == 0.0)?1e-6:ret); | ||
| 170 | } | ||
| 171 | #endif | ||
| 172 | } | ||
| 173 | |||
| 174 | int main(int argc, char **argv) | ||
| 175 | { | ||
| 176 | long count; | ||
| 177 | static unsigned char buf[BUFSIZE]; | ||
| 178 | static unsigned char key[] ={ | ||
| 179 | 0x12,0x34,0x56,0x78,0x9a,0xbc,0xde,0xf0, | ||
| 180 | 0xfe,0xdc,0xba,0x98,0x76,0x54,0x32,0x10, | ||
| 181 | }; | ||
| 182 | IDEA_KEY_SCHEDULE sch; | ||
| 183 | double a,aa,b,c,d; | ||
| 184 | #ifndef SIGALRM | ||
| 185 | long ca,cca,cb,cc; | ||
| 186 | #endif | ||
| 187 | |||
| 188 | #ifndef TIMES | ||
| 189 | printf("To get the most accurate results, try to run this\n"); | ||
| 190 | printf("program when this computer is idle.\n"); | ||
| 191 | #endif | ||
| 192 | |||
| 193 | #ifndef SIGALRM | ||
| 194 | printf("First we calculate the approximate speed ...\n"); | ||
| 195 | idea_set_encrypt_key(key,&sch); | ||
| 196 | count=10; | ||
| 197 | do { | ||
| 198 | long i; | ||
| 199 | IDEA_INT data[2]; | ||
| 200 | |||
| 201 | count*=2; | ||
| 202 | Time_F(START); | ||
| 203 | for (i=count; i; i--) | ||
| 204 | idea_encrypt(data,&sch); | ||
| 205 | d=Time_F(STOP); | ||
| 206 | } while (d < 3.0); | ||
| 207 | ca=count/4; | ||
| 208 | cca=count/200; | ||
| 209 | cb=count; | ||
| 210 | cc=count*8/BUFSIZE+1; | ||
| 211 | printf("idea_set_encrypt_key %ld times\n",ca); | ||
| 212 | #define COND(d) (count <= (d)) | ||
| 213 | #define COUNT(d) (d) | ||
| 214 | #else | ||
| 215 | #define COND(c) (run) | ||
| 216 | #define COUNT(d) (count) | ||
| 217 | signal(SIGALRM,sig_done); | ||
| 218 | printf("Doing idea_set_encrypt_key for 10 seconds\n"); | ||
| 219 | alarm(10); | ||
| 220 | #endif | ||
| 221 | |||
| 222 | Time_F(START); | ||
| 223 | for (count=0,run=1; COND(ca); count+=4) | ||
| 224 | { | ||
| 225 | idea_set_encrypt_key(key,&sch); | ||
| 226 | idea_set_encrypt_key(key,&sch); | ||
| 227 | idea_set_encrypt_key(key,&sch); | ||
| 228 | idea_set_encrypt_key(key,&sch); | ||
| 229 | } | ||
| 230 | d=Time_F(STOP); | ||
| 231 | printf("%ld idea idea_set_encrypt_key's in %.2f seconds\n",count,d); | ||
| 232 | a=((double)COUNT(ca))/d; | ||
| 233 | |||
| 234 | #ifdef SIGALRM | ||
| 235 | printf("Doing idea_set_decrypt_key for 10 seconds\n"); | ||
| 236 | alarm(10); | ||
| 237 | #else | ||
| 238 | printf("Doing idea_set_decrypt_key %ld times\n",cca); | ||
| 239 | #endif | ||
| 240 | |||
| 241 | Time_F(START); | ||
| 242 | for (count=0,run=1; COND(cca); count+=4) | ||
| 243 | { | ||
| 244 | idea_set_decrypt_key(&sch,&sch); | ||
| 245 | idea_set_decrypt_key(&sch,&sch); | ||
| 246 | idea_set_decrypt_key(&sch,&sch); | ||
| 247 | idea_set_decrypt_key(&sch,&sch); | ||
| 248 | } | ||
| 249 | d=Time_F(STOP); | ||
| 250 | printf("%ld idea idea_set_decrypt_key's in %.2f seconds\n",count,d); | ||
| 251 | aa=((double)COUNT(cca))/d; | ||
| 252 | |||
| 253 | #ifdef SIGALRM | ||
| 254 | printf("Doing idea_encrypt's for 10 seconds\n"); | ||
| 255 | alarm(10); | ||
| 256 | #else | ||
| 257 | printf("Doing idea_encrypt %ld times\n",cb); | ||
| 258 | #endif | ||
| 259 | Time_F(START); | ||
| 260 | for (count=0,run=1; COND(cb); count+=4) | ||
| 261 | { | ||
| 262 | unsigned long data[2]; | ||
| 263 | |||
| 264 | idea_encrypt(data,&sch); | ||
| 265 | idea_encrypt(data,&sch); | ||
| 266 | idea_encrypt(data,&sch); | ||
| 267 | idea_encrypt(data,&sch); | ||
| 268 | } | ||
| 269 | d=Time_F(STOP); | ||
| 270 | printf("%ld idea_encrypt's in %.2f second\n",count,d); | ||
| 271 | b=((double)COUNT(cb)*8)/d; | ||
| 272 | |||
| 273 | #ifdef SIGALRM | ||
| 274 | printf("Doing idea_cbc_encrypt on %ld byte blocks for 10 seconds\n", | ||
| 275 | BUFSIZE); | ||
| 276 | alarm(10); | ||
| 277 | #else | ||
| 278 | printf("Doing idea_cbc_encrypt %ld times on %ld byte blocks\n",cc, | ||
| 279 | BUFSIZE); | ||
| 280 | #endif | ||
| 281 | Time_F(START); | ||
| 282 | for (count=0,run=1; COND(cc); count++) | ||
| 283 | idea_cbc_encrypt(buf,buf,BUFSIZE,&sch, | ||
| 284 | &(key[0]),IDEA_ENCRYPT); | ||
| 285 | d=Time_F(STOP); | ||
| 286 | printf("%ld idea_cbc_encrypt's of %ld byte blocks in %.2f second\n", | ||
| 287 | count,BUFSIZE,d); | ||
| 288 | c=((double)COUNT(cc)*BUFSIZE)/d; | ||
| 289 | |||
| 290 | printf("IDEA set_encrypt_key per sec = %12.2f (%9.3fuS)\n",a,1.0e6/a); | ||
| 291 | printf("IDEA set_decrypt_key per sec = %12.2f (%9.3fuS)\n",aa,1.0e6/aa); | ||
| 292 | printf("IDEA raw ecb bytes per sec = %12.2f (%9.3fuS)\n",b,8.0e6/b); | ||
| 293 | printf("IDEA cbc bytes per sec = %12.2f (%9.3fuS)\n",c,8.0e6/c); | ||
| 294 | exit(0); | ||
| 295 | #if defined(LINT) || defined(OPENSSL_SYS_MSDOS) | ||
| 296 | return(0); | ||
| 297 | #endif | ||
| 298 | } | ||
| 299 | |||
diff --git a/src/lib/libcrypto/jpake/Makefile b/src/lib/libcrypto/jpake/Makefile deleted file mode 100644 index 110c49ce0b..0000000000 --- a/src/lib/libcrypto/jpake/Makefile +++ /dev/null | |||
| @@ -1,64 +0,0 @@ | |||
| 1 | DIR=jpake | ||
| 2 | TOP=../.. | ||
| 3 | |||
| 4 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 5 | |||
| 6 | LIB=$(TOP)/libcrypto.a | ||
| 7 | LIBOBJ=jpake.o jpake_err.o | ||
| 8 | LIBSRC=jpake.c jpake_err.c | ||
| 9 | |||
| 10 | EXHEADER=jpake.h | ||
| 11 | TEST=jpaketest.c | ||
| 12 | |||
| 13 | top: | ||
| 14 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
| 15 | |||
| 16 | all: lib | ||
| 17 | |||
| 18 | lib: $(LIBOBJ) | ||
| 19 | $(AR) $(LIB) $(LIBOBJ) | ||
| 20 | $(RANLIB) $(LIB) || echo Never mind. | ||
| 21 | @touch lib | ||
| 22 | |||
| 23 | links: | ||
| 24 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | ||
| 25 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | ||
| 26 | |||
| 27 | install: | ||
| 28 | @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile... | ||
| 29 | @headerlist="$(EXHEADER)"; for i in $$headerlist ; \ | ||
| 30 | do \ | ||
| 31 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 32 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
| 33 | done; | ||
| 34 | |||
| 35 | depend: | ||
| 36 | @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile... | ||
| 37 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) | ||
| 38 | |||
| 39 | dclean: | ||
| 40 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 41 | mv -f Makefile.new $(MAKEFILE) | ||
| 42 | |||
| 43 | clean: | ||
| 44 | rm -f *.s *.o *.obj des lib tags core .pure .nfs* *.old *.bak fluff | ||
| 45 | |||
| 46 | jpaketest: top jpaketest.c $(LIB) | ||
| 47 | $(CC) $(CFLAGS) -Wall -Werror -g -o jpaketest jpaketest.c $(LIB) | ||
| 48 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 49 | |||
| 50 | jpake.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 51 | jpake.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 52 | jpake.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
| 53 | jpake.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 54 | jpake.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h | ||
| 55 | jpake.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 56 | jpake.o: ../../include/openssl/symhacks.h jpake.c jpake.h | ||
| 57 | jpake_err.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 58 | jpake_err.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 59 | jpake_err.o: ../../include/openssl/err.h ../../include/openssl/jpake.h | ||
| 60 | jpake_err.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 61 | jpake_err.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 62 | jpake_err.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 63 | jpake_err.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 64 | jpake_err.o: jpake_err.c | ||
diff --git a/src/lib/libcrypto/jpake/jpake.c b/src/lib/libcrypto/jpake/jpake.c deleted file mode 100644 index 8e4b633ccc..0000000000 --- a/src/lib/libcrypto/jpake/jpake.c +++ /dev/null | |||
| @@ -1,511 +0,0 @@ | |||
| 1 | #include "jpake.h" | ||
| 2 | |||
| 3 | #include <openssl/crypto.h> | ||
| 4 | #include <openssl/sha.h> | ||
| 5 | #include <openssl/err.h> | ||
| 6 | #include <memory.h> | ||
| 7 | |||
| 8 | /* | ||
| 9 | * In the definition, (xa, xb, xc, xd) are Alice's (x1, x2, x3, x4) or | ||
| 10 | * Bob's (x3, x4, x1, x2). If you see what I mean. | ||
| 11 | */ | ||
| 12 | |||
| 13 | typedef struct | ||
| 14 | { | ||
| 15 | char *name; /* Must be unique */ | ||
| 16 | char *peer_name; | ||
| 17 | BIGNUM *p; | ||
| 18 | BIGNUM *g; | ||
| 19 | BIGNUM *q; | ||
| 20 | BIGNUM *gxc; /* Alice's g^{x3} or Bob's g^{x1} */ | ||
| 21 | BIGNUM *gxd; /* Alice's g^{x4} or Bob's g^{x2} */ | ||
| 22 | } JPAKE_CTX_PUBLIC; | ||
| 23 | |||
| 24 | struct JPAKE_CTX | ||
| 25 | { | ||
| 26 | JPAKE_CTX_PUBLIC p; | ||
| 27 | BIGNUM *secret; /* The shared secret */ | ||
| 28 | BN_CTX *ctx; | ||
| 29 | BIGNUM *xa; /* Alice's x1 or Bob's x3 */ | ||
| 30 | BIGNUM *xb; /* Alice's x2 or Bob's x4 */ | ||
| 31 | BIGNUM *key; /* The calculated (shared) key */ | ||
| 32 | }; | ||
| 33 | |||
| 34 | static void JPAKE_ZKP_init(JPAKE_ZKP *zkp) | ||
| 35 | { | ||
| 36 | zkp->gr = BN_new(); | ||
| 37 | zkp->b = BN_new(); | ||
| 38 | } | ||
| 39 | |||
| 40 | static void JPAKE_ZKP_release(JPAKE_ZKP *zkp) | ||
| 41 | { | ||
| 42 | BN_free(zkp->b); | ||
| 43 | BN_free(zkp->gr); | ||
| 44 | } | ||
| 45 | |||
| 46 | /* Two birds with one stone - make the global name as expected */ | ||
| 47 | #define JPAKE_STEP_PART_init JPAKE_STEP2_init | ||
| 48 | #define JPAKE_STEP_PART_release JPAKE_STEP2_release | ||
| 49 | |||
| 50 | void JPAKE_STEP_PART_init(JPAKE_STEP_PART *p) | ||
| 51 | { | ||
| 52 | p->gx = BN_new(); | ||
| 53 | JPAKE_ZKP_init(&p->zkpx); | ||
| 54 | } | ||
| 55 | |||
| 56 | void JPAKE_STEP_PART_release(JPAKE_STEP_PART *p) | ||
| 57 | { | ||
| 58 | JPAKE_ZKP_release(&p->zkpx); | ||
| 59 | BN_free(p->gx); | ||
| 60 | } | ||
| 61 | |||
| 62 | void JPAKE_STEP1_init(JPAKE_STEP1 *s1) | ||
| 63 | { | ||
| 64 | JPAKE_STEP_PART_init(&s1->p1); | ||
| 65 | JPAKE_STEP_PART_init(&s1->p2); | ||
| 66 | } | ||
| 67 | |||
| 68 | void JPAKE_STEP1_release(JPAKE_STEP1 *s1) | ||
| 69 | { | ||
| 70 | JPAKE_STEP_PART_release(&s1->p2); | ||
| 71 | JPAKE_STEP_PART_release(&s1->p1); | ||
| 72 | } | ||
| 73 | |||
| 74 | static void JPAKE_CTX_init(JPAKE_CTX *ctx, const char *name, | ||
| 75 | const char *peer_name, const BIGNUM *p, | ||
| 76 | const BIGNUM *g, const BIGNUM *q, | ||
| 77 | const BIGNUM *secret) | ||
| 78 | { | ||
| 79 | ctx->p.name = OPENSSL_strdup(name); | ||
| 80 | ctx->p.peer_name = OPENSSL_strdup(peer_name); | ||
| 81 | ctx->p.p = BN_dup(p); | ||
| 82 | ctx->p.g = BN_dup(g); | ||
| 83 | ctx->p.q = BN_dup(q); | ||
| 84 | ctx->secret = BN_dup(secret); | ||
| 85 | |||
| 86 | ctx->p.gxc = BN_new(); | ||
| 87 | ctx->p.gxd = BN_new(); | ||
| 88 | |||
| 89 | ctx->xa = BN_new(); | ||
| 90 | ctx->xb = BN_new(); | ||
| 91 | ctx->key = BN_new(); | ||
| 92 | ctx->ctx = BN_CTX_new(); | ||
| 93 | } | ||
| 94 | |||
| 95 | static void JPAKE_CTX_release(JPAKE_CTX *ctx) | ||
| 96 | { | ||
| 97 | BN_CTX_free(ctx->ctx); | ||
| 98 | BN_clear_free(ctx->key); | ||
| 99 | BN_clear_free(ctx->xb); | ||
| 100 | BN_clear_free(ctx->xa); | ||
| 101 | |||
| 102 | BN_free(ctx->p.gxd); | ||
| 103 | BN_free(ctx->p.gxc); | ||
| 104 | |||
| 105 | BN_clear_free(ctx->secret); | ||
| 106 | BN_free(ctx->p.q); | ||
| 107 | BN_free(ctx->p.g); | ||
| 108 | BN_free(ctx->p.p); | ||
| 109 | OPENSSL_free(ctx->p.peer_name); | ||
| 110 | OPENSSL_free(ctx->p.name); | ||
| 111 | |||
| 112 | memset(ctx, '\0', sizeof *ctx); | ||
| 113 | } | ||
| 114 | |||
| 115 | JPAKE_CTX *JPAKE_CTX_new(const char *name, const char *peer_name, | ||
| 116 | const BIGNUM *p, const BIGNUM *g, const BIGNUM *q, | ||
| 117 | const BIGNUM *secret) | ||
| 118 | { | ||
| 119 | JPAKE_CTX *ctx = OPENSSL_malloc(sizeof *ctx); | ||
| 120 | |||
| 121 | JPAKE_CTX_init(ctx, name, peer_name, p, g, q, secret); | ||
| 122 | |||
| 123 | return ctx; | ||
| 124 | } | ||
| 125 | |||
| 126 | void JPAKE_CTX_free(JPAKE_CTX *ctx) | ||
| 127 | { | ||
| 128 | JPAKE_CTX_release(ctx); | ||
| 129 | OPENSSL_free(ctx); | ||
| 130 | } | ||
| 131 | |||
| 132 | static void hashlength(SHA_CTX *sha, size_t l) | ||
| 133 | { | ||
| 134 | unsigned char b[2]; | ||
| 135 | |||
| 136 | OPENSSL_assert(l <= 0xffff); | ||
| 137 | b[0] = l >> 8; | ||
| 138 | b[1] = l&0xff; | ||
| 139 | SHA1_Update(sha, b, 2); | ||
| 140 | } | ||
| 141 | |||
| 142 | static void hashstring(SHA_CTX *sha, const char *string) | ||
| 143 | { | ||
| 144 | size_t l = strlen(string); | ||
| 145 | |||
| 146 | hashlength(sha, l); | ||
| 147 | SHA1_Update(sha, string, l); | ||
| 148 | } | ||
| 149 | |||
| 150 | static void hashbn(SHA_CTX *sha, const BIGNUM *bn) | ||
| 151 | { | ||
| 152 | size_t l = BN_num_bytes(bn); | ||
| 153 | unsigned char *bin = OPENSSL_malloc(l); | ||
| 154 | |||
| 155 | hashlength(sha, l); | ||
| 156 | BN_bn2bin(bn, bin); | ||
| 157 | SHA1_Update(sha, bin, l); | ||
| 158 | OPENSSL_free(bin); | ||
| 159 | } | ||
| 160 | |||
| 161 | /* h=hash(g, g^r, g^x, name) */ | ||
| 162 | static void zkp_hash(BIGNUM *h, const BIGNUM *zkpg, const JPAKE_STEP_PART *p, | ||
| 163 | const char *proof_name) | ||
| 164 | { | ||
| 165 | unsigned char md[SHA_DIGEST_LENGTH]; | ||
| 166 | SHA_CTX sha; | ||
| 167 | |||
| 168 | /* | ||
| 169 | * XXX: hash should not allow moving of the boundaries - Java code | ||
| 170 | * is flawed in this respect. Length encoding seems simplest. | ||
| 171 | */ | ||
| 172 | SHA1_Init(&sha); | ||
| 173 | hashbn(&sha, zkpg); | ||
| 174 | OPENSSL_assert(!BN_is_zero(p->zkpx.gr)); | ||
| 175 | hashbn(&sha, p->zkpx.gr); | ||
| 176 | hashbn(&sha, p->gx); | ||
| 177 | hashstring(&sha, proof_name); | ||
| 178 | SHA1_Final(md, &sha); | ||
| 179 | BN_bin2bn(md, SHA_DIGEST_LENGTH, h); | ||
| 180 | } | ||
| 181 | |||
| 182 | /* | ||
| 183 | * Prove knowledge of x | ||
| 184 | * Note that p->gx has already been calculated | ||
| 185 | */ | ||
| 186 | static void generate_zkp(JPAKE_STEP_PART *p, const BIGNUM *x, | ||
| 187 | const BIGNUM *zkpg, JPAKE_CTX *ctx) | ||
| 188 | { | ||
| 189 | BIGNUM *r = BN_new(); | ||
| 190 | BIGNUM *h = BN_new(); | ||
| 191 | BIGNUM *t = BN_new(); | ||
| 192 | |||
| 193 | /* | ||
| 194 | * r in [0,q) | ||
| 195 | * XXX: Java chooses r in [0, 2^160) - i.e. distribution not uniform | ||
| 196 | */ | ||
| 197 | BN_rand_range(r, ctx->p.q); | ||
| 198 | /* g^r */ | ||
| 199 | BN_mod_exp(p->zkpx.gr, zkpg, r, ctx->p.p, ctx->ctx); | ||
| 200 | |||
| 201 | /* h=hash... */ | ||
| 202 | zkp_hash(h, zkpg, p, ctx->p.name); | ||
| 203 | |||
| 204 | /* b = r - x*h */ | ||
| 205 | BN_mod_mul(t, x, h, ctx->p.q, ctx->ctx); | ||
| 206 | BN_mod_sub(p->zkpx.b, r, t, ctx->p.q, ctx->ctx); | ||
| 207 | |||
| 208 | /* cleanup */ | ||
| 209 | BN_free(t); | ||
| 210 | BN_free(h); | ||
| 211 | BN_free(r); | ||
| 212 | } | ||
| 213 | |||
| 214 | static int verify_zkp(const JPAKE_STEP_PART *p, const BIGNUM *zkpg, | ||
| 215 | JPAKE_CTX *ctx) | ||
| 216 | { | ||
| 217 | BIGNUM *h = BN_new(); | ||
| 218 | BIGNUM *t1 = BN_new(); | ||
| 219 | BIGNUM *t2 = BN_new(); | ||
| 220 | BIGNUM *t3 = BN_new(); | ||
| 221 | int ret = 0; | ||
| 222 | |||
| 223 | zkp_hash(h, zkpg, p, ctx->p.peer_name); | ||
| 224 | |||
| 225 | /* t1 = g^b */ | ||
| 226 | BN_mod_exp(t1, zkpg, p->zkpx.b, ctx->p.p, ctx->ctx); | ||
| 227 | /* t2 = (g^x)^h = g^{hx} */ | ||
| 228 | BN_mod_exp(t2, p->gx, h, ctx->p.p, ctx->ctx); | ||
| 229 | /* t3 = t1 * t2 = g^{hx} * g^b = g^{hx+b} = g^r (allegedly) */ | ||
| 230 | BN_mod_mul(t3, t1, t2, ctx->p.p, ctx->ctx); | ||
| 231 | |||
| 232 | /* verify t3 == g^r */ | ||
| 233 | if(BN_cmp(t3, p->zkpx.gr) == 0) | ||
| 234 | ret = 1; | ||
| 235 | else | ||
| 236 | JPAKEerr(JPAKE_F_VERIFY_ZKP, JPAKE_R_ZKP_VERIFY_FAILED); | ||
| 237 | |||
| 238 | /* cleanup */ | ||
| 239 | BN_free(t3); | ||
| 240 | BN_free(t2); | ||
| 241 | BN_free(t1); | ||
| 242 | BN_free(h); | ||
| 243 | |||
| 244 | return ret; | ||
| 245 | } | ||
| 246 | |||
| 247 | static void generate_step_part(JPAKE_STEP_PART *p, const BIGNUM *x, | ||
| 248 | const BIGNUM *g, JPAKE_CTX *ctx) | ||
| 249 | { | ||
| 250 | BN_mod_exp(p->gx, g, x, ctx->p.p, ctx->ctx); | ||
| 251 | generate_zkp(p, x, g, ctx); | ||
| 252 | } | ||
| 253 | |||
| 254 | /* Generate each party's random numbers. xa is in [0, q), xb is in [1, q). */ | ||
| 255 | static void genrand(JPAKE_CTX *ctx) | ||
| 256 | { | ||
| 257 | BIGNUM *qm1; | ||
| 258 | |||
| 259 | /* xa in [0, q) */ | ||
| 260 | BN_rand_range(ctx->xa, ctx->p.q); | ||
| 261 | |||
| 262 | /* q-1 */ | ||
| 263 | qm1 = BN_new(); | ||
| 264 | BN_copy(qm1, ctx->p.q); | ||
| 265 | BN_sub_word(qm1, 1); | ||
| 266 | |||
| 267 | /* ... and xb in [0, q-1) */ | ||
| 268 | BN_rand_range(ctx->xb, qm1); | ||
| 269 | /* [1, q) */ | ||
| 270 | BN_add_word(ctx->xb, 1); | ||
| 271 | |||
| 272 | /* cleanup */ | ||
| 273 | BN_free(qm1); | ||
| 274 | } | ||
| 275 | |||
| 276 | int JPAKE_STEP1_generate(JPAKE_STEP1 *send, JPAKE_CTX *ctx) | ||
| 277 | { | ||
| 278 | genrand(ctx); | ||
| 279 | generate_step_part(&send->p1, ctx->xa, ctx->p.g, ctx); | ||
| 280 | generate_step_part(&send->p2, ctx->xb, ctx->p.g, ctx); | ||
| 281 | |||
| 282 | return 1; | ||
| 283 | } | ||
| 284 | |||
| 285 | /* g^x is a legal value */ | ||
| 286 | static int is_legal(const BIGNUM *gx, const JPAKE_CTX *ctx) | ||
| 287 | { | ||
| 288 | BIGNUM *t; | ||
| 289 | int res; | ||
| 290 | |||
| 291 | if(BN_is_negative(gx) || BN_is_zero(gx) || BN_cmp(gx, ctx->p.p) >= 0) | ||
| 292 | return 0; | ||
| 293 | |||
| 294 | t = BN_new(); | ||
| 295 | BN_mod_exp(t, gx, ctx->p.q, ctx->p.p, ctx->ctx); | ||
| 296 | res = BN_is_one(t); | ||
| 297 | BN_free(t); | ||
| 298 | |||
| 299 | return res; | ||
| 300 | } | ||
| 301 | |||
| 302 | int JPAKE_STEP1_process(JPAKE_CTX *ctx, const JPAKE_STEP1 *received) | ||
| 303 | { | ||
| 304 | if(!is_legal(received->p1.gx, ctx)) | ||
| 305 | { | ||
| 306 | JPAKEerr(JPAKE_F_JPAKE_STEP1_PROCESS, JPAKE_R_G_TO_THE_X3_IS_NOT_LEGAL); | ||
| 307 | return 0; | ||
| 308 | } | ||
| 309 | |||
| 310 | if(!is_legal(received->p2.gx, ctx)) | ||
| 311 | { | ||
| 312 | JPAKEerr(JPAKE_F_JPAKE_STEP1_PROCESS, JPAKE_R_G_TO_THE_X4_IS_NOT_LEGAL); | ||
| 313 | return 0; | ||
| 314 | } | ||
| 315 | |||
| 316 | /* verify their ZKP(xc) */ | ||
| 317 | if(!verify_zkp(&received->p1, ctx->p.g, ctx)) | ||
| 318 | { | ||
| 319 | JPAKEerr(JPAKE_F_JPAKE_STEP1_PROCESS, JPAKE_R_VERIFY_X3_FAILED); | ||
| 320 | return 0; | ||
| 321 | } | ||
| 322 | |||
| 323 | /* verify their ZKP(xd) */ | ||
| 324 | if(!verify_zkp(&received->p2, ctx->p.g, ctx)) | ||
| 325 | { | ||
| 326 | JPAKEerr(JPAKE_F_JPAKE_STEP1_PROCESS, JPAKE_R_VERIFY_X4_FAILED); | ||
| 327 | return 0; | ||
| 328 | } | ||
| 329 | |||
| 330 | /* g^xd != 1 */ | ||
| 331 | if(BN_is_one(received->p2.gx)) | ||
| 332 | { | ||
| 333 | JPAKEerr(JPAKE_F_JPAKE_STEP1_PROCESS, JPAKE_R_G_TO_THE_X4_IS_ONE); | ||
| 334 | return 0; | ||
| 335 | } | ||
| 336 | |||
| 337 | /* Save the bits we need for later */ | ||
| 338 | BN_copy(ctx->p.gxc, received->p1.gx); | ||
| 339 | BN_copy(ctx->p.gxd, received->p2.gx); | ||
| 340 | |||
| 341 | return 1; | ||
| 342 | } | ||
| 343 | |||
| 344 | |||
| 345 | int JPAKE_STEP2_generate(JPAKE_STEP2 *send, JPAKE_CTX *ctx) | ||
| 346 | { | ||
| 347 | BIGNUM *t1 = BN_new(); | ||
| 348 | BIGNUM *t2 = BN_new(); | ||
| 349 | |||
| 350 | /* | ||
| 351 | * X = g^{(xa + xc + xd) * xb * s} | ||
| 352 | * t1 = g^xa | ||
| 353 | */ | ||
| 354 | BN_mod_exp(t1, ctx->p.g, ctx->xa, ctx->p.p, ctx->ctx); | ||
| 355 | /* t2 = t1 * g^{xc} = g^{xa} * g^{xc} = g^{xa + xc} */ | ||
| 356 | BN_mod_mul(t2, t1, ctx->p.gxc, ctx->p.p, ctx->ctx); | ||
| 357 | /* t1 = t2 * g^{xd} = g^{xa + xc + xd} */ | ||
| 358 | BN_mod_mul(t1, t2, ctx->p.gxd, ctx->p.p, ctx->ctx); | ||
| 359 | /* t2 = xb * s */ | ||
| 360 | BN_mod_mul(t2, ctx->xb, ctx->secret, ctx->p.q, ctx->ctx); | ||
| 361 | |||
| 362 | /* | ||
| 363 | * ZKP(xb * s) | ||
| 364 | * XXX: this is kinda funky, because we're using | ||
| 365 | * | ||
| 366 | * g' = g^{xa + xc + xd} | ||
| 367 | * | ||
| 368 | * as the generator, which means X is g'^{xb * s} | ||
| 369 | * X = t1^{t2} = t1^{xb * s} = g^{(xa + xc + xd) * xb * s} | ||
| 370 | */ | ||
| 371 | generate_step_part(send, t2, t1, ctx); | ||
| 372 | |||
| 373 | /* cleanup */ | ||
| 374 | BN_free(t1); | ||
| 375 | BN_free(t2); | ||
| 376 | |||
| 377 | return 1; | ||
| 378 | } | ||
| 379 | |||
| 380 | /* gx = g^{xc + xa + xb} * xd * s */ | ||
| 381 | static int compute_key(JPAKE_CTX *ctx, const BIGNUM *gx) | ||
| 382 | { | ||
| 383 | BIGNUM *t1 = BN_new(); | ||
| 384 | BIGNUM *t2 = BN_new(); | ||
| 385 | BIGNUM *t3 = BN_new(); | ||
| 386 | |||
| 387 | /* | ||
| 388 | * K = (gx/g^{xb * xd * s})^{xb} | ||
| 389 | * = (g^{(xc + xa + xb) * xd * s - xb * xd *s})^{xb} | ||
| 390 | * = (g^{(xa + xc) * xd * s})^{xb} | ||
| 391 | * = g^{(xa + xc) * xb * xd * s} | ||
| 392 | * [which is the same regardless of who calculates it] | ||
| 393 | */ | ||
| 394 | |||
| 395 | /* t1 = (g^{xd})^{xb} = g^{xb * xd} */ | ||
| 396 | BN_mod_exp(t1, ctx->p.gxd, ctx->xb, ctx->p.p, ctx->ctx); | ||
| 397 | /* t2 = -s = q-s */ | ||
| 398 | BN_sub(t2, ctx->p.q, ctx->secret); | ||
| 399 | /* t3 = t1^t2 = g^{-xb * xd * s} */ | ||
| 400 | BN_mod_exp(t3, t1, t2, ctx->p.p, ctx->ctx); | ||
| 401 | /* t1 = gx * t3 = X/g^{xb * xd * s} */ | ||
| 402 | BN_mod_mul(t1, gx, t3, ctx->p.p, ctx->ctx); | ||
| 403 | /* K = t1^{xb} */ | ||
| 404 | BN_mod_exp(ctx->key, t1, ctx->xb, ctx->p.p, ctx->ctx); | ||
| 405 | |||
| 406 | /* cleanup */ | ||
| 407 | BN_free(t3); | ||
| 408 | BN_free(t2); | ||
| 409 | BN_free(t1); | ||
| 410 | |||
| 411 | return 1; | ||
| 412 | } | ||
| 413 | |||
| 414 | int JPAKE_STEP2_process(JPAKE_CTX *ctx, const JPAKE_STEP2 *received) | ||
| 415 | { | ||
| 416 | BIGNUM *t1 = BN_new(); | ||
| 417 | BIGNUM *t2 = BN_new(); | ||
| 418 | int ret = 0; | ||
| 419 | |||
| 420 | /* | ||
| 421 | * g' = g^{xc + xa + xb} [from our POV] | ||
| 422 | * t1 = xa + xb | ||
| 423 | */ | ||
| 424 | BN_mod_add(t1, ctx->xa, ctx->xb, ctx->p.q, ctx->ctx); | ||
| 425 | /* t2 = g^{t1} = g^{xa+xb} */ | ||
| 426 | BN_mod_exp(t2, ctx->p.g, t1, ctx->p.p, ctx->ctx); | ||
| 427 | /* t1 = g^{xc} * t2 = g^{xc + xa + xb} */ | ||
| 428 | BN_mod_mul(t1, ctx->p.gxc, t2, ctx->p.p, ctx->ctx); | ||
| 429 | |||
| 430 | if(verify_zkp(received, t1, ctx)) | ||
| 431 | ret = 1; | ||
| 432 | else | ||
| 433 | JPAKEerr(JPAKE_F_JPAKE_STEP2_PROCESS, JPAKE_R_VERIFY_B_FAILED); | ||
| 434 | |||
| 435 | compute_key(ctx, received->gx); | ||
| 436 | |||
| 437 | /* cleanup */ | ||
| 438 | BN_free(t2); | ||
| 439 | BN_free(t1); | ||
| 440 | |||
| 441 | return ret; | ||
| 442 | } | ||
| 443 | |||
| 444 | static void quickhashbn(unsigned char *md, const BIGNUM *bn) | ||
| 445 | { | ||
| 446 | SHA_CTX sha; | ||
| 447 | |||
| 448 | SHA1_Init(&sha); | ||
| 449 | hashbn(&sha, bn); | ||
| 450 | SHA1_Final(md, &sha); | ||
| 451 | } | ||
| 452 | |||
| 453 | void JPAKE_STEP3A_init(JPAKE_STEP3A *s3a) | ||
| 454 | {} | ||
| 455 | |||
| 456 | int JPAKE_STEP3A_generate(JPAKE_STEP3A *send, JPAKE_CTX *ctx) | ||
| 457 | { | ||
| 458 | quickhashbn(send->hhk, ctx->key); | ||
| 459 | SHA1(send->hhk, sizeof send->hhk, send->hhk); | ||
| 460 | |||
| 461 | return 1; | ||
| 462 | } | ||
| 463 | |||
| 464 | int JPAKE_STEP3A_process(JPAKE_CTX *ctx, const JPAKE_STEP3A *received) | ||
| 465 | { | ||
| 466 | unsigned char hhk[SHA_DIGEST_LENGTH]; | ||
| 467 | |||
| 468 | quickhashbn(hhk, ctx->key); | ||
| 469 | SHA1(hhk, sizeof hhk, hhk); | ||
| 470 | if(memcmp(hhk, received->hhk, sizeof hhk)) | ||
| 471 | { | ||
| 472 | JPAKEerr(JPAKE_F_JPAKE_STEP3A_PROCESS, JPAKE_R_HASH_OF_HASH_OF_KEY_MISMATCH); | ||
| 473 | return 0; | ||
| 474 | } | ||
| 475 | return 1; | ||
| 476 | } | ||
| 477 | |||
| 478 | void JPAKE_STEP3A_release(JPAKE_STEP3A *s3a) | ||
| 479 | {} | ||
| 480 | |||
| 481 | void JPAKE_STEP3B_init(JPAKE_STEP3B *s3b) | ||
| 482 | {} | ||
| 483 | |||
| 484 | int JPAKE_STEP3B_generate(JPAKE_STEP3B *send, JPAKE_CTX *ctx) | ||
| 485 | { | ||
| 486 | quickhashbn(send->hk, ctx->key); | ||
| 487 | |||
| 488 | return 1; | ||
| 489 | } | ||
| 490 | |||
| 491 | int JPAKE_STEP3B_process(JPAKE_CTX *ctx, const JPAKE_STEP3B *received) | ||
| 492 | { | ||
| 493 | unsigned char hk[SHA_DIGEST_LENGTH]; | ||
| 494 | |||
| 495 | quickhashbn(hk, ctx->key); | ||
| 496 | if(memcmp(hk, received->hk, sizeof hk)) | ||
| 497 | { | ||
| 498 | JPAKEerr(JPAKE_F_JPAKE_STEP3B_PROCESS, JPAKE_R_HASH_OF_KEY_MISMATCH); | ||
| 499 | return 0; | ||
| 500 | } | ||
| 501 | return 1; | ||
| 502 | } | ||
| 503 | |||
| 504 | void JPAKE_STEP3B_release(JPAKE_STEP3B *s3b) | ||
| 505 | {} | ||
| 506 | |||
| 507 | const BIGNUM *JPAKE_get_shared_key(JPAKE_CTX *ctx) | ||
| 508 | { | ||
| 509 | return ctx->key; | ||
| 510 | } | ||
| 511 | |||
diff --git a/src/lib/libcrypto/jpake/jpake.h b/src/lib/libcrypto/jpake/jpake.h deleted file mode 100644 index fd143b4d9b..0000000000 --- a/src/lib/libcrypto/jpake/jpake.h +++ /dev/null | |||
| @@ -1,131 +0,0 @@ | |||
| 1 | /* | ||
| 2 | * Implement J-PAKE, as described in | ||
| 3 | * http://grouper.ieee.org/groups/1363/Research/contributions/hao-ryan-2008.pdf | ||
| 4 | * | ||
| 5 | * With hints from http://www.cl.cam.ac.uk/~fh240/software/JPAKE2.java. | ||
| 6 | */ | ||
| 7 | |||
| 8 | #ifndef HEADER_JPAKE_H | ||
| 9 | #define HEADER_JPAKE_H | ||
| 10 | |||
| 11 | #include <openssl/opensslconf.h> | ||
| 12 | |||
| 13 | #ifdef OPENSSL_NO_JPAKE | ||
| 14 | #error JPAKE is disabled. | ||
| 15 | #endif | ||
| 16 | |||
| 17 | #ifdef __cplusplus | ||
| 18 | extern "C" { | ||
| 19 | #endif | ||
| 20 | |||
| 21 | #include <openssl/bn.h> | ||
| 22 | #include <openssl/sha.h> | ||
| 23 | |||
| 24 | typedef struct JPAKE_CTX JPAKE_CTX; | ||
| 25 | |||
| 26 | /* Note that "g" in the ZKPs is not necessarily the J-PAKE g. */ | ||
| 27 | typedef struct | ||
| 28 | { | ||
| 29 | BIGNUM *gr; /* g^r (r random) */ | ||
| 30 | BIGNUM *b; /* b = r - x*h, h=hash(g, g^r, g^x, name) */ | ||
| 31 | } JPAKE_ZKP; | ||
| 32 | |||
| 33 | typedef struct | ||
| 34 | { | ||
| 35 | BIGNUM *gx; /* g^x in step 1, g^(xa + xc + xd) * xb * s in step 2 */ | ||
| 36 | JPAKE_ZKP zkpx; /* ZKP(x) or ZKP(xb * s) */ | ||
| 37 | } JPAKE_STEP_PART; | ||
| 38 | |||
| 39 | typedef struct | ||
| 40 | { | ||
| 41 | JPAKE_STEP_PART p1; /* g^x3, ZKP(x3) or g^x1, ZKP(x1) */ | ||
| 42 | JPAKE_STEP_PART p2; /* g^x4, ZKP(x4) or g^x2, ZKP(x2) */ | ||
| 43 | } JPAKE_STEP1; | ||
| 44 | |||
| 45 | typedef JPAKE_STEP_PART JPAKE_STEP2; | ||
| 46 | |||
| 47 | typedef struct | ||
| 48 | { | ||
| 49 | unsigned char hhk[SHA_DIGEST_LENGTH]; | ||
| 50 | } JPAKE_STEP3A; | ||
| 51 | |||
| 52 | typedef struct | ||
| 53 | { | ||
| 54 | unsigned char hk[SHA_DIGEST_LENGTH]; | ||
| 55 | } JPAKE_STEP3B; | ||
| 56 | |||
| 57 | /* Parameters are copied */ | ||
| 58 | JPAKE_CTX *JPAKE_CTX_new(const char *name, const char *peer_name, | ||
| 59 | const BIGNUM *p, const BIGNUM *g, const BIGNUM *q, | ||
| 60 | const BIGNUM *secret); | ||
| 61 | void JPAKE_CTX_free(JPAKE_CTX *ctx); | ||
| 62 | |||
| 63 | /* | ||
| 64 | * Note that JPAKE_STEP1 can be used multiple times before release | ||
| 65 | * without another init. | ||
| 66 | */ | ||
| 67 | void JPAKE_STEP1_init(JPAKE_STEP1 *s1); | ||
| 68 | int JPAKE_STEP1_generate(JPAKE_STEP1 *send, JPAKE_CTX *ctx); | ||
| 69 | int JPAKE_STEP1_process(JPAKE_CTX *ctx, const JPAKE_STEP1 *received); | ||
| 70 | void JPAKE_STEP1_release(JPAKE_STEP1 *s1); | ||
| 71 | |||
| 72 | /* | ||
| 73 | * Note that JPAKE_STEP2 can be used multiple times before release | ||
| 74 | * without another init. | ||
| 75 | */ | ||
| 76 | void JPAKE_STEP2_init(JPAKE_STEP2 *s2); | ||
| 77 | int JPAKE_STEP2_generate(JPAKE_STEP2 *send, JPAKE_CTX *ctx); | ||
| 78 | int JPAKE_STEP2_process(JPAKE_CTX *ctx, const JPAKE_STEP2 *received); | ||
| 79 | void JPAKE_STEP2_release(JPAKE_STEP2 *s2); | ||
| 80 | |||
| 81 | /* | ||
| 82 | * Optionally verify the shared key. If the shared secrets do not | ||
| 83 | * match, the two ends will disagree about the shared key, but | ||
| 84 | * otherwise the protocol will succeed. | ||
| 85 | */ | ||
| 86 | void JPAKE_STEP3A_init(JPAKE_STEP3A *s3a); | ||
| 87 | int JPAKE_STEP3A_generate(JPAKE_STEP3A *send, JPAKE_CTX *ctx); | ||
| 88 | int JPAKE_STEP3A_process(JPAKE_CTX *ctx, const JPAKE_STEP3A *received); | ||
| 89 | void JPAKE_STEP3A_release(JPAKE_STEP3A *s3a); | ||
| 90 | |||
| 91 | void JPAKE_STEP3B_init(JPAKE_STEP3B *s3b); | ||
| 92 | int JPAKE_STEP3B_generate(JPAKE_STEP3B *send, JPAKE_CTX *ctx); | ||
| 93 | int JPAKE_STEP3B_process(JPAKE_CTX *ctx, const JPAKE_STEP3B *received); | ||
| 94 | void JPAKE_STEP3B_release(JPAKE_STEP3B *s3b); | ||
| 95 | |||
| 96 | /* | ||
| 97 | * the return value belongs to the library and will be released when | ||
| 98 | * ctx is released, and will change when a new handshake is performed. | ||
| 99 | */ | ||
| 100 | const BIGNUM *JPAKE_get_shared_key(JPAKE_CTX *ctx); | ||
| 101 | |||
| 102 | /* BEGIN ERROR CODES */ | ||
| 103 | /* The following lines are auto generated by the script mkerr.pl. Any changes | ||
| 104 | * made after this point may be overwritten when the script is next run. | ||
| 105 | */ | ||
| 106 | void ERR_load_JPAKE_strings(void); | ||
| 107 | |||
| 108 | /* Error codes for the JPAKE functions. */ | ||
| 109 | |||
| 110 | /* Function codes. */ | ||
| 111 | #define JPAKE_F_JPAKE_STEP1_PROCESS 101 | ||
| 112 | #define JPAKE_F_JPAKE_STEP2_PROCESS 102 | ||
| 113 | #define JPAKE_F_JPAKE_STEP3A_PROCESS 103 | ||
| 114 | #define JPAKE_F_JPAKE_STEP3B_PROCESS 104 | ||
| 115 | #define JPAKE_F_VERIFY_ZKP 100 | ||
| 116 | |||
| 117 | /* Reason codes. */ | ||
| 118 | #define JPAKE_R_G_TO_THE_X3_IS_NOT_LEGAL 108 | ||
| 119 | #define JPAKE_R_G_TO_THE_X4_IS_NOT_LEGAL 109 | ||
| 120 | #define JPAKE_R_G_TO_THE_X4_IS_ONE 105 | ||
| 121 | #define JPAKE_R_HASH_OF_HASH_OF_KEY_MISMATCH 106 | ||
| 122 | #define JPAKE_R_HASH_OF_KEY_MISMATCH 107 | ||
| 123 | #define JPAKE_R_VERIFY_B_FAILED 102 | ||
| 124 | #define JPAKE_R_VERIFY_X3_FAILED 103 | ||
| 125 | #define JPAKE_R_VERIFY_X4_FAILED 104 | ||
| 126 | #define JPAKE_R_ZKP_VERIFY_FAILED 100 | ||
| 127 | |||
| 128 | #ifdef __cplusplus | ||
| 129 | } | ||
| 130 | #endif | ||
| 131 | #endif | ||
diff --git a/src/lib/libcrypto/jpake/jpake_err.c b/src/lib/libcrypto/jpake/jpake_err.c deleted file mode 100644 index a9a9dee75c..0000000000 --- a/src/lib/libcrypto/jpake/jpake_err.c +++ /dev/null | |||
| @@ -1,107 +0,0 @@ | |||
| 1 | /* crypto/jpake/jpake_err.c */ | ||
| 2 | /* ==================================================================== | ||
| 3 | * Copyright (c) 1999-2010 The OpenSSL Project. All rights reserved. | ||
| 4 | * | ||
| 5 | * Redistribution and use in source and binary forms, with or without | ||
| 6 | * modification, are permitted provided that the following conditions | ||
| 7 | * are met: | ||
| 8 | * | ||
| 9 | * 1. Redistributions of source code must retain the above copyright | ||
| 10 | * notice, this list of conditions and the following disclaimer. | ||
| 11 | * | ||
| 12 | * 2. Redistributions in binary form must reproduce the above copyright | ||
| 13 | * notice, this list of conditions and the following disclaimer in | ||
| 14 | * the documentation and/or other materials provided with the | ||
| 15 | * distribution. | ||
| 16 | * | ||
| 17 | * 3. All advertising materials mentioning features or use of this | ||
| 18 | * software must display the following acknowledgment: | ||
| 19 | * "This product includes software developed by the OpenSSL Project | ||
| 20 | * for use in the OpenSSL Toolkit. (http://www.OpenSSL.org/)" | ||
| 21 | * | ||
| 22 | * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to | ||
| 23 | * endorse or promote products derived from this software without | ||
| 24 | * prior written permission. For written permission, please contact | ||
| 25 | * openssl-core@OpenSSL.org. | ||
| 26 | * | ||
| 27 | * 5. Products derived from this software may not be called "OpenSSL" | ||
| 28 | * nor may "OpenSSL" appear in their names without prior written | ||
| 29 | * permission of the OpenSSL Project. | ||
| 30 | * | ||
| 31 | * 6. Redistributions of any form whatsoever must retain the following | ||
| 32 | * acknowledgment: | ||
| 33 | * "This product includes software developed by the OpenSSL Project | ||
| 34 | * for use in the OpenSSL Toolkit (http://www.OpenSSL.org/)" | ||
| 35 | * | ||
| 36 | * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY | ||
| 37 | * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
| 38 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | ||
| 39 | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR | ||
| 40 | * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
| 41 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | ||
| 42 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
| 43 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
| 44 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | ||
| 45 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
| 46 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | ||
| 47 | * OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| 48 | * ==================================================================== | ||
| 49 | * | ||
| 50 | * This product includes cryptographic software written by Eric Young | ||
| 51 | * (eay@cryptsoft.com). This product includes software written by Tim | ||
| 52 | * Hudson (tjh@cryptsoft.com). | ||
| 53 | * | ||
| 54 | */ | ||
| 55 | |||
| 56 | /* NOTE: this file was auto generated by the mkerr.pl script: any changes | ||
| 57 | * made to it will be overwritten when the script next updates this file, | ||
| 58 | * only reason strings will be preserved. | ||
| 59 | */ | ||
| 60 | |||
| 61 | #include <stdio.h> | ||
| 62 | #include <openssl/err.h> | ||
| 63 | #include <openssl/jpake.h> | ||
| 64 | |||
| 65 | /* BEGIN ERROR CODES */ | ||
| 66 | #ifndef OPENSSL_NO_ERR | ||
| 67 | |||
| 68 | #define ERR_FUNC(func) ERR_PACK(ERR_LIB_JPAKE,func,0) | ||
| 69 | #define ERR_REASON(reason) ERR_PACK(ERR_LIB_JPAKE,0,reason) | ||
| 70 | |||
| 71 | static ERR_STRING_DATA JPAKE_str_functs[]= | ||
| 72 | { | ||
| 73 | {ERR_FUNC(JPAKE_F_JPAKE_STEP1_PROCESS), "JPAKE_STEP1_process"}, | ||
| 74 | {ERR_FUNC(JPAKE_F_JPAKE_STEP2_PROCESS), "JPAKE_STEP2_process"}, | ||
| 75 | {ERR_FUNC(JPAKE_F_JPAKE_STEP3A_PROCESS), "JPAKE_STEP3A_process"}, | ||
| 76 | {ERR_FUNC(JPAKE_F_JPAKE_STEP3B_PROCESS), "JPAKE_STEP3B_process"}, | ||
| 77 | {ERR_FUNC(JPAKE_F_VERIFY_ZKP), "VERIFY_ZKP"}, | ||
| 78 | {0,NULL} | ||
| 79 | }; | ||
| 80 | |||
| 81 | static ERR_STRING_DATA JPAKE_str_reasons[]= | ||
| 82 | { | ||
| 83 | {ERR_REASON(JPAKE_R_G_TO_THE_X3_IS_NOT_LEGAL),"g to the x3 is not legal"}, | ||
| 84 | {ERR_REASON(JPAKE_R_G_TO_THE_X4_IS_NOT_LEGAL),"g to the x4 is not legal"}, | ||
| 85 | {ERR_REASON(JPAKE_R_G_TO_THE_X4_IS_ONE) ,"g to the x4 is one"}, | ||
| 86 | {ERR_REASON(JPAKE_R_HASH_OF_HASH_OF_KEY_MISMATCH),"hash of hash of key mismatch"}, | ||
| 87 | {ERR_REASON(JPAKE_R_HASH_OF_KEY_MISMATCH),"hash of key mismatch"}, | ||
| 88 | {ERR_REASON(JPAKE_R_VERIFY_B_FAILED) ,"verify b failed"}, | ||
| 89 | {ERR_REASON(JPAKE_R_VERIFY_X3_FAILED) ,"verify x3 failed"}, | ||
| 90 | {ERR_REASON(JPAKE_R_VERIFY_X4_FAILED) ,"verify x4 failed"}, | ||
| 91 | {ERR_REASON(JPAKE_R_ZKP_VERIFY_FAILED) ,"zkp verify failed"}, | ||
| 92 | {0,NULL} | ||
| 93 | }; | ||
| 94 | |||
| 95 | #endif | ||
| 96 | |||
| 97 | void ERR_load_JPAKE_strings(void) | ||
| 98 | { | ||
| 99 | #ifndef OPENSSL_NO_ERR | ||
| 100 | |||
| 101 | if (ERR_func_error_string(JPAKE_str_functs[0].error) == NULL) | ||
| 102 | { | ||
| 103 | ERR_load_strings(0,JPAKE_str_functs); | ||
| 104 | ERR_load_strings(0,JPAKE_str_reasons); | ||
| 105 | } | ||
| 106 | #endif | ||
| 107 | } | ||
diff --git a/src/lib/libcrypto/jpake/jpaketest.c b/src/lib/libcrypto/jpake/jpaketest.c deleted file mode 100644 index eaba75ed8a..0000000000 --- a/src/lib/libcrypto/jpake/jpaketest.c +++ /dev/null | |||
| @@ -1,192 +0,0 @@ | |||
| 1 | #include <openssl/opensslconf.h> | ||
| 2 | |||
| 3 | #ifdef OPENSSL_NO_JPAKE | ||
| 4 | |||
| 5 | #include <stdio.h> | ||
| 6 | |||
| 7 | int main(int argc, char *argv[]) | ||
| 8 | { | ||
| 9 | printf("No J-PAKE support\n"); | ||
| 10 | return(0); | ||
| 11 | } | ||
| 12 | |||
| 13 | #else | ||
| 14 | |||
| 15 | #include <openssl/jpake.h> | ||
| 16 | #include <openssl/err.h> | ||
| 17 | |||
| 18 | static void showbn(const char *name, const BIGNUM *bn) | ||
| 19 | { | ||
| 20 | fputs(name, stdout); | ||
| 21 | fputs(" = ", stdout); | ||
| 22 | BN_print_fp(stdout, bn); | ||
| 23 | putc('\n', stdout); | ||
| 24 | } | ||
| 25 | |||
| 26 | static int run_jpake(JPAKE_CTX *alice, JPAKE_CTX *bob) | ||
| 27 | { | ||
| 28 | JPAKE_STEP1 alice_s1; | ||
| 29 | JPAKE_STEP1 bob_s1; | ||
| 30 | JPAKE_STEP2 alice_s2; | ||
| 31 | JPAKE_STEP2 bob_s2; | ||
| 32 | JPAKE_STEP3A alice_s3a; | ||
| 33 | JPAKE_STEP3B bob_s3b; | ||
| 34 | |||
| 35 | /* Alice -> Bob: step 1 */ | ||
| 36 | puts("A->B s1"); | ||
| 37 | JPAKE_STEP1_init(&alice_s1); | ||
| 38 | JPAKE_STEP1_generate(&alice_s1, alice); | ||
| 39 | if(!JPAKE_STEP1_process(bob, &alice_s1)) | ||
| 40 | { | ||
| 41 | printf("Bob fails to process Alice's step 1\n"); | ||
| 42 | ERR_print_errors_fp(stdout); | ||
| 43 | return 1; | ||
| 44 | } | ||
| 45 | JPAKE_STEP1_release(&alice_s1); | ||
| 46 | |||
| 47 | /* Bob -> Alice: step 1 */ | ||
| 48 | puts("B->A s1"); | ||
| 49 | JPAKE_STEP1_init(&bob_s1); | ||
| 50 | JPAKE_STEP1_generate(&bob_s1, bob); | ||
| 51 | if(!JPAKE_STEP1_process(alice, &bob_s1)) | ||
| 52 | { | ||
| 53 | printf("Alice fails to process Bob's step 1\n"); | ||
| 54 | ERR_print_errors_fp(stdout); | ||
| 55 | return 2; | ||
| 56 | } | ||
| 57 | JPAKE_STEP1_release(&bob_s1); | ||
| 58 | |||
| 59 | /* Alice -> Bob: step 2 */ | ||
| 60 | puts("A->B s2"); | ||
| 61 | JPAKE_STEP2_init(&alice_s2); | ||
| 62 | JPAKE_STEP2_generate(&alice_s2, alice); | ||
| 63 | if(!JPAKE_STEP2_process(bob, &alice_s2)) | ||
| 64 | { | ||
| 65 | printf("Bob fails to process Alice's step 2\n"); | ||
| 66 | ERR_print_errors_fp(stdout); | ||
| 67 | return 3; | ||
| 68 | } | ||
| 69 | JPAKE_STEP2_release(&alice_s2); | ||
| 70 | |||
| 71 | /* Bob -> Alice: step 2 */ | ||
| 72 | puts("B->A s2"); | ||
| 73 | JPAKE_STEP2_init(&bob_s2); | ||
| 74 | JPAKE_STEP2_generate(&bob_s2, bob); | ||
| 75 | if(!JPAKE_STEP2_process(alice, &bob_s2)) | ||
| 76 | { | ||
| 77 | printf("Alice fails to process Bob's step 2\n"); | ||
| 78 | ERR_print_errors_fp(stdout); | ||
| 79 | return 4; | ||
| 80 | } | ||
| 81 | JPAKE_STEP2_release(&bob_s2); | ||
| 82 | |||
| 83 | showbn("Alice's key", JPAKE_get_shared_key(alice)); | ||
| 84 | showbn("Bob's key ", JPAKE_get_shared_key(bob)); | ||
| 85 | |||
| 86 | /* Alice -> Bob: step 3a */ | ||
| 87 | puts("A->B s3a"); | ||
| 88 | JPAKE_STEP3A_init(&alice_s3a); | ||
| 89 | JPAKE_STEP3A_generate(&alice_s3a, alice); | ||
| 90 | if(!JPAKE_STEP3A_process(bob, &alice_s3a)) | ||
| 91 | { | ||
| 92 | printf("Bob fails to process Alice's step 3a\n"); | ||
| 93 | ERR_print_errors_fp(stdout); | ||
| 94 | return 5; | ||
| 95 | } | ||
| 96 | JPAKE_STEP3A_release(&alice_s3a); | ||
| 97 | |||
| 98 | /* Bob -> Alice: step 3b */ | ||
| 99 | puts("B->A s3b"); | ||
| 100 | JPAKE_STEP3B_init(&bob_s3b); | ||
| 101 | JPAKE_STEP3B_generate(&bob_s3b, bob); | ||
| 102 | if(!JPAKE_STEP3B_process(alice, &bob_s3b)) | ||
| 103 | { | ||
| 104 | printf("Alice fails to process Bob's step 3b\n"); | ||
| 105 | ERR_print_errors_fp(stdout); | ||
| 106 | return 6; | ||
| 107 | } | ||
| 108 | JPAKE_STEP3B_release(&bob_s3b); | ||
| 109 | |||
| 110 | return 0; | ||
| 111 | } | ||
| 112 | |||
| 113 | int main(int argc, char **argv) | ||
| 114 | { | ||
| 115 | JPAKE_CTX *alice; | ||
| 116 | JPAKE_CTX *bob; | ||
| 117 | BIGNUM *p = NULL; | ||
| 118 | BIGNUM *g = NULL; | ||
| 119 | BIGNUM *q = NULL; | ||
| 120 | BIGNUM *secret = BN_new(); | ||
| 121 | BIO *bio_err; | ||
| 122 | |||
| 123 | bio_err = BIO_new_fp(stderr, BIO_NOCLOSE); | ||
| 124 | |||
| 125 | CRYPTO_malloc_debug_init(); | ||
| 126 | CRYPTO_dbg_set_options(V_CRYPTO_MDEBUG_ALL); | ||
| 127 | CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_ON); | ||
| 128 | |||
| 129 | ERR_load_crypto_strings(); | ||
| 130 | |||
| 131 | /* | ||
| 132 | BN_hex2bn(&p, "fd7f53811d75122952df4a9c2eece4e7f611b7523cef4400c31e3f80b6512669455d402251fb593d8d58fabfc5f5ba30f6cb9b556cd7813b801d346ff26660b76b9950a5a49f9fe8047b1022c24fbba9d7feb7c61bf83b57e7c6a8a6150f04fb83f6d3c51ec3023554135a169132f675f3ae2b61d72aeff22203199dd14801c7"); | ||
| 133 | BN_hex2bn(&g, "f7e1a085d69b3ddecbbcab5c36b857b97994afbbfa3aea82f9574c0b3d0782675159578ebad4594fe67107108180b449167123e84c281613b7cf09328cc8a6e13c167a8b547c8d28e0a3ae1e2bb3a675916ea37f0bfa213562f1fb627a01243bcca4f1bea8519089a883dfe15ae59f06928b665e807b552564014c3bfecf492a"); | ||
| 134 | BN_hex2bn(&q, "9760508f15230bccb292b982a2eb840bf0581cf5"); | ||
| 135 | */ | ||
| 136 | /* | ||
| 137 | p = BN_new(); | ||
| 138 | BN_generate_prime(p, 1024, 1, NULL, NULL, NULL, NULL); | ||
| 139 | */ | ||
| 140 | /* Use a safe prime for p (that we found earlier) */ | ||
| 141 | BN_hex2bn(&p, "F9E5B365665EA7A05A9C534502780FEE6F1AB5BD4F49947FD036DBD7E905269AF46EF28B0FC07487EE4F5D20FB3C0AF8E700F3A2FA3414970CBED44FEDFF80CE78D800F184BB82435D137AADA2C6C16523247930A63B85661D1FC817A51ACD96168E95898A1F83A79FFB529368AA7833ABD1B0C3AEDDB14D2E1A2F71D99F763F"); | ||
| 142 | showbn("p", p); | ||
| 143 | g = BN_new(); | ||
| 144 | BN_set_word(g, 2); | ||
| 145 | showbn("g", g); | ||
| 146 | q = BN_new(); | ||
| 147 | BN_rshift1(q, p); | ||
| 148 | showbn("q", q); | ||
| 149 | |||
| 150 | BN_rand(secret, 32, -1, 0); | ||
| 151 | |||
| 152 | /* A normal run, expect this to work... */ | ||
| 153 | alice = JPAKE_CTX_new("Alice", "Bob", p, g, q, secret); | ||
| 154 | bob = JPAKE_CTX_new("Bob", "Alice", p, g, q, secret); | ||
| 155 | |||
| 156 | if(run_jpake(alice, bob) != 0) | ||
| 157 | { | ||
| 158 | fprintf(stderr, "Plain JPAKE run failed\n"); | ||
| 159 | return 1; | ||
| 160 | } | ||
| 161 | |||
| 162 | JPAKE_CTX_free(bob); | ||
| 163 | JPAKE_CTX_free(alice); | ||
| 164 | |||
| 165 | /* Now give Alice and Bob different secrets */ | ||
| 166 | alice = JPAKE_CTX_new("Alice", "Bob", p, g, q, secret); | ||
| 167 | BN_add_word(secret, 1); | ||
| 168 | bob = JPAKE_CTX_new("Bob", "Alice", p, g, q, secret); | ||
| 169 | |||
| 170 | if(run_jpake(alice, bob) != 5) | ||
| 171 | { | ||
| 172 | fprintf(stderr, "Mismatched secret JPAKE run failed\n"); | ||
| 173 | return 1; | ||
| 174 | } | ||
| 175 | |||
| 176 | JPAKE_CTX_free(bob); | ||
| 177 | JPAKE_CTX_free(alice); | ||
| 178 | |||
| 179 | BN_free(secret); | ||
| 180 | BN_free(q); | ||
| 181 | BN_free(g); | ||
| 182 | BN_free(p); | ||
| 183 | |||
| 184 | CRYPTO_cleanup_all_ex_data(); | ||
| 185 | ERR_remove_thread_state(NULL); | ||
| 186 | ERR_free_strings(); | ||
| 187 | CRYPTO_mem_leaks(bio_err); | ||
| 188 | |||
| 189 | return 0; | ||
| 190 | } | ||
| 191 | |||
| 192 | #endif | ||
diff --git a/src/lib/libcrypto/krb5/Makefile.ssl b/src/lib/libcrypto/krb5/Makefile.ssl deleted file mode 100644 index d9224c0f09..0000000000 --- a/src/lib/libcrypto/krb5/Makefile.ssl +++ /dev/null | |||
| @@ -1,90 +0,0 @@ | |||
| 1 | # | ||
| 2 | # OpenSSL/krb5/Makefile.ssl | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= krb5 | ||
| 6 | TOP= ../.. | ||
| 7 | CC= cc | ||
| 8 | INCLUDES= -I.. -I$(TOP) -I../../include | ||
| 9 | CFLAG=-g | ||
| 10 | INSTALL_PREFIX= | ||
| 11 | OPENSSLDIR= /usr/local/ssl | ||
| 12 | INSTALLTOP=/usr/local/ssl | ||
| 13 | MAKE= make -f Makefile.ssl | ||
| 14 | MAKEDEPPROG= makedepend | ||
| 15 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
| 16 | MAKEFILE= Makefile.ssl | ||
| 17 | AR= ar r | ||
| 18 | |||
| 19 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 20 | |||
| 21 | GENERAL=Makefile README | ||
| 22 | TEST= | ||
| 23 | APPS= | ||
| 24 | |||
| 25 | LIB=$(TOP)/libcrypto.a | ||
| 26 | LIBSRC= krb5_asn.c | ||
| 27 | |||
| 28 | LIBOBJ= krb5_asn.o | ||
| 29 | |||
| 30 | SRC= $(LIBSRC) | ||
| 31 | |||
| 32 | EXHEADER= krb5_asn.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 | $(RANLIB) $(LIB) || echo Never mind. | ||
| 45 | @touch lib | ||
| 46 | |||
| 47 | files: | ||
| 48 | $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
| 49 | |||
| 50 | links: | ||
| 51 | @sh $(TOP)/util/point.sh Makefile.ssl Makefile ; | ||
| 52 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | ||
| 53 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | ||
| 54 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | ||
| 55 | |||
| 56 | install: | ||
| 57 | @for i in $(EXHEADER) ; \ | ||
| 58 | do \ | ||
| 59 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 60 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
| 61 | done; | ||
| 62 | |||
| 63 | tags: | ||
| 64 | ctags $(SRC) | ||
| 65 | |||
| 66 | tests: | ||
| 67 | |||
| 68 | lint: | ||
| 69 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
| 70 | |||
| 71 | depend: | ||
| 72 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(LIBSRC) | ||
| 73 | |||
| 74 | dclean: | ||
| 75 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 76 | mv -f Makefile.new $(MAKEFILE) | ||
| 77 | |||
| 78 | clean: | ||
| 79 | rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
| 80 | |||
| 81 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 82 | |||
| 83 | krb5_asn.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h | ||
| 84 | krb5_asn.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 85 | krb5_asn.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 86 | krb5_asn.o: ../../include/openssl/krb5_asn.h | ||
| 87 | krb5_asn.o: ../../include/openssl/opensslconf.h | ||
| 88 | krb5_asn.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 89 | krb5_asn.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 90 | krb5_asn.o: ../../include/openssl/symhacks.h krb5_asn.c | ||
diff --git a/src/lib/libcrypto/lhash/Makefile.ssl b/src/lib/libcrypto/lhash/Makefile.ssl deleted file mode 100644 index 60e7ee3393..0000000000 --- a/src/lib/libcrypto/lhash/Makefile.ssl +++ /dev/null | |||
| @@ -1,93 +0,0 @@ | |||
| 1 | # | ||
| 2 | # SSLeay/crypto/lhash/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= lhash | ||
| 6 | TOP= ../.. | ||
| 7 | CC= cc | ||
| 8 | INCLUDES= | ||
| 9 | CFLAG=-g | ||
| 10 | INSTALL_PREFIX= | ||
| 11 | OPENSSLDIR= /usr/local/ssl | ||
| 12 | INSTALLTOP=/usr/local/ssl | ||
| 13 | MAKE= make -f Makefile.ssl | ||
| 14 | MAKEDEPPROG= makedepend | ||
| 15 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
| 16 | MAKEFILE= Makefile.ssl | ||
| 17 | AR= ar r | ||
| 18 | |||
| 19 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 20 | |||
| 21 | GENERAL=Makefile | ||
| 22 | TEST= | ||
| 23 | APPS= | ||
| 24 | |||
| 25 | LIB=$(TOP)/libcrypto.a | ||
| 26 | LIBSRC=lhash.c lh_stats.c | ||
| 27 | LIBOBJ=lhash.o lh_stats.o | ||
| 28 | |||
| 29 | SRC= $(LIBSRC) | ||
| 30 | |||
| 31 | EXHEADER= lhash.h | ||
| 32 | HEADER= $(EXHEADER) | ||
| 33 | |||
| 34 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
| 35 | |||
| 36 | top: | ||
| 37 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
| 38 | |||
| 39 | all: lib | ||
| 40 | |||
| 41 | lib: $(LIBOBJ) | ||
| 42 | $(AR) $(LIB) $(LIBOBJ) | ||
| 43 | $(RANLIB) $(LIB) || echo Never mind. | ||
| 44 | @touch lib | ||
| 45 | |||
| 46 | files: | ||
| 47 | $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
| 48 | |||
| 49 | links: | ||
| 50 | @sh $(TOP)/util/point.sh Makefile.ssl Makefile | ||
| 51 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | ||
| 52 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | ||
| 53 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | ||
| 54 | |||
| 55 | install: | ||
| 56 | @for i in $(EXHEADER) ; \ | ||
| 57 | do \ | ||
| 58 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 59 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
| 60 | done; | ||
| 61 | |||
| 62 | tags: | ||
| 63 | ctags $(SRC) | ||
| 64 | |||
| 65 | tests: | ||
| 66 | |||
| 67 | lint: | ||
| 68 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
| 69 | |||
| 70 | depend: | ||
| 71 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) | ||
| 72 | |||
| 73 | dclean: | ||
| 74 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 75 | mv -f Makefile.new $(MAKEFILE) | ||
| 76 | |||
| 77 | clean: | ||
| 78 | rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
| 79 | |||
| 80 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 81 | |||
| 82 | lh_stats.o: ../../e_os.h ../../include/openssl/bio.h | ||
| 83 | lh_stats.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 84 | lh_stats.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 85 | lh_stats.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 86 | lh_stats.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 87 | lh_stats.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 88 | lh_stats.o: ../cryptlib.h lh_stats.c | ||
| 89 | lhash.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h | ||
| 90 | lhash.o: ../../include/openssl/e_os2.h ../../include/openssl/lhash.h | ||
| 91 | lhash.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 92 | lhash.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 93 | lhash.o: ../../include/openssl/symhacks.h lhash.c | ||
diff --git a/src/lib/libcrypto/md2/Makefile.ssl b/src/lib/libcrypto/md2/Makefile.ssl deleted file mode 100644 index 3206924c90..0000000000 --- a/src/lib/libcrypto/md2/Makefile.ssl +++ /dev/null | |||
| @@ -1,93 +0,0 @@ | |||
| 1 | # | ||
| 2 | # SSLeay/crypto/md/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= md2 | ||
| 6 | TOP= ../.. | ||
| 7 | CC= cc | ||
| 8 | INCLUDES= | ||
| 9 | CFLAG=-g | ||
| 10 | INSTALL_PREFIX= | ||
| 11 | OPENSSLDIR= /usr/local/ssl | ||
| 12 | INSTALLTOP=/usr/local/ssl | ||
| 13 | MAKE= make -f Makefile.ssl | ||
| 14 | MAKEDEPPROG= makedepend | ||
| 15 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
| 16 | MAKEFILE= Makefile.ssl | ||
| 17 | AR= ar r | ||
| 18 | |||
| 19 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 20 | |||
| 21 | GENERAL=Makefile | ||
| 22 | TEST=md2test.c | ||
| 23 | APPS= | ||
| 24 | |||
| 25 | LIB=$(TOP)/libcrypto.a | ||
| 26 | LIBSRC=md2_dgst.c md2_one.c | ||
| 27 | LIBOBJ=md2_dgst.o md2_one.o | ||
| 28 | |||
| 29 | SRC= $(LIBSRC) | ||
| 30 | |||
| 31 | EXHEADER= md2.h | ||
| 32 | HEADER= $(EXHEADER) | ||
| 33 | |||
| 34 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
| 35 | |||
| 36 | top: | ||
| 37 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
| 38 | |||
| 39 | all: lib | ||
| 40 | |||
| 41 | lib: $(LIBOBJ) | ||
| 42 | $(AR) $(LIB) $(LIBOBJ) | ||
| 43 | $(RANLIB) $(LIB) || echo Never mind. | ||
| 44 | @touch lib | ||
| 45 | |||
| 46 | files: | ||
| 47 | $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
| 48 | |||
| 49 | links: | ||
| 50 | @sh $(TOP)/util/point.sh Makefile.ssl Makefile | ||
| 51 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | ||
| 52 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | ||
| 53 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | ||
| 54 | |||
| 55 | install: | ||
| 56 | @for i in $(EXHEADER) ; \ | ||
| 57 | do \ | ||
| 58 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 59 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
| 60 | done; | ||
| 61 | |||
| 62 | tags: | ||
| 63 | ctags $(SRC) | ||
| 64 | |||
| 65 | tests: | ||
| 66 | |||
| 67 | lint: | ||
| 68 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
| 69 | |||
| 70 | depend: | ||
| 71 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) | ||
| 72 | |||
| 73 | dclean: | ||
| 74 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 75 | mv -f Makefile.new $(MAKEFILE) | ||
| 76 | |||
| 77 | clean: | ||
| 78 | rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
| 79 | |||
| 80 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 81 | |||
| 82 | md2_dgst.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 83 | md2_dgst.o: ../../include/openssl/md2.h ../../include/openssl/opensslconf.h | ||
| 84 | md2_dgst.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 85 | md2_dgst.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 86 | md2_dgst.o: md2_dgst.c | ||
| 87 | md2_one.o: ../../e_os.h ../../include/openssl/bio.h | ||
| 88 | md2_one.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 89 | md2_one.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 90 | md2_one.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 91 | md2_one.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 92 | md2_one.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 93 | md2_one.o: ../../include/openssl/symhacks.h ../cryptlib.h md2_one.c | ||
diff --git a/src/lib/libcrypto/md4/Makefile.ssl b/src/lib/libcrypto/md4/Makefile.ssl deleted file mode 100644 index 7d2e8d8d3b..0000000000 --- a/src/lib/libcrypto/md4/Makefile.ssl +++ /dev/null | |||
| @@ -1,91 +0,0 @@ | |||
| 1 | # | ||
| 2 | # SSLeay/crypto/md4/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= md4 | ||
| 6 | TOP= ../.. | ||
| 7 | CC= cc | ||
| 8 | CPP= $(CC) -E | ||
| 9 | INCLUDES= | ||
| 10 | CFLAG=-g | ||
| 11 | INSTALL_PREFIX= | ||
| 12 | OPENSSLDIR= /usr/local/ssl | ||
| 13 | INSTALLTOP=/usr/local/ssl | ||
| 14 | MAKE= make -f Makefile.ssl | ||
| 15 | MAKEDEPPROG= makedepend | ||
| 16 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
| 17 | MAKEFILE= Makefile.ssl | ||
| 18 | AR= ar r | ||
| 19 | |||
| 20 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 21 | |||
| 22 | GENERAL=Makefile | ||
| 23 | TEST=md4test.c | ||
| 24 | APPS=md4.c | ||
| 25 | |||
| 26 | LIB=$(TOP)/libcrypto.a | ||
| 27 | LIBSRC=md4_dgst.c md4_one.c | ||
| 28 | LIBOBJ=md4_dgst.o md4_one.o | ||
| 29 | |||
| 30 | SRC= $(LIBSRC) | ||
| 31 | |||
| 32 | EXHEADER= md4.h | ||
| 33 | HEADER= md4_locl.h $(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 | $(RANLIB) $(LIB) || echo Never mind. | ||
| 45 | @touch lib | ||
| 46 | |||
| 47 | files: | ||
| 48 | $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
| 49 | |||
| 50 | links: | ||
| 51 | @sh $(TOP)/util/point.sh Makefile.ssl Makefile | ||
| 52 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | ||
| 53 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | ||
| 54 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | ||
| 55 | |||
| 56 | install: | ||
| 57 | @for i in $(EXHEADER) ; \ | ||
| 58 | do \ | ||
| 59 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 60 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
| 61 | done; | ||
| 62 | |||
| 63 | tags: | ||
| 64 | ctags $(SRC) | ||
| 65 | |||
| 66 | tests: | ||
| 67 | |||
| 68 | lint: | ||
| 69 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
| 70 | |||
| 71 | depend: | ||
| 72 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) | ||
| 73 | |||
| 74 | dclean: | ||
| 75 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 76 | mv -f Makefile.new $(MAKEFILE) | ||
| 77 | |||
| 78 | clean: | ||
| 79 | rm -f asm/mx86unix.cpp *.o asm/*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
| 80 | |||
| 81 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 82 | |||
| 83 | md4_dgst.o: ../../include/openssl/e_os2.h ../../include/openssl/md4.h | ||
| 84 | md4_dgst.o: ../../include/openssl/opensslconf.h | ||
| 85 | md4_dgst.o: ../../include/openssl/opensslv.h ../md32_common.h md4_dgst.c | ||
| 86 | md4_dgst.o: md4_locl.h | ||
| 87 | md4_one.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 88 | md4_one.o: ../../include/openssl/md4.h ../../include/openssl/opensslconf.h | ||
| 89 | md4_one.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 90 | md4_one.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 91 | md4_one.o: md4_one.c | ||
diff --git a/src/lib/libcrypto/md5/Makefile.ssl b/src/lib/libcrypto/md5/Makefile.ssl deleted file mode 100644 index 2361775a2d..0000000000 --- a/src/lib/libcrypto/md5/Makefile.ssl +++ /dev/null | |||
| @@ -1,127 +0,0 @@ | |||
| 1 | # | ||
| 2 | # SSLeay/crypto/md5/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= md5 | ||
| 6 | TOP= ../.. | ||
| 7 | CC= cc | ||
| 8 | CPP= $(CC) -E | ||
| 9 | INCLUDES=-I.. -I$(TOP) -I../../include | ||
| 10 | CFLAG=-g | ||
| 11 | INSTALL_PREFIX= | ||
| 12 | OPENSSLDIR= /usr/local/ssl | ||
| 13 | INSTALLTOP=/usr/local/ssl | ||
| 14 | MAKE= make -f Makefile.ssl | ||
| 15 | MAKEDEPPROG= makedepend | ||
| 16 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
| 17 | MAKEFILE= Makefile.ssl | ||
| 18 | AR= ar r | ||
| 19 | |||
| 20 | MD5_ASM_OBJ= | ||
| 21 | |||
| 22 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 23 | ASFLAGS= $(INCLUDES) $(ASFLAG) | ||
| 24 | |||
| 25 | GENERAL=Makefile | ||
| 26 | TEST=md5test.c | ||
| 27 | APPS= | ||
| 28 | |||
| 29 | LIB=$(TOP)/libcrypto.a | ||
| 30 | LIBSRC=md5_dgst.c md5_one.c | ||
| 31 | LIBOBJ=md5_dgst.o md5_one.o $(MD5_ASM_OBJ) | ||
| 32 | |||
| 33 | SRC= $(LIBSRC) | ||
| 34 | |||
| 35 | EXHEADER= md5.h | ||
| 36 | HEADER= md5_locl.h $(EXHEADER) | ||
| 37 | |||
| 38 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
| 39 | |||
| 40 | top: | ||
| 41 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
| 42 | |||
| 43 | all: lib | ||
| 44 | |||
| 45 | lib: $(LIBOBJ) | ||
| 46 | $(AR) $(LIB) $(LIBOBJ) | ||
| 47 | $(RANLIB) $(LIB) || echo Never mind. | ||
| 48 | @touch lib | ||
| 49 | |||
| 50 | # elf | ||
| 51 | asm/mx86-elf.s: asm/md5-586.pl ../perlasm/x86asm.pl | ||
| 52 | (cd asm; $(PERL) md5-586.pl elf $(CFLAGS) > mx86-elf.s) | ||
| 53 | |||
| 54 | # a.out | ||
| 55 | asm/mx86-out.o: asm/mx86unix.cpp | ||
| 56 | $(CPP) -DOUT asm/mx86unix.cpp | as -o asm/mx86-out.o | ||
| 57 | |||
| 58 | # bsdi | ||
| 59 | asm/mx86bsdi.o: asm/mx86unix.cpp | ||
| 60 | $(CPP) -DBSDI asm/mx86unix.cpp | sed 's/ :/:/' | as -o asm/mx86bsdi.o | ||
| 61 | |||
| 62 | asm/mx86unix.cpp: asm/md5-586.pl ../perlasm/x86asm.pl | ||
| 63 | (cd asm; $(PERL) md5-586.pl cpp >mx86unix.cpp) | ||
| 64 | |||
| 65 | asm/md5-sparcv8plus.o: asm/md5-sparcv9.S | ||
| 66 | $(CC) $(ASFLAGS) -DMD5_BLOCK_DATA_ORDER -c \ | ||
| 67 | -o asm/md5-sparcv8plus.o asm/md5-sparcv9.S | ||
| 68 | |||
| 69 | # Old GNU assembler doesn't understand V9 instructions, so we | ||
| 70 | # hire /usr/ccs/bin/as to do the job. Note that option is called | ||
| 71 | # *-gcc27, but even gcc 2>=8 users may experience similar problem | ||
| 72 | # if they didn't bother to upgrade GNU assembler. Such users should | ||
| 73 | # not choose this option, but be adviced to *remove* GNU assembler | ||
| 74 | # or upgrade it. | ||
| 75 | asm/md5-sparcv8plus-gcc27.o: asm/md5-sparcv9.S | ||
| 76 | $(CC) $(ASFLAGS) -DMD5_BLOCK_DATA_ORDER -E asm/md5-sparcv9.S | \ | ||
| 77 | /usr/ccs/bin/as -xarch=v8plus - -o asm/md5-sparcv8plus-gcc27.o | ||
| 78 | |||
| 79 | asm/md5-sparcv9.o: asm/md5-sparcv9.S | ||
| 80 | $(CC) $(ASFLAGS) -DMD5_BLOCK_DATA_ORDER -c \ | ||
| 81 | -o asm/md5-sparcv9.o asm/md5-sparcv9.S | ||
| 82 | |||
| 83 | files: | ||
| 84 | $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
| 85 | |||
| 86 | links: | ||
| 87 | @sh $(TOP)/util/point.sh Makefile.ssl Makefile | ||
| 88 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | ||
| 89 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | ||
| 90 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | ||
| 91 | |||
| 92 | install: | ||
| 93 | @for i in $(EXHEADER) ; \ | ||
| 94 | do \ | ||
| 95 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 96 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
| 97 | done; | ||
| 98 | |||
| 99 | tags: | ||
| 100 | ctags $(SRC) | ||
| 101 | |||
| 102 | tests: | ||
| 103 | |||
| 104 | lint: | ||
| 105 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
| 106 | |||
| 107 | depend: | ||
| 108 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) | ||
| 109 | |||
| 110 | dclean: | ||
| 111 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 112 | mv -f Makefile.new $(MAKEFILE) | ||
| 113 | |||
| 114 | clean: | ||
| 115 | rm -f asm/mx86unix.cpp asm/*-elf.* *.o asm/*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
| 116 | |||
| 117 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 118 | |||
| 119 | md5_dgst.o: ../../include/openssl/e_os2.h ../../include/openssl/md5.h | ||
| 120 | md5_dgst.o: ../../include/openssl/opensslconf.h | ||
| 121 | md5_dgst.o: ../../include/openssl/opensslv.h ../md32_common.h md5_dgst.c | ||
| 122 | md5_dgst.o: md5_locl.h | ||
| 123 | md5_one.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 124 | md5_one.o: ../../include/openssl/md5.h ../../include/openssl/opensslconf.h | ||
| 125 | md5_one.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 126 | md5_one.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 127 | md5_one.o: md5_one.c | ||
diff --git a/src/lib/libcrypto/mdc2/Makefile.ssl b/src/lib/libcrypto/mdc2/Makefile.ssl deleted file mode 100644 index 33f366fb08..0000000000 --- a/src/lib/libcrypto/mdc2/Makefile.ssl +++ /dev/null | |||
| @@ -1,98 +0,0 @@ | |||
| 1 | # | ||
| 2 | # SSLeay/crypto/mdc2/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= mdc2 | ||
| 6 | TOP= ../.. | ||
| 7 | CC= cc | ||
| 8 | INCLUDES= | ||
| 9 | CFLAG=-g | ||
| 10 | INSTALL_PREFIX= | ||
| 11 | OPENSSLDIR= /usr/local/ssl | ||
| 12 | INSTALLTOP=/usr/local/ssl | ||
| 13 | MAKE= make -f Makefile.ssl | ||
| 14 | MAKEDEPPROG= makedepend | ||
| 15 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
| 16 | MAKEFILE= Makefile.ssl | ||
| 17 | AR= ar r | ||
| 18 | |||
| 19 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 20 | |||
| 21 | GENERAL=Makefile | ||
| 22 | TEST= mdc2test.c | ||
| 23 | APPS= | ||
| 24 | |||
| 25 | LIB=$(TOP)/libcrypto.a | ||
| 26 | LIBSRC=mdc2dgst.c mdc2_one.c | ||
| 27 | LIBOBJ=mdc2dgst.o mdc2_one.o | ||
| 28 | |||
| 29 | SRC= $(LIBSRC) | ||
| 30 | |||
| 31 | EXHEADER= mdc2.h | ||
| 32 | HEADER= $(EXHEADER) | ||
| 33 | |||
| 34 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
| 35 | |||
| 36 | top: | ||
| 37 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
| 38 | |||
| 39 | all: lib | ||
| 40 | |||
| 41 | lib: $(LIBOBJ) | ||
| 42 | $(AR) $(LIB) $(LIBOBJ) | ||
| 43 | $(RANLIB) $(LIB) || echo Never mind. | ||
| 44 | @touch lib | ||
| 45 | |||
| 46 | files: | ||
| 47 | $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
| 48 | |||
| 49 | links: | ||
| 50 | @sh $(TOP)/util/point.sh Makefile.ssl Makefile | ||
| 51 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | ||
| 52 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | ||
| 53 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | ||
| 54 | |||
| 55 | install: | ||
| 56 | @for i in $(EXHEADER) ; \ | ||
| 57 | do \ | ||
| 58 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 59 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
| 60 | done; | ||
| 61 | |||
| 62 | tags: | ||
| 63 | ctags $(SRC) | ||
| 64 | |||
| 65 | tests: | ||
| 66 | |||
| 67 | lint: | ||
| 68 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
| 69 | |||
| 70 | depend: | ||
| 71 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) | ||
| 72 | |||
| 73 | dclean: | ||
| 74 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 75 | mv -f Makefile.new $(MAKEFILE) | ||
| 76 | |||
| 77 | clean: | ||
| 78 | rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
| 79 | |||
| 80 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 81 | |||
| 82 | mdc2_one.o: ../../e_os.h ../../include/openssl/bio.h | ||
| 83 | mdc2_one.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 84 | mdc2_one.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 85 | mdc2_one.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 86 | mdc2_one.o: ../../include/openssl/lhash.h ../../include/openssl/mdc2.h | ||
| 87 | mdc2_one.o: ../../include/openssl/opensslconf.h | ||
| 88 | mdc2_one.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 89 | mdc2_one.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 90 | mdc2_one.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 91 | mdc2_one.o: ../cryptlib.h mdc2_one.c | ||
| 92 | mdc2dgst.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 93 | mdc2dgst.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h | ||
| 94 | mdc2dgst.o: ../../include/openssl/mdc2.h ../../include/openssl/opensslconf.h | ||
| 95 | mdc2dgst.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 96 | mdc2dgst.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 97 | mdc2dgst.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 98 | mdc2dgst.o: mdc2dgst.c | ||
diff --git a/src/lib/libcrypto/mdc2/mdc2_one.c b/src/lib/libcrypto/mdc2/mdc2_one.c deleted file mode 100644 index 72647f67ed..0000000000 --- a/src/lib/libcrypto/mdc2/mdc2_one.c +++ /dev/null | |||
| @@ -1,76 +0,0 @@ | |||
| 1 | /* crypto/mdc2/mdc2_one.c */ | ||
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | ||
| 3 | * All rights reserved. | ||
| 4 | * | ||
| 5 | * This package is an SSL implementation written | ||
| 6 | * by Eric Young (eay@cryptsoft.com). | ||
| 7 | * The implementation was written so as to conform with Netscapes SSL. | ||
| 8 | * | ||
| 9 | * This library is free for commercial and non-commercial use as long as | ||
| 10 | * the following conditions are aheared to. The following conditions | ||
| 11 | * apply to all code found in this distribution, be it the RC4, RSA, | ||
| 12 | * lhash, DES, etc., code; not just the SSL code. The SSL documentation | ||
| 13 | * included with this distribution is covered by the same copyright terms | ||
| 14 | * except that the holder is Tim Hudson (tjh@cryptsoft.com). | ||
| 15 | * | ||
| 16 | * Copyright remains Eric Young's, and as such any Copyright notices in | ||
| 17 | * the code are not to be removed. | ||
| 18 | * If this package is used in a product, Eric Young should be given attribution | ||
| 19 | * as the author of the parts of the library used. | ||
| 20 | * This can be in the form of a textual message at program startup or | ||
| 21 | * in documentation (online or textual) provided with the package. | ||
| 22 | * | ||
| 23 | * Redistribution and use in source and binary forms, with or without | ||
| 24 | * modification, are permitted provided that the following conditions | ||
| 25 | * are met: | ||
| 26 | * 1. Redistributions of source code must retain the copyright | ||
| 27 | * notice, this list of conditions and the following disclaimer. | ||
| 28 | * 2. Redistributions in binary form must reproduce the above copyright | ||
| 29 | * notice, this list of conditions and the following disclaimer in the | ||
| 30 | * documentation and/or other materials provided with the distribution. | ||
| 31 | * 3. All advertising materials mentioning features or use of this software | ||
| 32 | * must display the following acknowledgement: | ||
| 33 | * "This product includes cryptographic software written by | ||
| 34 | * Eric Young (eay@cryptsoft.com)" | ||
| 35 | * The word 'cryptographic' can be left out if the rouines from the library | ||
| 36 | * being used are not cryptographic related :-). | ||
| 37 | * 4. If you include any Windows specific code (or a derivative thereof) from | ||
| 38 | * the apps directory (application code) you must include an acknowledgement: | ||
| 39 | * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" | ||
| 40 | * | ||
| 41 | * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND | ||
| 42 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
| 43 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
| 44 | * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE | ||
| 45 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
| 46 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | ||
| 47 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
| 48 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
| 49 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||
| 50 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||
| 51 | * SUCH DAMAGE. | ||
| 52 | * | ||
| 53 | * The licence and distribution terms for any publically available version or | ||
| 54 | * derivative of this code cannot be changed. i.e. this code cannot simply be | ||
| 55 | * copied and put under another distribution licence | ||
| 56 | * [including the GNU Public Licence.] | ||
| 57 | */ | ||
| 58 | |||
| 59 | #include <stdio.h> | ||
| 60 | #include "cryptlib.h" | ||
| 61 | #include <openssl/mdc2.h> | ||
| 62 | |||
| 63 | unsigned char *MDC2(const unsigned char *d, size_t n, unsigned char *md) | ||
| 64 | { | ||
| 65 | MDC2_CTX c; | ||
| 66 | static unsigned char m[MDC2_DIGEST_LENGTH]; | ||
| 67 | |||
| 68 | if (md == NULL) md=m; | ||
| 69 | if (!MDC2_Init(&c)) | ||
| 70 | return NULL; | ||
| 71 | MDC2_Update(&c,d,n); | ||
| 72 | MDC2_Final(md,&c); | ||
| 73 | OPENSSL_cleanse(&c,sizeof(c)); /* security consideration */ | ||
| 74 | return(md); | ||
| 75 | } | ||
| 76 | |||
diff --git a/src/lib/libcrypto/mdc2/mdc2dgst.c b/src/lib/libcrypto/mdc2/mdc2dgst.c deleted file mode 100644 index d66ed6a1c6..0000000000 --- a/src/lib/libcrypto/mdc2/mdc2dgst.c +++ /dev/null | |||
| @@ -1,200 +0,0 @@ | |||
| 1 | /* crypto/mdc2/mdc2dgst.c */ | ||
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | ||
| 3 | * All rights reserved. | ||
| 4 | * | ||
| 5 | * This package is an SSL implementation written | ||
| 6 | * by Eric Young (eay@cryptsoft.com). | ||
| 7 | * The implementation was written so as to conform with Netscapes SSL. | ||
| 8 | * | ||
| 9 | * This library is free for commercial and non-commercial use as long as | ||
| 10 | * the following conditions are aheared to. The following conditions | ||
| 11 | * apply to all code found in this distribution, be it the RC4, RSA, | ||
| 12 | * lhash, DES, etc., code; not just the SSL code. The SSL documentation | ||
| 13 | * included with this distribution is covered by the same copyright terms | ||
| 14 | * except that the holder is Tim Hudson (tjh@cryptsoft.com). | ||
| 15 | * | ||
| 16 | * Copyright remains Eric Young's, and as such any Copyright notices in | ||
| 17 | * the code are not to be removed. | ||
| 18 | * If this package is used in a product, Eric Young should be given attribution | ||
| 19 | * as the author of the parts of the library used. | ||
| 20 | * This can be in the form of a textual message at program startup or | ||
| 21 | * in documentation (online or textual) provided with the package. | ||
| 22 | * | ||
| 23 | * Redistribution and use in source and binary forms, with or without | ||
| 24 | * modification, are permitted provided that the following conditions | ||
| 25 | * are met: | ||
| 26 | * 1. Redistributions of source code must retain the copyright | ||
| 27 | * notice, this list of conditions and the following disclaimer. | ||
| 28 | * 2. Redistributions in binary form must reproduce the above copyright | ||
| 29 | * notice, this list of conditions and the following disclaimer in the | ||
| 30 | * documentation and/or other materials provided with the distribution. | ||
| 31 | * 3. All advertising materials mentioning features or use of this software | ||
| 32 | * must display the following acknowledgement: | ||
| 33 | * "This product includes cryptographic software written by | ||
| 34 | * Eric Young (eay@cryptsoft.com)" | ||
| 35 | * The word 'cryptographic' can be left out if the rouines from the library | ||
| 36 | * being used are not cryptographic related :-). | ||
| 37 | * 4. If you include any Windows specific code (or a derivative thereof) from | ||
| 38 | * the apps directory (application code) you must include an acknowledgement: | ||
| 39 | * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" | ||
| 40 | * | ||
| 41 | * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND | ||
| 42 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
| 43 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
| 44 | * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE | ||
| 45 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
| 46 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | ||
| 47 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
| 48 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
| 49 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||
| 50 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||
| 51 | * SUCH DAMAGE. | ||
| 52 | * | ||
| 53 | * The licence and distribution terms for any publically available version or | ||
| 54 | * derivative of this code cannot be changed. i.e. this code cannot simply be | ||
| 55 | * copied and put under another distribution licence | ||
| 56 | * [including the GNU Public Licence.] | ||
| 57 | */ | ||
| 58 | |||
| 59 | #include <stdio.h> | ||
| 60 | #include <stdlib.h> | ||
| 61 | #include <string.h> | ||
| 62 | #include <openssl/crypto.h> | ||
| 63 | #include <openssl/des.h> | ||
| 64 | #include <openssl/mdc2.h> | ||
| 65 | |||
| 66 | #undef c2l | ||
| 67 | #define c2l(c,l) (l =((DES_LONG)(*((c)++))) , \ | ||
| 68 | l|=((DES_LONG)(*((c)++)))<< 8L, \ | ||
| 69 | l|=((DES_LONG)(*((c)++)))<<16L, \ | ||
| 70 | l|=((DES_LONG)(*((c)++)))<<24L) | ||
| 71 | |||
| 72 | #undef l2c | ||
| 73 | #define l2c(l,c) (*((c)++)=(unsigned char)(((l) )&0xff), \ | ||
| 74 | *((c)++)=(unsigned char)(((l)>> 8L)&0xff), \ | ||
| 75 | *((c)++)=(unsigned char)(((l)>>16L)&0xff), \ | ||
| 76 | *((c)++)=(unsigned char)(((l)>>24L)&0xff)) | ||
| 77 | |||
| 78 | static void mdc2_body(MDC2_CTX *c, const unsigned char *in, size_t len); | ||
| 79 | fips_md_init(MDC2) | ||
| 80 | { | ||
| 81 | c->num=0; | ||
| 82 | c->pad_type=1; | ||
| 83 | memset(&(c->h[0]),0x52,MDC2_BLOCK); | ||
| 84 | memset(&(c->hh[0]),0x25,MDC2_BLOCK); | ||
| 85 | return 1; | ||
| 86 | } | ||
| 87 | |||
| 88 | int MDC2_Update(MDC2_CTX *c, const unsigned char *in, size_t len) | ||
| 89 | { | ||
| 90 | size_t i,j; | ||
| 91 | |||
| 92 | i=c->num; | ||
| 93 | if (i != 0) | ||
| 94 | { | ||
| 95 | if (i+len < MDC2_BLOCK) | ||
| 96 | { | ||
| 97 | /* partial block */ | ||
| 98 | memcpy(&(c->data[i]),in,len); | ||
| 99 | c->num+=(int)len; | ||
| 100 | return 1; | ||
| 101 | } | ||
| 102 | else | ||
| 103 | { | ||
| 104 | /* filled one */ | ||
| 105 | j=MDC2_BLOCK-i; | ||
| 106 | memcpy(&(c->data[i]),in,j); | ||
| 107 | len-=j; | ||
| 108 | in+=j; | ||
| 109 | c->num=0; | ||
| 110 | mdc2_body(c,&(c->data[0]),MDC2_BLOCK); | ||
| 111 | } | ||
| 112 | } | ||
| 113 | i=len&~((size_t)MDC2_BLOCK-1); | ||
| 114 | if (i > 0) mdc2_body(c,in,i); | ||
| 115 | j=len-i; | ||
| 116 | if (j > 0) | ||
| 117 | { | ||
| 118 | memcpy(&(c->data[0]),&(in[i]),j); | ||
| 119 | c->num=(int)j; | ||
| 120 | } | ||
| 121 | return 1; | ||
| 122 | } | ||
| 123 | |||
| 124 | static void mdc2_body(MDC2_CTX *c, const unsigned char *in, size_t len) | ||
| 125 | { | ||
| 126 | register DES_LONG tin0,tin1; | ||
| 127 | register DES_LONG ttin0,ttin1; | ||
| 128 | DES_LONG d[2],dd[2]; | ||
| 129 | DES_key_schedule k; | ||
| 130 | unsigned char *p; | ||
| 131 | size_t i; | ||
| 132 | |||
| 133 | for (i=0; i<len; i+=8) | ||
| 134 | { | ||
| 135 | c2l(in,tin0); d[0]=dd[0]=tin0; | ||
| 136 | c2l(in,tin1); d[1]=dd[1]=tin1; | ||
| 137 | c->h[0]=(c->h[0]&0x9f)|0x40; | ||
| 138 | c->hh[0]=(c->hh[0]&0x9f)|0x20; | ||
| 139 | |||
| 140 | DES_set_odd_parity(&c->h); | ||
| 141 | DES_set_key_unchecked(&c->h,&k); | ||
| 142 | DES_encrypt1(d,&k,1); | ||
| 143 | |||
| 144 | DES_set_odd_parity(&c->hh); | ||
| 145 | DES_set_key_unchecked(&c->hh,&k); | ||
| 146 | DES_encrypt1(dd,&k,1); | ||
| 147 | |||
| 148 | ttin0=tin0^dd[0]; | ||
| 149 | ttin1=tin1^dd[1]; | ||
| 150 | tin0^=d[0]; | ||
| 151 | tin1^=d[1]; | ||
| 152 | |||
| 153 | p=c->h; | ||
| 154 | l2c(tin0,p); | ||
| 155 | l2c(ttin1,p); | ||
| 156 | p=c->hh; | ||
| 157 | l2c(ttin0,p); | ||
| 158 | l2c(tin1,p); | ||
| 159 | } | ||
| 160 | } | ||
| 161 | |||
| 162 | int MDC2_Final(unsigned char *md, MDC2_CTX *c) | ||
| 163 | { | ||
| 164 | unsigned int i; | ||
| 165 | int j; | ||
| 166 | |||
| 167 | i=c->num; | ||
| 168 | j=c->pad_type; | ||
| 169 | if ((i > 0) || (j == 2)) | ||
| 170 | { | ||
| 171 | if (j == 2) | ||
| 172 | c->data[i++]=0x80; | ||
| 173 | memset(&(c->data[i]),0,MDC2_BLOCK-i); | ||
| 174 | mdc2_body(c,c->data,MDC2_BLOCK); | ||
| 175 | } | ||
| 176 | memcpy(md,(char *)c->h,MDC2_BLOCK); | ||
| 177 | memcpy(&(md[MDC2_BLOCK]),(char *)c->hh,MDC2_BLOCK); | ||
| 178 | return 1; | ||
| 179 | } | ||
| 180 | |||
| 181 | #undef TEST | ||
| 182 | |||
| 183 | #ifdef TEST | ||
| 184 | main() | ||
| 185 | { | ||
| 186 | unsigned char md[MDC2_DIGEST_LENGTH]; | ||
| 187 | int i; | ||
| 188 | MDC2_CTX c; | ||
| 189 | static char *text="Now is the time for all "; | ||
| 190 | |||
| 191 | MDC2_Init(&c); | ||
| 192 | MDC2_Update(&c,text,strlen(text)); | ||
| 193 | MDC2_Final(&(md[0]),&c); | ||
| 194 | |||
| 195 | for (i=0; i<MDC2_DIGEST_LENGTH; i++) | ||
| 196 | printf("%02X",md[i]); | ||
| 197 | printf("\n"); | ||
| 198 | } | ||
| 199 | |||
| 200 | #endif | ||
diff --git a/src/lib/libcrypto/modes/Makefile b/src/lib/libcrypto/modes/Makefile deleted file mode 100644 index 3d8bafd571..0000000000 --- a/src/lib/libcrypto/modes/Makefile +++ /dev/null | |||
| @@ -1,144 +0,0 @@ | |||
| 1 | # | ||
| 2 | # OpenSSL/crypto/modes/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= modes | ||
| 6 | TOP= ../.. | ||
| 7 | CC= cc | ||
| 8 | INCLUDES= -I.. -I$(TOP) -I../../include | ||
| 9 | CFLAG=-g | ||
| 10 | MAKEFILE= Makefile | ||
| 11 | AR= ar r | ||
| 12 | |||
| 13 | MODES_ASM_OBJ= | ||
| 14 | |||
| 15 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 16 | ASFLAGS= $(INCLUDES) $(ASFLAG) | ||
| 17 | AFLAGS= $(ASFLAGS) | ||
| 18 | |||
| 19 | GENERAL=Makefile | ||
| 20 | TEST= | ||
| 21 | APPS= | ||
| 22 | |||
| 23 | LIB=$(TOP)/libcrypto.a | ||
| 24 | LIBSRC= cbc128.c ctr128.c cts128.c cfb128.c ofb128.c gcm128.c \ | ||
| 25 | ccm128.c xts128.c | ||
| 26 | LIBOBJ= cbc128.o ctr128.o cts128.o cfb128.o ofb128.o gcm128.o \ | ||
| 27 | ccm128.o xts128.o $(MODES_ASM_OBJ) | ||
| 28 | |||
| 29 | SRC= $(LIBSRC) | ||
| 30 | |||
| 31 | #EXHEADER= store.h str_compat.h | ||
| 32 | EXHEADER= modes.h | ||
| 33 | HEADER= modes_lcl.h $(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 | $(RANLIB) $(LIB) || echo Never mind. | ||
| 45 | @touch lib | ||
| 46 | |||
| 47 | ghash-ia64.s: asm/ghash-ia64.pl | ||
| 48 | $(PERL) asm/ghash-ia64.pl $@ $(CFLAGS) | ||
| 49 | ghash-x86.s: asm/ghash-x86.pl | ||
| 50 | $(PERL) asm/ghash-x86.pl $(PERLASM_SCHEME) $(CFLAGS) $(PROCESSOR) > $@ | ||
| 51 | ghash-x86_64.s: asm/ghash-x86_64.pl | ||
| 52 | $(PERL) asm/ghash-x86_64.pl $(PERLASM_SCHEME) > $@ | ||
| 53 | ghash-sparcv9.s: asm/ghash-sparcv9.pl | ||
| 54 | $(PERL) asm/ghash-sparcv9.pl $@ $(CFLAGS) | ||
| 55 | ghash-alpha.s: asm/ghash-alpha.pl | ||
| 56 | (preproc=/tmp/$$$$.$@; trap "rm $$preproc" INT; \ | ||
| 57 | $(PERL) asm/ghash-alpha.pl > $$preproc && \ | ||
| 58 | $(CC) -E $$preproc > $@ && rm $$preproc) | ||
| 59 | |||
| 60 | ghash-parisc.s: asm/ghash-parisc.pl | ||
| 61 | $(PERL) asm/ghash-parisc.pl $(PERLASM_SCHEME) $@ | ||
| 62 | |||
| 63 | # GNU make "catch all" | ||
| 64 | ghash-%.S: asm/ghash-%.pl; $(PERL) $< $(PERLASM_SCHEME) $@ | ||
| 65 | |||
| 66 | ghash-armv4.o: ghash-armv4.S | ||
| 67 | |||
| 68 | files: | ||
| 69 | $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO | ||
| 70 | |||
| 71 | links: | ||
| 72 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | ||
| 73 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | ||
| 74 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | ||
| 75 | |||
| 76 | install: | ||
| 77 | @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile... | ||
| 78 | @headerlist="$(EXHEADER)"; for i in $$headerlist; \ | ||
| 79 | do \ | ||
| 80 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 81 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
| 82 | done; | ||
| 83 | |||
| 84 | tags: | ||
| 85 | ctags $(SRC) | ||
| 86 | |||
| 87 | tests: | ||
| 88 | |||
| 89 | lint: | ||
| 90 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
| 91 | |||
| 92 | depend: | ||
| 93 | @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile... | ||
| 94 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) | ||
| 95 | |||
| 96 | dclean: | ||
| 97 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 98 | mv -f Makefile.new $(MAKEFILE) | ||
| 99 | |||
| 100 | clean: | ||
| 101 | rm -f *.s *.o */*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
| 102 | |||
| 103 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 104 | |||
| 105 | cbc128.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 106 | cbc128.o: ../../include/openssl/modes.h ../../include/openssl/opensslconf.h | ||
| 107 | cbc128.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 108 | cbc128.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 109 | cbc128.o: ../../include/openssl/symhacks.h cbc128.c modes_lcl.h | ||
| 110 | ccm128.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 111 | ccm128.o: ../../include/openssl/modes.h ../../include/openssl/opensslconf.h | ||
| 112 | ccm128.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 113 | ccm128.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 114 | ccm128.o: ../../include/openssl/symhacks.h ccm128.c modes_lcl.h | ||
| 115 | cfb128.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 116 | cfb128.o: ../../include/openssl/modes.h ../../include/openssl/opensslconf.h | ||
| 117 | cfb128.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 118 | cfb128.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 119 | cfb128.o: ../../include/openssl/symhacks.h cfb128.c modes_lcl.h | ||
| 120 | ctr128.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 121 | ctr128.o: ../../include/openssl/modes.h ../../include/openssl/opensslconf.h | ||
| 122 | ctr128.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 123 | ctr128.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 124 | ctr128.o: ../../include/openssl/symhacks.h ctr128.c modes_lcl.h | ||
| 125 | cts128.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 126 | cts128.o: ../../include/openssl/modes.h ../../include/openssl/opensslconf.h | ||
| 127 | cts128.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 128 | cts128.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 129 | cts128.o: ../../include/openssl/symhacks.h cts128.c modes_lcl.h | ||
| 130 | gcm128.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 131 | gcm128.o: ../../include/openssl/modes.h ../../include/openssl/opensslconf.h | ||
| 132 | gcm128.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 133 | gcm128.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 134 | gcm128.o: ../../include/openssl/symhacks.h gcm128.c modes_lcl.h | ||
| 135 | ofb128.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 136 | ofb128.o: ../../include/openssl/modes.h ../../include/openssl/opensslconf.h | ||
| 137 | ofb128.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 138 | ofb128.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 139 | ofb128.o: ../../include/openssl/symhacks.h modes_lcl.h ofb128.c | ||
| 140 | xts128.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 141 | xts128.o: ../../include/openssl/modes.h ../../include/openssl/opensslconf.h | ||
| 142 | xts128.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 143 | xts128.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 144 | xts128.o: ../../include/openssl/symhacks.h modes_lcl.h xts128.c | ||
diff --git a/src/lib/libcrypto/o_dir.c b/src/lib/libcrypto/o_dir.c deleted file mode 100644 index 42891ea459..0000000000 --- a/src/lib/libcrypto/o_dir.c +++ /dev/null | |||
| @@ -1,83 +0,0 @@ | |||
| 1 | /* crypto/o_dir.c -*- mode:C; c-file-style: "eay" -*- */ | ||
| 2 | /* Written by Richard Levitte (richard@levitte.org) for the OpenSSL | ||
| 3 | * project 2004. | ||
| 4 | */ | ||
| 5 | /* ==================================================================== | ||
| 6 | * Copyright (c) 2004 The OpenSSL Project. All rights reserved. | ||
| 7 | * | ||
| 8 | * Redistribution and use in source and binary forms, with or without | ||
| 9 | * modification, are permitted provided that the following conditions | ||
| 10 | * are met: | ||
| 11 | * | ||
| 12 | * 1. Redistributions of source code must retain the above copyright | ||
| 13 | * notice, this list of conditions and the following disclaimer. | ||
| 14 | * | ||
| 15 | * 2. Redistributions in binary form must reproduce the above copyright | ||
| 16 | * notice, this list of conditions and the following disclaimer in | ||
| 17 | * the documentation and/or other materials provided with the | ||
| 18 | * distribution. | ||
| 19 | * | ||
| 20 | * 3. All advertising materials mentioning features or use of this | ||
| 21 | * software must display the following acknowledgment: | ||
| 22 | * "This product includes software developed by the OpenSSL Project | ||
| 23 | * for use in the OpenSSL Toolkit. (http://www.openssl.org/)" | ||
| 24 | * | ||
| 25 | * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to | ||
| 26 | * endorse or promote products derived from this software without | ||
| 27 | * prior written permission. For written permission, please contact | ||
| 28 | * openssl-core@openssl.org. | ||
| 29 | * | ||
| 30 | * 5. Products derived from this software may not be called "OpenSSL" | ||
| 31 | * nor may "OpenSSL" appear in their names without prior written | ||
| 32 | * permission of the OpenSSL Project. | ||
| 33 | * | ||
| 34 | * 6. Redistributions of any form whatsoever must retain the following | ||
| 35 | * acknowledgment: | ||
| 36 | * "This product includes software developed by the OpenSSL Project | ||
| 37 | * for use in the OpenSSL Toolkit (http://www.openssl.org/)" | ||
| 38 | * | ||
| 39 | * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY | ||
| 40 | * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
| 41 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | ||
| 42 | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR | ||
| 43 | * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
| 44 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | ||
| 45 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
| 46 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
| 47 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | ||
| 48 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
| 49 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | ||
| 50 | * OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| 51 | * ==================================================================== | ||
| 52 | * | ||
| 53 | * This product includes cryptographic software written by Eric Young | ||
| 54 | * (eay@cryptsoft.com). This product includes software written by Tim | ||
| 55 | * Hudson (tjh@cryptsoft.com). | ||
| 56 | * | ||
| 57 | */ | ||
| 58 | |||
| 59 | #include <errno.h> | ||
| 60 | #include <e_os.h> | ||
| 61 | |||
| 62 | /* The routines really come from the Levitte Programming, so to make | ||
| 63 | life simple, let's just use the raw files and hack the symbols to | ||
| 64 | fit our namespace. */ | ||
| 65 | #define LP_DIR_CTX OPENSSL_DIR_CTX | ||
| 66 | #define LP_dir_context_st OPENSSL_dir_context_st | ||
| 67 | #define LP_find_file OPENSSL_DIR_read | ||
| 68 | #define LP_find_file_end OPENSSL_DIR_end | ||
| 69 | |||
| 70 | #include "o_dir.h" | ||
| 71 | |||
| 72 | #define LPDIR_H | ||
| 73 | #if defined OPENSSL_SYS_UNIX || defined DJGPP | ||
| 74 | #include "LPdir_unix.c" | ||
| 75 | #elif defined OPENSSL_SYS_VMS | ||
| 76 | #include "LPdir_vms.c" | ||
| 77 | #elif defined OPENSSL_SYS_WIN32 | ||
| 78 | #include "LPdir_win32.c" | ||
| 79 | #elif defined OPENSSL_SYS_WINCE | ||
| 80 | #include "LPdir_wince.c" | ||
| 81 | #else | ||
| 82 | #include "LPdir_nyi.c" | ||
| 83 | #endif | ||
diff --git a/src/lib/libcrypto/o_dir.h b/src/lib/libcrypto/o_dir.h deleted file mode 100644 index 4b725c0312..0000000000 --- a/src/lib/libcrypto/o_dir.h +++ /dev/null | |||
| @@ -1,53 +0,0 @@ | |||
| 1 | /* crypto/o_dir.h -*- mode:C; c-file-style: "eay" -*- */ | ||
| 2 | /* Copied from Richard Levitte's (richard@levitte.org) LP library. All | ||
| 3 | * symbol names have been changed, with permission from the author. | ||
| 4 | */ | ||
| 5 | |||
| 6 | /* $LP: LPlib/source/LPdir.h,v 1.1 2004/06/14 08:56:04 _cvs_levitte Exp $ */ | ||
| 7 | /* | ||
| 8 | * Copyright (c) 2004, Richard Levitte <richard@levitte.org> | ||
| 9 | * All rights reserved. | ||
| 10 | * | ||
| 11 | * Redistribution and use in source and binary forms, with or without | ||
| 12 | * modification, are permitted provided that the following conditions | ||
| 13 | * are met: | ||
| 14 | * 1. Redistributions of source code must retain the above copyright | ||
| 15 | * notice, this list of conditions and the following disclaimer. | ||
| 16 | * 2. Redistributions in binary form must reproduce the above copyright | ||
| 17 | * notice, this list of conditions and the following disclaimer in the | ||
| 18 | * documentation and/or other materials provided with the distribution. | ||
| 19 | * | ||
| 20 | * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND | ||
| 21 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
| 22 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
| 23 | * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE | ||
| 24 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
| 25 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | ||
| 26 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
| 27 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
| 28 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||
| 29 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||
| 30 | * SUCH DAMAGE. | ||
| 31 | */ | ||
| 32 | |||
| 33 | |||
| 34 | #ifndef O_DIR_H | ||
| 35 | #define O_DIR_H | ||
| 36 | |||
| 37 | #ifdef __cplusplus | ||
| 38 | extern "C" { | ||
| 39 | #endif | ||
| 40 | |||
| 41 | typedef struct OPENSSL_dir_context_st OPENSSL_DIR_CTX; | ||
| 42 | |||
| 43 | /* returns NULL on error or end-of-directory. | ||
| 44 | If it is end-of-directory, errno will be zero */ | ||
| 45 | const char *OPENSSL_DIR_read(OPENSSL_DIR_CTX **ctx, const char *directory); | ||
| 46 | /* returns 1 on success, 0 on error */ | ||
| 47 | int OPENSSL_DIR_end(OPENSSL_DIR_CTX **ctx); | ||
| 48 | |||
| 49 | #ifdef __cplusplus | ||
| 50 | } | ||
| 51 | #endif | ||
| 52 | |||
| 53 | #endif /* LPDIR_H */ | ||
diff --git a/src/lib/libcrypto/o_dir_test.c b/src/lib/libcrypto/o_dir_test.c deleted file mode 100644 index 3d75ecb005..0000000000 --- a/src/lib/libcrypto/o_dir_test.c +++ /dev/null | |||
| @@ -1,70 +0,0 @@ | |||
| 1 | /* crypto/o_dir.h -*- mode:C; c-file-style: "eay" -*- */ | ||
| 2 | /* Copied from Richard Levitte's (richard@levitte.org) LP library. All | ||
| 3 | * symbol names have been changed, with permission from the author. | ||
| 4 | */ | ||
| 5 | |||
| 6 | /* $LP: LPlib/test/test_dir.c,v 1.1 2004/06/16 22:59:47 _cvs_levitte Exp $ */ | ||
| 7 | /* | ||
| 8 | * Copyright (c) 2004, Richard Levitte <richard@levitte.org> | ||
| 9 | * All rights reserved. | ||
| 10 | * | ||
| 11 | * Redistribution and use in source and binary forms, with or without | ||
| 12 | * modification, are permitted provided that the following conditions | ||
| 13 | * are met: | ||
| 14 | * 1. Redistributions of source code must retain the above copyright | ||
| 15 | * notice, this list of conditions and the following disclaimer. | ||
| 16 | * 2. Redistributions in binary form must reproduce the above copyright | ||
| 17 | * notice, this list of conditions and the following disclaimer in the | ||
| 18 | * documentation and/or other materials provided with the distribution. | ||
| 19 | * | ||
| 20 | * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND | ||
| 21 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
| 22 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
| 23 | * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE | ||
| 24 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
| 25 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | ||
| 26 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
| 27 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
| 28 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||
| 29 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||
| 30 | * SUCH DAMAGE. | ||
| 31 | */ | ||
| 32 | |||
| 33 | #include <stddef.h> | ||
| 34 | #include <stdlib.h> | ||
| 35 | #include <stdio.h> | ||
| 36 | #include <errno.h> | ||
| 37 | #include "e_os2.h" | ||
| 38 | #include "o_dir.h" | ||
| 39 | |||
| 40 | #if defined OPENSSL_SYS_UNIX || defined OPENSSL_SYS_WIN32 || defined OPENSSL_SYS_WINCE | ||
| 41 | #define CURRDIR "." | ||
| 42 | #elif defined OPENSSL_SYS_VMS | ||
| 43 | #define CURRDIR "SYS$DISK:[]" | ||
| 44 | #else | ||
| 45 | #error "No supported platform defined!" | ||
| 46 | #endif | ||
| 47 | |||
| 48 | int main() | ||
| 49 | { | ||
| 50 | OPENSSL_DIR_CTX *ctx = NULL; | ||
| 51 | const char *result; | ||
| 52 | |||
| 53 | while((result = OPENSSL_DIR_read(&ctx, CURRDIR)) != NULL) | ||
| 54 | { | ||
| 55 | printf("%s\n", result); | ||
| 56 | } | ||
| 57 | |||
| 58 | if (errno) | ||
| 59 | { | ||
| 60 | perror("test_dir"); | ||
| 61 | exit(1); | ||
| 62 | } | ||
| 63 | |||
| 64 | if (!OPENSSL_DIR_end(&ctx)) | ||
| 65 | { | ||
| 66 | perror("test_dir"); | ||
| 67 | exit(2); | ||
| 68 | } | ||
| 69 | exit(0); | ||
| 70 | } | ||
diff --git a/src/lib/libcrypto/o_fips.c b/src/lib/libcrypto/o_fips.c deleted file mode 100644 index f6d1b21855..0000000000 --- a/src/lib/libcrypto/o_fips.c +++ /dev/null | |||
| @@ -1,96 +0,0 @@ | |||
| 1 | /* Written by Stephen henson (steve@openssl.org) for the OpenSSL | ||
| 2 | * project 2011. | ||
| 3 | */ | ||
| 4 | /* ==================================================================== | ||
| 5 | * Copyright (c) 2011 The OpenSSL Project. All rights reserved. | ||
| 6 | * | ||
| 7 | * Redistribution and use in source and binary forms, with or without | ||
| 8 | * modification, are permitted provided that the following conditions | ||
| 9 | * are met: | ||
| 10 | * | ||
| 11 | * 1. Redistributions of source code must retain the above copyright | ||
| 12 | * notice, this list of conditions and the following disclaimer. | ||
| 13 | * | ||
| 14 | * 2. Redistributions in binary form must reproduce the above copyright | ||
| 15 | * notice, this list of conditions and the following disclaimer in | ||
| 16 | * the documentation and/or other materials provided with the | ||
| 17 | * distribution. | ||
| 18 | * | ||
| 19 | * 3. All advertising materials mentioning features or use of this | ||
| 20 | * software must display the following acknowledgment: | ||
| 21 | * "This product includes software developed by the OpenSSL Project | ||
| 22 | * for use in the OpenSSL Toolkit. (http://www.openssl.org/)" | ||
| 23 | * | ||
| 24 | * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to | ||
| 25 | * endorse or promote products derived from this software without | ||
| 26 | * prior written permission. For written permission, please contact | ||
| 27 | * openssl-core@openssl.org. | ||
| 28 | * | ||
| 29 | * 5. Products derived from this software may not be called "OpenSSL" | ||
| 30 | * nor may "OpenSSL" appear in their names without prior written | ||
| 31 | * permission of the OpenSSL Project. | ||
| 32 | * | ||
| 33 | * 6. Redistributions of any form whatsoever must retain the following | ||
| 34 | * acknowledgment: | ||
| 35 | * "This product includes software developed by the OpenSSL Project | ||
| 36 | * for use in the OpenSSL Toolkit (http://www.openssl.org/)" | ||
| 37 | * | ||
| 38 | * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY | ||
| 39 | * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
| 40 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | ||
| 41 | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR | ||
| 42 | * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
| 43 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | ||
| 44 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
| 45 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
| 46 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | ||
| 47 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
| 48 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | ||
| 49 | * OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| 50 | * ==================================================================== | ||
| 51 | * | ||
| 52 | * This product includes cryptographic software written by Eric Young | ||
| 53 | * (eay@cryptsoft.com). This product includes software written by Tim | ||
| 54 | * Hudson (tjh@cryptsoft.com). | ||
| 55 | * | ||
| 56 | */ | ||
| 57 | |||
| 58 | #include "cryptlib.h" | ||
| 59 | #ifdef OPENSSL_FIPS | ||
| 60 | #include <openssl/fips.h> | ||
| 61 | #include <openssl/fips_rand.h> | ||
| 62 | #include <openssl/rand.h> | ||
| 63 | #endif | ||
| 64 | |||
| 65 | int FIPS_mode(void) | ||
| 66 | { | ||
| 67 | OPENSSL_init(); | ||
| 68 | #ifdef OPENSSL_FIPS | ||
| 69 | return FIPS_module_mode(); | ||
| 70 | #else | ||
| 71 | return 0; | ||
| 72 | #endif | ||
| 73 | } | ||
| 74 | |||
| 75 | int FIPS_mode_set(int r) | ||
| 76 | { | ||
| 77 | OPENSSL_init(); | ||
| 78 | #ifdef OPENSSL_FIPS | ||
| 79 | #ifndef FIPS_AUTH_USER_PASS | ||
| 80 | #define FIPS_AUTH_USER_PASS "Default FIPS Crypto User Password" | ||
| 81 | #endif | ||
| 82 | if (!FIPS_module_mode_set(r, FIPS_AUTH_USER_PASS)) | ||
| 83 | return 0; | ||
| 84 | if (r) | ||
| 85 | RAND_set_rand_method(FIPS_rand_get_method()); | ||
| 86 | else | ||
| 87 | RAND_set_rand_method(NULL); | ||
| 88 | return 1; | ||
| 89 | #else | ||
| 90 | if (r == 0) | ||
| 91 | return 1; | ||
| 92 | CRYPTOerr(CRYPTO_F_FIPS_MODE_SET, CRYPTO_R_FIPS_MODE_NOT_SUPPORTED); | ||
| 93 | return 0; | ||
| 94 | #endif | ||
| 95 | } | ||
| 96 | |||
diff --git a/src/lib/libcrypto/objects/Makefile.ssl b/src/lib/libcrypto/objects/Makefile.ssl deleted file mode 100644 index 3e7a194cf9..0000000000 --- a/src/lib/libcrypto/objects/Makefile.ssl +++ /dev/null | |||
| @@ -1,123 +0,0 @@ | |||
| 1 | # | ||
| 2 | # SSLeay/crypto/objects/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= objects | ||
| 6 | TOP= ../.. | ||
| 7 | CC= cc | ||
| 8 | INCLUDES= -I.. -I$(TOP) -I../../include | ||
| 9 | CFLAG=-g | ||
| 10 | INSTALL_PREFIX= | ||
| 11 | OPENSSLDIR= /usr/local/ssl | ||
| 12 | INSTALLTOP=/usr/local/ssl | ||
| 13 | MAKE= make -f Makefile.ssl | ||
| 14 | MAKEDEPPROG= makedepend | ||
| 15 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
| 16 | MAKEFILE= Makefile.ssl | ||
| 17 | AR= ar r | ||
| 18 | PERL= perl | ||
| 19 | |||
| 20 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 21 | |||
| 22 | GENERAL=Makefile README | ||
| 23 | TEST= | ||
| 24 | APPS= | ||
| 25 | |||
| 26 | LIB=$(TOP)/libcrypto.a | ||
| 27 | LIBSRC= o_names.c obj_dat.c obj_lib.c obj_err.c | ||
| 28 | LIBOBJ= o_names.o obj_dat.o obj_lib.o obj_err.o | ||
| 29 | |||
| 30 | SRC= $(LIBSRC) | ||
| 31 | |||
| 32 | EXHEADER= objects.h obj_mac.h | ||
| 33 | HEADER= $(EXHEADER) obj_dat.h | ||
| 34 | |||
| 35 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
| 36 | |||
| 37 | top: | ||
| 38 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
| 39 | |||
| 40 | all: obj_dat.h lib | ||
| 41 | |||
| 42 | lib: $(LIBOBJ) | ||
| 43 | $(AR) $(LIB) $(LIBOBJ) | ||
| 44 | $(RANLIB) $(LIB) || echo Never mind. | ||
| 45 | @touch lib | ||
| 46 | |||
| 47 | obj_dat.h: obj_dat.pl obj_mac.h | ||
| 48 | $(PERL) obj_dat.pl obj_mac.h obj_dat.h | ||
| 49 | |||
| 50 | # objects.pl both reads and writes obj_mac.num | ||
| 51 | obj_mac.h: objects.pl objects.txt obj_mac.num | ||
| 52 | $(PERL) objects.pl objects.txt obj_mac.num obj_mac.h | ||
| 53 | |||
| 54 | files: | ||
| 55 | $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
| 56 | |||
| 57 | links: | ||
| 58 | @sh $(TOP)/util/point.sh Makefile.ssl Makefile | ||
| 59 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | ||
| 60 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | ||
| 61 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | ||
| 62 | |||
| 63 | install: | ||
| 64 | @for i in $(EXHEADER) ; \ | ||
| 65 | do \ | ||
| 66 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 67 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
| 68 | done; | ||
| 69 | |||
| 70 | tags: | ||
| 71 | ctags $(SRC) | ||
| 72 | |||
| 73 | tests: | ||
| 74 | |||
| 75 | lint: | ||
| 76 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
| 77 | |||
| 78 | depend: | ||
| 79 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) | ||
| 80 | |||
| 81 | dclean: | ||
| 82 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 83 | mv -f Makefile.new $(MAKEFILE) | ||
| 84 | |||
| 85 | clean: | ||
| 86 | rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
| 87 | |||
| 88 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 89 | |||
| 90 | o_names.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 91 | o_names.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h | ||
| 92 | o_names.o: ../../include/openssl/e_os2.h ../../include/openssl/lhash.h | ||
| 93 | o_names.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 94 | o_names.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 95 | o_names.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h | ||
| 96 | o_names.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 97 | o_names.o: o_names.c | ||
| 98 | obj_dat.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 99 | obj_dat.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 100 | obj_dat.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 101 | obj_dat.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 102 | obj_dat.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h | ||
| 103 | obj_dat.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 104 | obj_dat.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 105 | obj_dat.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 106 | obj_dat.o: ../../include/openssl/symhacks.h ../cryptlib.h obj_dat.c obj_dat.h | ||
| 107 | obj_err.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 108 | obj_err.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h | ||
| 109 | obj_err.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 110 | obj_err.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h | ||
| 111 | obj_err.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 112 | obj_err.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 113 | obj_err.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 114 | obj_err.o: ../../include/openssl/symhacks.h obj_err.c | ||
| 115 | obj_lib.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 116 | obj_lib.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 117 | obj_lib.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 118 | obj_lib.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 119 | obj_lib.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h | ||
| 120 | obj_lib.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 121 | obj_lib.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 122 | obj_lib.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 123 | obj_lib.o: ../../include/openssl/symhacks.h ../cryptlib.h obj_lib.c | ||
diff --git a/src/lib/libcrypto/ocsp/Makefile.ssl b/src/lib/libcrypto/ocsp/Makefile.ssl deleted file mode 100644 index 02477be538..0000000000 --- a/src/lib/libcrypto/ocsp/Makefile.ssl +++ /dev/null | |||
| @@ -1,293 +0,0 @@ | |||
| 1 | # | ||
| 2 | # OpenSSL/ocsp/Makefile.ssl | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= ocsp | ||
| 6 | TOP= ../.. | ||
| 7 | CC= cc | ||
| 8 | INCLUDES= -I.. -I$(TOP) -I../../include | ||
| 9 | CFLAG=-g | ||
| 10 | INSTALL_PREFIX= | ||
| 11 | OPENSSLDIR= /usr/local/ssl | ||
| 12 | INSTALLTOP=/usr/local/ssl | ||
| 13 | MAKE= make -f Makefile.ssl | ||
| 14 | MAKEDEPPROG= makedepend | ||
| 15 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
| 16 | MAKEFILE= Makefile.ssl | ||
| 17 | AR= ar r | ||
| 18 | |||
| 19 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 20 | |||
| 21 | GENERAL=Makefile README | ||
| 22 | TEST= | ||
| 23 | APPS= | ||
| 24 | |||
| 25 | LIB=$(TOP)/libcrypto.a | ||
| 26 | LIBSRC= ocsp_asn.c ocsp_ext.c ocsp_ht.c ocsp_lib.c ocsp_cl.c \ | ||
| 27 | ocsp_srv.c ocsp_prn.c ocsp_vfy.c ocsp_err.c | ||
| 28 | |||
| 29 | LIBOBJ= ocsp_asn.o ocsp_ext.o ocsp_ht.o ocsp_lib.o ocsp_cl.o \ | ||
| 30 | ocsp_srv.o ocsp_prn.o ocsp_vfy.o ocsp_err.o | ||
| 31 | |||
| 32 | SRC= $(LIBSRC) | ||
| 33 | |||
| 34 | EXHEADER= ocsp.h | ||
| 35 | HEADER= $(EXHEADER) | ||
| 36 | |||
| 37 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
| 38 | |||
| 39 | top: | ||
| 40 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
| 41 | |||
| 42 | all: lib | ||
| 43 | |||
| 44 | lib: $(LIBOBJ) | ||
| 45 | $(AR) $(LIB) $(LIBOBJ) | ||
| 46 | $(RANLIB) $(LIB) || echo Never mind. | ||
| 47 | @touch lib | ||
| 48 | |||
| 49 | files: | ||
| 50 | $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
| 51 | |||
| 52 | links: | ||
| 53 | @sh $(TOP)/util/point.sh Makefile.ssl Makefile ; | ||
| 54 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | ||
| 55 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | ||
| 56 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | ||
| 57 | |||
| 58 | install: | ||
| 59 | @for i in $(EXHEADER) ; \ | ||
| 60 | do \ | ||
| 61 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 62 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
| 63 | done; | ||
| 64 | |||
| 65 | tags: | ||
| 66 | ctags $(SRC) | ||
| 67 | |||
| 68 | tests: | ||
| 69 | |||
| 70 | lint: | ||
| 71 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
| 72 | |||
| 73 | depend: | ||
| 74 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(LIBSRC) | ||
| 75 | |||
| 76 | dclean: | ||
| 77 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 78 | mv -f Makefile.new $(MAKEFILE) | ||
| 79 | |||
| 80 | clean: | ||
| 81 | rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
| 82 | |||
| 83 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 84 | |||
| 85 | ocsp_asn.o: ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 86 | ocsp_asn.o: ../../include/openssl/asn1t.h ../../include/openssl/bio.h | ||
| 87 | ocsp_asn.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 88 | ocsp_asn.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 89 | ocsp_asn.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h | ||
| 90 | ocsp_asn.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 91 | ocsp_asn.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 92 | ocsp_asn.o: ../../include/openssl/e_os2.h ../../include/openssl/evp.h | ||
| 93 | ocsp_asn.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 94 | ocsp_asn.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 95 | ocsp_asn.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 96 | ocsp_asn.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 97 | ocsp_asn.o: ../../include/openssl/ocsp.h ../../include/openssl/opensslconf.h | ||
| 98 | ocsp_asn.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 99 | ocsp_asn.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 100 | ocsp_asn.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 101 | ocsp_asn.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 102 | ocsp_asn.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 103 | ocsp_asn.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 104 | ocsp_asn.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 105 | ocsp_asn.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 106 | ocsp_asn.o: ../../include/openssl/x509v3.h ocsp_asn.c | ||
| 107 | ocsp_cl.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 108 | ocsp_cl.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 109 | ocsp_cl.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 110 | ocsp_cl.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 111 | ocsp_cl.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h | ||
| 112 | ocsp_cl.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 113 | ocsp_cl.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 114 | ocsp_cl.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 115 | ocsp_cl.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 116 | ocsp_cl.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 117 | ocsp_cl.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 118 | ocsp_cl.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 119 | ocsp_cl.o: ../../include/openssl/objects.h ../../include/openssl/ocsp.h | ||
| 120 | ocsp_cl.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 121 | ocsp_cl.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pem.h | ||
| 122 | ocsp_cl.o: ../../include/openssl/pem2.h ../../include/openssl/pkcs7.h | ||
| 123 | ocsp_cl.o: ../../include/openssl/rand.h ../../include/openssl/rc2.h | ||
| 124 | ocsp_cl.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 125 | ocsp_cl.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 126 | ocsp_cl.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 127 | ocsp_cl.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 128 | ocsp_cl.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 129 | ocsp_cl.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 130 | ocsp_cl.o: ../../include/openssl/x509v3.h ../cryptlib.h ocsp_cl.c | ||
| 131 | ocsp_err.o: ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 132 | ocsp_err.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 133 | ocsp_err.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 134 | ocsp_err.o: ../../include/openssl/cast.h ../../include/openssl/conf.h | ||
| 135 | ocsp_err.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 136 | ocsp_err.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 137 | ocsp_err.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 138 | ocsp_err.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 139 | ocsp_err.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 140 | ocsp_err.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 141 | ocsp_err.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 142 | ocsp_err.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 143 | ocsp_err.o: ../../include/openssl/ocsp.h ../../include/openssl/opensslconf.h | ||
| 144 | ocsp_err.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 145 | ocsp_err.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 146 | ocsp_err.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 147 | ocsp_err.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 148 | ocsp_err.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 149 | ocsp_err.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 150 | ocsp_err.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 151 | ocsp_err.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 152 | ocsp_err.o: ../../include/openssl/x509v3.h ocsp_err.c | ||
| 153 | ocsp_ext.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 154 | ocsp_ext.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 155 | ocsp_ext.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 156 | ocsp_ext.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 157 | ocsp_ext.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h | ||
| 158 | ocsp_ext.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 159 | ocsp_ext.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 160 | ocsp_ext.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 161 | ocsp_ext.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 162 | ocsp_ext.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 163 | ocsp_ext.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 164 | ocsp_ext.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 165 | ocsp_ext.o: ../../include/openssl/objects.h ../../include/openssl/ocsp.h | ||
| 166 | ocsp_ext.o: ../../include/openssl/opensslconf.h | ||
| 167 | ocsp_ext.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 168 | ocsp_ext.o: ../../include/openssl/pkcs7.h ../../include/openssl/rand.h | ||
| 169 | ocsp_ext.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 170 | ocsp_ext.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 171 | ocsp_ext.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 172 | ocsp_ext.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 173 | ocsp_ext.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 174 | ocsp_ext.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 175 | ocsp_ext.o: ../../include/openssl/x509_vfy.h ../../include/openssl/x509v3.h | ||
| 176 | ocsp_ext.o: ../cryptlib.h ocsp_ext.c | ||
| 177 | ocsp_ht.o: ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 178 | ocsp_ht.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 179 | ocsp_ht.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 180 | ocsp_ht.o: ../../include/openssl/cast.h ../../include/openssl/conf.h | ||
| 181 | ocsp_ht.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 182 | ocsp_ht.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 183 | ocsp_ht.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 184 | ocsp_ht.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 185 | ocsp_ht.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 186 | ocsp_ht.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 187 | ocsp_ht.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 188 | ocsp_ht.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 189 | ocsp_ht.o: ../../include/openssl/ocsp.h ../../include/openssl/opensslconf.h | ||
| 190 | ocsp_ht.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 191 | ocsp_ht.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 192 | ocsp_ht.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 193 | ocsp_ht.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 194 | ocsp_ht.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 195 | ocsp_ht.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 196 | ocsp_ht.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 197 | ocsp_ht.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 198 | ocsp_ht.o: ../../include/openssl/x509v3.h ocsp_ht.c | ||
| 199 | ocsp_lib.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 200 | ocsp_lib.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 201 | ocsp_lib.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 202 | ocsp_lib.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 203 | ocsp_lib.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h | ||
| 204 | ocsp_lib.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 205 | ocsp_lib.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 206 | ocsp_lib.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 207 | ocsp_lib.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 208 | ocsp_lib.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 209 | ocsp_lib.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 210 | ocsp_lib.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 211 | ocsp_lib.o: ../../include/openssl/objects.h ../../include/openssl/ocsp.h | ||
| 212 | ocsp_lib.o: ../../include/openssl/opensslconf.h | ||
| 213 | ocsp_lib.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 214 | ocsp_lib.o: ../../include/openssl/pem.h ../../include/openssl/pem2.h | ||
| 215 | ocsp_lib.o: ../../include/openssl/pkcs7.h ../../include/openssl/rand.h | ||
| 216 | ocsp_lib.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 217 | ocsp_lib.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 218 | ocsp_lib.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 219 | ocsp_lib.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 220 | ocsp_lib.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 221 | ocsp_lib.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 222 | ocsp_lib.o: ../../include/openssl/x509_vfy.h ../../include/openssl/x509v3.h | ||
| 223 | ocsp_lib.o: ../cryptlib.h ocsp_lib.c | ||
| 224 | ocsp_prn.o: ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 225 | ocsp_prn.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 226 | ocsp_prn.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 227 | ocsp_prn.o: ../../include/openssl/cast.h ../../include/openssl/conf.h | ||
| 228 | ocsp_prn.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 229 | ocsp_prn.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 230 | ocsp_prn.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 231 | ocsp_prn.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 232 | ocsp_prn.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 233 | ocsp_prn.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 234 | ocsp_prn.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 235 | ocsp_prn.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 236 | ocsp_prn.o: ../../include/openssl/ocsp.h ../../include/openssl/opensslconf.h | ||
| 237 | ocsp_prn.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 238 | ocsp_prn.o: ../../include/openssl/pem.h ../../include/openssl/pem2.h | ||
| 239 | ocsp_prn.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 240 | ocsp_prn.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 241 | ocsp_prn.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 242 | ocsp_prn.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 243 | ocsp_prn.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 244 | ocsp_prn.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 245 | ocsp_prn.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 246 | ocsp_prn.o: ../../include/openssl/x509v3.h ocsp_prn.c | ||
| 247 | ocsp_srv.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 248 | ocsp_srv.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 249 | ocsp_srv.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 250 | ocsp_srv.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 251 | ocsp_srv.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h | ||
| 252 | ocsp_srv.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 253 | ocsp_srv.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 254 | ocsp_srv.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 255 | ocsp_srv.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 256 | ocsp_srv.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 257 | ocsp_srv.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 258 | ocsp_srv.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 259 | ocsp_srv.o: ../../include/openssl/objects.h ../../include/openssl/ocsp.h | ||
| 260 | ocsp_srv.o: ../../include/openssl/opensslconf.h | ||
| 261 | ocsp_srv.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 262 | ocsp_srv.o: ../../include/openssl/pem.h ../../include/openssl/pem2.h | ||
| 263 | ocsp_srv.o: ../../include/openssl/pkcs7.h ../../include/openssl/rand.h | ||
| 264 | ocsp_srv.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 265 | ocsp_srv.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 266 | ocsp_srv.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 267 | ocsp_srv.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 268 | ocsp_srv.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 269 | ocsp_srv.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 270 | ocsp_srv.o: ../../include/openssl/x509_vfy.h ../../include/openssl/x509v3.h | ||
| 271 | ocsp_srv.o: ../cryptlib.h ocsp_srv.c | ||
| 272 | ocsp_vfy.o: ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 273 | ocsp_vfy.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 274 | ocsp_vfy.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 275 | ocsp_vfy.o: ../../include/openssl/cast.h ../../include/openssl/conf.h | ||
| 276 | ocsp_vfy.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 277 | ocsp_vfy.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 278 | ocsp_vfy.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 279 | ocsp_vfy.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 280 | ocsp_vfy.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 281 | ocsp_vfy.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 282 | ocsp_vfy.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 283 | ocsp_vfy.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 284 | ocsp_vfy.o: ../../include/openssl/ocsp.h ../../include/openssl/opensslconf.h | ||
| 285 | ocsp_vfy.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 286 | ocsp_vfy.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 287 | ocsp_vfy.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 288 | ocsp_vfy.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 289 | ocsp_vfy.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 290 | ocsp_vfy.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 291 | ocsp_vfy.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 292 | ocsp_vfy.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 293 | ocsp_vfy.o: ../../include/openssl/x509v3.h ocsp_vfy.c | ||
diff --git a/src/lib/libcrypto/pem/Makefile.ssl b/src/lib/libcrypto/pem/Makefile.ssl deleted file mode 100644 index d3043eb401..0000000000 --- a/src/lib/libcrypto/pem/Makefile.ssl +++ /dev/null | |||
| @@ -1,336 +0,0 @@ | |||
| 1 | # | ||
| 2 | # SSLeay/crypto/pem/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= pem | ||
| 6 | TOP= ../.. | ||
| 7 | CC= cc | ||
| 8 | INCLUDES= -I.. -I$(TOP) -I../../include | ||
| 9 | CFLAG=-g | ||
| 10 | INSTALL_PREFIX= | ||
| 11 | OPENSSLDIR= /usr/local/ssl | ||
| 12 | INSTALLTOP=/usr/local/ssl | ||
| 13 | MAKE= make -f Makefile.ssl | ||
| 14 | MAKEDEPPROG= makedepend | ||
| 15 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
| 16 | MAKEFILE= Makefile.ssl | ||
| 17 | AR= ar r | ||
| 18 | |||
| 19 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 20 | |||
| 21 | GENERAL=Makefile | ||
| 22 | TEST= | ||
| 23 | APPS= | ||
| 24 | |||
| 25 | LIB=$(TOP)/libcrypto.a | ||
| 26 | LIBSRC= pem_sign.c pem_seal.c pem_info.c pem_lib.c pem_all.c pem_err.c \ | ||
| 27 | pem_x509.c pem_xaux.c pem_oth.c pem_pk8.c pem_pkey.c | ||
| 28 | |||
| 29 | LIBOBJ= pem_sign.o pem_seal.o pem_info.o pem_lib.o pem_all.o pem_err.o \ | ||
| 30 | pem_x509.o pem_xaux.o pem_oth.o pem_pk8.o pem_pkey.o | ||
| 31 | |||
| 32 | SRC= $(LIBSRC) | ||
| 33 | |||
| 34 | EXHEADER= pem.h pem2.h | ||
| 35 | HEADER= $(EXHEADER) | ||
| 36 | |||
| 37 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
| 38 | |||
| 39 | top: | ||
| 40 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
| 41 | |||
| 42 | all: lib | ||
| 43 | |||
| 44 | lib: $(LIBOBJ) | ||
| 45 | $(AR) $(LIB) $(LIBOBJ) | ||
| 46 | $(RANLIB) $(LIB) || echo Never mind. | ||
| 47 | @touch lib | ||
| 48 | |||
| 49 | files: | ||
| 50 | $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
| 51 | |||
| 52 | links: $(EXHEADER) | ||
| 53 | @sh $(TOP)/util/point.sh Makefile.ssl Makefile | ||
| 54 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | ||
| 55 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | ||
| 56 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | ||
| 57 | |||
| 58 | install: | ||
| 59 | @for i in $(EXHEADER) ; \ | ||
| 60 | do \ | ||
| 61 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 62 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
| 63 | done; | ||
| 64 | |||
| 65 | tags: | ||
| 66 | ctags $(SRC) | ||
| 67 | |||
| 68 | tests: | ||
| 69 | |||
| 70 | lint: | ||
| 71 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
| 72 | |||
| 73 | depend: | ||
| 74 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(LIBSRC) | ||
| 75 | |||
| 76 | dclean: | ||
| 77 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 78 | mv -f Makefile.new $(MAKEFILE) | ||
| 79 | |||
| 80 | clean: | ||
| 81 | rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
| 82 | |||
| 83 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 84 | |||
| 85 | pem_all.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 86 | pem_all.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 87 | pem_all.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 88 | pem_all.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 89 | pem_all.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 90 | pem_all.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 91 | pem_all.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 92 | pem_all.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 93 | pem_all.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 94 | pem_all.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 95 | pem_all.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 96 | pem_all.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 97 | pem_all.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 98 | pem_all.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pem.h | ||
| 99 | pem_all.o: ../../include/openssl/pem2.h ../../include/openssl/pkcs7.h | ||
| 100 | pem_all.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 101 | pem_all.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 102 | pem_all.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 103 | pem_all.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 104 | pem_all.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 105 | pem_all.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 106 | pem_all.o: ../../include/openssl/x509_vfy.h ../cryptlib.h pem_all.c | ||
| 107 | pem_err.o: ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 108 | pem_err.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 109 | pem_err.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 110 | pem_err.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 111 | pem_err.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 112 | pem_err.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 113 | pem_err.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 114 | pem_err.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 115 | pem_err.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 116 | pem_err.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 117 | pem_err.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 118 | pem_err.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 119 | pem_err.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 120 | pem_err.o: ../../include/openssl/pem.h ../../include/openssl/pem2.h | ||
| 121 | pem_err.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 122 | pem_err.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 123 | pem_err.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 124 | pem_err.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 125 | pem_err.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 126 | pem_err.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 127 | pem_err.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 128 | pem_err.o: pem_err.c | ||
| 129 | pem_info.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 130 | pem_info.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 131 | pem_info.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 132 | pem_info.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 133 | pem_info.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 134 | pem_info.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 135 | pem_info.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 136 | pem_info.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 137 | pem_info.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 138 | pem_info.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 139 | pem_info.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 140 | pem_info.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 141 | pem_info.o: ../../include/openssl/opensslconf.h | ||
| 142 | pem_info.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 143 | pem_info.o: ../../include/openssl/pem.h ../../include/openssl/pem2.h | ||
| 144 | pem_info.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 145 | pem_info.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 146 | pem_info.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 147 | pem_info.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 148 | pem_info.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 149 | pem_info.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 150 | pem_info.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 151 | pem_info.o: ../cryptlib.h pem_info.c | ||
| 152 | pem_lib.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 153 | pem_lib.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 154 | pem_lib.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 155 | pem_lib.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 156 | pem_lib.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 157 | pem_lib.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 158 | pem_lib.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 159 | pem_lib.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 160 | pem_lib.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 161 | pem_lib.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 162 | pem_lib.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 163 | pem_lib.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 164 | pem_lib.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 165 | pem_lib.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pem.h | ||
| 166 | pem_lib.o: ../../include/openssl/pem2.h ../../include/openssl/pkcs12.h | ||
| 167 | pem_lib.o: ../../include/openssl/pkcs7.h ../../include/openssl/rand.h | ||
| 168 | pem_lib.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 169 | pem_lib.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 170 | pem_lib.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 171 | pem_lib.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 172 | pem_lib.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 173 | pem_lib.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 174 | pem_lib.o: ../../include/openssl/x509_vfy.h ../cryptlib.h pem_lib.c | ||
| 175 | pem_oth.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 176 | pem_oth.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 177 | pem_oth.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 178 | pem_oth.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 179 | pem_oth.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 180 | pem_oth.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 181 | pem_oth.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 182 | pem_oth.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 183 | pem_oth.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 184 | pem_oth.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 185 | pem_oth.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 186 | pem_oth.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 187 | pem_oth.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 188 | pem_oth.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pem.h | ||
| 189 | pem_oth.o: ../../include/openssl/pem2.h ../../include/openssl/pkcs7.h | ||
| 190 | pem_oth.o: ../../include/openssl/rand.h ../../include/openssl/rc2.h | ||
| 191 | pem_oth.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 192 | pem_oth.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 193 | pem_oth.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 194 | pem_oth.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 195 | pem_oth.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 196 | pem_oth.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 197 | pem_oth.o: ../cryptlib.h pem_oth.c | ||
| 198 | pem_pk8.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 199 | pem_pk8.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 200 | pem_pk8.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 201 | pem_pk8.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 202 | pem_pk8.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 203 | pem_pk8.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 204 | pem_pk8.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 205 | pem_pk8.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 206 | pem_pk8.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 207 | pem_pk8.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 208 | pem_pk8.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 209 | pem_pk8.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 210 | pem_pk8.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 211 | pem_pk8.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pem.h | ||
| 212 | pem_pk8.o: ../../include/openssl/pem2.h ../../include/openssl/pkcs12.h | ||
| 213 | pem_pk8.o: ../../include/openssl/pkcs7.h ../../include/openssl/rand.h | ||
| 214 | pem_pk8.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 215 | pem_pk8.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 216 | pem_pk8.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 217 | pem_pk8.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 218 | pem_pk8.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 219 | pem_pk8.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 220 | pem_pk8.o: ../../include/openssl/x509_vfy.h ../cryptlib.h pem_pk8.c | ||
| 221 | pem_pkey.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 222 | pem_pkey.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 223 | pem_pkey.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 224 | pem_pkey.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 225 | pem_pkey.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 226 | pem_pkey.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 227 | pem_pkey.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 228 | pem_pkey.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 229 | pem_pkey.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 230 | pem_pkey.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 231 | pem_pkey.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 232 | pem_pkey.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 233 | pem_pkey.o: ../../include/openssl/opensslconf.h | ||
| 234 | pem_pkey.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 235 | pem_pkey.o: ../../include/openssl/pem.h ../../include/openssl/pem2.h | ||
| 236 | pem_pkey.o: ../../include/openssl/pkcs12.h ../../include/openssl/pkcs7.h | ||
| 237 | pem_pkey.o: ../../include/openssl/rand.h ../../include/openssl/rc2.h | ||
| 238 | pem_pkey.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 239 | pem_pkey.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 240 | pem_pkey.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 241 | pem_pkey.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 242 | pem_pkey.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 243 | pem_pkey.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 244 | pem_pkey.o: ../cryptlib.h pem_pkey.c | ||
| 245 | pem_seal.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 246 | pem_seal.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 247 | pem_seal.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 248 | pem_seal.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 249 | pem_seal.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 250 | pem_seal.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 251 | pem_seal.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 252 | pem_seal.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 253 | pem_seal.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 254 | pem_seal.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 255 | pem_seal.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 256 | pem_seal.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 257 | pem_seal.o: ../../include/openssl/opensslconf.h | ||
| 258 | pem_seal.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 259 | pem_seal.o: ../../include/openssl/pem.h ../../include/openssl/pem2.h | ||
| 260 | pem_seal.o: ../../include/openssl/pkcs7.h ../../include/openssl/rand.h | ||
| 261 | pem_seal.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 262 | pem_seal.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 263 | pem_seal.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 264 | pem_seal.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 265 | pem_seal.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 266 | pem_seal.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 267 | pem_seal.o: ../../include/openssl/x509_vfy.h ../cryptlib.h pem_seal.c | ||
| 268 | pem_sign.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 269 | pem_sign.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 270 | pem_sign.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 271 | pem_sign.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 272 | pem_sign.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 273 | pem_sign.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 274 | pem_sign.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 275 | pem_sign.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 276 | pem_sign.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 277 | pem_sign.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 278 | pem_sign.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 279 | pem_sign.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 280 | pem_sign.o: ../../include/openssl/opensslconf.h | ||
| 281 | pem_sign.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 282 | pem_sign.o: ../../include/openssl/pem.h ../../include/openssl/pem2.h | ||
| 283 | pem_sign.o: ../../include/openssl/pkcs7.h ../../include/openssl/rand.h | ||
| 284 | pem_sign.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 285 | pem_sign.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 286 | pem_sign.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 287 | pem_sign.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 288 | pem_sign.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 289 | pem_sign.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 290 | pem_sign.o: ../../include/openssl/x509_vfy.h ../cryptlib.h pem_sign.c | ||
| 291 | pem_x509.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 292 | pem_x509.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 293 | pem_x509.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 294 | pem_x509.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 295 | pem_x509.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 296 | pem_x509.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 297 | pem_x509.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 298 | pem_x509.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 299 | pem_x509.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 300 | pem_x509.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 301 | pem_x509.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 302 | pem_x509.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 303 | pem_x509.o: ../../include/openssl/opensslconf.h | ||
| 304 | pem_x509.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 305 | pem_x509.o: ../../include/openssl/pem.h ../../include/openssl/pem2.h | ||
| 306 | pem_x509.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 307 | pem_x509.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 308 | pem_x509.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 309 | pem_x509.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 310 | pem_x509.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 311 | pem_x509.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 312 | pem_x509.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 313 | pem_x509.o: ../cryptlib.h pem_x509.c | ||
| 314 | pem_xaux.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 315 | pem_xaux.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 316 | pem_xaux.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 317 | pem_xaux.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 318 | pem_xaux.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 319 | pem_xaux.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 320 | pem_xaux.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 321 | pem_xaux.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 322 | pem_xaux.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 323 | pem_xaux.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 324 | pem_xaux.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 325 | pem_xaux.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 326 | pem_xaux.o: ../../include/openssl/opensslconf.h | ||
| 327 | pem_xaux.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 328 | pem_xaux.o: ../../include/openssl/pem.h ../../include/openssl/pem2.h | ||
| 329 | pem_xaux.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 330 | pem_xaux.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 331 | pem_xaux.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 332 | pem_xaux.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 333 | pem_xaux.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 334 | pem_xaux.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 335 | pem_xaux.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 336 | pem_xaux.o: ../cryptlib.h pem_xaux.c | ||
diff --git a/src/lib/libcrypto/perlasm/x86masm.pl b/src/lib/libcrypto/perlasm/x86masm.pl deleted file mode 100644 index f937d07c87..0000000000 --- a/src/lib/libcrypto/perlasm/x86masm.pl +++ /dev/null | |||
| @@ -1,198 +0,0 @@ | |||
| 1 | #!/usr/bin/env perl | ||
| 2 | |||
| 3 | package x86masm; | ||
| 4 | |||
| 5 | *out=\@::out; | ||
| 6 | |||
| 7 | $::lbdecor="\$L"; # local label decoration | ||
| 8 | $nmdecor="_"; # external name decoration | ||
| 9 | |||
| 10 | $initseg=""; | ||
| 11 | $segment=""; | ||
| 12 | |||
| 13 | sub ::generic | ||
| 14 | { my ($opcode,@arg)=@_; | ||
| 15 | |||
| 16 | # fix hexadecimal constants | ||
| 17 | for (@arg) { s/(?<![\w\$\.])0x([0-9a-f]+)/0$1h/oi; } | ||
| 18 | |||
| 19 | if ($opcode =~ /lea/ && @arg[1] =~ s/.*PTR\s+(\(.*\))$/OFFSET $1/) # no [] | ||
| 20 | { $opcode="mov"; } | ||
| 21 | elsif ($opcode !~ /movq/) | ||
| 22 | { # fix xmm references | ||
| 23 | $arg[0] =~ s/\b[A-Z]+WORD\s+PTR/XMMWORD PTR/i if ($arg[1]=~/\bxmm[0-7]\b/i); | ||
| 24 | $arg[1] =~ s/\b[A-Z]+WORD\s+PTR/XMMWORD PTR/i if ($arg[0]=~/\bxmm[0-7]\b/i); | ||
| 25 | } | ||
| 26 | |||
| 27 | &::emit($opcode,@arg); | ||
| 28 | 1; | ||
| 29 | } | ||
| 30 | # | ||
| 31 | # opcodes not covered by ::generic above, mostly inconsistent namings... | ||
| 32 | # | ||
| 33 | sub ::call { &::emit("call",(&::islabel($_[0]) or "$nmdecor$_[0]")); } | ||
| 34 | sub ::call_ptr { &::emit("call",@_); } | ||
| 35 | sub ::jmp_ptr { &::emit("jmp",@_); } | ||
| 36 | sub ::lock { &::data_byte(0xf0); } | ||
| 37 | |||
| 38 | sub get_mem | ||
| 39 | { my($size,$addr,$reg1,$reg2,$idx)=@_; | ||
| 40 | my($post,$ret); | ||
| 41 | |||
| 42 | $ret .= "$size PTR " if ($size ne ""); | ||
| 43 | |||
| 44 | $addr =~ s/^\s+//; | ||
| 45 | # prepend global references with optional underscore | ||
| 46 | $addr =~ s/^([^\+\-0-9][^\+\-]*)/&::islabel($1) or "$nmdecor$1"/ige; | ||
| 47 | # put address arithmetic expression in parenthesis | ||
| 48 | $addr="($addr)" if ($addr =~ /^.+[\-\+].+$/); | ||
| 49 | |||
| 50 | if (($addr ne "") && ($addr ne 0)) | ||
| 51 | { if ($addr !~ /^-/) { $ret .= "$addr"; } | ||
| 52 | else { $post=$addr; } | ||
| 53 | } | ||
| 54 | $ret .= "["; | ||
| 55 | |||
| 56 | if ($reg2 ne "") | ||
| 57 | { $idx!=0 or $idx=1; | ||
| 58 | $ret .= "$reg2*$idx"; | ||
| 59 | $ret .= "+$reg1" if ($reg1 ne ""); | ||
| 60 | } | ||
| 61 | else | ||
| 62 | { $ret .= "$reg1"; } | ||
| 63 | |||
| 64 | $ret .= "$post]"; | ||
| 65 | $ret =~ s/\+\]/]/; # in case $addr was the only argument | ||
| 66 | $ret =~ s/\[\s*\]//; | ||
| 67 | |||
| 68 | $ret; | ||
| 69 | } | ||
| 70 | sub ::BP { &get_mem("BYTE",@_); } | ||
| 71 | sub ::WP { &get_mem("WORD",@_); } | ||
| 72 | sub ::DWP { &get_mem("DWORD",@_); } | ||
| 73 | sub ::QWP { &get_mem("QWORD",@_); } | ||
| 74 | sub ::BC { "@_"; } | ||
| 75 | sub ::DWC { "@_"; } | ||
| 76 | |||
| 77 | sub ::file | ||
| 78 | { my $tmp=<<___; | ||
| 79 | TITLE $_[0].asm | ||
| 80 | IF \@Version LT 800 | ||
| 81 | ECHO MASM version 8.00 or later is strongly recommended. | ||
| 82 | ENDIF | ||
| 83 | .486 | ||
| 84 | .MODEL FLAT | ||
| 85 | OPTION DOTNAME | ||
| 86 | IF \@Version LT 800 | ||
| 87 | .text\$ SEGMENT PAGE 'CODE' | ||
| 88 | ELSE | ||
| 89 | .text\$ SEGMENT ALIGN(64) 'CODE' | ||
| 90 | ENDIF | ||
| 91 | ___ | ||
| 92 | push(@out,$tmp); | ||
| 93 | $segment = ".text\$"; | ||
| 94 | } | ||
| 95 | |||
| 96 | sub ::function_begin_B | ||
| 97 | { my $func=shift; | ||
| 98 | my $global=($func !~ /^_/); | ||
| 99 | my $begin="${::lbdecor}_${func}_begin"; | ||
| 100 | |||
| 101 | &::LABEL($func,$global?"$begin":"$nmdecor$func"); | ||
| 102 | $func="ALIGN\t16\n".$nmdecor.$func."\tPROC"; | ||
| 103 | |||
| 104 | if ($global) { $func.=" PUBLIC\n${begin}::\n"; } | ||
| 105 | else { $func.=" PRIVATE\n"; } | ||
| 106 | push(@out,$func); | ||
| 107 | $::stack=4; | ||
| 108 | } | ||
| 109 | sub ::function_end_B | ||
| 110 | { my $func=shift; | ||
| 111 | |||
| 112 | push(@out,"$nmdecor$func ENDP\n"); | ||
| 113 | $::stack=0; | ||
| 114 | &::wipe_labels(); | ||
| 115 | } | ||
| 116 | |||
| 117 | sub ::file_end | ||
| 118 | { my $xmmheader=<<___; | ||
| 119 | .686 | ||
| 120 | .XMM | ||
| 121 | IF \@Version LT 800 | ||
| 122 | XMMWORD STRUCT 16 | ||
| 123 | DQ 2 dup (?) | ||
| 124 | XMMWORD ENDS | ||
| 125 | ENDIF | ||
| 126 | ___ | ||
| 127 | if (grep {/\b[x]?mm[0-7]\b/i} @out) { | ||
| 128 | grep {s/\.[3-7]86/$xmmheader/} @out; | ||
| 129 | } | ||
| 130 | |||
| 131 | push(@out,"$segment ENDS\n"); | ||
| 132 | |||
| 133 | if (grep {/\b${nmdecor}OPENSSL_ia32cap_P\b/i} @out) | ||
| 134 | { my $comm=<<___; | ||
| 135 | .bss SEGMENT 'BSS' | ||
| 136 | COMM ${nmdecor}OPENSSL_ia32cap_P:QWORD | ||
| 137 | .bss ENDS | ||
| 138 | ___ | ||
| 139 | # comment out OPENSSL_ia32cap_P declarations | ||
| 140 | grep {s/(^EXTERN\s+${nmdecor}OPENSSL_ia32cap_P)/\;$1/} @out; | ||
| 141 | push (@out,$comm); | ||
| 142 | } | ||
| 143 | push (@out,$initseg) if ($initseg); | ||
| 144 | push (@out,"END\n"); | ||
| 145 | } | ||
| 146 | |||
| 147 | sub ::comment { foreach (@_) { push(@out,"\t; $_\n"); } } | ||
| 148 | |||
| 149 | *::set_label_B = sub | ||
| 150 | { my $l=shift; push(@out,$l.($l=~/^\Q${::lbdecor}\E[0-9]{3}/?":\n":"::\n")); }; | ||
| 151 | |||
| 152 | sub ::external_label | ||
| 153 | { foreach(@_) | ||
| 154 | { push(@out, "EXTERN\t".&::LABEL($_,$nmdecor.$_).":NEAR\n"); } | ||
| 155 | } | ||
| 156 | |||
| 157 | sub ::public_label | ||
| 158 | { push(@out,"PUBLIC\t".&::LABEL($_[0],$nmdecor.$_[0])."\n"); } | ||
| 159 | |||
| 160 | sub ::data_byte | ||
| 161 | { push(@out,("DB\t").join(',',@_)."\n"); } | ||
| 162 | |||
| 163 | sub ::data_short | ||
| 164 | { push(@out,("DW\t").join(',',@_)."\n"); } | ||
| 165 | |||
| 166 | sub ::data_word | ||
| 167 | { push(@out,("DD\t").join(',',@_)."\n"); } | ||
| 168 | |||
| 169 | sub ::align | ||
| 170 | { push(@out,"ALIGN\t$_[0]\n"); } | ||
| 171 | |||
| 172 | sub ::picmeup | ||
| 173 | { my($dst,$sym)=@_; | ||
| 174 | &::lea($dst,&::DWP($sym)); | ||
| 175 | } | ||
| 176 | |||
| 177 | sub ::initseg | ||
| 178 | { my $f=$nmdecor.shift; | ||
| 179 | |||
| 180 | $initseg.=<<___; | ||
| 181 | .CRT\$XCU SEGMENT DWORD PUBLIC 'DATA' | ||
| 182 | EXTERN $f:NEAR | ||
| 183 | DD $f | ||
| 184 | .CRT\$XCU ENDS | ||
| 185 | ___ | ||
| 186 | } | ||
| 187 | |||
| 188 | sub ::dataseg | ||
| 189 | { push(@out,"$segment\tENDS\n_DATA\tSEGMENT\n"); $segment="_DATA"; } | ||
| 190 | |||
| 191 | sub ::safeseh | ||
| 192 | { my $nm=shift; | ||
| 193 | push(@out,"IF \@Version GE 710\n"); | ||
| 194 | push(@out,".SAFESEH ".&::LABEL($nm,$nmdecor.$nm)."\n"); | ||
| 195 | push(@out,"ENDIF\n"); | ||
| 196 | } | ||
| 197 | |||
| 198 | 1; | ||
diff --git a/src/lib/libcrypto/pkcs12/Makefile.ssl b/src/lib/libcrypto/pkcs12/Makefile.ssl deleted file mode 100644 index a6e47b4085..0000000000 --- a/src/lib/libcrypto/pkcs12/Makefile.ssl +++ /dev/null | |||
| @@ -1,417 +0,0 @@ | |||
| 1 | # | ||
| 2 | # SSLeay/crypto/pkcs12/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= pkcs12 | ||
| 6 | TOP= ../.. | ||
| 7 | CC= cc | ||
| 8 | INCLUDES= -I.. -I$(TOP) -I../../include | ||
| 9 | CFLAG=-g | ||
| 10 | INSTALL_PREFIX= | ||
| 11 | OPENSSLDIR= /usr/local/ssl | ||
| 12 | INSTALLTOP=/usr/local/ssl | ||
| 13 | MAKE= make -f Makefile.ssl | ||
| 14 | MAKEDEPPROG= makedepend | ||
| 15 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
| 16 | MAKEFILE= Makefile.ssl | ||
| 17 | AR= ar r | ||
| 18 | |||
| 19 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 20 | |||
| 21 | GENERAL=Makefile | ||
| 22 | TEST= | ||
| 23 | APPS= | ||
| 24 | |||
| 25 | LIB=$(TOP)/libcrypto.a | ||
| 26 | LIBSRC= p12_add.c p12_asn.c p12_attr.c p12_crpt.c p12_crt.c p12_decr.c \ | ||
| 27 | p12_init.c p12_key.c p12_kiss.c p12_mutl.c\ | ||
| 28 | p12_utl.c p12_npas.c pk12err.c p12_p8d.c p12_p8e.c | ||
| 29 | LIBOBJ= p12_add.o p12_asn.o p12_attr.o p12_crpt.o p12_crt.o p12_decr.o \ | ||
| 30 | p12_init.o p12_key.o p12_kiss.o p12_mutl.o\ | ||
| 31 | p12_utl.o p12_npas.o pk12err.o p12_p8d.o p12_p8e.o | ||
| 32 | |||
| 33 | SRC= $(LIBSRC) | ||
| 34 | |||
| 35 | EXHEADER= pkcs12.h | ||
| 36 | HEADER= $(EXHEADER) | ||
| 37 | |||
| 38 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
| 39 | |||
| 40 | top: | ||
| 41 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
| 42 | |||
| 43 | test: | ||
| 44 | |||
| 45 | all: lib | ||
| 46 | |||
| 47 | lib: $(LIBOBJ) | ||
| 48 | $(AR) $(LIB) $(LIBOBJ) | ||
| 49 | $(RANLIB) $(LIB) || echo Never mind. | ||
| 50 | @touch lib | ||
| 51 | |||
| 52 | files: | ||
| 53 | $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
| 54 | |||
| 55 | links: | ||
| 56 | @sh $(TOP)/util/point.sh Makefile.ssl Makefile | ||
| 57 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | ||
| 58 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | ||
| 59 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | ||
| 60 | |||
| 61 | install: | ||
| 62 | @for i in $(EXHEADER) ; \ | ||
| 63 | do \ | ||
| 64 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 65 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
| 66 | done; | ||
| 67 | |||
| 68 | tags: | ||
| 69 | ctags $(SRC) | ||
| 70 | |||
| 71 | tests: | ||
| 72 | |||
| 73 | lint: | ||
| 74 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
| 75 | |||
| 76 | depend: | ||
| 77 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) | ||
| 78 | |||
| 79 | dclean: | ||
| 80 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 81 | mv -f Makefile.new $(MAKEFILE) | ||
| 82 | |||
| 83 | clean: | ||
| 84 | rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
| 85 | |||
| 86 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 87 | |||
| 88 | p12_add.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 89 | p12_add.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 90 | p12_add.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 91 | p12_add.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 92 | p12_add.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 93 | p12_add.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 94 | p12_add.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 95 | p12_add.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 96 | p12_add.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 97 | p12_add.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 98 | p12_add.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 99 | p12_add.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 100 | p12_add.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 101 | p12_add.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs12.h | ||
| 102 | p12_add.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 103 | p12_add.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 104 | p12_add.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 105 | p12_add.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 106 | p12_add.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 107 | p12_add.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 108 | p12_add.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 109 | p12_add.o: ../cryptlib.h p12_add.c | ||
| 110 | p12_asn.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 111 | p12_asn.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h | ||
| 112 | p12_asn.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 113 | p12_asn.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 114 | p12_asn.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 115 | p12_asn.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 116 | p12_asn.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 117 | p12_asn.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 118 | p12_asn.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 119 | p12_asn.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 120 | p12_asn.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 121 | p12_asn.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 122 | p12_asn.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 123 | p12_asn.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 124 | p12_asn.o: ../../include/openssl/pkcs12.h ../../include/openssl/pkcs7.h | ||
| 125 | p12_asn.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 126 | p12_asn.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 127 | p12_asn.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 128 | p12_asn.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 129 | p12_asn.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 130 | p12_asn.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 131 | p12_asn.o: ../../include/openssl/x509_vfy.h ../cryptlib.h p12_asn.c | ||
| 132 | p12_attr.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 133 | p12_attr.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 134 | p12_attr.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 135 | p12_attr.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 136 | p12_attr.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 137 | p12_attr.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 138 | p12_attr.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 139 | p12_attr.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 140 | p12_attr.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 141 | p12_attr.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 142 | p12_attr.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 143 | p12_attr.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 144 | p12_attr.o: ../../include/openssl/opensslconf.h | ||
| 145 | p12_attr.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 146 | p12_attr.o: ../../include/openssl/pkcs12.h ../../include/openssl/pkcs7.h | ||
| 147 | p12_attr.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 148 | p12_attr.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 149 | p12_attr.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 150 | p12_attr.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 151 | p12_attr.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 152 | p12_attr.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 153 | p12_attr.o: ../../include/openssl/x509_vfy.h ../cryptlib.h p12_attr.c | ||
| 154 | p12_crpt.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 155 | p12_crpt.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 156 | p12_crpt.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 157 | p12_crpt.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 158 | p12_crpt.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 159 | p12_crpt.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 160 | p12_crpt.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 161 | p12_crpt.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 162 | p12_crpt.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 163 | p12_crpt.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 164 | p12_crpt.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 165 | p12_crpt.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 166 | p12_crpt.o: ../../include/openssl/opensslconf.h | ||
| 167 | p12_crpt.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 168 | p12_crpt.o: ../../include/openssl/pkcs12.h ../../include/openssl/pkcs7.h | ||
| 169 | p12_crpt.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 170 | p12_crpt.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 171 | p12_crpt.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 172 | p12_crpt.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 173 | p12_crpt.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 174 | p12_crpt.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 175 | p12_crpt.o: ../../include/openssl/x509_vfy.h ../cryptlib.h p12_crpt.c | ||
| 176 | p12_crt.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 177 | p12_crt.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 178 | p12_crt.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 179 | p12_crt.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 180 | p12_crt.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 181 | p12_crt.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 182 | p12_crt.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 183 | p12_crt.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 184 | p12_crt.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 185 | p12_crt.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 186 | p12_crt.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 187 | p12_crt.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 188 | p12_crt.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 189 | p12_crt.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs12.h | ||
| 190 | p12_crt.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 191 | p12_crt.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 192 | p12_crt.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 193 | p12_crt.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 194 | p12_crt.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 195 | p12_crt.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 196 | p12_crt.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 197 | p12_crt.o: ../cryptlib.h p12_crt.c | ||
| 198 | p12_decr.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 199 | p12_decr.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 200 | p12_decr.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 201 | p12_decr.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 202 | p12_decr.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 203 | p12_decr.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 204 | p12_decr.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 205 | p12_decr.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 206 | p12_decr.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 207 | p12_decr.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 208 | p12_decr.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 209 | p12_decr.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 210 | p12_decr.o: ../../include/openssl/opensslconf.h | ||
| 211 | p12_decr.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 212 | p12_decr.o: ../../include/openssl/pkcs12.h ../../include/openssl/pkcs7.h | ||
| 213 | p12_decr.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 214 | p12_decr.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 215 | p12_decr.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 216 | p12_decr.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 217 | p12_decr.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 218 | p12_decr.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 219 | p12_decr.o: ../../include/openssl/x509_vfy.h ../cryptlib.h p12_decr.c | ||
| 220 | p12_init.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 221 | p12_init.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 222 | p12_init.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 223 | p12_init.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 224 | p12_init.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 225 | p12_init.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 226 | p12_init.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 227 | p12_init.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 228 | p12_init.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 229 | p12_init.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 230 | p12_init.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 231 | p12_init.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 232 | p12_init.o: ../../include/openssl/opensslconf.h | ||
| 233 | p12_init.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 234 | p12_init.o: ../../include/openssl/pkcs12.h ../../include/openssl/pkcs7.h | ||
| 235 | p12_init.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 236 | p12_init.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 237 | p12_init.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 238 | p12_init.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 239 | p12_init.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 240 | p12_init.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 241 | p12_init.o: ../../include/openssl/x509_vfy.h ../cryptlib.h p12_init.c | ||
| 242 | p12_key.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 243 | p12_key.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 244 | p12_key.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 245 | p12_key.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 246 | p12_key.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 247 | p12_key.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 248 | p12_key.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 249 | p12_key.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 250 | p12_key.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 251 | p12_key.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 252 | p12_key.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 253 | p12_key.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 254 | p12_key.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 255 | p12_key.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs12.h | ||
| 256 | p12_key.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 257 | p12_key.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 258 | p12_key.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 259 | p12_key.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 260 | p12_key.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 261 | p12_key.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 262 | p12_key.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 263 | p12_key.o: ../cryptlib.h p12_key.c | ||
| 264 | p12_kiss.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 265 | p12_kiss.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 266 | p12_kiss.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 267 | p12_kiss.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 268 | p12_kiss.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 269 | p12_kiss.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 270 | p12_kiss.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 271 | p12_kiss.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 272 | p12_kiss.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 273 | p12_kiss.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 274 | p12_kiss.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 275 | p12_kiss.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 276 | p12_kiss.o: ../../include/openssl/opensslconf.h | ||
| 277 | p12_kiss.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 278 | p12_kiss.o: ../../include/openssl/pkcs12.h ../../include/openssl/pkcs7.h | ||
| 279 | p12_kiss.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 280 | p12_kiss.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 281 | p12_kiss.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 282 | p12_kiss.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 283 | p12_kiss.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 284 | p12_kiss.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 285 | p12_kiss.o: ../../include/openssl/x509_vfy.h ../cryptlib.h p12_kiss.c | ||
| 286 | p12_mutl.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 287 | p12_mutl.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 288 | p12_mutl.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 289 | p12_mutl.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 290 | p12_mutl.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 291 | p12_mutl.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 292 | p12_mutl.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 293 | p12_mutl.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 294 | p12_mutl.o: ../../include/openssl/hmac.h ../../include/openssl/idea.h | ||
| 295 | p12_mutl.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 296 | p12_mutl.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 297 | p12_mutl.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 298 | p12_mutl.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 299 | p12_mutl.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 300 | p12_mutl.o: ../../include/openssl/pkcs12.h ../../include/openssl/pkcs7.h | ||
| 301 | p12_mutl.o: ../../include/openssl/rand.h ../../include/openssl/rc2.h | ||
| 302 | p12_mutl.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 303 | p12_mutl.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 304 | p12_mutl.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 305 | p12_mutl.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 306 | p12_mutl.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 307 | p12_mutl.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 308 | p12_mutl.o: ../cryptlib.h p12_mutl.c | ||
| 309 | p12_npas.o: ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 310 | p12_npas.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 311 | p12_npas.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 312 | p12_npas.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 313 | p12_npas.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 314 | p12_npas.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 315 | p12_npas.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 316 | p12_npas.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 317 | p12_npas.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 318 | p12_npas.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 319 | p12_npas.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 320 | p12_npas.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 321 | p12_npas.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 322 | p12_npas.o: ../../include/openssl/pem.h ../../include/openssl/pem2.h | ||
| 323 | p12_npas.o: ../../include/openssl/pkcs12.h ../../include/openssl/pkcs7.h | ||
| 324 | p12_npas.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 325 | p12_npas.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 326 | p12_npas.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 327 | p12_npas.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 328 | p12_npas.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 329 | p12_npas.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 330 | p12_npas.o: ../../include/openssl/x509_vfy.h p12_npas.c | ||
| 331 | p12_p8d.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 332 | p12_p8d.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 333 | p12_p8d.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 334 | p12_p8d.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 335 | p12_p8d.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 336 | p12_p8d.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 337 | p12_p8d.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 338 | p12_p8d.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 339 | p12_p8d.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 340 | p12_p8d.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 341 | p12_p8d.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 342 | p12_p8d.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 343 | p12_p8d.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 344 | p12_p8d.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs12.h | ||
| 345 | p12_p8d.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 346 | p12_p8d.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 347 | p12_p8d.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 348 | p12_p8d.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 349 | p12_p8d.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 350 | p12_p8d.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 351 | p12_p8d.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 352 | p12_p8d.o: ../cryptlib.h p12_p8d.c | ||
| 353 | p12_p8e.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 354 | p12_p8e.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 355 | p12_p8e.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 356 | p12_p8e.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 357 | p12_p8e.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 358 | p12_p8e.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 359 | p12_p8e.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 360 | p12_p8e.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 361 | p12_p8e.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 362 | p12_p8e.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 363 | p12_p8e.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 364 | p12_p8e.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 365 | p12_p8e.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 366 | p12_p8e.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs12.h | ||
| 367 | p12_p8e.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 368 | p12_p8e.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 369 | p12_p8e.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 370 | p12_p8e.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 371 | p12_p8e.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 372 | p12_p8e.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 373 | p12_p8e.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 374 | p12_p8e.o: ../cryptlib.h p12_p8e.c | ||
| 375 | p12_utl.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 376 | p12_utl.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 377 | p12_utl.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 378 | p12_utl.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 379 | p12_utl.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 380 | p12_utl.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 381 | p12_utl.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 382 | p12_utl.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 383 | p12_utl.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 384 | p12_utl.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 385 | p12_utl.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 386 | p12_utl.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 387 | p12_utl.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 388 | p12_utl.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs12.h | ||
| 389 | p12_utl.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 390 | p12_utl.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 391 | p12_utl.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 392 | p12_utl.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 393 | p12_utl.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 394 | p12_utl.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 395 | p12_utl.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 396 | p12_utl.o: ../cryptlib.h p12_utl.c | ||
| 397 | pk12err.o: ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 398 | pk12err.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 399 | pk12err.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 400 | pk12err.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 401 | pk12err.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 402 | pk12err.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 403 | pk12err.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 404 | pk12err.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 405 | pk12err.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 406 | pk12err.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 407 | pk12err.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 408 | pk12err.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 409 | pk12err.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 410 | pk12err.o: ../../include/openssl/pkcs12.h ../../include/openssl/pkcs7.h | ||
| 411 | pk12err.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 412 | pk12err.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 413 | pk12err.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 414 | pk12err.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 415 | pk12err.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 416 | pk12err.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 417 | pk12err.o: ../../include/openssl/x509_vfy.h pk12err.c | ||
diff --git a/src/lib/libcrypto/pkcs7/Makefile.ssl b/src/lib/libcrypto/pkcs7/Makefile.ssl deleted file mode 100644 index c3bfc7d560..0000000000 --- a/src/lib/libcrypto/pkcs7/Makefile.ssl +++ /dev/null | |||
| @@ -1,243 +0,0 @@ | |||
| 1 | # | ||
| 2 | # SSLeay/crypto/pkcs7/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= pkcs7 | ||
| 6 | TOP= ../.. | ||
| 7 | CC= cc | ||
| 8 | INCLUDES= -I.. -I$(TOP) -I../../include | ||
| 9 | CFLAG=-g | ||
| 10 | INSTALL_PREFIX= | ||
| 11 | OPENSSLDIR= /usr/local/ssl | ||
| 12 | INSTALLTOP=/usr/local/ssl | ||
| 13 | MAKE= make -f Makefile.ssl | ||
| 14 | MAKEDEPPROG= makedepend | ||
| 15 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
| 16 | MAKEFILE= Makefile.ssl | ||
| 17 | AR= ar r | ||
| 18 | |||
| 19 | PEX_LIBS= | ||
| 20 | EX_LIBS= | ||
| 21 | |||
| 22 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 23 | |||
| 24 | GENERAL=Makefile README | ||
| 25 | TEST= | ||
| 26 | APPS= | ||
| 27 | |||
| 28 | LIB=$(TOP)/libcrypto.a | ||
| 29 | LIBSRC= pk7_asn1.c pk7_lib.c pkcs7err.c pk7_doit.c pk7_smime.c pk7_attr.c \ | ||
| 30 | pk7_mime.c | ||
| 31 | LIBOBJ= pk7_asn1.o pk7_lib.o pkcs7err.o pk7_doit.o pk7_smime.o pk7_attr.o \ | ||
| 32 | pk7_mime.o | ||
| 33 | |||
| 34 | SRC= $(LIBSRC) | ||
| 35 | |||
| 36 | EXHEADER= pkcs7.h | ||
| 37 | HEADER= $(EXHEADER) | ||
| 38 | |||
| 39 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
| 40 | |||
| 41 | top: | ||
| 42 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
| 43 | |||
| 44 | test: | ||
| 45 | |||
| 46 | all: lib | ||
| 47 | |||
| 48 | testapps: enc dec sign verify | ||
| 49 | |||
| 50 | enc: enc.o lib | ||
| 51 | $(CC) $(CFLAGS) -o enc enc.o $(PEX_LIBS) $(LIB) $(EX_LIBS) | ||
| 52 | |||
| 53 | dec: dec.o lib | ||
| 54 | $(CC) $(CFLAGS) -o dec dec.o $(PEX_LIBS) $(LIB) $(EX_LIBS) | ||
| 55 | |||
| 56 | sign: sign.o lib | ||
| 57 | $(CC) $(CFLAGS) -o sign sign.o $(PEX_LIBS) $(LIB) $(EX_LIBS) | ||
| 58 | |||
| 59 | verify: verify.o example.o lib | ||
| 60 | $(CC) $(CFLAGS) -o verify verify.o $(PEX_LIBS) example.o $(LIB) $(EX_LIBS) | ||
| 61 | |||
| 62 | lib: $(LIBOBJ) | ||
| 63 | $(AR) $(LIB) $(LIBOBJ) | ||
| 64 | $(RANLIB) $(LIB) || echo Never mind. | ||
| 65 | @touch lib | ||
| 66 | |||
| 67 | files: | ||
| 68 | $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
| 69 | |||
| 70 | links: | ||
| 71 | @sh $(TOP)/util/point.sh Makefile.ssl Makefile | ||
| 72 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | ||
| 73 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | ||
| 74 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | ||
| 75 | |||
| 76 | install: | ||
| 77 | @for i in $(EXHEADER) ; \ | ||
| 78 | do \ | ||
| 79 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 80 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
| 81 | done; | ||
| 82 | |||
| 83 | tags: | ||
| 84 | ctags $(SRC) | ||
| 85 | |||
| 86 | tests: | ||
| 87 | |||
| 88 | lint: | ||
| 89 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
| 90 | |||
| 91 | depend: | ||
| 92 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) | ||
| 93 | |||
| 94 | dclean: | ||
| 95 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 96 | mv -f Makefile.new $(MAKEFILE) | ||
| 97 | |||
| 98 | clean: | ||
| 99 | rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff enc dec sign verify | ||
| 100 | |||
| 101 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 102 | |||
| 103 | pk7_asn1.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 104 | pk7_asn1.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h | ||
| 105 | pk7_asn1.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 106 | pk7_asn1.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 107 | pk7_asn1.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 108 | pk7_asn1.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 109 | pk7_asn1.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 110 | pk7_asn1.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 111 | pk7_asn1.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 112 | pk7_asn1.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 113 | pk7_asn1.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 114 | pk7_asn1.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 115 | pk7_asn1.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 116 | pk7_asn1.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 117 | pk7_asn1.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 118 | pk7_asn1.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 119 | pk7_asn1.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 120 | pk7_asn1.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 121 | pk7_asn1.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 122 | pk7_asn1.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 123 | pk7_asn1.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 124 | pk7_asn1.o: ../cryptlib.h pk7_asn1.c | ||
| 125 | pk7_attr.o: ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 126 | pk7_attr.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 127 | pk7_attr.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 128 | pk7_attr.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 129 | pk7_attr.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 130 | pk7_attr.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 131 | pk7_attr.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 132 | pk7_attr.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 133 | pk7_attr.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 134 | pk7_attr.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 135 | pk7_attr.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 136 | pk7_attr.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 137 | pk7_attr.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 138 | pk7_attr.o: ../../include/openssl/pem.h ../../include/openssl/pem2.h | ||
| 139 | pk7_attr.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 140 | pk7_attr.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 141 | pk7_attr.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 142 | pk7_attr.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 143 | pk7_attr.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 144 | pk7_attr.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 145 | pk7_attr.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 146 | pk7_attr.o: pk7_attr.c | ||
| 147 | pk7_doit.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 148 | pk7_doit.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 149 | pk7_doit.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 150 | pk7_doit.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 151 | pk7_doit.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h | ||
| 152 | pk7_doit.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 153 | pk7_doit.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 154 | pk7_doit.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 155 | pk7_doit.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 156 | pk7_doit.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 157 | pk7_doit.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 158 | pk7_doit.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 159 | pk7_doit.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 160 | pk7_doit.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 161 | pk7_doit.o: ../../include/openssl/pkcs7.h ../../include/openssl/rand.h | ||
| 162 | pk7_doit.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 163 | pk7_doit.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 164 | pk7_doit.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 165 | pk7_doit.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 166 | pk7_doit.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 167 | pk7_doit.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 168 | pk7_doit.o: ../../include/openssl/x509_vfy.h ../../include/openssl/x509v3.h | ||
| 169 | pk7_doit.o: ../cryptlib.h pk7_doit.c | ||
| 170 | pk7_lib.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 171 | pk7_lib.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 172 | pk7_lib.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 173 | pk7_lib.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 174 | pk7_lib.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 175 | pk7_lib.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 176 | pk7_lib.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 177 | pk7_lib.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 178 | pk7_lib.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 179 | pk7_lib.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 180 | pk7_lib.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 181 | pk7_lib.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 182 | pk7_lib.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 183 | pk7_lib.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs7.h | ||
| 184 | pk7_lib.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 185 | pk7_lib.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 186 | pk7_lib.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 187 | pk7_lib.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 188 | pk7_lib.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 189 | pk7_lib.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 190 | pk7_lib.o: ../../include/openssl/x509_vfy.h ../cryptlib.h pk7_lib.c | ||
| 191 | pk7_mime.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 192 | pk7_mime.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 193 | pk7_mime.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 194 | pk7_mime.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 195 | pk7_mime.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 196 | pk7_mime.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 197 | pk7_mime.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 198 | pk7_mime.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 199 | pk7_mime.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 200 | pk7_mime.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 201 | pk7_mime.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 202 | pk7_mime.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 203 | pk7_mime.o: ../../include/openssl/opensslconf.h | ||
| 204 | pk7_mime.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 205 | pk7_mime.o: ../../include/openssl/pkcs7.h ../../include/openssl/rand.h | ||
| 206 | pk7_mime.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 207 | pk7_mime.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 208 | pk7_mime.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 209 | pk7_mime.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 210 | pk7_mime.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 211 | pk7_mime.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 212 | pk7_mime.o: ../../include/openssl/x509_vfy.h ../cryptlib.h pk7_mime.c | ||
| 213 | pk7_smime.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 214 | pk7_smime.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 215 | pk7_smime.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 216 | pk7_smime.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 217 | pk7_smime.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h | ||
| 218 | pk7_smime.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 219 | pk7_smime.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 220 | pk7_smime.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 221 | pk7_smime.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 222 | pk7_smime.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 223 | pk7_smime.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 224 | pk7_smime.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 225 | pk7_smime.o: ../../include/openssl/objects.h | ||
| 226 | pk7_smime.o: ../../include/openssl/opensslconf.h | ||
| 227 | pk7_smime.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 228 | pk7_smime.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 229 | pk7_smime.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 230 | pk7_smime.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 231 | pk7_smime.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 232 | pk7_smime.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 233 | pk7_smime.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 234 | pk7_smime.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 235 | pk7_smime.o: ../../include/openssl/x509v3.h ../cryptlib.h pk7_smime.c | ||
| 236 | pkcs7err.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 237 | pkcs7err.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h | ||
| 238 | pkcs7err.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 239 | pkcs7err.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 240 | pkcs7err.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 241 | pkcs7err.o: ../../include/openssl/pkcs7.h ../../include/openssl/safestack.h | ||
| 242 | pkcs7err.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 243 | pkcs7err.o: pkcs7err.c | ||
diff --git a/src/lib/libcrypto/pqueue/Makefile b/src/lib/libcrypto/pqueue/Makefile deleted file mode 100644 index fb36a0c876..0000000000 --- a/src/lib/libcrypto/pqueue/Makefile +++ /dev/null | |||
| @@ -1,83 +0,0 @@ | |||
| 1 | # | ||
| 2 | # OpenSSL/crypto/pqueue/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= pqueue | ||
| 6 | TOP= ../.. | ||
| 7 | CC= cc | ||
| 8 | INCLUDES= | ||
| 9 | CFLAG=-g | ||
| 10 | MAKEFILE= Makefile | ||
| 11 | AR= ar r | ||
| 12 | |||
| 13 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 14 | |||
| 15 | GENERAL=Makefile | ||
| 16 | TEST= | ||
| 17 | APPS= | ||
| 18 | |||
| 19 | LIB=$(TOP)/libcrypto.a | ||
| 20 | LIBSRC=pqueue.c | ||
| 21 | LIBOBJ=pqueue.o | ||
| 22 | |||
| 23 | SRC= $(LIBSRC) | ||
| 24 | |||
| 25 | EXHEADER= pqueue.h | ||
| 26 | HEADER= $(EXHEADER) | ||
| 27 | |||
| 28 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
| 29 | |||
| 30 | top: | ||
| 31 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
| 32 | |||
| 33 | all: lib | ||
| 34 | |||
| 35 | lib: $(LIBOBJ) | ||
| 36 | $(AR) $(LIB) $(LIBOBJ) | ||
| 37 | $(RANLIB) $(LIB) || echo Never mind. | ||
| 38 | @touch lib | ||
| 39 | |||
| 40 | files: | ||
| 41 | $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO | ||
| 42 | |||
| 43 | links: | ||
| 44 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | ||
| 45 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | ||
| 46 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | ||
| 47 | |||
| 48 | install: | ||
| 49 | @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile... | ||
| 50 | @headerlist="$(EXHEADER)"; for i in $$headerlist ; \ | ||
| 51 | do \ | ||
| 52 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 53 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
| 54 | done; | ||
| 55 | |||
| 56 | tags: | ||
| 57 | ctags $(SRC) | ||
| 58 | |||
| 59 | tests: | ||
| 60 | |||
| 61 | lint: | ||
| 62 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
| 63 | |||
| 64 | depend: | ||
| 65 | @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile... | ||
| 66 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) | ||
| 67 | |||
| 68 | dclean: | ||
| 69 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 70 | mv -f Makefile.new $(MAKEFILE) | ||
| 71 | |||
| 72 | clean: | ||
| 73 | rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
| 74 | |||
| 75 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 76 | |||
| 77 | pqueue.o: ../../e_os.h ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 78 | pqueue.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 79 | pqueue.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 80 | pqueue.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 81 | pqueue.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 82 | pqueue.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 83 | pqueue.o: ../../include/openssl/symhacks.h ../cryptlib.h pqueue.c pqueue.h | ||
diff --git a/src/lib/libcrypto/pqueue/pq_test.c b/src/lib/libcrypto/pqueue/pq_test.c deleted file mode 100644 index 8d496dfc65..0000000000 --- a/src/lib/libcrypto/pqueue/pq_test.c +++ /dev/null | |||
| @@ -1,95 +0,0 @@ | |||
| 1 | /* crypto/pqueue/pq_test.c */ | ||
| 2 | /* | ||
| 3 | * DTLS implementation written by Nagendra Modadugu | ||
| 4 | * (nagendra@cs.stanford.edu) for the OpenSSL project 2005. | ||
| 5 | */ | ||
| 6 | /* ==================================================================== | ||
| 7 | * Copyright (c) 1999-2005 The OpenSSL Project. All rights reserved. | ||
| 8 | * | ||
| 9 | * Redistribution and use in source and binary forms, with or without | ||
| 10 | * modification, are permitted provided that the following conditions | ||
| 11 | * are met: | ||
| 12 | * | ||
| 13 | * 1. Redistributions of source code must retain the above copyright | ||
| 14 | * notice, this list of conditions and the following disclaimer. | ||
| 15 | * | ||
| 16 | * 2. Redistributions in binary form must reproduce the above copyright | ||
| 17 | * notice, this list of conditions and the following disclaimer in | ||
| 18 | * the documentation and/or other materials provided with the | ||
| 19 | * distribution. | ||
| 20 | * | ||
| 21 | * 3. All advertising materials mentioning features or use of this | ||
| 22 | * software must display the following acknowledgment: | ||
| 23 | * "This product includes software developed by the OpenSSL Project | ||
| 24 | * for use in the OpenSSL Toolkit. (http://www.OpenSSL.org/)" | ||
| 25 | * | ||
| 26 | * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to | ||
| 27 | * endorse or promote products derived from this software without | ||
| 28 | * prior written permission. For written permission, please contact | ||
| 29 | * openssl-core@OpenSSL.org. | ||
| 30 | * | ||
| 31 | * 5. Products derived from this software may not be called "OpenSSL" | ||
| 32 | * nor may "OpenSSL" appear in their names without prior written | ||
| 33 | * permission of the OpenSSL Project. | ||
| 34 | * | ||
| 35 | * 6. Redistributions of any form whatsoever must retain the following | ||
| 36 | * acknowledgment: | ||
| 37 | * "This product includes software developed by the OpenSSL Project | ||
| 38 | * for use in the OpenSSL Toolkit (http://www.OpenSSL.org/)" | ||
| 39 | * | ||
| 40 | * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY | ||
| 41 | * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
| 42 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | ||
| 43 | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR | ||
| 44 | * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
| 45 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | ||
| 46 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
| 47 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
| 48 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | ||
| 49 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
| 50 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | ||
| 51 | * OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| 52 | * ==================================================================== | ||
| 53 | * | ||
| 54 | * This product includes cryptographic software written by Eric Young | ||
| 55 | * (eay@cryptsoft.com). This product includes software written by Tim | ||
| 56 | * Hudson (tjh@cryptsoft.com). | ||
| 57 | * | ||
| 58 | */ | ||
| 59 | |||
| 60 | #include "pqueue.h" | ||
| 61 | |||
| 62 | int | ||
| 63 | main(void) | ||
| 64 | { | ||
| 65 | pitem *item; | ||
| 66 | pqueue pq; | ||
| 67 | |||
| 68 | pq = pqueue_new(); | ||
| 69 | |||
| 70 | item = pitem_new(3, NULL); | ||
| 71 | pqueue_insert(pq, item); | ||
| 72 | |||
| 73 | item = pitem_new(1, NULL); | ||
| 74 | pqueue_insert(pq, item); | ||
| 75 | |||
| 76 | item = pitem_new(2, NULL); | ||
| 77 | pqueue_insert(pq, item); | ||
| 78 | |||
| 79 | item = pqueue_find(pq, 1); | ||
| 80 | fprintf(stderr, "found %ld\n", item->priority); | ||
| 81 | |||
| 82 | item = pqueue_find(pq, 2); | ||
| 83 | fprintf(stderr, "found %ld\n", item->priority); | ||
| 84 | |||
| 85 | item = pqueue_find(pq, 3); | ||
| 86 | fprintf(stderr, "found %ld\n", item ? item->priority: 0); | ||
| 87 | |||
| 88 | pqueue_print(pq); | ||
| 89 | |||
| 90 | for(item = pqueue_pop(pq); item != NULL; item = pqueue_pop(pq)) | ||
| 91 | pitem_free(item); | ||
| 92 | |||
| 93 | pqueue_free(pq); | ||
| 94 | return 0; | ||
| 95 | } | ||
diff --git a/src/lib/libcrypto/pqueue/pqueue.c b/src/lib/libcrypto/pqueue/pqueue.c deleted file mode 100644 index eab13a1250..0000000000 --- a/src/lib/libcrypto/pqueue/pqueue.c +++ /dev/null | |||
| @@ -1,252 +0,0 @@ | |||
| 1 | /* crypto/pqueue/pqueue.c */ | ||
| 2 | /* | ||
| 3 | * DTLS implementation written by Nagendra Modadugu | ||
| 4 | * (nagendra@cs.stanford.edu) for the OpenSSL project 2005. | ||
| 5 | */ | ||
| 6 | /* ==================================================================== | ||
| 7 | * Copyright (c) 1999-2005 The OpenSSL Project. All rights reserved. | ||
| 8 | * | ||
| 9 | * Redistribution and use in source and binary forms, with or without | ||
| 10 | * modification, are permitted provided that the following conditions | ||
| 11 | * are met: | ||
| 12 | * | ||
| 13 | * 1. Redistributions of source code must retain the above copyright | ||
| 14 | * notice, this list of conditions and the following disclaimer. | ||
| 15 | * | ||
| 16 | * 2. Redistributions in binary form must reproduce the above copyright | ||
| 17 | * notice, this list of conditions and the following disclaimer in | ||
| 18 | * the documentation and/or other materials provided with the | ||
| 19 | * distribution. | ||
| 20 | * | ||
| 21 | * 3. All advertising materials mentioning features or use of this | ||
| 22 | * software must display the following acknowledgment: | ||
| 23 | * "This product includes software developed by the OpenSSL Project | ||
| 24 | * for use in the OpenSSL Toolkit. (http://www.OpenSSL.org/)" | ||
| 25 | * | ||
| 26 | * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to | ||
| 27 | * endorse or promote products derived from this software without | ||
| 28 | * prior written permission. For written permission, please contact | ||
| 29 | * openssl-core@OpenSSL.org. | ||
| 30 | * | ||
| 31 | * 5. Products derived from this software may not be called "OpenSSL" | ||
| 32 | * nor may "OpenSSL" appear in their names without prior written | ||
| 33 | * permission of the OpenSSL Project. | ||
| 34 | * | ||
| 35 | * 6. Redistributions of any form whatsoever must retain the following | ||
| 36 | * acknowledgment: | ||
| 37 | * "This product includes software developed by the OpenSSL Project | ||
| 38 | * for use in the OpenSSL Toolkit (http://www.OpenSSL.org/)" | ||
| 39 | * | ||
| 40 | * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY | ||
| 41 | * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
| 42 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | ||
| 43 | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR | ||
| 44 | * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
| 45 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | ||
| 46 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
| 47 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
| 48 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | ||
| 49 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
| 50 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | ||
| 51 | * OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| 52 | * ==================================================================== | ||
| 53 | * | ||
| 54 | * This product includes cryptographic software written by Eric Young | ||
| 55 | * (eay@cryptsoft.com). This product includes software written by Tim | ||
| 56 | * Hudson (tjh@cryptsoft.com). | ||
| 57 | * | ||
| 58 | */ | ||
| 59 | |||
| 60 | #include "cryptlib.h" | ||
| 61 | #include <openssl/bn.h> | ||
| 62 | #include "pqueue.h" | ||
| 63 | |||
| 64 | typedef struct _pqueue | ||
| 65 | { | ||
| 66 | pitem *items; | ||
| 67 | int count; | ||
| 68 | } pqueue_s; | ||
| 69 | |||
| 70 | pitem * | ||
| 71 | pitem_new(unsigned char *prio64be, void *data) | ||
| 72 | { | ||
| 73 | pitem *item = (pitem *) OPENSSL_malloc(sizeof(pitem)); | ||
| 74 | if (item == NULL) return NULL; | ||
| 75 | |||
| 76 | memcpy(item->priority,prio64be,sizeof(item->priority)); | ||
| 77 | |||
| 78 | item->data = data; | ||
| 79 | item->next = NULL; | ||
| 80 | |||
| 81 | return item; | ||
| 82 | } | ||
| 83 | |||
| 84 | void | ||
| 85 | pitem_free(pitem *item) | ||
| 86 | { | ||
| 87 | if (item == NULL) return; | ||
| 88 | |||
| 89 | OPENSSL_free(item); | ||
| 90 | } | ||
| 91 | |||
| 92 | pqueue_s * | ||
| 93 | pqueue_new() | ||
| 94 | { | ||
| 95 | pqueue_s *pq = (pqueue_s *) OPENSSL_malloc(sizeof(pqueue_s)); | ||
| 96 | if (pq == NULL) return NULL; | ||
| 97 | |||
| 98 | memset(pq, 0x00, sizeof(pqueue_s)); | ||
| 99 | return pq; | ||
| 100 | } | ||
| 101 | |||
| 102 | void | ||
| 103 | pqueue_free(pqueue_s *pq) | ||
| 104 | { | ||
| 105 | if (pq == NULL) return; | ||
| 106 | |||
| 107 | OPENSSL_free(pq); | ||
| 108 | } | ||
| 109 | |||
| 110 | pitem * | ||
| 111 | pqueue_insert(pqueue_s *pq, pitem *item) | ||
| 112 | { | ||
| 113 | pitem *curr, *next; | ||
| 114 | |||
| 115 | if (pq->items == NULL) | ||
| 116 | { | ||
| 117 | pq->items = item; | ||
| 118 | return item; | ||
| 119 | } | ||
| 120 | |||
| 121 | for(curr = NULL, next = pq->items; | ||
| 122 | next != NULL; | ||
| 123 | curr = next, next = next->next) | ||
| 124 | { | ||
| 125 | /* we can compare 64-bit value in big-endian encoding | ||
| 126 | * with memcmp:-) */ | ||
| 127 | int cmp = memcmp(next->priority, item->priority,8); | ||
| 128 | if (cmp > 0) /* next > item */ | ||
| 129 | { | ||
| 130 | item->next = next; | ||
| 131 | |||
| 132 | if (curr == NULL) | ||
| 133 | pq->items = item; | ||
| 134 | else | ||
| 135 | curr->next = item; | ||
| 136 | |||
| 137 | return item; | ||
| 138 | } | ||
| 139 | |||
| 140 | else if (cmp == 0) /* duplicates not allowed */ | ||
| 141 | return NULL; | ||
| 142 | } | ||
| 143 | |||
| 144 | item->next = NULL; | ||
| 145 | curr->next = item; | ||
| 146 | |||
| 147 | return item; | ||
| 148 | } | ||
| 149 | |||
| 150 | pitem * | ||
| 151 | pqueue_peek(pqueue_s *pq) | ||
| 152 | { | ||
| 153 | return pq->items; | ||
| 154 | } | ||
| 155 | |||
| 156 | pitem * | ||
| 157 | pqueue_pop(pqueue_s *pq) | ||
| 158 | { | ||
| 159 | pitem *item = pq->items; | ||
| 160 | |||
| 161 | if (pq->items != NULL) | ||
| 162 | pq->items = pq->items->next; | ||
| 163 | |||
| 164 | return item; | ||
| 165 | } | ||
| 166 | |||
| 167 | pitem * | ||
| 168 | pqueue_find(pqueue_s *pq, unsigned char *prio64be) | ||
| 169 | { | ||
| 170 | pitem *next; | ||
| 171 | pitem *found = NULL; | ||
| 172 | |||
| 173 | if ( pq->items == NULL) | ||
| 174 | return NULL; | ||
| 175 | |||
| 176 | for ( next = pq->items; next->next != NULL; next = next->next) | ||
| 177 | { | ||
| 178 | if ( memcmp(next->priority, prio64be,8) == 0) | ||
| 179 | { | ||
| 180 | found = next; | ||
| 181 | break; | ||
| 182 | } | ||
| 183 | } | ||
| 184 | |||
| 185 | /* check the one last node */ | ||
| 186 | if ( memcmp(next->priority, prio64be,8) ==0) | ||
| 187 | found = next; | ||
| 188 | |||
| 189 | if ( ! found) | ||
| 190 | return NULL; | ||
| 191 | |||
| 192 | #if 0 /* find works in peek mode */ | ||
| 193 | if ( prev == NULL) | ||
| 194 | pq->items = next->next; | ||
| 195 | else | ||
| 196 | prev->next = next->next; | ||
| 197 | #endif | ||
| 198 | |||
| 199 | return found; | ||
| 200 | } | ||
| 201 | |||
| 202 | void | ||
| 203 | pqueue_print(pqueue_s *pq) | ||
| 204 | { | ||
| 205 | pitem *item = pq->items; | ||
| 206 | |||
| 207 | while(item != NULL) | ||
| 208 | { | ||
| 209 | printf("item\t%02x%02x%02x%02x%02x%02x%02x%02x\n", | ||
| 210 | item->priority[0],item->priority[1], | ||
| 211 | item->priority[2],item->priority[3], | ||
| 212 | item->priority[4],item->priority[5], | ||
| 213 | item->priority[6],item->priority[7]); | ||
| 214 | item = item->next; | ||
| 215 | } | ||
| 216 | } | ||
| 217 | |||
| 218 | pitem * | ||
| 219 | pqueue_iterator(pqueue_s *pq) | ||
| 220 | { | ||
| 221 | return pqueue_peek(pq); | ||
| 222 | } | ||
| 223 | |||
| 224 | pitem * | ||
| 225 | pqueue_next(pitem **item) | ||
| 226 | { | ||
| 227 | pitem *ret; | ||
| 228 | |||
| 229 | if ( item == NULL || *item == NULL) | ||
| 230 | return NULL; | ||
| 231 | |||
| 232 | |||
| 233 | /* *item != NULL */ | ||
| 234 | ret = *item; | ||
| 235 | *item = (*item)->next; | ||
| 236 | |||
| 237 | return ret; | ||
| 238 | } | ||
| 239 | |||
| 240 | int | ||
| 241 | pqueue_size(pqueue_s *pq) | ||
| 242 | { | ||
| 243 | pitem *item = pq->items; | ||
| 244 | int count = 0; | ||
| 245 | |||
| 246 | while(item != NULL) | ||
| 247 | { | ||
| 248 | count++; | ||
| 249 | item = item->next; | ||
| 250 | } | ||
| 251 | return count; | ||
| 252 | } | ||
diff --git a/src/lib/libcrypto/pqueue/pqueue.h b/src/lib/libcrypto/pqueue/pqueue.h deleted file mode 100644 index 87fc9037c8..0000000000 --- a/src/lib/libcrypto/pqueue/pqueue.h +++ /dev/null | |||
| @@ -1,94 +0,0 @@ | |||
| 1 | /* crypto/pqueue/pqueue.h */ | ||
| 2 | /* | ||
| 3 | * DTLS implementation written by Nagendra Modadugu | ||
| 4 | * (nagendra@cs.stanford.edu) for the OpenSSL project 2005. | ||
| 5 | */ | ||
| 6 | /* ==================================================================== | ||
| 7 | * Copyright (c) 1999-2005 The OpenSSL Project. All rights reserved. | ||
| 8 | * | ||
| 9 | * Redistribution and use in source and binary forms, with or without | ||
| 10 | * modification, are permitted provided that the following conditions | ||
| 11 | * are met: | ||
| 12 | * | ||
| 13 | * 1. Redistributions of source code must retain the above copyright | ||
| 14 | * notice, this list of conditions and the following disclaimer. | ||
| 15 | * | ||
| 16 | * 2. Redistributions in binary form must reproduce the above copyright | ||
| 17 | * notice, this list of conditions and the following disclaimer in | ||
| 18 | * the documentation and/or other materials provided with the | ||
| 19 | * distribution. | ||
| 20 | * | ||
| 21 | * 3. All advertising materials mentioning features or use of this | ||
| 22 | * software must display the following acknowledgment: | ||
| 23 | * "This product includes software developed by the OpenSSL Project | ||
| 24 | * for use in the OpenSSL Toolkit. (http://www.OpenSSL.org/)" | ||
| 25 | * | ||
| 26 | * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to | ||
| 27 | * endorse or promote products derived from this software without | ||
| 28 | * prior written permission. For written permission, please contact | ||
| 29 | * openssl-core@OpenSSL.org. | ||
| 30 | * | ||
| 31 | * 5. Products derived from this software may not be called "OpenSSL" | ||
| 32 | * nor may "OpenSSL" appear in their names without prior written | ||
| 33 | * permission of the OpenSSL Project. | ||
| 34 | * | ||
| 35 | * 6. Redistributions of any form whatsoever must retain the following | ||
| 36 | * acknowledgment: | ||
| 37 | * "This product includes software developed by the OpenSSL Project | ||
| 38 | * for use in the OpenSSL Toolkit (http://www.OpenSSL.org/)" | ||
| 39 | * | ||
| 40 | * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY | ||
| 41 | * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
| 42 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | ||
| 43 | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR | ||
| 44 | * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
| 45 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | ||
| 46 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
| 47 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
| 48 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | ||
| 49 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
| 50 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | ||
| 51 | * OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| 52 | * ==================================================================== | ||
| 53 | * | ||
| 54 | * This product includes cryptographic software written by Eric Young | ||
| 55 | * (eay@cryptsoft.com). This product includes software written by Tim | ||
| 56 | * Hudson (tjh@cryptsoft.com). | ||
| 57 | * | ||
| 58 | */ | ||
| 59 | |||
| 60 | #ifndef HEADER_PQUEUE_H | ||
| 61 | #define HEADER_PQUEUE_H | ||
| 62 | |||
| 63 | #include <stdio.h> | ||
| 64 | #include <stdlib.h> | ||
| 65 | #include <string.h> | ||
| 66 | |||
| 67 | typedef struct _pqueue *pqueue; | ||
| 68 | |||
| 69 | typedef struct _pitem | ||
| 70 | { | ||
| 71 | unsigned char priority[8]; /* 64-bit value in big-endian encoding */ | ||
| 72 | void *data; | ||
| 73 | struct _pitem *next; | ||
| 74 | } pitem; | ||
| 75 | |||
| 76 | typedef struct _pitem *piterator; | ||
| 77 | |||
| 78 | pitem *pitem_new(unsigned char *prio64be, void *data); | ||
| 79 | void pitem_free(pitem *item); | ||
| 80 | |||
| 81 | pqueue pqueue_new(void); | ||
| 82 | void pqueue_free(pqueue pq); | ||
| 83 | |||
| 84 | pitem *pqueue_insert(pqueue pq, pitem *item); | ||
| 85 | pitem *pqueue_peek(pqueue pq); | ||
| 86 | pitem *pqueue_pop(pqueue pq); | ||
| 87 | pitem *pqueue_find(pqueue pq, unsigned char *prio64be); | ||
| 88 | pitem *pqueue_iterator(pqueue pq); | ||
| 89 | pitem *pqueue_next(piterator *iter); | ||
| 90 | |||
| 91 | void pqueue_print(pqueue pq); | ||
| 92 | int pqueue_size(pqueue pq); | ||
| 93 | |||
| 94 | #endif /* ! HEADER_PQUEUE_H */ | ||
diff --git a/src/lib/libcrypto/rand/Makefile.ssl b/src/lib/libcrypto/rand/Makefile.ssl deleted file mode 100644 index e5cbe5319c..0000000000 --- a/src/lib/libcrypto/rand/Makefile.ssl +++ /dev/null | |||
| @@ -1,196 +0,0 @@ | |||
| 1 | # | ||
| 2 | # SSLeay/crypto/rand/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= rand | ||
| 6 | TOP= ../.. | ||
| 7 | CC= cc | ||
| 8 | INCLUDES= | ||
| 9 | CFLAG=-g | ||
| 10 | INSTALL_PREFIX= | ||
| 11 | OPENSSLDIR= /usr/local/ssl | ||
| 12 | INSTALLTOP=/usr/local/ssl | ||
| 13 | MAKE= make -f Makefile.ssl | ||
| 14 | MAKEDEPPROG= makedepend | ||
| 15 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
| 16 | MAKEFILE= Makefile.ssl | ||
| 17 | AR= ar r | ||
| 18 | |||
| 19 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 20 | |||
| 21 | GENERAL=Makefile | ||
| 22 | TEST= randtest.c | ||
| 23 | APPS= | ||
| 24 | |||
| 25 | LIB=$(TOP)/libcrypto.a | ||
| 26 | LIBSRC=md_rand.c randfile.c rand_lib.c rand_err.c rand_egd.c \ | ||
| 27 | rand_win.c rand_unix.c rand_os2.c | ||
| 28 | LIBOBJ=md_rand.o randfile.o rand_lib.o rand_err.o rand_egd.o \ | ||
| 29 | rand_win.o rand_unix.o rand_os2.o | ||
| 30 | |||
| 31 | SRC= $(LIBSRC) | ||
| 32 | |||
| 33 | EXHEADER= rand.h | ||
| 34 | HEADER= $(EXHEADER) | ||
| 35 | |||
| 36 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
| 37 | |||
| 38 | top: | ||
| 39 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
| 40 | |||
| 41 | all: lib | ||
| 42 | |||
| 43 | lib: $(LIBOBJ) | ||
| 44 | $(AR) $(LIB) $(LIBOBJ) | ||
| 45 | $(RANLIB) $(LIB) || echo Never mind. | ||
| 46 | @touch lib | ||
| 47 | |||
| 48 | files: | ||
| 49 | $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
| 50 | |||
| 51 | links: | ||
| 52 | @sh $(TOP)/util/point.sh Makefile.ssl Makefile | ||
| 53 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | ||
| 54 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | ||
| 55 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | ||
| 56 | |||
| 57 | install: | ||
| 58 | @for i in $(EXHEADER) ; \ | ||
| 59 | do \ | ||
| 60 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 61 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$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) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(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 | rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
| 81 | |||
| 82 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 83 | |||
| 84 | md_rand.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 85 | md_rand.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 86 | md_rand.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 87 | md_rand.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 88 | md_rand.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 89 | md_rand.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 90 | md_rand.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 91 | md_rand.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 92 | md_rand.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 93 | md_rand.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 94 | md_rand.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 95 | md_rand.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 96 | md_rand.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 97 | md_rand.o: ../../include/openssl/rand.h ../../include/openssl/rc2.h | ||
| 98 | md_rand.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 99 | md_rand.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 100 | md_rand.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 101 | md_rand.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 102 | md_rand.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 103 | md_rand.o: md_rand.c rand_lcl.h | ||
| 104 | rand_egd.o: ../../include/openssl/buffer.h ../../include/openssl/e_os2.h | ||
| 105 | rand_egd.o: ../../include/openssl/opensslconf.h | ||
| 106 | rand_egd.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h | ||
| 107 | rand_egd.o: rand_egd.c | ||
| 108 | rand_err.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h | ||
| 109 | rand_err.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 110 | rand_err.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 111 | rand_err.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 112 | rand_err.o: ../../include/openssl/rand.h ../../include/openssl/safestack.h | ||
| 113 | rand_err.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 114 | rand_err.o: rand_err.c | ||
| 115 | rand_lib.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 116 | rand_lib.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 117 | rand_lib.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 118 | rand_lib.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 119 | rand_lib.o: ../../include/openssl/e_os2.h ../../include/openssl/engine.h | ||
| 120 | rand_lib.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
| 121 | rand_lib.o: ../../include/openssl/opensslconf.h | ||
| 122 | rand_lib.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 123 | rand_lib.o: ../../include/openssl/rand.h ../../include/openssl/rsa.h | ||
| 124 | rand_lib.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 125 | rand_lib.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 126 | rand_lib.o: ../cryptlib.h rand_lib.c | ||
| 127 | rand_os2.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 128 | rand_os2.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 129 | rand_os2.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 130 | rand_os2.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 131 | rand_os2.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 132 | rand_os2.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 133 | rand_os2.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 134 | rand_os2.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 135 | rand_os2.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 136 | rand_os2.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 137 | rand_os2.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 138 | rand_os2.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 139 | rand_os2.o: ../../include/openssl/opensslconf.h | ||
| 140 | rand_os2.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 141 | rand_os2.o: ../../include/openssl/rand.h ../../include/openssl/rc2.h | ||
| 142 | rand_os2.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 143 | rand_os2.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 144 | rand_os2.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 145 | rand_os2.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 146 | rand_os2.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 147 | rand_os2.o: ../cryptlib.h rand_lcl.h rand_os2.c | ||
| 148 | rand_unix.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 149 | rand_unix.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 150 | rand_unix.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 151 | rand_unix.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 152 | rand_unix.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 153 | rand_unix.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 154 | rand_unix.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 155 | rand_unix.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 156 | rand_unix.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 157 | rand_unix.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 158 | rand_unix.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 159 | rand_unix.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 160 | rand_unix.o: ../../include/openssl/opensslconf.h | ||
| 161 | rand_unix.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 162 | rand_unix.o: ../../include/openssl/rand.h ../../include/openssl/rc2.h | ||
| 163 | rand_unix.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 164 | rand_unix.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 165 | rand_unix.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 166 | rand_unix.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 167 | rand_unix.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 168 | rand_unix.o: ../cryptlib.h rand_lcl.h rand_unix.c | ||
| 169 | rand_win.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 170 | rand_win.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 171 | rand_win.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 172 | rand_win.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 173 | rand_win.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 174 | rand_win.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 175 | rand_win.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 176 | rand_win.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 177 | rand_win.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 178 | rand_win.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 179 | rand_win.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 180 | rand_win.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 181 | rand_win.o: ../../include/openssl/opensslconf.h | ||
| 182 | rand_win.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 183 | rand_win.o: ../../include/openssl/rand.h ../../include/openssl/rc2.h | ||
| 184 | rand_win.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 185 | rand_win.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 186 | rand_win.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 187 | rand_win.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 188 | rand_win.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 189 | rand_win.o: ../cryptlib.h rand_lcl.h rand_win.c | ||
| 190 | randfile.o: ../../e_os.h ../../include/openssl/buffer.h | ||
| 191 | randfile.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 192 | randfile.o: ../../include/openssl/opensslconf.h | ||
| 193 | randfile.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 194 | randfile.o: ../../include/openssl/rand.h ../../include/openssl/safestack.h | ||
| 195 | randfile.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 196 | randfile.o: randfile.c | ||
diff --git a/src/lib/libcrypto/rand/rand_nw.c b/src/lib/libcrypto/rand/rand_nw.c deleted file mode 100644 index 8d5b8d2e32..0000000000 --- a/src/lib/libcrypto/rand/rand_nw.c +++ /dev/null | |||
| @@ -1,183 +0,0 @@ | |||
| 1 | /* crypto/rand/rand_nw.c */ | ||
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | ||
| 3 | * All rights reserved. | ||
| 4 | * | ||
| 5 | * This package is an SSL implementation written | ||
| 6 | * by Eric Young (eay@cryptsoft.com). | ||
| 7 | * The implementation was written so as to conform with Netscapes SSL. | ||
| 8 | * | ||
| 9 | * This library is free for commercial and non-commercial use as long as | ||
| 10 | * the following conditions are aheared to. The following conditions | ||
| 11 | * apply to all code found in this distribution, be it the RC4, RSA, | ||
| 12 | * lhash, DES, etc., code; not just the SSL code. The SSL documentation | ||
| 13 | * included with this distribution is covered by the same copyright terms | ||
| 14 | * except that the holder is Tim Hudson (tjh@cryptsoft.com). | ||
| 15 | * | ||
| 16 | * Copyright remains Eric Young's, and as such any Copyright notices in | ||
| 17 | * the code are not to be removed. | ||
| 18 | * If this package is used in a product, Eric Young should be given attribution | ||
| 19 | * as the author of the parts of the library used. | ||
| 20 | * This can be in the form of a textual message at program startup or | ||
| 21 | * in documentation (online or textual) provided with the package. | ||
| 22 | * | ||
| 23 | * Redistribution and use in source and binary forms, with or without | ||
| 24 | * modification, are permitted provided that the following conditions | ||
| 25 | * are met: | ||
| 26 | * 1. Redistributions of source code must retain the copyright | ||
| 27 | * notice, this list of conditions and the following disclaimer. | ||
| 28 | * 2. Redistributions in binary form must reproduce the above copyright | ||
| 29 | * notice, this list of conditions and the following disclaimer in the | ||
| 30 | * documentation and/or other materials provided with the distribution. | ||
| 31 | * 3. All advertising materials mentioning features or use of this software | ||
| 32 | * must display the following acknowledgement: | ||
| 33 | * "This product includes cryptographic software written by | ||
| 34 | * Eric Young (eay@cryptsoft.com)" | ||
| 35 | * The word 'cryptographic' can be left out if the rouines from the library | ||
| 36 | * being used are not cryptographic related :-). | ||
| 37 | * 4. If you include any Windows specific code (or a derivative thereof) from | ||
| 38 | * the apps directory (application code) you must include an acknowledgement: | ||
| 39 | * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" | ||
| 40 | * | ||
| 41 | * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND | ||
| 42 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
| 43 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
| 44 | * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE | ||
| 45 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
| 46 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | ||
| 47 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
| 48 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
| 49 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||
| 50 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||
| 51 | * SUCH DAMAGE. | ||
| 52 | * | ||
| 53 | * The licence and distribution terms for any publically available version or | ||
| 54 | * derivative of this code cannot be changed. i.e. this code cannot simply be | ||
| 55 | * copied and put under another distribution licence | ||
| 56 | * [including the GNU Public Licence.] | ||
| 57 | */ | ||
| 58 | /* ==================================================================== | ||
| 59 | * Copyright (c) 1998-2000 The OpenSSL Project. All rights reserved. | ||
| 60 | * | ||
| 61 | * Redistribution and use in source and binary forms, with or without | ||
| 62 | * modification, are permitted provided that the following conditions | ||
| 63 | * are met: | ||
| 64 | * | ||
| 65 | * 1. Redistributions of source code must retain the above copyright | ||
| 66 | * notice, this list of conditions and the following disclaimer. | ||
| 67 | * | ||
| 68 | * 2. Redistributions in binary form must reproduce the above copyright | ||
| 69 | * notice, this list of conditions and the following disclaimer in | ||
| 70 | * the documentation and/or other materials provided with the | ||
| 71 | * distribution. | ||
| 72 | * | ||
| 73 | * 3. All advertising materials mentioning features or use of this | ||
| 74 | * software must display the following acknowledgment: | ||
| 75 | * "This product includes software developed by the OpenSSL Project | ||
| 76 | * for use in the OpenSSL Toolkit. (http://www.openssl.org/)" | ||
| 77 | * | ||
| 78 | * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to | ||
| 79 | * endorse or promote products derived from this software without | ||
| 80 | * prior written permission. For written permission, please contact | ||
| 81 | * openssl-core@openssl.org. | ||
| 82 | * | ||
| 83 | * 5. Products derived from this software may not be called "OpenSSL" | ||
| 84 | * nor may "OpenSSL" appear in their names without prior written | ||
| 85 | * permission of the OpenSSL Project. | ||
| 86 | * | ||
| 87 | * 6. Redistributions of any form whatsoever must retain the following | ||
| 88 | * acknowledgment: | ||
| 89 | * "This product includes software developed by the OpenSSL Project | ||
| 90 | * for use in the OpenSSL Toolkit (http://www.openssl.org/)" | ||
| 91 | * | ||
| 92 | * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY | ||
| 93 | * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
| 94 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | ||
| 95 | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR | ||
| 96 | * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
| 97 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | ||
| 98 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
| 99 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
| 100 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | ||
| 101 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
| 102 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | ||
| 103 | * OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| 104 | * ==================================================================== | ||
| 105 | * | ||
| 106 | * This product includes cryptographic software written by Eric Young | ||
| 107 | * (eay@cryptsoft.com). This product includes software written by Tim | ||
| 108 | * Hudson (tjh@cryptsoft.com). | ||
| 109 | * | ||
| 110 | */ | ||
| 111 | |||
| 112 | #include "cryptlib.h" | ||
| 113 | #include <openssl/rand.h> | ||
| 114 | #include "rand_lcl.h" | ||
| 115 | |||
| 116 | #if defined (OPENSSL_SYS_NETWARE) | ||
| 117 | |||
| 118 | #if defined(NETWARE_LIBC) | ||
| 119 | #include <nks/thread.h> | ||
| 120 | #else | ||
| 121 | #include <nwthread.h> | ||
| 122 | #endif | ||
| 123 | |||
| 124 | extern int GetProcessSwitchCount(void); | ||
| 125 | #if !defined(NETWARE_LIBC) || (CURRENT_NDK_THRESHOLD < 509220000) | ||
| 126 | extern void *RunningProcess; /* declare here same as found in newer NDKs */ | ||
| 127 | extern unsigned long GetSuperHighResolutionTimer(void); | ||
| 128 | #endif | ||
| 129 | |||
| 130 | /* the FAQ indicates we need to provide at least 20 bytes (160 bits) of seed | ||
| 131 | */ | ||
| 132 | int RAND_poll(void) | ||
| 133 | { | ||
| 134 | unsigned long l; | ||
| 135 | unsigned long tsc; | ||
| 136 | int i; | ||
| 137 | |||
| 138 | /* There are several options to gather miscellaneous data | ||
| 139 | * but for now we will loop checking the time stamp counter (rdtsc) and | ||
| 140 | * the SuperHighResolutionTimer. Each iteration will collect 8 bytes | ||
| 141 | * of data but it is treated as only 1 byte of entropy. The call to | ||
| 142 | * ThreadSwitchWithDelay() will introduce additional variability into | ||
| 143 | * the data returned by rdtsc. | ||
| 144 | * | ||
| 145 | * Applications can agument the seed material by adding additional | ||
| 146 | * stuff with RAND_add() and should probably do so. | ||
| 147 | */ | ||
| 148 | l = GetProcessSwitchCount(); | ||
| 149 | RAND_add(&l,sizeof(l),1); | ||
| 150 | |||
| 151 | /* need to cast the void* to unsigned long here */ | ||
| 152 | l = (unsigned long)RunningProcess; | ||
| 153 | RAND_add(&l,sizeof(l),1); | ||
| 154 | |||
| 155 | for( i=2; i<ENTROPY_NEEDED; i++) | ||
| 156 | { | ||
| 157 | #ifdef __MWERKS__ | ||
| 158 | asm | ||
| 159 | { | ||
| 160 | rdtsc | ||
| 161 | mov tsc, eax | ||
| 162 | } | ||
| 163 | #elif defined(__GNUC__) && __GNUC__>=2 && !defined(OPENSSL_NO_ASM) && !defined(OPENSSL_NO_INLINE_ASM) | ||
| 164 | asm volatile("rdtsc":"=a"(tsc)::"edx"); | ||
| 165 | #endif | ||
| 166 | |||
| 167 | RAND_add(&tsc, sizeof(tsc), 1); | ||
| 168 | |||
| 169 | l = GetSuperHighResolutionTimer(); | ||
| 170 | RAND_add(&l, sizeof(l), 0); | ||
| 171 | |||
| 172 | # if defined(NETWARE_LIBC) | ||
| 173 | NXThreadYield(); | ||
| 174 | # else /* NETWARE_CLIB */ | ||
| 175 | ThreadSwitchWithDelay(); | ||
| 176 | # endif | ||
| 177 | } | ||
| 178 | |||
| 179 | return 1; | ||
| 180 | } | ||
| 181 | |||
| 182 | #endif | ||
| 183 | |||
diff --git a/src/lib/libcrypto/rc2/Makefile.ssl b/src/lib/libcrypto/rc2/Makefile.ssl deleted file mode 100644 index 98d5960d5d..0000000000 --- a/src/lib/libcrypto/rc2/Makefile.ssl +++ /dev/null | |||
| @@ -1,91 +0,0 @@ | |||
| 1 | # | ||
| 2 | # SSLeay/crypto/rc2/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= rc2 | ||
| 6 | TOP= ../.. | ||
| 7 | CC= cc | ||
| 8 | INCLUDES= | ||
| 9 | CFLAG=-g | ||
| 10 | INSTALL_PREFIX= | ||
| 11 | OPENSSLDIR= /usr/local/ssl | ||
| 12 | INSTALLTOP=/usr/local/ssl | ||
| 13 | MAKE= make -f Makefile.ssl | ||
| 14 | MAKEDEPPROG= makedepend | ||
| 15 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
| 16 | MAKEFILE= Makefile.ssl | ||
| 17 | AR= ar r | ||
| 18 | |||
| 19 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 20 | |||
| 21 | GENERAL=Makefile | ||
| 22 | TEST=rc2test.c | ||
| 23 | APPS= | ||
| 24 | |||
| 25 | LIB=$(TOP)/libcrypto.a | ||
| 26 | LIBSRC=rc2_ecb.c rc2_skey.c rc2_cbc.c rc2cfb64.c rc2ofb64.c | ||
| 27 | LIBOBJ=rc2_ecb.o rc2_skey.o rc2_cbc.o rc2cfb64.o rc2ofb64.o | ||
| 28 | |||
| 29 | SRC= $(LIBSRC) | ||
| 30 | |||
| 31 | EXHEADER= rc2.h | ||
| 32 | HEADER= rc2_locl.h $(EXHEADER) | ||
| 33 | |||
| 34 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
| 35 | |||
| 36 | top: | ||
| 37 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
| 38 | |||
| 39 | all: lib | ||
| 40 | |||
| 41 | lib: $(LIBOBJ) | ||
| 42 | $(AR) $(LIB) $(LIBOBJ) | ||
| 43 | $(RANLIB) $(LIB) || echo Never mind. | ||
| 44 | @touch lib | ||
| 45 | |||
| 46 | files: | ||
| 47 | $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
| 48 | |||
| 49 | links: | ||
| 50 | @sh $(TOP)/util/point.sh Makefile.ssl Makefile | ||
| 51 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | ||
| 52 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | ||
| 53 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | ||
| 54 | |||
| 55 | install: | ||
| 56 | @for i in $(EXHEADER) ; \ | ||
| 57 | do \ | ||
| 58 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 59 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
| 60 | done; | ||
| 61 | |||
| 62 | tags: | ||
| 63 | ctags $(SRC) | ||
| 64 | |||
| 65 | tests: | ||
| 66 | |||
| 67 | lint: | ||
| 68 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
| 69 | |||
| 70 | depend: | ||
| 71 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) | ||
| 72 | |||
| 73 | dclean: | ||
| 74 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 75 | mv -f Makefile.new $(MAKEFILE) | ||
| 76 | |||
| 77 | clean: | ||
| 78 | rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
| 79 | |||
| 80 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 81 | |||
| 82 | rc2_cbc.o: ../../include/openssl/opensslconf.h ../../include/openssl/rc2.h | ||
| 83 | rc2_cbc.o: rc2_cbc.c rc2_locl.h | ||
| 84 | rc2_ecb.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 85 | rc2_ecb.o: ../../include/openssl/rc2.h rc2_ecb.c rc2_locl.h | ||
| 86 | rc2_skey.o: ../../include/openssl/opensslconf.h ../../include/openssl/rc2.h | ||
| 87 | rc2_skey.o: rc2_locl.h rc2_skey.c | ||
| 88 | rc2cfb64.o: ../../include/openssl/opensslconf.h ../../include/openssl/rc2.h | ||
| 89 | rc2cfb64.o: rc2_locl.h rc2cfb64.c | ||
| 90 | rc2ofb64.o: ../../include/openssl/opensslconf.h ../../include/openssl/rc2.h | ||
| 91 | rc2ofb64.o: rc2_locl.h rc2ofb64.c | ||
diff --git a/src/lib/libcrypto/rc4/Makefile.ssl b/src/lib/libcrypto/rc4/Makefile.ssl deleted file mode 100644 index 3e602662be..0000000000 --- a/src/lib/libcrypto/rc4/Makefile.ssl +++ /dev/null | |||
| @@ -1,110 +0,0 @@ | |||
| 1 | # | ||
| 2 | # SSLeay/crypto/rc4/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= rc4 | ||
| 6 | TOP= ../.. | ||
| 7 | CC= cc | ||
| 8 | CPP= $(CC) -E | ||
| 9 | INCLUDES= | ||
| 10 | CFLAG=-g | ||
| 11 | INSTALL_PREFIX= | ||
| 12 | OPENSSLDIR= /usr/local/ssl | ||
| 13 | INSTALLTOP=/usr/local/ssl | ||
| 14 | MAKE= make -f Makefile.ssl | ||
| 15 | MAKEDEPPROG= makedepend | ||
| 16 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
| 17 | MAKEFILE= Makefile.ssl | ||
| 18 | AR= ar r | ||
| 19 | |||
| 20 | RC4_ENC=rc4_enc.o | ||
| 21 | # or use | ||
| 22 | #RC4_ENC=asm/rx86-elf.o | ||
| 23 | #RC4_ENC=asm/rx86-out.o | ||
| 24 | #RC4_ENC=asm/rx86-sol.o | ||
| 25 | #RC4_ENC=asm/rx86bdsi.o | ||
| 26 | |||
| 27 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 28 | ASFLAGS= $(INCLUDES) $(ASFLAG) | ||
| 29 | |||
| 30 | GENERAL=Makefile | ||
| 31 | TEST=rc4test.c | ||
| 32 | APPS= | ||
| 33 | |||
| 34 | LIB=$(TOP)/libcrypto.a | ||
| 35 | LIBSRC=rc4_skey.c rc4_enc.c | ||
| 36 | LIBOBJ=rc4_skey.o $(RC4_ENC) | ||
| 37 | |||
| 38 | SRC= $(LIBSRC) | ||
| 39 | |||
| 40 | EXHEADER= rc4.h | ||
| 41 | HEADER= $(EXHEADER) rc4_locl.h | ||
| 42 | |||
| 43 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
| 44 | |||
| 45 | top: | ||
| 46 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
| 47 | |||
| 48 | all: lib | ||
| 49 | |||
| 50 | lib: $(LIBOBJ) | ||
| 51 | $(AR) $(LIB) $(LIBOBJ) | ||
| 52 | $(RANLIB) $(LIB) || echo Never mind. | ||
| 53 | @touch lib | ||
| 54 | |||
| 55 | # elf | ||
| 56 | asm/rx86-elf.s: asm/rc4-586.pl ../perlasm/x86asm.pl | ||
| 57 | (cd asm; $(PERL) rc4-586.pl elf $(CFLAGS) > rx86-elf.s) | ||
| 58 | |||
| 59 | # a.out | ||
| 60 | asm/rx86-out.o: asm/rx86unix.cpp | ||
| 61 | $(CPP) -DOUT asm/rx86unix.cpp | as -o asm/rx86-out.o | ||
| 62 | |||
| 63 | # bsdi | ||
| 64 | asm/rx86bsdi.o: asm/rx86unix.cpp | ||
| 65 | $(CPP) -DBSDI asm/rx86unix.cpp | sed 's/ :/:/' | as -o asm/rx86bsdi.o | ||
| 66 | |||
| 67 | asm/rx86unix.cpp: asm/rc4-586.pl ../perlasm/x86asm.pl | ||
| 68 | (cd asm; $(PERL) rc4-586.pl cpp >rx86unix.cpp) | ||
| 69 | |||
| 70 | files: | ||
| 71 | $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
| 72 | |||
| 73 | links: | ||
| 74 | @sh $(TOP)/util/point.sh Makefile.ssl Makefile | ||
| 75 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | ||
| 76 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | ||
| 77 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | ||
| 78 | |||
| 79 | install: | ||
| 80 | @for i in $(EXHEADER) ; \ | ||
| 81 | do \ | ||
| 82 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 83 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
| 84 | done; | ||
| 85 | |||
| 86 | tags: | ||
| 87 | ctags $(SRC) | ||
| 88 | |||
| 89 | tests: | ||
| 90 | |||
| 91 | lint: | ||
| 92 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
| 93 | |||
| 94 | depend: | ||
| 95 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) | ||
| 96 | |||
| 97 | dclean: | ||
| 98 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 99 | mv -f Makefile.new $(MAKEFILE) | ||
| 100 | |||
| 101 | clean: | ||
| 102 | rm -f asm/rx86unix.cpp asm/*-elf.* *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff asm/*.o | ||
| 103 | |||
| 104 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 105 | |||
| 106 | rc4_enc.o: ../../include/openssl/opensslconf.h ../../include/openssl/rc4.h | ||
| 107 | rc4_enc.o: rc4_enc.c rc4_locl.h | ||
| 108 | rc4_skey.o: ../../include/openssl/opensslconf.h | ||
| 109 | rc4_skey.o: ../../include/openssl/opensslv.h ../../include/openssl/rc4.h | ||
| 110 | rc4_skey.o: rc4_locl.h rc4_skey.c | ||
diff --git a/src/lib/libcrypto/rc4/asm/rc4-amd64.pl b/src/lib/libcrypto/rc4/asm/rc4-amd64.pl deleted file mode 100755 index 9e0da8af99..0000000000 --- a/src/lib/libcrypto/rc4/asm/rc4-amd64.pl +++ /dev/null | |||
| @@ -1,227 +0,0 @@ | |||
| 1 | #!/usr/bin/env perl | ||
| 2 | # | ||
| 3 | # ==================================================================== | ||
| 4 | # Written by Andy Polyakov <appro@fy.chalmers.se> for the OpenSSL | ||
| 5 | # project. Rights for redistribution and usage in source and binary | ||
| 6 | # forms are granted according to the OpenSSL license. | ||
| 7 | # ==================================================================== | ||
| 8 | # | ||
| 9 | # 2.22x RC4 tune-up:-) It should be noted though that my hand [as in | ||
| 10 | # "hand-coded assembler"] doesn't stand for the whole improvement | ||
| 11 | # coefficient. It turned out that eliminating RC4_CHAR from config | ||
| 12 | # line results in ~40% improvement (yes, even for C implementation). | ||
| 13 | # Presumably it has everything to do with AMD cache architecture and | ||
| 14 | # RAW or whatever penalties. Once again! The module *requires* config | ||
| 15 | # line *without* RC4_CHAR! As for coding "secret," I bet on partial | ||
| 16 | # register arithmetics. For example instead of 'inc %r8; and $255,%r8' | ||
| 17 | # I simply 'inc %r8b'. Even though optimization manual discourages | ||
| 18 | # to operate on partial registers, it turned out to be the best bet. | ||
| 19 | # At least for AMD... How IA32E would perform remains to be seen... | ||
| 20 | |||
| 21 | # As was shown by Marc Bevand reordering of couple of load operations | ||
| 22 | # results in even higher performance gain of 3.3x:-) At least on | ||
| 23 | # Opteron... For reference, 1x in this case is RC4_CHAR C-code | ||
| 24 | # compiled with gcc 3.3.2, which performs at ~54MBps per 1GHz clock. | ||
| 25 | # Latter means that if you want to *estimate* what to expect from | ||
| 26 | # *your* CPU, then multiply 54 by 3.3 and clock frequency in GHz. | ||
| 27 | |||
| 28 | # Intel P4 EM64T core was found to run the AMD64 code really slow... | ||
| 29 | # The only way to achieve comparable performance on P4 is to keep | ||
| 30 | # RC4_CHAR. Kind of ironic, huh? As it's apparently impossible to | ||
| 31 | # compose blended code, which would perform even within 30% marginal | ||
| 32 | # on either AMD and Intel platforms, I implement both cases. See | ||
| 33 | # rc4_skey.c for further details... This applies to 0.9.8 and later. | ||
| 34 | # In 0.9.7 context RC4_CHAR codepath is never engaged and ~70 bytes | ||
| 35 | # of code remain redundant. | ||
| 36 | |||
| 37 | $output=shift; | ||
| 38 | |||
| 39 | $win64a=1 if ($output =~ /win64a.[s|asm]/); | ||
| 40 | |||
| 41 | open STDOUT,">$output" || die "can't open $output: $!"; | ||
| 42 | |||
| 43 | if (defined($win64a)) { | ||
| 44 | $dat="%rcx"; # arg1 | ||
| 45 | $len="%rdx"; # arg2 | ||
| 46 | $inp="%rsi"; # r8, arg3 moves here | ||
| 47 | $out="%rdi"; # r9, arg4 moves here | ||
| 48 | } else { | ||
| 49 | $dat="%rdi"; # arg1 | ||
| 50 | $len="%rsi"; # arg2 | ||
| 51 | $inp="%rdx"; # arg3 | ||
| 52 | $out="%rcx"; # arg4 | ||
| 53 | } | ||
| 54 | |||
| 55 | $XX="%r10"; | ||
| 56 | $TX="%r8"; | ||
| 57 | $YY="%r11"; | ||
| 58 | $TY="%r9"; | ||
| 59 | |||
| 60 | sub PTR() { | ||
| 61 | my $ret=shift; | ||
| 62 | if (defined($win64a)) { | ||
| 63 | $ret =~ s/\[([\S]+)\+([\S]+)\]/[$2+$1]/g; # [%rN+%rM*4]->[%rM*4+%rN] | ||
| 64 | $ret =~ s/:([^\[]+)\[([^\]]+)\]/:[$2+$1]/g; # :off[ea]->:[ea+off] | ||
| 65 | } else { | ||
| 66 | $ret =~ s/[\+\*]/,/g; # [%rN+%rM*4]->[%rN,%rM,4] | ||
| 67 | $ret =~ s/\[([^\]]+)\]/($1)/g; # [%rN]->(%rN) | ||
| 68 | } | ||
| 69 | $ret; | ||
| 70 | } | ||
| 71 | |||
| 72 | $code=<<___ if (!defined($win64a)); | ||
| 73 | .text | ||
| 74 | |||
| 75 | .globl RC4 | ||
| 76 | .type RC4,\@function | ||
| 77 | .align 16 | ||
| 78 | RC4: or $len,$len | ||
| 79 | jne .Lentry | ||
| 80 | repret | ||
| 81 | .Lentry: | ||
| 82 | ___ | ||
| 83 | $code=<<___ if (defined($win64a)); | ||
| 84 | _TEXT SEGMENT | ||
| 85 | PUBLIC RC4 | ||
| 86 | ALIGN 16 | ||
| 87 | RC4 PROC | ||
| 88 | or $len,$len | ||
| 89 | jne .Lentry | ||
| 90 | repret | ||
| 91 | .Lentry: | ||
| 92 | push %rdi | ||
| 93 | push %rsi | ||
| 94 | sub \$40,%rsp | ||
| 95 | mov %r8,$inp | ||
| 96 | mov %r9,$out | ||
| 97 | ___ | ||
| 98 | $code.=<<___; | ||
| 99 | add \$8,$dat | ||
| 100 | movl `&PTR("DWORD:-8[$dat]")`,$XX#d | ||
| 101 | movl `&PTR("DWORD:-4[$dat]")`,$YY#d | ||
| 102 | cmpl \$-1,`&PTR("DWORD:256[$dat]")` | ||
| 103 | je .LRC4_CHAR | ||
| 104 | test \$-8,$len | ||
| 105 | jz .Lloop1 | ||
| 106 | .align 16 | ||
| 107 | .Lloop8: | ||
| 108 | inc $XX#b | ||
| 109 | movl `&PTR("DWORD:[$dat+$XX*4]")`,$TX#d | ||
| 110 | add $TX#b,$YY#b | ||
| 111 | movl `&PTR("DWORD:[$dat+$YY*4]")`,$TY#d | ||
| 112 | movl $TX#d,`&PTR("DWORD:[$dat+$YY*4]")` | ||
| 113 | movl $TY#d,`&PTR("DWORD:[$dat+$XX*4]")` | ||
| 114 | add $TX#b,$TY#b | ||
| 115 | inc $XX#b | ||
| 116 | movl `&PTR("DWORD:[$dat+$XX*4]")`,$TX#d | ||
| 117 | movb `&PTR("BYTE:[$dat+$TY*4]")`,%al | ||
| 118 | ___ | ||
| 119 | for ($i=1;$i<=6;$i++) { | ||
| 120 | $code.=<<___; | ||
| 121 | add $TX#b,$YY#b | ||
| 122 | ror \$8,%rax | ||
| 123 | movl `&PTR("DWORD:[$dat+$YY*4]")`,$TY#d | ||
| 124 | movl $TX#d,`&PTR("DWORD:[$dat+$YY*4]")` | ||
| 125 | movl $TY#d,`&PTR("DWORD:[$dat+$XX*4]")` | ||
| 126 | add $TX#b,$TY#b | ||
| 127 | inc $XX#b | ||
| 128 | movl `&PTR("DWORD:[$dat+$XX*4]")`,$TX#d | ||
| 129 | movb `&PTR("BYTE:[$dat+$TY*4]")`,%al | ||
| 130 | ___ | ||
| 131 | } | ||
| 132 | $code.=<<___; | ||
| 133 | add $TX#b,$YY#b | ||
| 134 | ror \$8,%rax | ||
| 135 | movl `&PTR("DWORD:[$dat+$YY*4]")`,$TY#d | ||
| 136 | movl $TX#d,`&PTR("DWORD:[$dat+$YY*4]")` | ||
| 137 | movl $TY#d,`&PTR("DWORD:[$dat+$XX*4]")` | ||
| 138 | sub \$8,$len | ||
| 139 | add $TY#b,$TX#b | ||
| 140 | movb `&PTR("BYTE:[$dat+$TX*4]")`,%al | ||
| 141 | ror \$8,%rax | ||
| 142 | add \$8,$inp | ||
| 143 | add \$8,$out | ||
| 144 | |||
| 145 | xor `&PTR("QWORD:-8[$inp]")`,%rax | ||
| 146 | mov %rax,`&PTR("QWORD:-8[$out]")` | ||
| 147 | |||
| 148 | test \$-8,$len | ||
| 149 | jnz .Lloop8 | ||
| 150 | cmp \$0,$len | ||
| 151 | jne .Lloop1 | ||
| 152 | .Lexit: | ||
| 153 | movl $XX#d,`&PTR("DWORD:-8[$dat]")` | ||
| 154 | movl $YY#d,`&PTR("DWORD:-4[$dat]")` | ||
| 155 | ___ | ||
| 156 | $code.=<<___ if (defined($win64a)); | ||
| 157 | add \$40,%rsp | ||
| 158 | pop %rsi | ||
| 159 | pop %rdi | ||
| 160 | ___ | ||
| 161 | $code.=<<___; | ||
| 162 | repret | ||
| 163 | .align 16 | ||
| 164 | .Lloop1: | ||
| 165 | movzb `&PTR("BYTE:[$inp]")`,%eax | ||
| 166 | inc $XX#b | ||
| 167 | movl `&PTR("DWORD:[$dat+$XX*4]")`,$TX#d | ||
| 168 | add $TX#b,$YY#b | ||
| 169 | movl `&PTR("DWORD:[$dat+$YY*4]")`,$TY#d | ||
| 170 | movl $TX#d,`&PTR("DWORD:[$dat+$YY*4]")` | ||
| 171 | movl $TY#d,`&PTR("DWORD:[$dat+$XX*4]")` | ||
| 172 | add $TY#b,$TX#b | ||
| 173 | movl `&PTR("DWORD:[$dat+$TX*4]")`,$TY#d | ||
| 174 | xor $TY,%rax | ||
| 175 | inc $inp | ||
| 176 | movb %al,`&PTR("BYTE:[$out]")` | ||
| 177 | inc $out | ||
| 178 | dec $len | ||
| 179 | jnz .Lloop1 | ||
| 180 | jmp .Lexit | ||
| 181 | |||
| 182 | .align 16 | ||
| 183 | .LRC4_CHAR: | ||
| 184 | inc $XX#b | ||
| 185 | movzb `&PTR("BYTE:[$dat+$XX]")`,$TX#d | ||
| 186 | add $TX#b,$YY#b | ||
| 187 | movzb `&PTR("BYTE:[$dat+$YY]")`,$TY#d | ||
| 188 | movb $TX#b,`&PTR("BYTE:[$dat+$YY]")` | ||
| 189 | movb $TY#b,`&PTR("BYTE:[$dat+$XX]")` | ||
| 190 | add $TX#b,$TY#b | ||
| 191 | movzb `&PTR("BYTE:[$dat+$TY]")`,$TY#d | ||
| 192 | xorb `&PTR("BYTE:[$inp]")`,$TY#b | ||
| 193 | movb $TY#b,`&PTR("BYTE:[$out]")` | ||
| 194 | inc $inp | ||
| 195 | inc $out | ||
| 196 | dec $len | ||
| 197 | jnz .LRC4_CHAR | ||
| 198 | jmp .Lexit | ||
| 199 | ___ | ||
| 200 | $code.=<<___ if (defined($win64a)); | ||
| 201 | RC4 ENDP | ||
| 202 | _TEXT ENDS | ||
| 203 | END | ||
| 204 | ___ | ||
| 205 | $code.=<<___ if (!defined($win64a)); | ||
| 206 | .size RC4,.-RC4 | ||
| 207 | ___ | ||
| 208 | |||
| 209 | $code =~ s/#([bwd])/$1/gm; | ||
| 210 | $code =~ s/\`([^\`]*)\`/eval $1/gem; | ||
| 211 | |||
| 212 | if (defined($win64a)) { | ||
| 213 | $code =~ s/\.align/ALIGN/gm; | ||
| 214 | $code =~ s/[\$%]//gm; | ||
| 215 | $code =~ s/\.L/\$L/gm; | ||
| 216 | $code =~ s/([\w]+)([\s]+)([\S]+),([\S]+)/$1$2$4,$3/gm; | ||
| 217 | $code =~ s/([QD]*WORD|BYTE):/$1 PTR/gm; | ||
| 218 | $code =~ s/mov[bwlq]/mov/gm; | ||
| 219 | $code =~ s/movzb/movzx/gm; | ||
| 220 | $code =~ s/repret/DB\t0F3h,0C3h/gm; | ||
| 221 | $code =~ s/cmpl/cmp/gm; | ||
| 222 | $code =~ s/xorb/xor/gm; | ||
| 223 | } else { | ||
| 224 | $code =~ s/([QD]*WORD|BYTE)://gm; | ||
| 225 | $code =~ s/repret/.byte\t0xF3,0xC3/gm; | ||
| 226 | } | ||
| 227 | print $code; | ||
diff --git a/src/lib/libcrypto/rc4/rc4_utl.c b/src/lib/libcrypto/rc4/rc4_utl.c deleted file mode 100644 index ab3f02fe6a..0000000000 --- a/src/lib/libcrypto/rc4/rc4_utl.c +++ /dev/null | |||
| @@ -1,62 +0,0 @@ | |||
| 1 | /* crypto/rc4/rc4_utl.c -*- mode:C; c-file-style: "eay" -*- */ | ||
| 2 | /* ==================================================================== | ||
| 3 | * Copyright (c) 2011 The OpenSSL Project. All rights reserved. | ||
| 4 | * | ||
| 5 | * Redistribution and use in source and binary forms, with or without | ||
| 6 | * modification, are permitted provided that the following conditions | ||
| 7 | * are met: | ||
| 8 | * | ||
| 9 | * 1. Redistributions of source code must retain the above copyright | ||
| 10 | * notice, this list of conditions and the following disclaimer. | ||
| 11 | * | ||
| 12 | * 2. Redistributions in binary form must reproduce the above copyright | ||
| 13 | * notice, this list of conditions and the following disclaimer in | ||
| 14 | * the documentation and/or other materials provided with the | ||
| 15 | * distribution. | ||
| 16 | * | ||
| 17 | * 3. All advertising materials mentioning features or use of this | ||
| 18 | * software must display the following acknowledgment: | ||
| 19 | * "This product includes software developed by the OpenSSL Project | ||
| 20 | * for use in the OpenSSL Toolkit. (http://www.openssl.org/)" | ||
| 21 | * | ||
| 22 | * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to | ||
| 23 | * endorse or promote products derived from this software without | ||
| 24 | * prior written permission. For written permission, please contact | ||
| 25 | * openssl-core@openssl.org. | ||
| 26 | * | ||
| 27 | * 5. Products derived from this software may not be called "OpenSSL" | ||
| 28 | * nor may "OpenSSL" appear in their names without prior written | ||
| 29 | * permission of the OpenSSL Project. | ||
| 30 | * | ||
| 31 | * 6. Redistributions of any form whatsoever must retain the following | ||
| 32 | * acknowledgment: | ||
| 33 | * "This product includes software developed by the OpenSSL Project | ||
| 34 | * for use in the OpenSSL Toolkit (http://www.openssl.org/)" | ||
| 35 | * | ||
| 36 | * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY | ||
| 37 | * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
| 38 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | ||
| 39 | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR | ||
| 40 | * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
| 41 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | ||
| 42 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
| 43 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
| 44 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | ||
| 45 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
| 46 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | ||
| 47 | * OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| 48 | * ==================================================================== | ||
| 49 | * | ||
| 50 | */ | ||
| 51 | |||
| 52 | #include <openssl/opensslv.h> | ||
| 53 | #include <openssl/crypto.h> | ||
| 54 | #include <openssl/rc4.h> | ||
| 55 | |||
| 56 | void RC4_set_key(RC4_KEY *key, int len, const unsigned char *data) | ||
| 57 | { | ||
| 58 | #ifdef OPENSSL_FIPS | ||
| 59 | fips_cipher_abort(RC4); | ||
| 60 | #endif | ||
| 61 | private_RC4_set_key(key, len, data); | ||
| 62 | } | ||
diff --git a/src/lib/libcrypto/rc5/Makefile.ssl b/src/lib/libcrypto/rc5/Makefile.ssl deleted file mode 100644 index 3f9632f8f7..0000000000 --- a/src/lib/libcrypto/rc5/Makefile.ssl +++ /dev/null | |||
| @@ -1,108 +0,0 @@ | |||
| 1 | # | ||
| 2 | # SSLeay/crypto/rc5/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= rc5 | ||
| 6 | TOP= ../.. | ||
| 7 | CC= cc | ||
| 8 | CPP= $(CC) -E | ||
| 9 | INCLUDES= | ||
| 10 | CFLAG=-g | ||
| 11 | INSTALL_PREFIX= | ||
| 12 | OPENSSLDIR= /usr/local/ssl | ||
| 13 | INSTALLTOP=/usr/local/ssl | ||
| 14 | MAKE= make -f Makefile.ssl | ||
| 15 | MAKEDEPPROG= makedepend | ||
| 16 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
| 17 | MAKEFILE= Makefile.ssl | ||
| 18 | AR= ar r | ||
| 19 | |||
| 20 | RC5_ENC= rc5_enc.o | ||
| 21 | # or use | ||
| 22 | #DES_ENC= r586-elf.o | ||
| 23 | |||
| 24 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 25 | ASFLAGS= $(INCLUDES) $(ASFLAG) | ||
| 26 | |||
| 27 | GENERAL=Makefile | ||
| 28 | TEST=rc5test.c | ||
| 29 | APPS= | ||
| 30 | |||
| 31 | LIB=$(TOP)/libcrypto.a | ||
| 32 | LIBSRC=rc5_skey.c rc5_ecb.c rc5_enc.c rc5cfb64.c rc5ofb64.c | ||
| 33 | LIBOBJ=rc5_skey.o rc5_ecb.o $(RC5_ENC) rc5cfb64.o rc5ofb64.o | ||
| 34 | |||
| 35 | SRC= $(LIBSRC) | ||
| 36 | |||
| 37 | EXHEADER= rc5.h | ||
| 38 | HEADER= rc5_locl.h $(EXHEADER) | ||
| 39 | |||
| 40 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
| 41 | |||
| 42 | top: | ||
| 43 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
| 44 | |||
| 45 | all: lib | ||
| 46 | |||
| 47 | lib: $(LIBOBJ) | ||
| 48 | $(AR) $(LIB) $(LIBOBJ) | ||
| 49 | $(RANLIB) $(LIB) || echo Never mind. | ||
| 50 | @touch lib | ||
| 51 | |||
| 52 | # elf | ||
| 53 | asm/r586-elf.s: asm/rc5-586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl | ||
| 54 | (cd asm; $(PERL) rc5-586.pl elf $(CFLAGS) > r586-elf.s) | ||
| 55 | |||
| 56 | # a.out | ||
| 57 | asm/r586-out.o: asm/r586unix.cpp | ||
| 58 | $(CPP) -DOUT asm/r586unix.cpp | as -o asm/r586-out.o | ||
| 59 | |||
| 60 | # bsdi | ||
| 61 | asm/r586bsdi.o: asm/r586unix.cpp | ||
| 62 | $(CPP) -DBSDI asm/r586unix.cpp | sed 's/ :/:/' | as -o asm/r586bsdi.o | ||
| 63 | |||
| 64 | asm/r586unix.cpp: asm/rc5-586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl | ||
| 65 | (cd asm; $(PERL) rc5-586.pl cpp >r586unix.cpp) | ||
| 66 | |||
| 67 | files: | ||
| 68 | $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
| 69 | |||
| 70 | links: | ||
| 71 | @sh $(TOP)/util/point.sh Makefile.ssl Makefile | ||
| 72 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | ||
| 73 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | ||
| 74 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | ||
| 75 | |||
| 76 | install: | ||
| 77 | @for i in $(EXHEADER) ; \ | ||
| 78 | do \ | ||
| 79 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 80 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
| 81 | done; | ||
| 82 | |||
| 83 | tags: | ||
| 84 | ctags $(SRC) | ||
| 85 | |||
| 86 | tests: | ||
| 87 | |||
| 88 | lint: | ||
| 89 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
| 90 | |||
| 91 | depend: | ||
| 92 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) | ||
| 93 | |||
| 94 | dclean: | ||
| 95 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 96 | mv -f Makefile.new $(MAKEFILE) | ||
| 97 | |||
| 98 | clean: | ||
| 99 | rm -f asm/r586unix.cpp asm/*-elf.* *.o asm/*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
| 100 | |||
| 101 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 102 | |||
| 103 | rc5_ecb.o: ../../include/openssl/opensslv.h ../../include/openssl/rc5.h | ||
| 104 | rc5_ecb.o: rc5_ecb.c rc5_locl.h | ||
| 105 | rc5_enc.o: ../../include/openssl/rc5.h rc5_enc.c rc5_locl.h | ||
| 106 | rc5_skey.o: ../../include/openssl/rc5.h rc5_locl.h rc5_skey.c | ||
| 107 | rc5cfb64.o: ../../include/openssl/rc5.h rc5_locl.h rc5cfb64.c | ||
| 108 | rc5ofb64.o: ../../include/openssl/rc5.h rc5_locl.h rc5ofb64.c | ||
diff --git a/src/lib/libcrypto/rc5/asm/rc5-586.pl b/src/lib/libcrypto/rc5/asm/rc5-586.pl deleted file mode 100644 index 61ac6effc6..0000000000 --- a/src/lib/libcrypto/rc5/asm/rc5-586.pl +++ /dev/null | |||
| @@ -1,110 +0,0 @@ | |||
| 1 | #!/usr/local/bin/perl | ||
| 2 | |||
| 3 | $0 =~ m/(.*[\/\\])[^\/\\]+$/; $dir=$1; | ||
| 4 | push(@INC,"${dir}","${dir}../../perlasm"); | ||
| 5 | require "x86asm.pl"; | ||
| 6 | require "cbc.pl"; | ||
| 7 | |||
| 8 | &asm_init($ARGV[0],"rc5-586.pl"); | ||
| 9 | |||
| 10 | $RC5_MAX_ROUNDS=16; | ||
| 11 | $RC5_32_OFF=($RC5_MAX_ROUNDS+2)*4; | ||
| 12 | $A="edi"; | ||
| 13 | $B="esi"; | ||
| 14 | $S="ebp"; | ||
| 15 | $tmp1="eax"; | ||
| 16 | $r="ebx"; | ||
| 17 | $tmpc="ecx"; | ||
| 18 | $tmp4="edx"; | ||
| 19 | |||
| 20 | &RC5_32_encrypt("RC5_32_encrypt",1); | ||
| 21 | &RC5_32_encrypt("RC5_32_decrypt",0); | ||
| 22 | &cbc("RC5_32_cbc_encrypt","RC5_32_encrypt","RC5_32_decrypt",0,4,5,3,-1,-1); | ||
| 23 | &asm_finish(); | ||
| 24 | |||
| 25 | sub RC5_32_encrypt | ||
| 26 | { | ||
| 27 | local($name,$enc)=@_; | ||
| 28 | |||
| 29 | &function_begin_B($name,""); | ||
| 30 | |||
| 31 | &comment(""); | ||
| 32 | |||
| 33 | &push("ebp"); | ||
| 34 | &push("esi"); | ||
| 35 | &push("edi"); | ||
| 36 | &mov($tmp4,&wparam(0)); | ||
| 37 | &mov($S,&wparam(1)); | ||
| 38 | |||
| 39 | &comment("Load the 2 words"); | ||
| 40 | &mov($A,&DWP(0,$tmp4,"",0)); | ||
| 41 | &mov($B,&DWP(4,$tmp4,"",0)); | ||
| 42 | |||
| 43 | &push($r); | ||
| 44 | &mov($r, &DWP(0,$S,"",0)); | ||
| 45 | |||
| 46 | # encrypting part | ||
| 47 | |||
| 48 | if ($enc) | ||
| 49 | { | ||
| 50 | &add($A, &DWP(4+0,$S,"",0)); | ||
| 51 | &add($B, &DWP(4+4,$S,"",0)); | ||
| 52 | |||
| 53 | for ($i=0; $i<$RC5_MAX_ROUNDS; $i++) | ||
| 54 | { | ||
| 55 | &xor($A, $B); | ||
| 56 | &mov($tmp1, &DWP(12+$i*8,$S,"",0)); | ||
| 57 | &mov($tmpc, $B); | ||
| 58 | &rotl($A, &LB("ecx")); | ||
| 59 | &add($A, $tmp1); | ||
| 60 | |||
| 61 | &xor($B, $A); | ||
| 62 | &mov($tmp1, &DWP(16+$i*8,$S,"",0)); | ||
| 63 | &mov($tmpc, $A); | ||
| 64 | &rotl($B, &LB("ecx")); | ||
| 65 | &add($B, $tmp1); | ||
| 66 | if (($i == 7) || ($i == 11)) | ||
| 67 | { | ||
| 68 | &cmp($r, $i+1); | ||
| 69 | &je(&label("rc5_exit")); | ||
| 70 | } | ||
| 71 | } | ||
| 72 | } | ||
| 73 | else | ||
| 74 | { | ||
| 75 | &cmp($r, 12); | ||
| 76 | &je(&label("rc5_dec_12")); | ||
| 77 | &cmp($r, 8); | ||
| 78 | &je(&label("rc5_dec_8")); | ||
| 79 | for ($i=$RC5_MAX_ROUNDS; $i > 0; $i--) | ||
| 80 | { | ||
| 81 | &set_label("rc5_dec_$i") if ($i == 12) || ($i == 8); | ||
| 82 | &mov($tmp1, &DWP($i*8+8,$S,"",0)); | ||
| 83 | &sub($B, $tmp1); | ||
| 84 | &mov($tmpc, $A); | ||
| 85 | &rotr($B, &LB("ecx")); | ||
| 86 | &xor($B, $A); | ||
| 87 | |||
| 88 | &mov($tmp1, &DWP($i*8+4,$S,"",0)); | ||
| 89 | &sub($A, $tmp1); | ||
| 90 | &mov($tmpc, $B); | ||
| 91 | &rotr($A, &LB("ecx")); | ||
| 92 | &xor($A, $B); | ||
| 93 | } | ||
| 94 | &sub($B, &DWP(4+4,$S,"",0)); | ||
| 95 | &sub($A, &DWP(4+0,$S,"",0)); | ||
| 96 | } | ||
| 97 | |||
| 98 | &set_label("rc5_exit"); | ||
| 99 | &mov(&DWP(0,$tmp4,"",0),$A); | ||
| 100 | &mov(&DWP(4,$tmp4,"",0),$B); | ||
| 101 | |||
| 102 | &pop("ebx"); | ||
| 103 | &pop("edi"); | ||
| 104 | &pop("esi"); | ||
| 105 | &pop("ebp"); | ||
| 106 | &ret(); | ||
| 107 | &function_end_B($name); | ||
| 108 | } | ||
| 109 | |||
| 110 | |||
diff --git a/src/lib/libcrypto/rc5/rc5_ecb.c b/src/lib/libcrypto/rc5/rc5_ecb.c deleted file mode 100644 index e72b535507..0000000000 --- a/src/lib/libcrypto/rc5/rc5_ecb.c +++ /dev/null | |||
| @@ -1,80 +0,0 @@ | |||
| 1 | /* crypto/rc5/rc5_ecb.c */ | ||
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | ||
| 3 | * All rights reserved. | ||
| 4 | * | ||
| 5 | * This package is an SSL implementation written | ||
| 6 | * by Eric Young (eay@cryptsoft.com). | ||
| 7 | * The implementation was written so as to conform with Netscapes SSL. | ||
| 8 | * | ||
| 9 | * This library is free for commercial and non-commercial use as long as | ||
| 10 | * the following conditions are aheared to. The following conditions | ||
| 11 | * apply to all code found in this distribution, be it the RC4, RSA, | ||
| 12 | * lhash, DES, etc., code; not just the SSL code. The SSL documentation | ||
| 13 | * included with this distribution is covered by the same copyright terms | ||
| 14 | * except that the holder is Tim Hudson (tjh@cryptsoft.com). | ||
| 15 | * | ||
| 16 | * Copyright remains Eric Young's, and as such any Copyright notices in | ||
| 17 | * the code are not to be removed. | ||
| 18 | * If this package is used in a product, Eric Young should be given attribution | ||
| 19 | * as the author of the parts of the library used. | ||
| 20 | * This can be in the form of a textual message at program startup or | ||
| 21 | * in documentation (online or textual) provided with the package. | ||
| 22 | * | ||
| 23 | * Redistribution and use in source and binary forms, with or without | ||
| 24 | * modification, are permitted provided that the following conditions | ||
| 25 | * are met: | ||
| 26 | * 1. Redistributions of source code must retain the copyright | ||
| 27 | * notice, this list of conditions and the following disclaimer. | ||
| 28 | * 2. Redistributions in binary form must reproduce the above copyright | ||
| 29 | * notice, this list of conditions and the following disclaimer in the | ||
| 30 | * documentation and/or other materials provided with the distribution. | ||
| 31 | * 3. All advertising materials mentioning features or use of this software | ||
| 32 | * must display the following acknowledgement: | ||
| 33 | * "This product includes cryptographic software written by | ||
| 34 | * Eric Young (eay@cryptsoft.com)" | ||
| 35 | * The word 'cryptographic' can be left out if the rouines from the library | ||
| 36 | * being used are not cryptographic related :-). | ||
| 37 | * 4. If you include any Windows specific code (or a derivative thereof) from | ||
| 38 | * the apps directory (application code) you must include an acknowledgement: | ||
| 39 | * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" | ||
| 40 | * | ||
| 41 | * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND | ||
| 42 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
| 43 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
| 44 | * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE | ||
| 45 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
| 46 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | ||
| 47 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
| 48 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
| 49 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||
| 50 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||
| 51 | * SUCH DAMAGE. | ||
| 52 | * | ||
| 53 | * The licence and distribution terms for any publically available version or | ||
| 54 | * derivative of this code cannot be changed. i.e. this code cannot simply be | ||
| 55 | * copied and put under another distribution licence | ||
| 56 | * [including the GNU Public Licence.] | ||
| 57 | */ | ||
| 58 | |||
| 59 | #include <openssl/rc5.h> | ||
| 60 | #include "rc5_locl.h" | ||
| 61 | #include <openssl/opensslv.h> | ||
| 62 | |||
| 63 | const char RC5_version[]="RC5" OPENSSL_VERSION_PTEXT; | ||
| 64 | |||
| 65 | void RC5_32_ecb_encrypt(const unsigned char *in, unsigned char *out, | ||
| 66 | RC5_32_KEY *ks, int encrypt) | ||
| 67 | { | ||
| 68 | unsigned long l,d[2]; | ||
| 69 | |||
| 70 | c2l(in,l); d[0]=l; | ||
| 71 | c2l(in,l); d[1]=l; | ||
| 72 | if (encrypt) | ||
| 73 | RC5_32_encrypt(d,ks); | ||
| 74 | else | ||
| 75 | RC5_32_decrypt(d,ks); | ||
| 76 | l=d[0]; l2c(l,out); | ||
| 77 | l=d[1]; l2c(l,out); | ||
| 78 | l=d[0]=d[1]=0; | ||
| 79 | } | ||
| 80 | |||
diff --git a/src/lib/libcrypto/rc5/rc5_enc.c b/src/lib/libcrypto/rc5/rc5_enc.c deleted file mode 100644 index f327d32a76..0000000000 --- a/src/lib/libcrypto/rc5/rc5_enc.c +++ /dev/null | |||
| @@ -1,215 +0,0 @@ | |||
| 1 | /* crypto/rc5/rc5_enc.c */ | ||
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | ||
| 3 | * All rights reserved. | ||
| 4 | * | ||
| 5 | * This package is an SSL implementation written | ||
| 6 | * by Eric Young (eay@cryptsoft.com). | ||
| 7 | * The implementation was written so as to conform with Netscapes SSL. | ||
| 8 | * | ||
| 9 | * This library is free for commercial and non-commercial use as long as | ||
| 10 | * the following conditions are aheared to. The following conditions | ||
| 11 | * apply to all code found in this distribution, be it the RC4, RSA, | ||
| 12 | * lhash, DES, etc., code; not just the SSL code. The SSL documentation | ||
| 13 | * included with this distribution is covered by the same copyright terms | ||
| 14 | * except that the holder is Tim Hudson (tjh@cryptsoft.com). | ||
| 15 | * | ||
| 16 | * Copyright remains Eric Young's, and as such any Copyright notices in | ||
| 17 | * the code are not to be removed. | ||
| 18 | * If this package is used in a product, Eric Young should be given attribution | ||
| 19 | * as the author of the parts of the library used. | ||
| 20 | * This can be in the form of a textual message at program startup or | ||
| 21 | * in documentation (online or textual) provided with the package. | ||
| 22 | * | ||
| 23 | * Redistribution and use in source and binary forms, with or without | ||
| 24 | * modification, are permitted provided that the following conditions | ||
| 25 | * are met: | ||
| 26 | * 1. Redistributions of source code must retain the copyright | ||
| 27 | * notice, this list of conditions and the following disclaimer. | ||
| 28 | * 2. Redistributions in binary form must reproduce the above copyright | ||
| 29 | * notice, this list of conditions and the following disclaimer in the | ||
| 30 | * documentation and/or other materials provided with the distribution. | ||
| 31 | * 3. All advertising materials mentioning features or use of this software | ||
| 32 | * must display the following acknowledgement: | ||
| 33 | * "This product includes cryptographic software written by | ||
| 34 | * Eric Young (eay@cryptsoft.com)" | ||
| 35 | * The word 'cryptographic' can be left out if the rouines from the library | ||
| 36 | * being used are not cryptographic related :-). | ||
| 37 | * 4. If you include any Windows specific code (or a derivative thereof) from | ||
| 38 | * the apps directory (application code) you must include an acknowledgement: | ||
| 39 | * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" | ||
| 40 | * | ||
| 41 | * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND | ||
| 42 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
| 43 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
| 44 | * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE | ||
| 45 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
| 46 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | ||
| 47 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
| 48 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
| 49 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||
| 50 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||
| 51 | * SUCH DAMAGE. | ||
| 52 | * | ||
| 53 | * The licence and distribution terms for any publically available version or | ||
| 54 | * derivative of this code cannot be changed. i.e. this code cannot simply be | ||
| 55 | * copied and put under another distribution licence | ||
| 56 | * [including the GNU Public Licence.] | ||
| 57 | */ | ||
| 58 | |||
| 59 | #include <stdio.h> | ||
| 60 | #include <openssl/rc5.h> | ||
| 61 | #include "rc5_locl.h" | ||
| 62 | |||
| 63 | void RC5_32_cbc_encrypt(const unsigned char *in, unsigned char *out, | ||
| 64 | long length, RC5_32_KEY *ks, unsigned char *iv, | ||
| 65 | int encrypt) | ||
| 66 | { | ||
| 67 | register unsigned long tin0,tin1; | ||
| 68 | register unsigned long tout0,tout1,xor0,xor1; | ||
| 69 | register long l=length; | ||
| 70 | unsigned long tin[2]; | ||
| 71 | |||
| 72 | if (encrypt) | ||
| 73 | { | ||
| 74 | c2l(iv,tout0); | ||
| 75 | c2l(iv,tout1); | ||
| 76 | iv-=8; | ||
| 77 | for (l-=8; l>=0; l-=8) | ||
| 78 | { | ||
| 79 | c2l(in,tin0); | ||
| 80 | c2l(in,tin1); | ||
| 81 | tin0^=tout0; | ||
| 82 | tin1^=tout1; | ||
| 83 | tin[0]=tin0; | ||
| 84 | tin[1]=tin1; | ||
| 85 | RC5_32_encrypt(tin,ks); | ||
| 86 | tout0=tin[0]; l2c(tout0,out); | ||
| 87 | tout1=tin[1]; l2c(tout1,out); | ||
| 88 | } | ||
| 89 | if (l != -8) | ||
| 90 | { | ||
| 91 | c2ln(in,tin0,tin1,l+8); | ||
| 92 | tin0^=tout0; | ||
| 93 | tin1^=tout1; | ||
| 94 | tin[0]=tin0; | ||
| 95 | tin[1]=tin1; | ||
| 96 | RC5_32_encrypt(tin,ks); | ||
| 97 | tout0=tin[0]; l2c(tout0,out); | ||
| 98 | tout1=tin[1]; l2c(tout1,out); | ||
| 99 | } | ||
| 100 | l2c(tout0,iv); | ||
| 101 | l2c(tout1,iv); | ||
| 102 | } | ||
| 103 | else | ||
| 104 | { | ||
| 105 | c2l(iv,xor0); | ||
| 106 | c2l(iv,xor1); | ||
| 107 | iv-=8; | ||
| 108 | for (l-=8; l>=0; l-=8) | ||
| 109 | { | ||
| 110 | c2l(in,tin0); tin[0]=tin0; | ||
| 111 | c2l(in,tin1); tin[1]=tin1; | ||
| 112 | RC5_32_decrypt(tin,ks); | ||
| 113 | tout0=tin[0]^xor0; | ||
| 114 | tout1=tin[1]^xor1; | ||
| 115 | l2c(tout0,out); | ||
| 116 | l2c(tout1,out); | ||
| 117 | xor0=tin0; | ||
| 118 | xor1=tin1; | ||
| 119 | } | ||
| 120 | if (l != -8) | ||
| 121 | { | ||
| 122 | c2l(in,tin0); tin[0]=tin0; | ||
| 123 | c2l(in,tin1); tin[1]=tin1; | ||
| 124 | RC5_32_decrypt(tin,ks); | ||
| 125 | tout0=tin[0]^xor0; | ||
| 126 | tout1=tin[1]^xor1; | ||
| 127 | l2cn(tout0,tout1,out,l+8); | ||
| 128 | xor0=tin0; | ||
| 129 | xor1=tin1; | ||
| 130 | } | ||
| 131 | l2c(xor0,iv); | ||
| 132 | l2c(xor1,iv); | ||
| 133 | } | ||
| 134 | tin0=tin1=tout0=tout1=xor0=xor1=0; | ||
| 135 | tin[0]=tin[1]=0; | ||
| 136 | } | ||
| 137 | |||
| 138 | void RC5_32_encrypt(unsigned long *d, RC5_32_KEY *key) | ||
| 139 | { | ||
| 140 | RC5_32_INT a,b,*s; | ||
| 141 | |||
| 142 | s=key->data; | ||
| 143 | |||
| 144 | a=d[0]+s[0]; | ||
| 145 | b=d[1]+s[1]; | ||
| 146 | E_RC5_32(a,b,s, 2); | ||
| 147 | E_RC5_32(a,b,s, 4); | ||
| 148 | E_RC5_32(a,b,s, 6); | ||
| 149 | E_RC5_32(a,b,s, 8); | ||
| 150 | E_RC5_32(a,b,s,10); | ||
| 151 | E_RC5_32(a,b,s,12); | ||
| 152 | E_RC5_32(a,b,s,14); | ||
| 153 | E_RC5_32(a,b,s,16); | ||
| 154 | if (key->rounds == 12) | ||
| 155 | { | ||
| 156 | E_RC5_32(a,b,s,18); | ||
| 157 | E_RC5_32(a,b,s,20); | ||
| 158 | E_RC5_32(a,b,s,22); | ||
| 159 | E_RC5_32(a,b,s,24); | ||
| 160 | } | ||
| 161 | else if (key->rounds == 16) | ||
| 162 | { | ||
| 163 | /* Do a full expansion to avoid a jump */ | ||
| 164 | E_RC5_32(a,b,s,18); | ||
| 165 | E_RC5_32(a,b,s,20); | ||
| 166 | E_RC5_32(a,b,s,22); | ||
| 167 | E_RC5_32(a,b,s,24); | ||
| 168 | E_RC5_32(a,b,s,26); | ||
| 169 | E_RC5_32(a,b,s,28); | ||
| 170 | E_RC5_32(a,b,s,30); | ||
| 171 | E_RC5_32(a,b,s,32); | ||
| 172 | } | ||
| 173 | d[0]=a; | ||
| 174 | d[1]=b; | ||
| 175 | } | ||
| 176 | |||
| 177 | void RC5_32_decrypt(unsigned long *d, RC5_32_KEY *key) | ||
| 178 | { | ||
| 179 | RC5_32_INT a,b,*s; | ||
| 180 | |||
| 181 | s=key->data; | ||
| 182 | |||
| 183 | a=d[0]; | ||
| 184 | b=d[1]; | ||
| 185 | if (key->rounds == 16) | ||
| 186 | { | ||
| 187 | D_RC5_32(a,b,s,32); | ||
| 188 | D_RC5_32(a,b,s,30); | ||
| 189 | D_RC5_32(a,b,s,28); | ||
| 190 | D_RC5_32(a,b,s,26); | ||
| 191 | /* Do a full expansion to avoid a jump */ | ||
| 192 | D_RC5_32(a,b,s,24); | ||
| 193 | D_RC5_32(a,b,s,22); | ||
| 194 | D_RC5_32(a,b,s,20); | ||
| 195 | D_RC5_32(a,b,s,18); | ||
| 196 | } | ||
| 197 | else if (key->rounds == 12) | ||
| 198 | { | ||
| 199 | D_RC5_32(a,b,s,24); | ||
| 200 | D_RC5_32(a,b,s,22); | ||
| 201 | D_RC5_32(a,b,s,20); | ||
| 202 | D_RC5_32(a,b,s,18); | ||
| 203 | } | ||
| 204 | D_RC5_32(a,b,s,16); | ||
| 205 | D_RC5_32(a,b,s,14); | ||
| 206 | D_RC5_32(a,b,s,12); | ||
| 207 | D_RC5_32(a,b,s,10); | ||
| 208 | D_RC5_32(a,b,s, 8); | ||
| 209 | D_RC5_32(a,b,s, 6); | ||
| 210 | D_RC5_32(a,b,s, 4); | ||
| 211 | D_RC5_32(a,b,s, 2); | ||
| 212 | d[0]=a-s[0]; | ||
| 213 | d[1]=b-s[1]; | ||
| 214 | } | ||
| 215 | |||
diff --git a/src/lib/libcrypto/rc5/rc5_skey.c b/src/lib/libcrypto/rc5/rc5_skey.c deleted file mode 100644 index a2e00a41c5..0000000000 --- a/src/lib/libcrypto/rc5/rc5_skey.c +++ /dev/null | |||
| @@ -1,113 +0,0 @@ | |||
| 1 | /* crypto/rc5/rc5_skey.c */ | ||
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | ||
| 3 | * All rights reserved. | ||
| 4 | * | ||
| 5 | * This package is an SSL implementation written | ||
| 6 | * by Eric Young (eay@cryptsoft.com). | ||
| 7 | * The implementation was written so as to conform with Netscapes SSL. | ||
| 8 | * | ||
| 9 | * This library is free for commercial and non-commercial use as long as | ||
| 10 | * the following conditions are aheared to. The following conditions | ||
| 11 | * apply to all code found in this distribution, be it the RC4, RSA, | ||
| 12 | * lhash, DES, etc., code; not just the SSL code. The SSL documentation | ||
| 13 | * included with this distribution is covered by the same copyright terms | ||
| 14 | * except that the holder is Tim Hudson (tjh@cryptsoft.com). | ||
| 15 | * | ||
| 16 | * Copyright remains Eric Young's, and as such any Copyright notices in | ||
| 17 | * the code are not to be removed. | ||
| 18 | * If this package is used in a product, Eric Young should be given attribution | ||
| 19 | * as the author of the parts of the library used. | ||
| 20 | * This can be in the form of a textual message at program startup or | ||
| 21 | * in documentation (online or textual) provided with the package. | ||
| 22 | * | ||
| 23 | * Redistribution and use in source and binary forms, with or without | ||
| 24 | * modification, are permitted provided that the following conditions | ||
| 25 | * are met: | ||
| 26 | * 1. Redistributions of source code must retain the copyright | ||
| 27 | * notice, this list of conditions and the following disclaimer. | ||
| 28 | * 2. Redistributions in binary form must reproduce the above copyright | ||
| 29 | * notice, this list of conditions and the following disclaimer in the | ||
| 30 | * documentation and/or other materials provided with the distribution. | ||
| 31 | * 3. All advertising materials mentioning features or use of this software | ||
| 32 | * must display the following acknowledgement: | ||
| 33 | * "This product includes cryptographic software written by | ||
| 34 | * Eric Young (eay@cryptsoft.com)" | ||
| 35 | * The word 'cryptographic' can be left out if the rouines from the library | ||
| 36 | * being used are not cryptographic related :-). | ||
| 37 | * 4. If you include any Windows specific code (or a derivative thereof) from | ||
| 38 | * the apps directory (application code) you must include an acknowledgement: | ||
| 39 | * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" | ||
| 40 | * | ||
| 41 | * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND | ||
| 42 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
| 43 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
| 44 | * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE | ||
| 45 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
| 46 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | ||
| 47 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
| 48 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
| 49 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||
| 50 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||
| 51 | * SUCH DAMAGE. | ||
| 52 | * | ||
| 53 | * The licence and distribution terms for any publically available version or | ||
| 54 | * derivative of this code cannot be changed. i.e. this code cannot simply be | ||
| 55 | * copied and put under another distribution licence | ||
| 56 | * [including the GNU Public Licence.] | ||
| 57 | */ | ||
| 58 | |||
| 59 | #include <openssl/rc5.h> | ||
| 60 | #include "rc5_locl.h" | ||
| 61 | |||
| 62 | void RC5_32_set_key(RC5_32_KEY *key, int len, const unsigned char *data, | ||
| 63 | int rounds) | ||
| 64 | { | ||
| 65 | RC5_32_INT L[64],l,ll,A,B,*S,k; | ||
| 66 | int i,j,m,c,t,ii,jj; | ||
| 67 | |||
| 68 | if ( (rounds != RC5_16_ROUNDS) && | ||
| 69 | (rounds != RC5_12_ROUNDS) && | ||
| 70 | (rounds != RC5_8_ROUNDS)) | ||
| 71 | rounds=RC5_16_ROUNDS; | ||
| 72 | |||
| 73 | key->rounds=rounds; | ||
| 74 | S= &(key->data[0]); | ||
| 75 | j=0; | ||
| 76 | for (i=0; i<=(len-8); i+=8) | ||
| 77 | { | ||
| 78 | c2l(data,l); | ||
| 79 | L[j++]=l; | ||
| 80 | c2l(data,l); | ||
| 81 | L[j++]=l; | ||
| 82 | } | ||
| 83 | ii=len-i; | ||
| 84 | if (ii) | ||
| 85 | { | ||
| 86 | k=len&0x07; | ||
| 87 | c2ln(data,l,ll,k); | ||
| 88 | L[j+0]=l; | ||
| 89 | L[j+1]=ll; | ||
| 90 | } | ||
| 91 | |||
| 92 | c=(len+3)/4; | ||
| 93 | t=(rounds+1)*2; | ||
| 94 | S[0]=RC5_32_P; | ||
| 95 | for (i=1; i<t; i++) | ||
| 96 | S[i]=(S[i-1]+RC5_32_Q)&RC5_32_MASK; | ||
| 97 | |||
| 98 | j=(t>c)?t:c; | ||
| 99 | j*=3; | ||
| 100 | ii=jj=0; | ||
| 101 | A=B=0; | ||
| 102 | for (i=0; i<j; i++) | ||
| 103 | { | ||
| 104 | k=(S[ii]+A+B)&RC5_32_MASK; | ||
| 105 | A=S[ii]=ROTATE_l32(k,3); | ||
| 106 | m=(int)(A+B); | ||
| 107 | k=(L[jj]+A+B)&RC5_32_MASK; | ||
| 108 | B=L[jj]=ROTATE_l32(k,m); | ||
| 109 | if (++ii >= t) ii=0; | ||
| 110 | if (++jj >= c) jj=0; | ||
| 111 | } | ||
| 112 | } | ||
| 113 | |||
diff --git a/src/lib/libcrypto/rc5/rc5cfb64.c b/src/lib/libcrypto/rc5/rc5cfb64.c deleted file mode 100644 index 3a8b60bc7a..0000000000 --- a/src/lib/libcrypto/rc5/rc5cfb64.c +++ /dev/null | |||
| @@ -1,122 +0,0 @@ | |||
| 1 | /* crypto/rc5/rc5cfb64.c */ | ||
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | ||
| 3 | * All rights reserved. | ||
| 4 | * | ||
| 5 | * This package is an SSL implementation written | ||
| 6 | * by Eric Young (eay@cryptsoft.com). | ||
| 7 | * The implementation was written so as to conform with Netscapes SSL. | ||
| 8 | * | ||
| 9 | * This library is free for commercial and non-commercial use as long as | ||
| 10 | * the following conditions are aheared to. The following conditions | ||
| 11 | * apply to all code found in this distribution, be it the RC4, RSA, | ||
| 12 | * lhash, DES, etc., code; not just the SSL code. The SSL documentation | ||
| 13 | * included with this distribution is covered by the same copyright terms | ||
| 14 | * except that the holder is Tim Hudson (tjh@cryptsoft.com). | ||
| 15 | * | ||
| 16 | * Copyright remains Eric Young's, and as such any Copyright notices in | ||
| 17 | * the code are not to be removed. | ||
| 18 | * If this package is used in a product, Eric Young should be given attribution | ||
| 19 | * as the author of the parts of the library used. | ||
| 20 | * This can be in the form of a textual message at program startup or | ||
| 21 | * in documentation (online or textual) provided with the package. | ||
| 22 | * | ||
| 23 | * Redistribution and use in source and binary forms, with or without | ||
| 24 | * modification, are permitted provided that the following conditions | ||
| 25 | * are met: | ||
| 26 | * 1. Redistributions of source code must retain the copyright | ||
| 27 | * notice, this list of conditions and the following disclaimer. | ||
| 28 | * 2. Redistributions in binary form must reproduce the above copyright | ||
| 29 | * notice, this list of conditions and the following disclaimer in the | ||
| 30 | * documentation and/or other materials provided with the distribution. | ||
| 31 | * 3. All advertising materials mentioning features or use of this software | ||
| 32 | * must display the following acknowledgement: | ||
| 33 | * "This product includes cryptographic software written by | ||
| 34 | * Eric Young (eay@cryptsoft.com)" | ||
| 35 | * The word 'cryptographic' can be left out if the rouines from the library | ||
| 36 | * being used are not cryptographic related :-). | ||
| 37 | * 4. If you include any Windows specific code (or a derivative thereof) from | ||
| 38 | * the apps directory (application code) you must include an acknowledgement: | ||
| 39 | * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" | ||
| 40 | * | ||
| 41 | * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND | ||
| 42 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
| 43 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
| 44 | * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE | ||
| 45 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
| 46 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | ||
| 47 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
| 48 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
| 49 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||
| 50 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||
| 51 | * SUCH DAMAGE. | ||
| 52 | * | ||
| 53 | * The licence and distribution terms for any publically available version or | ||
| 54 | * derivative of this code cannot be changed. i.e. this code cannot simply be | ||
| 55 | * copied and put under another distribution licence | ||
| 56 | * [including the GNU Public Licence.] | ||
| 57 | */ | ||
| 58 | |||
| 59 | #include <openssl/rc5.h> | ||
| 60 | #include "rc5_locl.h" | ||
| 61 | |||
| 62 | /* The input and output encrypted as though 64bit cfb mode is being | ||
| 63 | * used. The extra state information to record how much of the | ||
| 64 | * 64bit block we have used is contained in *num; | ||
| 65 | */ | ||
| 66 | |||
| 67 | void RC5_32_cfb64_encrypt(const unsigned char *in, unsigned char *out, | ||
| 68 | long length, RC5_32_KEY *schedule, | ||
| 69 | unsigned char *ivec, int *num, int encrypt) | ||
| 70 | { | ||
| 71 | register unsigned long v0,v1,t; | ||
| 72 | register int n= *num; | ||
| 73 | register long l=length; | ||
| 74 | unsigned long ti[2]; | ||
| 75 | unsigned char *iv,c,cc; | ||
| 76 | |||
| 77 | iv=(unsigned char *)ivec; | ||
| 78 | if (encrypt) | ||
| 79 | { | ||
| 80 | while (l--) | ||
| 81 | { | ||
| 82 | if (n == 0) | ||
| 83 | { | ||
| 84 | c2l(iv,v0); ti[0]=v0; | ||
| 85 | c2l(iv,v1); ti[1]=v1; | ||
| 86 | RC5_32_encrypt((unsigned long *)ti,schedule); | ||
| 87 | iv=(unsigned char *)ivec; | ||
| 88 | t=ti[0]; l2c(t,iv); | ||
| 89 | t=ti[1]; l2c(t,iv); | ||
| 90 | iv=(unsigned char *)ivec; | ||
| 91 | } | ||
| 92 | c= *(in++)^iv[n]; | ||
| 93 | *(out++)=c; | ||
| 94 | iv[n]=c; | ||
| 95 | n=(n+1)&0x07; | ||
| 96 | } | ||
| 97 | } | ||
| 98 | else | ||
| 99 | { | ||
| 100 | while (l--) | ||
| 101 | { | ||
| 102 | if (n == 0) | ||
| 103 | { | ||
| 104 | c2l(iv,v0); ti[0]=v0; | ||
| 105 | c2l(iv,v1); ti[1]=v1; | ||
| 106 | RC5_32_encrypt((unsigned long *)ti,schedule); | ||
| 107 | iv=(unsigned char *)ivec; | ||
| 108 | t=ti[0]; l2c(t,iv); | ||
| 109 | t=ti[1]; l2c(t,iv); | ||
| 110 | iv=(unsigned char *)ivec; | ||
| 111 | } | ||
| 112 | cc= *(in++); | ||
| 113 | c=iv[n]; | ||
| 114 | iv[n]=cc; | ||
| 115 | *(out++)=c^cc; | ||
| 116 | n=(n+1)&0x07; | ||
| 117 | } | ||
| 118 | } | ||
| 119 | v0=v1=ti[0]=ti[1]=t=c=cc=0; | ||
| 120 | *num=n; | ||
| 121 | } | ||
| 122 | |||
diff --git a/src/lib/libcrypto/rc5/rc5ofb64.c b/src/lib/libcrypto/rc5/rc5ofb64.c deleted file mode 100644 index d412215f3c..0000000000 --- a/src/lib/libcrypto/rc5/rc5ofb64.c +++ /dev/null | |||
| @@ -1,111 +0,0 @@ | |||
| 1 | /* crypto/rc5/rc5ofb64.c */ | ||
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | ||
| 3 | * All rights reserved. | ||
| 4 | * | ||
| 5 | * This package is an SSL implementation written | ||
| 6 | * by Eric Young (eay@cryptsoft.com). | ||
| 7 | * The implementation was written so as to conform with Netscapes SSL. | ||
| 8 | * | ||
| 9 | * This library is free for commercial and non-commercial use as long as | ||
| 10 | * the following conditions are aheared to. The following conditions | ||
| 11 | * apply to all code found in this distribution, be it the RC4, RSA, | ||
| 12 | * lhash, DES, etc., code; not just the SSL code. The SSL documentation | ||
| 13 | * included with this distribution is covered by the same copyright terms | ||
| 14 | * except that the holder is Tim Hudson (tjh@cryptsoft.com). | ||
| 15 | * | ||
| 16 | * Copyright remains Eric Young's, and as such any Copyright notices in | ||
| 17 | * the code are not to be removed. | ||
| 18 | * If this package is used in a product, Eric Young should be given attribution | ||
| 19 | * as the author of the parts of the library used. | ||
| 20 | * This can be in the form of a textual message at program startup or | ||
| 21 | * in documentation (online or textual) provided with the package. | ||
| 22 | * | ||
| 23 | * Redistribution and use in source and binary forms, with or without | ||
| 24 | * modification, are permitted provided that the following conditions | ||
| 25 | * are met: | ||
| 26 | * 1. Redistributions of source code must retain the copyright | ||
| 27 | * notice, this list of conditions and the following disclaimer. | ||
| 28 | * 2. Redistributions in binary form must reproduce the above copyright | ||
| 29 | * notice, this list of conditions and the following disclaimer in the | ||
| 30 | * documentation and/or other materials provided with the distribution. | ||
| 31 | * 3. All advertising materials mentioning features or use of this software | ||
| 32 | * must display the following acknowledgement: | ||
| 33 | * "This product includes cryptographic software written by | ||
| 34 | * Eric Young (eay@cryptsoft.com)" | ||
| 35 | * The word 'cryptographic' can be left out if the rouines from the library | ||
| 36 | * being used are not cryptographic related :-). | ||
| 37 | * 4. If you include any Windows specific code (or a derivative thereof) from | ||
| 38 | * the apps directory (application code) you must include an acknowledgement: | ||
| 39 | * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" | ||
| 40 | * | ||
| 41 | * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND | ||
| 42 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
| 43 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
| 44 | * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE | ||
| 45 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
| 46 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | ||
| 47 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
| 48 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
| 49 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||
| 50 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||
| 51 | * SUCH DAMAGE. | ||
| 52 | * | ||
| 53 | * The licence and distribution terms for any publically available version or | ||
| 54 | * derivative of this code cannot be changed. i.e. this code cannot simply be | ||
| 55 | * copied and put under another distribution licence | ||
| 56 | * [including the GNU Public Licence.] | ||
| 57 | */ | ||
| 58 | |||
| 59 | #include <openssl/rc5.h> | ||
| 60 | #include "rc5_locl.h" | ||
| 61 | |||
| 62 | /* The input and output encrypted as though 64bit ofb mode is being | ||
| 63 | * used. The extra state information to record how much of the | ||
| 64 | * 64bit block we have used is contained in *num; | ||
| 65 | */ | ||
| 66 | void RC5_32_ofb64_encrypt(const unsigned char *in, unsigned char *out, | ||
| 67 | long length, RC5_32_KEY *schedule, | ||
| 68 | unsigned char *ivec, int *num) | ||
| 69 | { | ||
| 70 | register unsigned long v0,v1,t; | ||
| 71 | register int n= *num; | ||
| 72 | register long l=length; | ||
| 73 | unsigned char d[8]; | ||
| 74 | register char *dp; | ||
| 75 | unsigned long ti[2]; | ||
| 76 | unsigned char *iv; | ||
| 77 | int save=0; | ||
| 78 | |||
| 79 | iv=(unsigned char *)ivec; | ||
| 80 | c2l(iv,v0); | ||
| 81 | c2l(iv,v1); | ||
| 82 | ti[0]=v0; | ||
| 83 | ti[1]=v1; | ||
| 84 | dp=(char *)d; | ||
| 85 | l2c(v0,dp); | ||
| 86 | l2c(v1,dp); | ||
| 87 | while (l--) | ||
| 88 | { | ||
| 89 | if (n == 0) | ||
| 90 | { | ||
| 91 | RC5_32_encrypt((unsigned long *)ti,schedule); | ||
| 92 | dp=(char *)d; | ||
| 93 | t=ti[0]; l2c(t,dp); | ||
| 94 | t=ti[1]; l2c(t,dp); | ||
| 95 | save++; | ||
| 96 | } | ||
| 97 | *(out++)= *(in++)^d[n]; | ||
| 98 | n=(n+1)&0x07; | ||
| 99 | } | ||
| 100 | if (save) | ||
| 101 | { | ||
| 102 | v0=ti[0]; | ||
| 103 | v1=ti[1]; | ||
| 104 | iv=(unsigned char *)ivec; | ||
| 105 | l2c(v0,iv); | ||
| 106 | l2c(v1,iv); | ||
| 107 | } | ||
| 108 | t=v0=v1=ti[0]=ti[1]=0; | ||
| 109 | *num=n; | ||
| 110 | } | ||
| 111 | |||
diff --git a/src/lib/libcrypto/rc5/rc5speed.c b/src/lib/libcrypto/rc5/rc5speed.c deleted file mode 100644 index 8e363be535..0000000000 --- a/src/lib/libcrypto/rc5/rc5speed.c +++ /dev/null | |||
| @@ -1,277 +0,0 @@ | |||
| 1 | /* crypto/rc5/rc5speed.c */ | ||
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | ||
| 3 | * All rights reserved. | ||
| 4 | * | ||
| 5 | * This package is an SSL implementation written | ||
| 6 | * by Eric Young (eay@cryptsoft.com). | ||
| 7 | * The implementation was written so as to conform with Netscapes SSL. | ||
| 8 | * | ||
| 9 | * This library is free for commercial and non-commercial use as long as | ||
| 10 | * the following conditions are aheared to. The following conditions | ||
| 11 | * apply to all code found in this distribution, be it the RC4, RSA, | ||
| 12 | * lhash, DES, etc., code; not just the SSL code. The SSL documentation | ||
| 13 | * included with this distribution is covered by the same copyright terms | ||
| 14 | * except that the holder is Tim Hudson (tjh@cryptsoft.com). | ||
| 15 | * | ||
| 16 | * Copyright remains Eric Young's, and as such any Copyright notices in | ||
| 17 | * the code are not to be removed. | ||
| 18 | * If this package is used in a product, Eric Young should be given attribution | ||
| 19 | * as the author of the parts of the library used. | ||
| 20 | * This can be in the form of a textual message at program startup or | ||
| 21 | * in documentation (online or textual) provided with the package. | ||
| 22 | * | ||
| 23 | * Redistribution and use in source and binary forms, with or without | ||
| 24 | * modification, are permitted provided that the following conditions | ||
| 25 | * are met: | ||
| 26 | * 1. Redistributions of source code must retain the copyright | ||
| 27 | * notice, this list of conditions and the following disclaimer. | ||
| 28 | * 2. Redistributions in binary form must reproduce the above copyright | ||
| 29 | * notice, this list of conditions and the following disclaimer in the | ||
| 30 | * documentation and/or other materials provided with the distribution. | ||
| 31 | * 3. All advertising materials mentioning features or use of this software | ||
| 32 | * must display the following acknowledgement: | ||
| 33 | * "This product includes cryptographic software written by | ||
| 34 | * Eric Young (eay@cryptsoft.com)" | ||
| 35 | * The word 'cryptographic' can be left out if the rouines from the library | ||
| 36 | * being used are not cryptographic related :-). | ||
| 37 | * 4. If you include any Windows specific code (or a derivative thereof) from | ||
| 38 | * the apps directory (application code) you must include an acknowledgement: | ||
| 39 | * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" | ||
| 40 | * | ||
| 41 | * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND | ||
| 42 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
| 43 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
| 44 | * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE | ||
| 45 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
| 46 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | ||
| 47 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
| 48 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
| 49 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||
| 50 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||
| 51 | * SUCH DAMAGE. | ||
| 52 | * | ||
| 53 | * The licence and distribution terms for any publically available version or | ||
| 54 | * derivative of this code cannot be changed. i.e. this code cannot simply be | ||
| 55 | * copied and put under another distribution licence | ||
| 56 | * [including the GNU Public Licence.] | ||
| 57 | */ | ||
| 58 | |||
| 59 | /* 11-Sep-92 Andrew Daviel Support for Silicon Graphics IRIX added */ | ||
| 60 | /* 06-Apr-92 Luke Brennan Support for VMS and add extra signal calls */ | ||
| 61 | |||
| 62 | #if !defined(OPENSSL_SYS_MSDOS) && (!defined(OPENSSL_SYS_VMS) || defined(__DECC)) && !defined(OPENSSL_SYS_MACOSX) | ||
| 63 | #define TIMES | ||
| 64 | #endif | ||
| 65 | |||
| 66 | #include <stdio.h> | ||
| 67 | |||
| 68 | #include <openssl/e_os2.h> | ||
| 69 | #include OPENSSL_UNISTD_IO | ||
| 70 | OPENSSL_DECLARE_EXIT | ||
| 71 | |||
| 72 | #ifndef OPENSSL_SYS_NETWARE | ||
| 73 | #include <signal.h> | ||
| 74 | #endif | ||
| 75 | |||
| 76 | #ifndef _IRIX | ||
| 77 | #include <time.h> | ||
| 78 | #endif | ||
| 79 | #ifdef TIMES | ||
| 80 | #include <sys/types.h> | ||
| 81 | #include <sys/times.h> | ||
| 82 | #endif | ||
| 83 | |||
| 84 | /* Depending on the VMS version, the tms structure is perhaps defined. | ||
| 85 | The __TMS macro will show if it was. If it wasn't defined, we should | ||
| 86 | undefine TIMES, since that tells the rest of the program how things | ||
| 87 | should be handled. -- Richard Levitte */ | ||
| 88 | #if defined(OPENSSL_SYS_VMS_DECC) && !defined(__TMS) | ||
| 89 | #undef TIMES | ||
| 90 | #endif | ||
| 91 | |||
| 92 | #ifndef TIMES | ||
| 93 | #include <sys/timeb.h> | ||
| 94 | #endif | ||
| 95 | |||
| 96 | #if defined(sun) || defined(__ultrix) | ||
| 97 | #define _POSIX_SOURCE | ||
| 98 | #include <limits.h> | ||
| 99 | #include <sys/param.h> | ||
| 100 | #endif | ||
| 101 | |||
| 102 | #include <openssl/rc5.h> | ||
| 103 | |||
| 104 | /* The following if from times(3) man page. It may need to be changed */ | ||
| 105 | #ifndef HZ | ||
| 106 | #ifndef CLK_TCK | ||
| 107 | #define HZ 100.0 | ||
| 108 | #else /* CLK_TCK */ | ||
| 109 | #define HZ ((double)CLK_TCK) | ||
| 110 | #endif | ||
| 111 | #endif | ||
| 112 | |||
| 113 | #define BUFSIZE ((long)1024) | ||
| 114 | long run=0; | ||
| 115 | |||
| 116 | double Time_F(int s); | ||
| 117 | #ifdef SIGALRM | ||
| 118 | #if defined(__STDC__) || defined(sgi) || defined(_AIX) | ||
| 119 | #define SIGRETTYPE void | ||
| 120 | #else | ||
| 121 | #define SIGRETTYPE int | ||
| 122 | #endif | ||
| 123 | |||
| 124 | SIGRETTYPE sig_done(int sig); | ||
| 125 | SIGRETTYPE sig_done(int sig) | ||
| 126 | { | ||
| 127 | signal(SIGALRM,sig_done); | ||
| 128 | run=0; | ||
| 129 | #ifdef LINT | ||
| 130 | sig=sig; | ||
| 131 | #endif | ||
| 132 | } | ||
| 133 | #endif | ||
| 134 | |||
| 135 | #define START 0 | ||
| 136 | #define STOP 1 | ||
| 137 | |||
| 138 | double Time_F(int s) | ||
| 139 | { | ||
| 140 | double ret; | ||
| 141 | #ifdef TIMES | ||
| 142 | static struct tms tstart,tend; | ||
| 143 | |||
| 144 | if (s == START) | ||
| 145 | { | ||
| 146 | times(&tstart); | ||
| 147 | return(0); | ||
| 148 | } | ||
| 149 | else | ||
| 150 | { | ||
| 151 | times(&tend); | ||
| 152 | ret=((double)(tend.tms_utime-tstart.tms_utime))/HZ; | ||
| 153 | return((ret == 0.0)?1e-6:ret); | ||
| 154 | } | ||
| 155 | #else /* !times() */ | ||
| 156 | static struct timeb tstart,tend; | ||
| 157 | long i; | ||
| 158 | |||
| 159 | if (s == START) | ||
| 160 | { | ||
| 161 | ftime(&tstart); | ||
| 162 | return(0); | ||
| 163 | } | ||
| 164 | else | ||
| 165 | { | ||
| 166 | ftime(&tend); | ||
| 167 | i=(long)tend.millitm-(long)tstart.millitm; | ||
| 168 | ret=((double)(tend.time-tstart.time))+((double)i)/1e3; | ||
| 169 | return((ret == 0.0)?1e-6:ret); | ||
| 170 | } | ||
| 171 | #endif | ||
| 172 | } | ||
| 173 | |||
| 174 | int main(int argc, char **argv) | ||
| 175 | { | ||
| 176 | long count; | ||
| 177 | static unsigned char buf[BUFSIZE]; | ||
| 178 | static unsigned char key[] ={ | ||
| 179 | 0x12,0x34,0x56,0x78,0x9a,0xbc,0xde,0xf0, | ||
| 180 | 0xfe,0xdc,0xba,0x98,0x76,0x54,0x32,0x10, | ||
| 181 | }; | ||
| 182 | RC5_32_KEY sch; | ||
| 183 | double a,b,c,d; | ||
| 184 | #ifndef SIGALRM | ||
| 185 | long ca,cb,cc; | ||
| 186 | #endif | ||
| 187 | |||
| 188 | #ifndef TIMES | ||
| 189 | printf("To get the most accurate results, try to run this\n"); | ||
| 190 | printf("program when this computer is idle.\n"); | ||
| 191 | #endif | ||
| 192 | |||
| 193 | #ifndef SIGALRM | ||
| 194 | printf("First we calculate the approximate speed ...\n"); | ||
| 195 | RC5_32_set_key(&sch,16,key,12); | ||
| 196 | count=10; | ||
| 197 | do { | ||
| 198 | long i; | ||
| 199 | unsigned long data[2]; | ||
| 200 | |||
| 201 | count*=2; | ||
| 202 | Time_F(START); | ||
| 203 | for (i=count; i; i--) | ||
| 204 | RC5_32_encrypt(data,&sch); | ||
| 205 | d=Time_F(STOP); | ||
| 206 | } while (d < 3.0); | ||
| 207 | ca=count/512; | ||
| 208 | cb=count; | ||
| 209 | cc=count*8/BUFSIZE+1; | ||
| 210 | printf("Doing RC5_32_set_key %ld times\n",ca); | ||
| 211 | #define COND(d) (count != (d)) | ||
| 212 | #define COUNT(d) (d) | ||
| 213 | #else | ||
| 214 | #define COND(c) (run) | ||
| 215 | #define COUNT(d) (count) | ||
| 216 | signal(SIGALRM,sig_done); | ||
| 217 | printf("Doing RC5_32_set_key for 10 seconds\n"); | ||
| 218 | alarm(10); | ||
| 219 | #endif | ||
| 220 | |||
| 221 | Time_F(START); | ||
| 222 | for (count=0,run=1; COND(ca); count+=4) | ||
| 223 | { | ||
| 224 | RC5_32_set_key(&sch,16,key,12); | ||
| 225 | RC5_32_set_key(&sch,16,key,12); | ||
| 226 | RC5_32_set_key(&sch,16,key,12); | ||
| 227 | RC5_32_set_key(&sch,16,key,12); | ||
| 228 | } | ||
| 229 | d=Time_F(STOP); | ||
| 230 | printf("%ld RC5_32_set_key's in %.2f seconds\n",count,d); | ||
| 231 | a=((double)COUNT(ca))/d; | ||
| 232 | |||
| 233 | #ifdef SIGALRM | ||
| 234 | printf("Doing RC5_32_encrypt's for 10 seconds\n"); | ||
| 235 | alarm(10); | ||
| 236 | #else | ||
| 237 | printf("Doing RC5_32_encrypt %ld times\n",cb); | ||
| 238 | #endif | ||
| 239 | Time_F(START); | ||
| 240 | for (count=0,run=1; COND(cb); count+=4) | ||
| 241 | { | ||
| 242 | unsigned long data[2]; | ||
| 243 | |||
| 244 | RC5_32_encrypt(data,&sch); | ||
| 245 | RC5_32_encrypt(data,&sch); | ||
| 246 | RC5_32_encrypt(data,&sch); | ||
| 247 | RC5_32_encrypt(data,&sch); | ||
| 248 | } | ||
| 249 | d=Time_F(STOP); | ||
| 250 | printf("%ld RC5_32_encrypt's in %.2f second\n",count,d); | ||
| 251 | b=((double)COUNT(cb)*8)/d; | ||
| 252 | |||
| 253 | #ifdef SIGALRM | ||
| 254 | printf("Doing RC5_32_cbc_encrypt on %ld byte blocks for 10 seconds\n", | ||
| 255 | BUFSIZE); | ||
| 256 | alarm(10); | ||
| 257 | #else | ||
| 258 | printf("Doing RC5_32_cbc_encrypt %ld times on %ld byte blocks\n",cc, | ||
| 259 | BUFSIZE); | ||
| 260 | #endif | ||
| 261 | Time_F(START); | ||
| 262 | for (count=0,run=1; COND(cc); count++) | ||
| 263 | RC5_32_cbc_encrypt(buf,buf,BUFSIZE,&sch, | ||
| 264 | &(key[0]),RC5_ENCRYPT); | ||
| 265 | d=Time_F(STOP); | ||
| 266 | printf("%ld RC5_32_cbc_encrypt's of %ld byte blocks in %.2f second\n", | ||
| 267 | count,BUFSIZE,d); | ||
| 268 | c=((double)COUNT(cc)*BUFSIZE)/d; | ||
| 269 | |||
| 270 | printf("RC5_32/12/16 set_key per sec = %12.2f (%9.3fuS)\n",a,1.0e6/a); | ||
| 271 | printf("RC5_32/12/16 raw ecb bytes per sec = %12.2f (%9.3fuS)\n",b,8.0e6/b); | ||
| 272 | printf("RC5_32/12/16 cbc bytes per sec = %12.2f (%9.3fuS)\n",c,8.0e6/c); | ||
| 273 | exit(0); | ||
| 274 | #if defined(LINT) || defined(OPENSSL_SYS_MSDOS) | ||
| 275 | return(0); | ||
| 276 | #endif | ||
| 277 | } | ||
diff --git a/src/lib/libcrypto/rijndael/Makefile.ssl b/src/lib/libcrypto/rijndael/Makefile.ssl deleted file mode 100644 index 79ffd7598b..0000000000 --- a/src/lib/libcrypto/rijndael/Makefile.ssl +++ /dev/null | |||
| @@ -1,89 +0,0 @@ | |||
| 1 | # | ||
| 2 | # crypto/rijndael/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= rijndael | ||
| 6 | TOP= ../.. | ||
| 7 | CC= cc | ||
| 8 | CPP= $(CC) -E | ||
| 9 | INCLUDES= | ||
| 10 | CFLAG=-g | ||
| 11 | INSTALL_PREFIX= | ||
| 12 | OPENSSLDIR= /usr/local/ssl | ||
| 13 | INSTALLTOP=/usr/local/ssl | ||
| 14 | MAKE= make -f Makefile.ssl | ||
| 15 | MAKEDEPPROG= makedepend | ||
| 16 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
| 17 | MAKEFILE= Makefile.ssl | ||
| 18 | AR= ar r | ||
| 19 | |||
| 20 | RD_ENC= rd_enc.o | ||
| 21 | # or use | ||
| 22 | #DES_ENC= bx86-elf.o | ||
| 23 | |||
| 24 | # CFLAGS= -mpentiumpro $(INCLUDES) $(CFLAG) -O3 -fexpensive-optimizations -funroll-loops -fforce-addr | ||
| 25 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 26 | |||
| 27 | GENERAL=Makefile | ||
| 28 | TEST= | ||
| 29 | APPS= | ||
| 30 | |||
| 31 | LIB=$(TOP)/libcrypto.a | ||
| 32 | LIBSRC=rd_fst.c | ||
| 33 | LIBOBJ=rd_fst.o | ||
| 34 | |||
| 35 | SRC= $(LIBSRC) | ||
| 36 | |||
| 37 | EXHEADER=rd_fst.h rijndael.h | ||
| 38 | |||
| 39 | top: | ||
| 40 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
| 41 | |||
| 42 | all: lib | ||
| 43 | |||
| 44 | lib: $(LIBOBJ) | ||
| 45 | $(AR) $(LIB) $(LIBOBJ) | ||
| 46 | $(RANLIB) $(LIB) | ||
| 47 | @touch lib | ||
| 48 | |||
| 49 | $(LIBOBJ): $(LIBSRC) | ||
| 50 | |||
| 51 | files: | ||
| 52 | $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
| 53 | |||
| 54 | links: | ||
| 55 | @$(TOP)/util/point.sh Makefile.ssl Makefile | ||
| 56 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | ||
| 57 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | ||
| 58 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | ||
| 59 | |||
| 60 | install: installs | ||
| 61 | |||
| 62 | installs: | ||
| 63 | @for i in $(EXHEADER) ; \ | ||
| 64 | do \ | ||
| 65 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 66 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
| 67 | done; | ||
| 68 | |||
| 69 | tags: | ||
| 70 | ctags $(SRC) | ||
| 71 | |||
| 72 | tests: | ||
| 73 | |||
| 74 | lint: | ||
| 75 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
| 76 | |||
| 77 | depend: | ||
| 78 | $(MAKEDEPEND) $(CFLAG) $(INCLUDES) $(DEPFLAG) $(PROGS) $(LIBSRC) | ||
| 79 | |||
| 80 | dclean: | ||
| 81 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 82 | mv -f Makefile.new $(MAKEFILE) | ||
| 83 | |||
| 84 | clean: | ||
| 85 | rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
| 86 | |||
| 87 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 88 | |||
| 89 | rd_fst.o: rd_fst.c rd_fst.h | ||
diff --git a/src/lib/libcrypto/rijndael/README b/src/lib/libcrypto/rijndael/README deleted file mode 100644 index 1118ccbad8..0000000000 --- a/src/lib/libcrypto/rijndael/README +++ /dev/null | |||
| @@ -1,80 +0,0 @@ | |||
| 1 | Optimised ANSI C code for the Rijndael cipher (now AES) | ||
| 2 | |||
| 3 | Authors: | ||
| 4 | Vincent Rijmen <vincent.rijmen@esat.kuleuven.ac.be> | ||
| 5 | Antoon Bosselaers <antoon.bosselaers@esat.kuleuven.ac.be> | ||
| 6 | Paulo Barreto <paulo.barreto@terra.com.br> | ||
| 7 | |||
| 8 | All code contained in this distributed is placed in the public domain. | ||
| 9 | |||
| 10 | ======================================================================== | ||
| 11 | |||
| 12 | Disclaimer: | ||
| 13 | |||
| 14 | THIS SOFTWARE IS PROVIDED BY THE AUTHORS ''AS IS'' AND ANY EXPRESS | ||
| 15 | OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | ||
| 16 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
| 17 | ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE | ||
| 18 | LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | ||
| 19 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | ||
| 20 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR | ||
| 21 | BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, | ||
| 22 | WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE | ||
| 23 | OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, | ||
| 24 | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| 25 | |||
| 26 | ======================================================================== | ||
| 27 | |||
| 28 | Acknowledgements: | ||
| 29 | |||
| 30 | We are deeply indebted to the following people for their bug reports, | ||
| 31 | fixes, and improvement suggestions to the API implementation. Though we | ||
| 32 | tried to list all contributions, we apologise in advance for any | ||
| 33 | missing reference: | ||
| 34 | |||
| 35 | Andrew Bales <Andrew.Bales@Honeywell.com> | ||
| 36 | Markus Friedl <markus.friedl@informatik.uni-erlangen.de> | ||
| 37 | John Skodon <skodonj@webquill.com> | ||
| 38 | |||
| 39 | ======================================================================== | ||
| 40 | |||
| 41 | Description: | ||
| 42 | |||
| 43 | This optimised implementation of Rijndael is noticeably faster than the | ||
| 44 | previous versions on Intel processors under Win32 w/ MSVC 6.0. On the | ||
| 45 | same processor under Linux w/ gcc-2.95.2, the key setup is also | ||
| 46 | considerably faster, but normal encryption/decryption is only marginally | ||
| 47 | faster. | ||
| 48 | |||
| 49 | To enable full loop unrolling for encryption/decryption, define the | ||
| 50 | conditional compilation directive FULL_UNROLL. This may help increase | ||
| 51 | performance or not, depending on the platform. | ||
| 52 | |||
| 53 | To compute the intermediate value tests, define the conditional | ||
| 54 | compilation directive INTERMEDIATE_VALUE_KAT. It may be worthwhile to | ||
| 55 | define the TRACE_KAT_MCT directive too, which provides useful progress | ||
| 56 | information during the generation of the KAT and MCT sets. | ||
| 57 | |||
| 58 | ======================================================================== | ||
| 59 | |||
| 60 | Contents: | ||
| 61 | |||
| 62 | README This file | ||
| 63 | rijndael-alg-fst.c The algorithm implementation. | ||
| 64 | rijndael-alg-fst.h The corresponding header file. | ||
| 65 | rijndael-api-fst.c NIST's implementation. | ||
| 66 | rijndael-api-fst.h The corresponding header file. | ||
| 67 | rijndael-test-fst.c A simple program to generate test vectors. | ||
| 68 | table.128 Data for the table tests and 128-bit keys. | ||
| 69 | table.192 Data for the table tests and 192-bit keys. | ||
| 70 | table.256 Data for the table tests and 256-bit keys. | ||
| 71 | fips-test-vectors.txt Key schedule and ciphertext intermediate values | ||
| 72 | (reduced set proposed for FIPS inclusion). | ||
| 73 | Makefile A sample makefile; may need some changes, | ||
| 74 | depending on the C compiler used. | ||
| 75 | |||
| 76 | N.B. Both the API implementation and the provisional reduced set of | ||
| 77 | test vectors are likely to change, according to NIST's final decision | ||
| 78 | regarding modes of operation and the FIPS contents. They are therefore | ||
| 79 | marked as "version 2.9" rather than "version 3.0". | ||
| 80 | |||
diff --git a/src/lib/libcrypto/rijndael/rd_fst.c b/src/lib/libcrypto/rijndael/rd_fst.c deleted file mode 100644 index f1597288f0..0000000000 --- a/src/lib/libcrypto/rijndael/rd_fst.c +++ /dev/null | |||
| @@ -1,1400 +0,0 @@ | |||
| 1 | /** | ||
| 2 | * rijndael-alg-fst.c | ||
| 3 | * | ||
| 4 | * @version 3.0 (December 2000) | ||
| 5 | * | ||
| 6 | * Optimised ANSI C code for the Rijndael cipher (now AES) | ||
| 7 | * | ||
| 8 | * @author Vincent Rijmen <vincent.rijmen@esat.kuleuven.ac.be> | ||
| 9 | * @author Antoon Bosselaers <antoon.bosselaers@esat.kuleuven.ac.be> | ||
| 10 | * @author Paulo Barreto <paulo.barreto@terra.com.br> | ||
| 11 | * | ||
| 12 | * This code is hereby placed in the public domain. | ||
| 13 | * | ||
| 14 | * THIS SOFTWARE IS PROVIDED BY THE AUTHORS ''AS IS'' AND ANY EXPRESS | ||
| 15 | * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | ||
| 16 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
| 17 | * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE | ||
| 18 | * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | ||
| 19 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | ||
| 20 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR | ||
| 21 | * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, | ||
| 22 | * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE | ||
| 23 | * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, | ||
| 24 | * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| 25 | */ | ||
| 26 | #include <assert.h> | ||
| 27 | #include <stdlib.h> | ||
| 28 | |||
| 29 | #include "rd_fst.h" | ||
| 30 | |||
| 31 | /* | ||
| 32 | Te0[x] = S [x].[02, 01, 01, 03]; | ||
| 33 | Te1[x] = S [x].[03, 02, 01, 01]; | ||
| 34 | Te2[x] = S [x].[01, 03, 02, 01]; | ||
| 35 | Te3[x] = S [x].[01, 01, 03, 02]; | ||
| 36 | Te4[x] = S [x].[01, 01, 01, 01]; | ||
| 37 | |||
| 38 | Td0[x] = Si[x].[0e, 09, 0d, 0b]; | ||
| 39 | Td1[x] = Si[x].[0b, 0e, 09, 0d]; | ||
| 40 | Td2[x] = Si[x].[0d, 0b, 0e, 09]; | ||
| 41 | Td3[x] = Si[x].[09, 0d, 0b, 0e]; | ||
| 42 | Td4[x] = Si[x].[01, 01, 01, 01]; | ||
| 43 | */ | ||
| 44 | |||
| 45 | static const u32 Te0[256] = { | ||
| 46 | 0xc66363a5U, 0xf87c7c84U, 0xee777799U, 0xf67b7b8dU, | ||
| 47 | 0xfff2f20dU, 0xd66b6bbdU, 0xde6f6fb1U, 0x91c5c554U, | ||
| 48 | 0x60303050U, 0x02010103U, 0xce6767a9U, 0x562b2b7dU, | ||
| 49 | 0xe7fefe19U, 0xb5d7d762U, 0x4dababe6U, 0xec76769aU, | ||
| 50 | 0x8fcaca45U, 0x1f82829dU, 0x89c9c940U, 0xfa7d7d87U, | ||
| 51 | 0xeffafa15U, 0xb25959ebU, 0x8e4747c9U, 0xfbf0f00bU, | ||
| 52 | 0x41adadecU, 0xb3d4d467U, 0x5fa2a2fdU, 0x45afafeaU, | ||
| 53 | 0x239c9cbfU, 0x53a4a4f7U, 0xe4727296U, 0x9bc0c05bU, | ||
| 54 | 0x75b7b7c2U, 0xe1fdfd1cU, 0x3d9393aeU, 0x4c26266aU, | ||
| 55 | 0x6c36365aU, 0x7e3f3f41U, 0xf5f7f702U, 0x83cccc4fU, | ||
| 56 | 0x6834345cU, 0x51a5a5f4U, 0xd1e5e534U, 0xf9f1f108U, | ||
| 57 | 0xe2717193U, 0xabd8d873U, 0x62313153U, 0x2a15153fU, | ||
| 58 | 0x0804040cU, 0x95c7c752U, 0x46232365U, 0x9dc3c35eU, | ||
| 59 | 0x30181828U, 0x379696a1U, 0x0a05050fU, 0x2f9a9ab5U, | ||
| 60 | 0x0e070709U, 0x24121236U, 0x1b80809bU, 0xdfe2e23dU, | ||
| 61 | 0xcdebeb26U, 0x4e272769U, 0x7fb2b2cdU, 0xea75759fU, | ||
| 62 | 0x1209091bU, 0x1d83839eU, 0x582c2c74U, 0x341a1a2eU, | ||
| 63 | 0x361b1b2dU, 0xdc6e6eb2U, 0xb45a5aeeU, 0x5ba0a0fbU, | ||
| 64 | 0xa45252f6U, 0x763b3b4dU, 0xb7d6d661U, 0x7db3b3ceU, | ||
| 65 | 0x5229297bU, 0xdde3e33eU, 0x5e2f2f71U, 0x13848497U, | ||
| 66 | 0xa65353f5U, 0xb9d1d168U, 0x00000000U, 0xc1eded2cU, | ||
| 67 | 0x40202060U, 0xe3fcfc1fU, 0x79b1b1c8U, 0xb65b5bedU, | ||
| 68 | 0xd46a6abeU, 0x8dcbcb46U, 0x67bebed9U, 0x7239394bU, | ||
| 69 | 0x944a4adeU, 0x984c4cd4U, 0xb05858e8U, 0x85cfcf4aU, | ||
| 70 | 0xbbd0d06bU, 0xc5efef2aU, 0x4faaaae5U, 0xedfbfb16U, | ||
| 71 | 0x864343c5U, 0x9a4d4dd7U, 0x66333355U, 0x11858594U, | ||
| 72 | 0x8a4545cfU, 0xe9f9f910U, 0x04020206U, 0xfe7f7f81U, | ||
| 73 | 0xa05050f0U, 0x783c3c44U, 0x259f9fbaU, 0x4ba8a8e3U, | ||
| 74 | 0xa25151f3U, 0x5da3a3feU, 0x804040c0U, 0x058f8f8aU, | ||
| 75 | 0x3f9292adU, 0x219d9dbcU, 0x70383848U, 0xf1f5f504U, | ||
| 76 | 0x63bcbcdfU, 0x77b6b6c1U, 0xafdada75U, 0x42212163U, | ||
| 77 | 0x20101030U, 0xe5ffff1aU, 0xfdf3f30eU, 0xbfd2d26dU, | ||
| 78 | 0x81cdcd4cU, 0x180c0c14U, 0x26131335U, 0xc3ecec2fU, | ||
| 79 | 0xbe5f5fe1U, 0x359797a2U, 0x884444ccU, 0x2e171739U, | ||
| 80 | 0x93c4c457U, 0x55a7a7f2U, 0xfc7e7e82U, 0x7a3d3d47U, | ||
| 81 | 0xc86464acU, 0xba5d5de7U, 0x3219192bU, 0xe6737395U, | ||
| 82 | 0xc06060a0U, 0x19818198U, 0x9e4f4fd1U, 0xa3dcdc7fU, | ||
| 83 | 0x44222266U, 0x542a2a7eU, 0x3b9090abU, 0x0b888883U, | ||
| 84 | 0x8c4646caU, 0xc7eeee29U, 0x6bb8b8d3U, 0x2814143cU, | ||
| 85 | 0xa7dede79U, 0xbc5e5ee2U, 0x160b0b1dU, 0xaddbdb76U, | ||
| 86 | 0xdbe0e03bU, 0x64323256U, 0x743a3a4eU, 0x140a0a1eU, | ||
| 87 | 0x924949dbU, 0x0c06060aU, 0x4824246cU, 0xb85c5ce4U, | ||
| 88 | 0x9fc2c25dU, 0xbdd3d36eU, 0x43acacefU, 0xc46262a6U, | ||
| 89 | 0x399191a8U, 0x319595a4U, 0xd3e4e437U, 0xf279798bU, | ||
| 90 | 0xd5e7e732U, 0x8bc8c843U, 0x6e373759U, 0xda6d6db7U, | ||
| 91 | 0x018d8d8cU, 0xb1d5d564U, 0x9c4e4ed2U, 0x49a9a9e0U, | ||
| 92 | 0xd86c6cb4U, 0xac5656faU, 0xf3f4f407U, 0xcfeaea25U, | ||
| 93 | 0xca6565afU, 0xf47a7a8eU, 0x47aeaee9U, 0x10080818U, | ||
| 94 | 0x6fbabad5U, 0xf0787888U, 0x4a25256fU, 0x5c2e2e72U, | ||
| 95 | 0x381c1c24U, 0x57a6a6f1U, 0x73b4b4c7U, 0x97c6c651U, | ||
| 96 | 0xcbe8e823U, 0xa1dddd7cU, 0xe874749cU, 0x3e1f1f21U, | ||
| 97 | 0x964b4bddU, 0x61bdbddcU, 0x0d8b8b86U, 0x0f8a8a85U, | ||
| 98 | 0xe0707090U, 0x7c3e3e42U, 0x71b5b5c4U, 0xcc6666aaU, | ||
| 99 | 0x904848d8U, 0x06030305U, 0xf7f6f601U, 0x1c0e0e12U, | ||
| 100 | 0xc26161a3U, 0x6a35355fU, 0xae5757f9U, 0x69b9b9d0U, | ||
| 101 | 0x17868691U, 0x99c1c158U, 0x3a1d1d27U, 0x279e9eb9U, | ||
| 102 | 0xd9e1e138U, 0xebf8f813U, 0x2b9898b3U, 0x22111133U, | ||
| 103 | 0xd26969bbU, 0xa9d9d970U, 0x078e8e89U, 0x339494a7U, | ||
| 104 | 0x2d9b9bb6U, 0x3c1e1e22U, 0x15878792U, 0xc9e9e920U, | ||
| 105 | 0x87cece49U, 0xaa5555ffU, 0x50282878U, 0xa5dfdf7aU, | ||
| 106 | 0x038c8c8fU, 0x59a1a1f8U, 0x09898980U, 0x1a0d0d17U, | ||
| 107 | 0x65bfbfdaU, 0xd7e6e631U, 0x844242c6U, 0xd06868b8U, | ||
| 108 | 0x824141c3U, 0x299999b0U, 0x5a2d2d77U, 0x1e0f0f11U, | ||
| 109 | 0x7bb0b0cbU, 0xa85454fcU, 0x6dbbbbd6U, 0x2c16163aU, | ||
| 110 | }; | ||
| 111 | static const u32 Te1[256] = { | ||
| 112 | 0xa5c66363U, 0x84f87c7cU, 0x99ee7777U, 0x8df67b7bU, | ||
| 113 | 0x0dfff2f2U, 0xbdd66b6bU, 0xb1de6f6fU, 0x5491c5c5U, | ||
| 114 | 0x50603030U, 0x03020101U, 0xa9ce6767U, 0x7d562b2bU, | ||
| 115 | 0x19e7fefeU, 0x62b5d7d7U, 0xe64dababU, 0x9aec7676U, | ||
| 116 | 0x458fcacaU, 0x9d1f8282U, 0x4089c9c9U, 0x87fa7d7dU, | ||
| 117 | 0x15effafaU, 0xebb25959U, 0xc98e4747U, 0x0bfbf0f0U, | ||
| 118 | 0xec41adadU, 0x67b3d4d4U, 0xfd5fa2a2U, 0xea45afafU, | ||
| 119 | 0xbf239c9cU, 0xf753a4a4U, 0x96e47272U, 0x5b9bc0c0U, | ||
| 120 | 0xc275b7b7U, 0x1ce1fdfdU, 0xae3d9393U, 0x6a4c2626U, | ||
| 121 | 0x5a6c3636U, 0x417e3f3fU, 0x02f5f7f7U, 0x4f83ccccU, | ||
| 122 | 0x5c683434U, 0xf451a5a5U, 0x34d1e5e5U, 0x08f9f1f1U, | ||
| 123 | 0x93e27171U, 0x73abd8d8U, 0x53623131U, 0x3f2a1515U, | ||
| 124 | 0x0c080404U, 0x5295c7c7U, 0x65462323U, 0x5e9dc3c3U, | ||
| 125 | 0x28301818U, 0xa1379696U, 0x0f0a0505U, 0xb52f9a9aU, | ||
| 126 | 0x090e0707U, 0x36241212U, 0x9b1b8080U, 0x3ddfe2e2U, | ||
| 127 | 0x26cdebebU, 0x694e2727U, 0xcd7fb2b2U, 0x9fea7575U, | ||
| 128 | 0x1b120909U, 0x9e1d8383U, 0x74582c2cU, 0x2e341a1aU, | ||
| 129 | 0x2d361b1bU, 0xb2dc6e6eU, 0xeeb45a5aU, 0xfb5ba0a0U, | ||
| 130 | 0xf6a45252U, 0x4d763b3bU, 0x61b7d6d6U, 0xce7db3b3U, | ||
| 131 | 0x7b522929U, 0x3edde3e3U, 0x715e2f2fU, 0x97138484U, | ||
| 132 | 0xf5a65353U, 0x68b9d1d1U, 0x00000000U, 0x2cc1ededU, | ||
| 133 | 0x60402020U, 0x1fe3fcfcU, 0xc879b1b1U, 0xedb65b5bU, | ||
| 134 | 0xbed46a6aU, 0x468dcbcbU, 0xd967bebeU, 0x4b723939U, | ||
| 135 | 0xde944a4aU, 0xd4984c4cU, 0xe8b05858U, 0x4a85cfcfU, | ||
| 136 | 0x6bbbd0d0U, 0x2ac5efefU, 0xe54faaaaU, 0x16edfbfbU, | ||
| 137 | 0xc5864343U, 0xd79a4d4dU, 0x55663333U, 0x94118585U, | ||
| 138 | 0xcf8a4545U, 0x10e9f9f9U, 0x06040202U, 0x81fe7f7fU, | ||
| 139 | 0xf0a05050U, 0x44783c3cU, 0xba259f9fU, 0xe34ba8a8U, | ||
| 140 | 0xf3a25151U, 0xfe5da3a3U, 0xc0804040U, 0x8a058f8fU, | ||
| 141 | 0xad3f9292U, 0xbc219d9dU, 0x48703838U, 0x04f1f5f5U, | ||
| 142 | 0xdf63bcbcU, 0xc177b6b6U, 0x75afdadaU, 0x63422121U, | ||
| 143 | 0x30201010U, 0x1ae5ffffU, 0x0efdf3f3U, 0x6dbfd2d2U, | ||
| 144 | 0x4c81cdcdU, 0x14180c0cU, 0x35261313U, 0x2fc3ececU, | ||
| 145 | 0xe1be5f5fU, 0xa2359797U, 0xcc884444U, 0x392e1717U, | ||
| 146 | 0x5793c4c4U, 0xf255a7a7U, 0x82fc7e7eU, 0x477a3d3dU, | ||
| 147 | 0xacc86464U, 0xe7ba5d5dU, 0x2b321919U, 0x95e67373U, | ||
| 148 | 0xa0c06060U, 0x98198181U, 0xd19e4f4fU, 0x7fa3dcdcU, | ||
| 149 | 0x66442222U, 0x7e542a2aU, 0xab3b9090U, 0x830b8888U, | ||
| 150 | 0xca8c4646U, 0x29c7eeeeU, 0xd36bb8b8U, 0x3c281414U, | ||
| 151 | 0x79a7dedeU, 0xe2bc5e5eU, 0x1d160b0bU, 0x76addbdbU, | ||
| 152 | 0x3bdbe0e0U, 0x56643232U, 0x4e743a3aU, 0x1e140a0aU, | ||
| 153 | 0xdb924949U, 0x0a0c0606U, 0x6c482424U, 0xe4b85c5cU, | ||
| 154 | 0x5d9fc2c2U, 0x6ebdd3d3U, 0xef43acacU, 0xa6c46262U, | ||
| 155 | 0xa8399191U, 0xa4319595U, 0x37d3e4e4U, 0x8bf27979U, | ||
| 156 | 0x32d5e7e7U, 0x438bc8c8U, 0x596e3737U, 0xb7da6d6dU, | ||
| 157 | 0x8c018d8dU, 0x64b1d5d5U, 0xd29c4e4eU, 0xe049a9a9U, | ||
| 158 | 0xb4d86c6cU, 0xfaac5656U, 0x07f3f4f4U, 0x25cfeaeaU, | ||
| 159 | 0xafca6565U, 0x8ef47a7aU, 0xe947aeaeU, 0x18100808U, | ||
| 160 | 0xd56fbabaU, 0x88f07878U, 0x6f4a2525U, 0x725c2e2eU, | ||
| 161 | 0x24381c1cU, 0xf157a6a6U, 0xc773b4b4U, 0x5197c6c6U, | ||
| 162 | 0x23cbe8e8U, 0x7ca1ddddU, 0x9ce87474U, 0x213e1f1fU, | ||
| 163 | 0xdd964b4bU, 0xdc61bdbdU, 0x860d8b8bU, 0x850f8a8aU, | ||
| 164 | 0x90e07070U, 0x427c3e3eU, 0xc471b5b5U, 0xaacc6666U, | ||
| 165 | 0xd8904848U, 0x05060303U, 0x01f7f6f6U, 0x121c0e0eU, | ||
| 166 | 0xa3c26161U, 0x5f6a3535U, 0xf9ae5757U, 0xd069b9b9U, | ||
| 167 | 0x91178686U, 0x5899c1c1U, 0x273a1d1dU, 0xb9279e9eU, | ||
| 168 | 0x38d9e1e1U, 0x13ebf8f8U, 0xb32b9898U, 0x33221111U, | ||
| 169 | 0xbbd26969U, 0x70a9d9d9U, 0x89078e8eU, 0xa7339494U, | ||
| 170 | 0xb62d9b9bU, 0x223c1e1eU, 0x92158787U, 0x20c9e9e9U, | ||
| 171 | 0x4987ceceU, 0xffaa5555U, 0x78502828U, 0x7aa5dfdfU, | ||
| 172 | 0x8f038c8cU, 0xf859a1a1U, 0x80098989U, 0x171a0d0dU, | ||
| 173 | 0xda65bfbfU, 0x31d7e6e6U, 0xc6844242U, 0xb8d06868U, | ||
| 174 | 0xc3824141U, 0xb0299999U, 0x775a2d2dU, 0x111e0f0fU, | ||
| 175 | 0xcb7bb0b0U, 0xfca85454U, 0xd66dbbbbU, 0x3a2c1616U, | ||
| 176 | }; | ||
| 177 | static const u32 Te2[256] = { | ||
| 178 | 0x63a5c663U, 0x7c84f87cU, 0x7799ee77U, 0x7b8df67bU, | ||
| 179 | 0xf20dfff2U, 0x6bbdd66bU, 0x6fb1de6fU, 0xc55491c5U, | ||
| 180 | 0x30506030U, 0x01030201U, 0x67a9ce67U, 0x2b7d562bU, | ||
| 181 | 0xfe19e7feU, 0xd762b5d7U, 0xabe64dabU, 0x769aec76U, | ||
| 182 | 0xca458fcaU, 0x829d1f82U, 0xc94089c9U, 0x7d87fa7dU, | ||
| 183 | 0xfa15effaU, 0x59ebb259U, 0x47c98e47U, 0xf00bfbf0U, | ||
| 184 | 0xadec41adU, 0xd467b3d4U, 0xa2fd5fa2U, 0xafea45afU, | ||
| 185 | 0x9cbf239cU, 0xa4f753a4U, 0x7296e472U, 0xc05b9bc0U, | ||
| 186 | 0xb7c275b7U, 0xfd1ce1fdU, 0x93ae3d93U, 0x266a4c26U, | ||
| 187 | 0x365a6c36U, 0x3f417e3fU, 0xf702f5f7U, 0xcc4f83ccU, | ||
| 188 | 0x345c6834U, 0xa5f451a5U, 0xe534d1e5U, 0xf108f9f1U, | ||
| 189 | 0x7193e271U, 0xd873abd8U, 0x31536231U, 0x153f2a15U, | ||
| 190 | 0x040c0804U, 0xc75295c7U, 0x23654623U, 0xc35e9dc3U, | ||
| 191 | 0x18283018U, 0x96a13796U, 0x050f0a05U, 0x9ab52f9aU, | ||
| 192 | 0x07090e07U, 0x12362412U, 0x809b1b80U, 0xe23ddfe2U, | ||
| 193 | 0xeb26cdebU, 0x27694e27U, 0xb2cd7fb2U, 0x759fea75U, | ||
| 194 | 0x091b1209U, 0x839e1d83U, 0x2c74582cU, 0x1a2e341aU, | ||
| 195 | 0x1b2d361bU, 0x6eb2dc6eU, 0x5aeeb45aU, 0xa0fb5ba0U, | ||
| 196 | 0x52f6a452U, 0x3b4d763bU, 0xd661b7d6U, 0xb3ce7db3U, | ||
| 197 | 0x297b5229U, 0xe33edde3U, 0x2f715e2fU, 0x84971384U, | ||
| 198 | 0x53f5a653U, 0xd168b9d1U, 0x00000000U, 0xed2cc1edU, | ||
| 199 | 0x20604020U, 0xfc1fe3fcU, 0xb1c879b1U, 0x5bedb65bU, | ||
| 200 | 0x6abed46aU, 0xcb468dcbU, 0xbed967beU, 0x394b7239U, | ||
| 201 | 0x4ade944aU, 0x4cd4984cU, 0x58e8b058U, 0xcf4a85cfU, | ||
| 202 | 0xd06bbbd0U, 0xef2ac5efU, 0xaae54faaU, 0xfb16edfbU, | ||
| 203 | 0x43c58643U, 0x4dd79a4dU, 0x33556633U, 0x85941185U, | ||
| 204 | 0x45cf8a45U, 0xf910e9f9U, 0x02060402U, 0x7f81fe7fU, | ||
| 205 | 0x50f0a050U, 0x3c44783cU, 0x9fba259fU, 0xa8e34ba8U, | ||
| 206 | 0x51f3a251U, 0xa3fe5da3U, 0x40c08040U, 0x8f8a058fU, | ||
| 207 | 0x92ad3f92U, 0x9dbc219dU, 0x38487038U, 0xf504f1f5U, | ||
| 208 | 0xbcdf63bcU, 0xb6c177b6U, 0xda75afdaU, 0x21634221U, | ||
| 209 | 0x10302010U, 0xff1ae5ffU, 0xf30efdf3U, 0xd26dbfd2U, | ||
| 210 | 0xcd4c81cdU, 0x0c14180cU, 0x13352613U, 0xec2fc3ecU, | ||
| 211 | 0x5fe1be5fU, 0x97a23597U, 0x44cc8844U, 0x17392e17U, | ||
| 212 | 0xc45793c4U, 0xa7f255a7U, 0x7e82fc7eU, 0x3d477a3dU, | ||
| 213 | 0x64acc864U, 0x5de7ba5dU, 0x192b3219U, 0x7395e673U, | ||
| 214 | 0x60a0c060U, 0x81981981U, 0x4fd19e4fU, 0xdc7fa3dcU, | ||
| 215 | 0x22664422U, 0x2a7e542aU, 0x90ab3b90U, 0x88830b88U, | ||
| 216 | 0x46ca8c46U, 0xee29c7eeU, 0xb8d36bb8U, 0x143c2814U, | ||
| 217 | 0xde79a7deU, 0x5ee2bc5eU, 0x0b1d160bU, 0xdb76addbU, | ||
| 218 | 0xe03bdbe0U, 0x32566432U, 0x3a4e743aU, 0x0a1e140aU, | ||
| 219 | 0x49db9249U, 0x060a0c06U, 0x246c4824U, 0x5ce4b85cU, | ||
| 220 | 0xc25d9fc2U, 0xd36ebdd3U, 0xacef43acU, 0x62a6c462U, | ||
| 221 | 0x91a83991U, 0x95a43195U, 0xe437d3e4U, 0x798bf279U, | ||
| 222 | 0xe732d5e7U, 0xc8438bc8U, 0x37596e37U, 0x6db7da6dU, | ||
| 223 | 0x8d8c018dU, 0xd564b1d5U, 0x4ed29c4eU, 0xa9e049a9U, | ||
| 224 | 0x6cb4d86cU, 0x56faac56U, 0xf407f3f4U, 0xea25cfeaU, | ||
| 225 | 0x65afca65U, 0x7a8ef47aU, 0xaee947aeU, 0x08181008U, | ||
| 226 | 0xbad56fbaU, 0x7888f078U, 0x256f4a25U, 0x2e725c2eU, | ||
| 227 | 0x1c24381cU, 0xa6f157a6U, 0xb4c773b4U, 0xc65197c6U, | ||
| 228 | 0xe823cbe8U, 0xdd7ca1ddU, 0x749ce874U, 0x1f213e1fU, | ||
| 229 | 0x4bdd964bU, 0xbddc61bdU, 0x8b860d8bU, 0x8a850f8aU, | ||
| 230 | 0x7090e070U, 0x3e427c3eU, 0xb5c471b5U, 0x66aacc66U, | ||
| 231 | 0x48d89048U, 0x03050603U, 0xf601f7f6U, 0x0e121c0eU, | ||
| 232 | 0x61a3c261U, 0x355f6a35U, 0x57f9ae57U, 0xb9d069b9U, | ||
| 233 | 0x86911786U, 0xc15899c1U, 0x1d273a1dU, 0x9eb9279eU, | ||
| 234 | 0xe138d9e1U, 0xf813ebf8U, 0x98b32b98U, 0x11332211U, | ||
| 235 | 0x69bbd269U, 0xd970a9d9U, 0x8e89078eU, 0x94a73394U, | ||
| 236 | 0x9bb62d9bU, 0x1e223c1eU, 0x87921587U, 0xe920c9e9U, | ||
| 237 | 0xce4987ceU, 0x55ffaa55U, 0x28785028U, 0xdf7aa5dfU, | ||
| 238 | 0x8c8f038cU, 0xa1f859a1U, 0x89800989U, 0x0d171a0dU, | ||
| 239 | 0xbfda65bfU, 0xe631d7e6U, 0x42c68442U, 0x68b8d068U, | ||
| 240 | 0x41c38241U, 0x99b02999U, 0x2d775a2dU, 0x0f111e0fU, | ||
| 241 | 0xb0cb7bb0U, 0x54fca854U, 0xbbd66dbbU, 0x163a2c16U, | ||
| 242 | }; | ||
| 243 | static const u32 Te3[256] = { | ||
| 244 | |||
| 245 | 0x6363a5c6U, 0x7c7c84f8U, 0x777799eeU, 0x7b7b8df6U, | ||
| 246 | 0xf2f20dffU, 0x6b6bbdd6U, 0x6f6fb1deU, 0xc5c55491U, | ||
| 247 | 0x30305060U, 0x01010302U, 0x6767a9ceU, 0x2b2b7d56U, | ||
| 248 | 0xfefe19e7U, 0xd7d762b5U, 0xababe64dU, 0x76769aecU, | ||
| 249 | 0xcaca458fU, 0x82829d1fU, 0xc9c94089U, 0x7d7d87faU, | ||
| 250 | 0xfafa15efU, 0x5959ebb2U, 0x4747c98eU, 0xf0f00bfbU, | ||
| 251 | 0xadadec41U, 0xd4d467b3U, 0xa2a2fd5fU, 0xafafea45U, | ||
| 252 | 0x9c9cbf23U, 0xa4a4f753U, 0x727296e4U, 0xc0c05b9bU, | ||
| 253 | 0xb7b7c275U, 0xfdfd1ce1U, 0x9393ae3dU, 0x26266a4cU, | ||
| 254 | 0x36365a6cU, 0x3f3f417eU, 0xf7f702f5U, 0xcccc4f83U, | ||
| 255 | 0x34345c68U, 0xa5a5f451U, 0xe5e534d1U, 0xf1f108f9U, | ||
| 256 | 0x717193e2U, 0xd8d873abU, 0x31315362U, 0x15153f2aU, | ||
| 257 | 0x04040c08U, 0xc7c75295U, 0x23236546U, 0xc3c35e9dU, | ||
| 258 | 0x18182830U, 0x9696a137U, 0x05050f0aU, 0x9a9ab52fU, | ||
| 259 | 0x0707090eU, 0x12123624U, 0x80809b1bU, 0xe2e23ddfU, | ||
| 260 | 0xebeb26cdU, 0x2727694eU, 0xb2b2cd7fU, 0x75759feaU, | ||
| 261 | 0x09091b12U, 0x83839e1dU, 0x2c2c7458U, 0x1a1a2e34U, | ||
| 262 | 0x1b1b2d36U, 0x6e6eb2dcU, 0x5a5aeeb4U, 0xa0a0fb5bU, | ||
| 263 | 0x5252f6a4U, 0x3b3b4d76U, 0xd6d661b7U, 0xb3b3ce7dU, | ||
| 264 | 0x29297b52U, 0xe3e33eddU, 0x2f2f715eU, 0x84849713U, | ||
| 265 | 0x5353f5a6U, 0xd1d168b9U, 0x00000000U, 0xeded2cc1U, | ||
| 266 | 0x20206040U, 0xfcfc1fe3U, 0xb1b1c879U, 0x5b5bedb6U, | ||
| 267 | 0x6a6abed4U, 0xcbcb468dU, 0xbebed967U, 0x39394b72U, | ||
| 268 | 0x4a4ade94U, 0x4c4cd498U, 0x5858e8b0U, 0xcfcf4a85U, | ||
| 269 | 0xd0d06bbbU, 0xefef2ac5U, 0xaaaae54fU, 0xfbfb16edU, | ||
| 270 | 0x4343c586U, 0x4d4dd79aU, 0x33335566U, 0x85859411U, | ||
| 271 | 0x4545cf8aU, 0xf9f910e9U, 0x02020604U, 0x7f7f81feU, | ||
| 272 | 0x5050f0a0U, 0x3c3c4478U, 0x9f9fba25U, 0xa8a8e34bU, | ||
| 273 | 0x5151f3a2U, 0xa3a3fe5dU, 0x4040c080U, 0x8f8f8a05U, | ||
| 274 | 0x9292ad3fU, 0x9d9dbc21U, 0x38384870U, 0xf5f504f1U, | ||
| 275 | 0xbcbcdf63U, 0xb6b6c177U, 0xdada75afU, 0x21216342U, | ||
| 276 | 0x10103020U, 0xffff1ae5U, 0xf3f30efdU, 0xd2d26dbfU, | ||
| 277 | 0xcdcd4c81U, 0x0c0c1418U, 0x13133526U, 0xecec2fc3U, | ||
| 278 | 0x5f5fe1beU, 0x9797a235U, 0x4444cc88U, 0x1717392eU, | ||
| 279 | 0xc4c45793U, 0xa7a7f255U, 0x7e7e82fcU, 0x3d3d477aU, | ||
| 280 | 0x6464acc8U, 0x5d5de7baU, 0x19192b32U, 0x737395e6U, | ||
| 281 | 0x6060a0c0U, 0x81819819U, 0x4f4fd19eU, 0xdcdc7fa3U, | ||
| 282 | 0x22226644U, 0x2a2a7e54U, 0x9090ab3bU, 0x8888830bU, | ||
| 283 | 0x4646ca8cU, 0xeeee29c7U, 0xb8b8d36bU, 0x14143c28U, | ||
| 284 | 0xdede79a7U, 0x5e5ee2bcU, 0x0b0b1d16U, 0xdbdb76adU, | ||
| 285 | 0xe0e03bdbU, 0x32325664U, 0x3a3a4e74U, 0x0a0a1e14U, | ||
| 286 | 0x4949db92U, 0x06060a0cU, 0x24246c48U, 0x5c5ce4b8U, | ||
| 287 | 0xc2c25d9fU, 0xd3d36ebdU, 0xacacef43U, 0x6262a6c4U, | ||
| 288 | 0x9191a839U, 0x9595a431U, 0xe4e437d3U, 0x79798bf2U, | ||
| 289 | 0xe7e732d5U, 0xc8c8438bU, 0x3737596eU, 0x6d6db7daU, | ||
| 290 | 0x8d8d8c01U, 0xd5d564b1U, 0x4e4ed29cU, 0xa9a9e049U, | ||
| 291 | 0x6c6cb4d8U, 0x5656faacU, 0xf4f407f3U, 0xeaea25cfU, | ||
| 292 | 0x6565afcaU, 0x7a7a8ef4U, 0xaeaee947U, 0x08081810U, | ||
| 293 | 0xbabad56fU, 0x787888f0U, 0x25256f4aU, 0x2e2e725cU, | ||
| 294 | 0x1c1c2438U, 0xa6a6f157U, 0xb4b4c773U, 0xc6c65197U, | ||
| 295 | 0xe8e823cbU, 0xdddd7ca1U, 0x74749ce8U, 0x1f1f213eU, | ||
| 296 | 0x4b4bdd96U, 0xbdbddc61U, 0x8b8b860dU, 0x8a8a850fU, | ||
| 297 | 0x707090e0U, 0x3e3e427cU, 0xb5b5c471U, 0x6666aaccU, | ||
| 298 | 0x4848d890U, 0x03030506U, 0xf6f601f7U, 0x0e0e121cU, | ||
| 299 | 0x6161a3c2U, 0x35355f6aU, 0x5757f9aeU, 0xb9b9d069U, | ||
| 300 | 0x86869117U, 0xc1c15899U, 0x1d1d273aU, 0x9e9eb927U, | ||
| 301 | 0xe1e138d9U, 0xf8f813ebU, 0x9898b32bU, 0x11113322U, | ||
| 302 | 0x6969bbd2U, 0xd9d970a9U, 0x8e8e8907U, 0x9494a733U, | ||
| 303 | 0x9b9bb62dU, 0x1e1e223cU, 0x87879215U, 0xe9e920c9U, | ||
| 304 | 0xcece4987U, 0x5555ffaaU, 0x28287850U, 0xdfdf7aa5U, | ||
| 305 | 0x8c8c8f03U, 0xa1a1f859U, 0x89898009U, 0x0d0d171aU, | ||
| 306 | 0xbfbfda65U, 0xe6e631d7U, 0x4242c684U, 0x6868b8d0U, | ||
| 307 | 0x4141c382U, 0x9999b029U, 0x2d2d775aU, 0x0f0f111eU, | ||
| 308 | 0xb0b0cb7bU, 0x5454fca8U, 0xbbbbd66dU, 0x16163a2cU, | ||
| 309 | }; | ||
| 310 | static const u32 Te4[256] = { | ||
| 311 | 0x63636363U, 0x7c7c7c7cU, 0x77777777U, 0x7b7b7b7bU, | ||
| 312 | 0xf2f2f2f2U, 0x6b6b6b6bU, 0x6f6f6f6fU, 0xc5c5c5c5U, | ||
| 313 | 0x30303030U, 0x01010101U, 0x67676767U, 0x2b2b2b2bU, | ||
| 314 | 0xfefefefeU, 0xd7d7d7d7U, 0xababababU, 0x76767676U, | ||
| 315 | 0xcacacacaU, 0x82828282U, 0xc9c9c9c9U, 0x7d7d7d7dU, | ||
| 316 | 0xfafafafaU, 0x59595959U, 0x47474747U, 0xf0f0f0f0U, | ||
| 317 | 0xadadadadU, 0xd4d4d4d4U, 0xa2a2a2a2U, 0xafafafafU, | ||
| 318 | 0x9c9c9c9cU, 0xa4a4a4a4U, 0x72727272U, 0xc0c0c0c0U, | ||
| 319 | 0xb7b7b7b7U, 0xfdfdfdfdU, 0x93939393U, 0x26262626U, | ||
| 320 | 0x36363636U, 0x3f3f3f3fU, 0xf7f7f7f7U, 0xccccccccU, | ||
| 321 | 0x34343434U, 0xa5a5a5a5U, 0xe5e5e5e5U, 0xf1f1f1f1U, | ||
| 322 | 0x71717171U, 0xd8d8d8d8U, 0x31313131U, 0x15151515U, | ||
| 323 | 0x04040404U, 0xc7c7c7c7U, 0x23232323U, 0xc3c3c3c3U, | ||
| 324 | 0x18181818U, 0x96969696U, 0x05050505U, 0x9a9a9a9aU, | ||
| 325 | 0x07070707U, 0x12121212U, 0x80808080U, 0xe2e2e2e2U, | ||
| 326 | 0xebebebebU, 0x27272727U, 0xb2b2b2b2U, 0x75757575U, | ||
| 327 | 0x09090909U, 0x83838383U, 0x2c2c2c2cU, 0x1a1a1a1aU, | ||
| 328 | 0x1b1b1b1bU, 0x6e6e6e6eU, 0x5a5a5a5aU, 0xa0a0a0a0U, | ||
| 329 | 0x52525252U, 0x3b3b3b3bU, 0xd6d6d6d6U, 0xb3b3b3b3U, | ||
| 330 | 0x29292929U, 0xe3e3e3e3U, 0x2f2f2f2fU, 0x84848484U, | ||
| 331 | 0x53535353U, 0xd1d1d1d1U, 0x00000000U, 0xededededU, | ||
| 332 | 0x20202020U, 0xfcfcfcfcU, 0xb1b1b1b1U, 0x5b5b5b5bU, | ||
| 333 | 0x6a6a6a6aU, 0xcbcbcbcbU, 0xbebebebeU, 0x39393939U, | ||
| 334 | 0x4a4a4a4aU, 0x4c4c4c4cU, 0x58585858U, 0xcfcfcfcfU, | ||
| 335 | 0xd0d0d0d0U, 0xefefefefU, 0xaaaaaaaaU, 0xfbfbfbfbU, | ||
| 336 | 0x43434343U, 0x4d4d4d4dU, 0x33333333U, 0x85858585U, | ||
| 337 | 0x45454545U, 0xf9f9f9f9U, 0x02020202U, 0x7f7f7f7fU, | ||
| 338 | 0x50505050U, 0x3c3c3c3cU, 0x9f9f9f9fU, 0xa8a8a8a8U, | ||
| 339 | 0x51515151U, 0xa3a3a3a3U, 0x40404040U, 0x8f8f8f8fU, | ||
| 340 | 0x92929292U, 0x9d9d9d9dU, 0x38383838U, 0xf5f5f5f5U, | ||
| 341 | 0xbcbcbcbcU, 0xb6b6b6b6U, 0xdadadadaU, 0x21212121U, | ||
| 342 | 0x10101010U, 0xffffffffU, 0xf3f3f3f3U, 0xd2d2d2d2U, | ||
| 343 | 0xcdcdcdcdU, 0x0c0c0c0cU, 0x13131313U, 0xececececU, | ||
| 344 | 0x5f5f5f5fU, 0x97979797U, 0x44444444U, 0x17171717U, | ||
| 345 | 0xc4c4c4c4U, 0xa7a7a7a7U, 0x7e7e7e7eU, 0x3d3d3d3dU, | ||
| 346 | 0x64646464U, 0x5d5d5d5dU, 0x19191919U, 0x73737373U, | ||
| 347 | 0x60606060U, 0x81818181U, 0x4f4f4f4fU, 0xdcdcdcdcU, | ||
| 348 | 0x22222222U, 0x2a2a2a2aU, 0x90909090U, 0x88888888U, | ||
| 349 | 0x46464646U, 0xeeeeeeeeU, 0xb8b8b8b8U, 0x14141414U, | ||
| 350 | 0xdedededeU, 0x5e5e5e5eU, 0x0b0b0b0bU, 0xdbdbdbdbU, | ||
| 351 | 0xe0e0e0e0U, 0x32323232U, 0x3a3a3a3aU, 0x0a0a0a0aU, | ||
| 352 | 0x49494949U, 0x06060606U, 0x24242424U, 0x5c5c5c5cU, | ||
| 353 | 0xc2c2c2c2U, 0xd3d3d3d3U, 0xacacacacU, 0x62626262U, | ||
| 354 | 0x91919191U, 0x95959595U, 0xe4e4e4e4U, 0x79797979U, | ||
| 355 | 0xe7e7e7e7U, 0xc8c8c8c8U, 0x37373737U, 0x6d6d6d6dU, | ||
| 356 | 0x8d8d8d8dU, 0xd5d5d5d5U, 0x4e4e4e4eU, 0xa9a9a9a9U, | ||
| 357 | 0x6c6c6c6cU, 0x56565656U, 0xf4f4f4f4U, 0xeaeaeaeaU, | ||
| 358 | 0x65656565U, 0x7a7a7a7aU, 0xaeaeaeaeU, 0x08080808U, | ||
| 359 | 0xbabababaU, 0x78787878U, 0x25252525U, 0x2e2e2e2eU, | ||
| 360 | 0x1c1c1c1cU, 0xa6a6a6a6U, 0xb4b4b4b4U, 0xc6c6c6c6U, | ||
| 361 | 0xe8e8e8e8U, 0xddddddddU, 0x74747474U, 0x1f1f1f1fU, | ||
| 362 | 0x4b4b4b4bU, 0xbdbdbdbdU, 0x8b8b8b8bU, 0x8a8a8a8aU, | ||
| 363 | 0x70707070U, 0x3e3e3e3eU, 0xb5b5b5b5U, 0x66666666U, | ||
| 364 | 0x48484848U, 0x03030303U, 0xf6f6f6f6U, 0x0e0e0e0eU, | ||
| 365 | 0x61616161U, 0x35353535U, 0x57575757U, 0xb9b9b9b9U, | ||
| 366 | 0x86868686U, 0xc1c1c1c1U, 0x1d1d1d1dU, 0x9e9e9e9eU, | ||
| 367 | 0xe1e1e1e1U, 0xf8f8f8f8U, 0x98989898U, 0x11111111U, | ||
| 368 | 0x69696969U, 0xd9d9d9d9U, 0x8e8e8e8eU, 0x94949494U, | ||
| 369 | 0x9b9b9b9bU, 0x1e1e1e1eU, 0x87878787U, 0xe9e9e9e9U, | ||
| 370 | 0xcecececeU, 0x55555555U, 0x28282828U, 0xdfdfdfdfU, | ||
| 371 | 0x8c8c8c8cU, 0xa1a1a1a1U, 0x89898989U, 0x0d0d0d0dU, | ||
| 372 | 0xbfbfbfbfU, 0xe6e6e6e6U, 0x42424242U, 0x68686868U, | ||
| 373 | 0x41414141U, 0x99999999U, 0x2d2d2d2dU, 0x0f0f0f0fU, | ||
| 374 | 0xb0b0b0b0U, 0x54545454U, 0xbbbbbbbbU, 0x16161616U, | ||
| 375 | }; | ||
| 376 | static const u32 Td0[256] = { | ||
| 377 | 0x51f4a750U, 0x7e416553U, 0x1a17a4c3U, 0x3a275e96U, | ||
| 378 | 0x3bab6bcbU, 0x1f9d45f1U, 0xacfa58abU, 0x4be30393U, | ||
| 379 | 0x2030fa55U, 0xad766df6U, 0x88cc7691U, 0xf5024c25U, | ||
| 380 | 0x4fe5d7fcU, 0xc52acbd7U, 0x26354480U, 0xb562a38fU, | ||
| 381 | 0xdeb15a49U, 0x25ba1b67U, 0x45ea0e98U, 0x5dfec0e1U, | ||
| 382 | 0xc32f7502U, 0x814cf012U, 0x8d4697a3U, 0x6bd3f9c6U, | ||
| 383 | 0x038f5fe7U, 0x15929c95U, 0xbf6d7aebU, 0x955259daU, | ||
| 384 | 0xd4be832dU, 0x587421d3U, 0x49e06929U, 0x8ec9c844U, | ||
| 385 | 0x75c2896aU, 0xf48e7978U, 0x99583e6bU, 0x27b971ddU, | ||
| 386 | 0xbee14fb6U, 0xf088ad17U, 0xc920ac66U, 0x7dce3ab4U, | ||
| 387 | 0x63df4a18U, 0xe51a3182U, 0x97513360U, 0x62537f45U, | ||
| 388 | 0xb16477e0U, 0xbb6bae84U, 0xfe81a01cU, 0xf9082b94U, | ||
| 389 | 0x70486858U, 0x8f45fd19U, 0x94de6c87U, 0x527bf8b7U, | ||
| 390 | 0xab73d323U, 0x724b02e2U, 0xe31f8f57U, 0x6655ab2aU, | ||
| 391 | 0xb2eb2807U, 0x2fb5c203U, 0x86c57b9aU, 0xd33708a5U, | ||
| 392 | 0x302887f2U, 0x23bfa5b2U, 0x02036abaU, 0xed16825cU, | ||
| 393 | 0x8acf1c2bU, 0xa779b492U, 0xf307f2f0U, 0x4e69e2a1U, | ||
| 394 | 0x65daf4cdU, 0x0605bed5U, 0xd134621fU, 0xc4a6fe8aU, | ||
| 395 | 0x342e539dU, 0xa2f355a0U, 0x058ae132U, 0xa4f6eb75U, | ||
| 396 | 0x0b83ec39U, 0x4060efaaU, 0x5e719f06U, 0xbd6e1051U, | ||
| 397 | 0x3e218af9U, 0x96dd063dU, 0xdd3e05aeU, 0x4de6bd46U, | ||
| 398 | 0x91548db5U, 0x71c45d05U, 0x0406d46fU, 0x605015ffU, | ||
| 399 | 0x1998fb24U, 0xd6bde997U, 0x894043ccU, 0x67d99e77U, | ||
| 400 | 0xb0e842bdU, 0x07898b88U, 0xe7195b38U, 0x79c8eedbU, | ||
| 401 | 0xa17c0a47U, 0x7c420fe9U, 0xf8841ec9U, 0x00000000U, | ||
| 402 | 0x09808683U, 0x322bed48U, 0x1e1170acU, 0x6c5a724eU, | ||
| 403 | 0xfd0efffbU, 0x0f853856U, 0x3daed51eU, 0x362d3927U, | ||
| 404 | 0x0a0fd964U, 0x685ca621U, 0x9b5b54d1U, 0x24362e3aU, | ||
| 405 | 0x0c0a67b1U, 0x9357e70fU, 0xb4ee96d2U, 0x1b9b919eU, | ||
| 406 | 0x80c0c54fU, 0x61dc20a2U, 0x5a774b69U, 0x1c121a16U, | ||
| 407 | 0xe293ba0aU, 0xc0a02ae5U, 0x3c22e043U, 0x121b171dU, | ||
| 408 | 0x0e090d0bU, 0xf28bc7adU, 0x2db6a8b9U, 0x141ea9c8U, | ||
| 409 | 0x57f11985U, 0xaf75074cU, 0xee99ddbbU, 0xa37f60fdU, | ||
| 410 | 0xf701269fU, 0x5c72f5bcU, 0x44663bc5U, 0x5bfb7e34U, | ||
| 411 | 0x8b432976U, 0xcb23c6dcU, 0xb6edfc68U, 0xb8e4f163U, | ||
| 412 | 0xd731dccaU, 0x42638510U, 0x13972240U, 0x84c61120U, | ||
| 413 | 0x854a247dU, 0xd2bb3df8U, 0xaef93211U, 0xc729a16dU, | ||
| 414 | 0x1d9e2f4bU, 0xdcb230f3U, 0x0d8652ecU, 0x77c1e3d0U, | ||
| 415 | 0x2bb3166cU, 0xa970b999U, 0x119448faU, 0x47e96422U, | ||
| 416 | 0xa8fc8cc4U, 0xa0f03f1aU, 0x567d2cd8U, 0x223390efU, | ||
| 417 | 0x87494ec7U, 0xd938d1c1U, 0x8ccaa2feU, 0x98d40b36U, | ||
| 418 | 0xa6f581cfU, 0xa57ade28U, 0xdab78e26U, 0x3fadbfa4U, | ||
| 419 | 0x2c3a9de4U, 0x5078920dU, 0x6a5fcc9bU, 0x547e4662U, | ||
| 420 | 0xf68d13c2U, 0x90d8b8e8U, 0x2e39f75eU, 0x82c3aff5U, | ||
| 421 | 0x9f5d80beU, 0x69d0937cU, 0x6fd52da9U, 0xcf2512b3U, | ||
| 422 | 0xc8ac993bU, 0x10187da7U, 0xe89c636eU, 0xdb3bbb7bU, | ||
| 423 | 0xcd267809U, 0x6e5918f4U, 0xec9ab701U, 0x834f9aa8U, | ||
| 424 | 0xe6956e65U, 0xaaffe67eU, 0x21bccf08U, 0xef15e8e6U, | ||
| 425 | 0xbae79bd9U, 0x4a6f36ceU, 0xea9f09d4U, 0x29b07cd6U, | ||
| 426 | 0x31a4b2afU, 0x2a3f2331U, 0xc6a59430U, 0x35a266c0U, | ||
| 427 | 0x744ebc37U, 0xfc82caa6U, 0xe090d0b0U, 0x33a7d815U, | ||
| 428 | 0xf104984aU, 0x41ecdaf7U, 0x7fcd500eU, 0x1791f62fU, | ||
| 429 | 0x764dd68dU, 0x43efb04dU, 0xccaa4d54U, 0xe49604dfU, | ||
| 430 | 0x9ed1b5e3U, 0x4c6a881bU, 0xc12c1fb8U, 0x4665517fU, | ||
| 431 | 0x9d5eea04U, 0x018c355dU, 0xfa877473U, 0xfb0b412eU, | ||
| 432 | 0xb3671d5aU, 0x92dbd252U, 0xe9105633U, 0x6dd64713U, | ||
| 433 | 0x9ad7618cU, 0x37a10c7aU, 0x59f8148eU, 0xeb133c89U, | ||
| 434 | 0xcea927eeU, 0xb761c935U, 0xe11ce5edU, 0x7a47b13cU, | ||
| 435 | 0x9cd2df59U, 0x55f2733fU, 0x1814ce79U, 0x73c737bfU, | ||
| 436 | 0x53f7cdeaU, 0x5ffdaa5bU, 0xdf3d6f14U, 0x7844db86U, | ||
| 437 | 0xcaaff381U, 0xb968c43eU, 0x3824342cU, 0xc2a3405fU, | ||
| 438 | 0x161dc372U, 0xbce2250cU, 0x283c498bU, 0xff0d9541U, | ||
| 439 | 0x39a80171U, 0x080cb3deU, 0xd8b4e49cU, 0x6456c190U, | ||
| 440 | 0x7bcb8461U, 0xd532b670U, 0x486c5c74U, 0xd0b85742U, | ||
| 441 | }; | ||
| 442 | static const u32 Td1[256] = { | ||
| 443 | 0x5051f4a7U, 0x537e4165U, 0xc31a17a4U, 0x963a275eU, | ||
| 444 | 0xcb3bab6bU, 0xf11f9d45U, 0xabacfa58U, 0x934be303U, | ||
| 445 | 0x552030faU, 0xf6ad766dU, 0x9188cc76U, 0x25f5024cU, | ||
| 446 | 0xfc4fe5d7U, 0xd7c52acbU, 0x80263544U, 0x8fb562a3U, | ||
| 447 | 0x49deb15aU, 0x6725ba1bU, 0x9845ea0eU, 0xe15dfec0U, | ||
| 448 | 0x02c32f75U, 0x12814cf0U, 0xa38d4697U, 0xc66bd3f9U, | ||
| 449 | 0xe7038f5fU, 0x9515929cU, 0xebbf6d7aU, 0xda955259U, | ||
| 450 | 0x2dd4be83U, 0xd3587421U, 0x2949e069U, 0x448ec9c8U, | ||
| 451 | 0x6a75c289U, 0x78f48e79U, 0x6b99583eU, 0xdd27b971U, | ||
| 452 | 0xb6bee14fU, 0x17f088adU, 0x66c920acU, 0xb47dce3aU, | ||
| 453 | 0x1863df4aU, 0x82e51a31U, 0x60975133U, 0x4562537fU, | ||
| 454 | 0xe0b16477U, 0x84bb6baeU, 0x1cfe81a0U, 0x94f9082bU, | ||
| 455 | 0x58704868U, 0x198f45fdU, 0x8794de6cU, 0xb7527bf8U, | ||
| 456 | 0x23ab73d3U, 0xe2724b02U, 0x57e31f8fU, 0x2a6655abU, | ||
| 457 | 0x07b2eb28U, 0x032fb5c2U, 0x9a86c57bU, 0xa5d33708U, | ||
| 458 | 0xf2302887U, 0xb223bfa5U, 0xba02036aU, 0x5ced1682U, | ||
| 459 | 0x2b8acf1cU, 0x92a779b4U, 0xf0f307f2U, 0xa14e69e2U, | ||
| 460 | 0xcd65daf4U, 0xd50605beU, 0x1fd13462U, 0x8ac4a6feU, | ||
| 461 | 0x9d342e53U, 0xa0a2f355U, 0x32058ae1U, 0x75a4f6ebU, | ||
| 462 | 0x390b83ecU, 0xaa4060efU, 0x065e719fU, 0x51bd6e10U, | ||
| 463 | 0xf93e218aU, 0x3d96dd06U, 0xaedd3e05U, 0x464de6bdU, | ||
| 464 | 0xb591548dU, 0x0571c45dU, 0x6f0406d4U, 0xff605015U, | ||
| 465 | 0x241998fbU, 0x97d6bde9U, 0xcc894043U, 0x7767d99eU, | ||
| 466 | 0xbdb0e842U, 0x8807898bU, 0x38e7195bU, 0xdb79c8eeU, | ||
| 467 | 0x47a17c0aU, 0xe97c420fU, 0xc9f8841eU, 0x00000000U, | ||
| 468 | 0x83098086U, 0x48322bedU, 0xac1e1170U, 0x4e6c5a72U, | ||
| 469 | 0xfbfd0effU, 0x560f8538U, 0x1e3daed5U, 0x27362d39U, | ||
| 470 | 0x640a0fd9U, 0x21685ca6U, 0xd19b5b54U, 0x3a24362eU, | ||
| 471 | 0xb10c0a67U, 0x0f9357e7U, 0xd2b4ee96U, 0x9e1b9b91U, | ||
| 472 | 0x4f80c0c5U, 0xa261dc20U, 0x695a774bU, 0x161c121aU, | ||
| 473 | 0x0ae293baU, 0xe5c0a02aU, 0x433c22e0U, 0x1d121b17U, | ||
| 474 | 0x0b0e090dU, 0xadf28bc7U, 0xb92db6a8U, 0xc8141ea9U, | ||
| 475 | 0x8557f119U, 0x4caf7507U, 0xbbee99ddU, 0xfda37f60U, | ||
| 476 | 0x9ff70126U, 0xbc5c72f5U, 0xc544663bU, 0x345bfb7eU, | ||
| 477 | 0x768b4329U, 0xdccb23c6U, 0x68b6edfcU, 0x63b8e4f1U, | ||
| 478 | 0xcad731dcU, 0x10426385U, 0x40139722U, 0x2084c611U, | ||
| 479 | 0x7d854a24U, 0xf8d2bb3dU, 0x11aef932U, 0x6dc729a1U, | ||
| 480 | 0x4b1d9e2fU, 0xf3dcb230U, 0xec0d8652U, 0xd077c1e3U, | ||
| 481 | 0x6c2bb316U, 0x99a970b9U, 0xfa119448U, 0x2247e964U, | ||
| 482 | 0xc4a8fc8cU, 0x1aa0f03fU, 0xd8567d2cU, 0xef223390U, | ||
| 483 | 0xc787494eU, 0xc1d938d1U, 0xfe8ccaa2U, 0x3698d40bU, | ||
| 484 | 0xcfa6f581U, 0x28a57adeU, 0x26dab78eU, 0xa43fadbfU, | ||
| 485 | 0xe42c3a9dU, 0x0d507892U, 0x9b6a5fccU, 0x62547e46U, | ||
| 486 | 0xc2f68d13U, 0xe890d8b8U, 0x5e2e39f7U, 0xf582c3afU, | ||
| 487 | 0xbe9f5d80U, 0x7c69d093U, 0xa96fd52dU, 0xb3cf2512U, | ||
| 488 | 0x3bc8ac99U, 0xa710187dU, 0x6ee89c63U, 0x7bdb3bbbU, | ||
| 489 | 0x09cd2678U, 0xf46e5918U, 0x01ec9ab7U, 0xa8834f9aU, | ||
| 490 | 0x65e6956eU, 0x7eaaffe6U, 0x0821bccfU, 0xe6ef15e8U, | ||
| 491 | 0xd9bae79bU, 0xce4a6f36U, 0xd4ea9f09U, 0xd629b07cU, | ||
| 492 | 0xaf31a4b2U, 0x312a3f23U, 0x30c6a594U, 0xc035a266U, | ||
| 493 | 0x37744ebcU, 0xa6fc82caU, 0xb0e090d0U, 0x1533a7d8U, | ||
| 494 | 0x4af10498U, 0xf741ecdaU, 0x0e7fcd50U, 0x2f1791f6U, | ||
| 495 | 0x8d764dd6U, 0x4d43efb0U, 0x54ccaa4dU, 0xdfe49604U, | ||
| 496 | 0xe39ed1b5U, 0x1b4c6a88U, 0xb8c12c1fU, 0x7f466551U, | ||
| 497 | 0x049d5eeaU, 0x5d018c35U, 0x73fa8774U, 0x2efb0b41U, | ||
| 498 | 0x5ab3671dU, 0x5292dbd2U, 0x33e91056U, 0x136dd647U, | ||
| 499 | 0x8c9ad761U, 0x7a37a10cU, 0x8e59f814U, 0x89eb133cU, | ||
| 500 | 0xeecea927U, 0x35b761c9U, 0xede11ce5U, 0x3c7a47b1U, | ||
| 501 | 0x599cd2dfU, 0x3f55f273U, 0x791814ceU, 0xbf73c737U, | ||
| 502 | 0xea53f7cdU, 0x5b5ffdaaU, 0x14df3d6fU, 0x867844dbU, | ||
| 503 | 0x81caaff3U, 0x3eb968c4U, 0x2c382434U, 0x5fc2a340U, | ||
| 504 | 0x72161dc3U, 0x0cbce225U, 0x8b283c49U, 0x41ff0d95U, | ||
| 505 | 0x7139a801U, 0xde080cb3U, 0x9cd8b4e4U, 0x906456c1U, | ||
| 506 | 0x617bcb84U, 0x70d532b6U, 0x74486c5cU, 0x42d0b857U, | ||
| 507 | }; | ||
| 508 | static const u32 Td2[256] = { | ||
| 509 | 0xa75051f4U, 0x65537e41U, 0xa4c31a17U, 0x5e963a27U, | ||
| 510 | 0x6bcb3babU, 0x45f11f9dU, 0x58abacfaU, 0x03934be3U, | ||
| 511 | 0xfa552030U, 0x6df6ad76U, 0x769188ccU, 0x4c25f502U, | ||
| 512 | 0xd7fc4fe5U, 0xcbd7c52aU, 0x44802635U, 0xa38fb562U, | ||
| 513 | 0x5a49deb1U, 0x1b6725baU, 0x0e9845eaU, 0xc0e15dfeU, | ||
| 514 | 0x7502c32fU, 0xf012814cU, 0x97a38d46U, 0xf9c66bd3U, | ||
| 515 | 0x5fe7038fU, 0x9c951592U, 0x7aebbf6dU, 0x59da9552U, | ||
| 516 | 0x832dd4beU, 0x21d35874U, 0x692949e0U, 0xc8448ec9U, | ||
| 517 | 0x896a75c2U, 0x7978f48eU, 0x3e6b9958U, 0x71dd27b9U, | ||
| 518 | 0x4fb6bee1U, 0xad17f088U, 0xac66c920U, 0x3ab47dceU, | ||
| 519 | 0x4a1863dfU, 0x3182e51aU, 0x33609751U, 0x7f456253U, | ||
| 520 | 0x77e0b164U, 0xae84bb6bU, 0xa01cfe81U, 0x2b94f908U, | ||
| 521 | 0x68587048U, 0xfd198f45U, 0x6c8794deU, 0xf8b7527bU, | ||
| 522 | 0xd323ab73U, 0x02e2724bU, 0x8f57e31fU, 0xab2a6655U, | ||
| 523 | 0x2807b2ebU, 0xc2032fb5U, 0x7b9a86c5U, 0x08a5d337U, | ||
| 524 | 0x87f23028U, 0xa5b223bfU, 0x6aba0203U, 0x825ced16U, | ||
| 525 | 0x1c2b8acfU, 0xb492a779U, 0xf2f0f307U, 0xe2a14e69U, | ||
| 526 | 0xf4cd65daU, 0xbed50605U, 0x621fd134U, 0xfe8ac4a6U, | ||
| 527 | 0x539d342eU, 0x55a0a2f3U, 0xe132058aU, 0xeb75a4f6U, | ||
| 528 | 0xec390b83U, 0xefaa4060U, 0x9f065e71U, 0x1051bd6eU, | ||
| 529 | |||
| 530 | 0x8af93e21U, 0x063d96ddU, 0x05aedd3eU, 0xbd464de6U, | ||
| 531 | 0x8db59154U, 0x5d0571c4U, 0xd46f0406U, 0x15ff6050U, | ||
| 532 | 0xfb241998U, 0xe997d6bdU, 0x43cc8940U, 0x9e7767d9U, | ||
| 533 | 0x42bdb0e8U, 0x8b880789U, 0x5b38e719U, 0xeedb79c8U, | ||
| 534 | 0x0a47a17cU, 0x0fe97c42U, 0x1ec9f884U, 0x00000000U, | ||
| 535 | 0x86830980U, 0xed48322bU, 0x70ac1e11U, 0x724e6c5aU, | ||
| 536 | 0xfffbfd0eU, 0x38560f85U, 0xd51e3daeU, 0x3927362dU, | ||
| 537 | 0xd9640a0fU, 0xa621685cU, 0x54d19b5bU, 0x2e3a2436U, | ||
| 538 | 0x67b10c0aU, 0xe70f9357U, 0x96d2b4eeU, 0x919e1b9bU, | ||
| 539 | 0xc54f80c0U, 0x20a261dcU, 0x4b695a77U, 0x1a161c12U, | ||
| 540 | 0xba0ae293U, 0x2ae5c0a0U, 0xe0433c22U, 0x171d121bU, | ||
| 541 | 0x0d0b0e09U, 0xc7adf28bU, 0xa8b92db6U, 0xa9c8141eU, | ||
| 542 | 0x198557f1U, 0x074caf75U, 0xddbbee99U, 0x60fda37fU, | ||
| 543 | 0x269ff701U, 0xf5bc5c72U, 0x3bc54466U, 0x7e345bfbU, | ||
| 544 | 0x29768b43U, 0xc6dccb23U, 0xfc68b6edU, 0xf163b8e4U, | ||
| 545 | 0xdccad731U, 0x85104263U, 0x22401397U, 0x112084c6U, | ||
| 546 | 0x247d854aU, 0x3df8d2bbU, 0x3211aef9U, 0xa16dc729U, | ||
| 547 | 0x2f4b1d9eU, 0x30f3dcb2U, 0x52ec0d86U, 0xe3d077c1U, | ||
| 548 | 0x166c2bb3U, 0xb999a970U, 0x48fa1194U, 0x642247e9U, | ||
| 549 | 0x8cc4a8fcU, 0x3f1aa0f0U, 0x2cd8567dU, 0x90ef2233U, | ||
| 550 | 0x4ec78749U, 0xd1c1d938U, 0xa2fe8ccaU, 0x0b3698d4U, | ||
| 551 | 0x81cfa6f5U, 0xde28a57aU, 0x8e26dab7U, 0xbfa43fadU, | ||
| 552 | 0x9de42c3aU, 0x920d5078U, 0xcc9b6a5fU, 0x4662547eU, | ||
| 553 | 0x13c2f68dU, 0xb8e890d8U, 0xf75e2e39U, 0xaff582c3U, | ||
| 554 | 0x80be9f5dU, 0x937c69d0U, 0x2da96fd5U, 0x12b3cf25U, | ||
| 555 | 0x993bc8acU, 0x7da71018U, 0x636ee89cU, 0xbb7bdb3bU, | ||
| 556 | 0x7809cd26U, 0x18f46e59U, 0xb701ec9aU, 0x9aa8834fU, | ||
| 557 | 0x6e65e695U, 0xe67eaaffU, 0xcf0821bcU, 0xe8e6ef15U, | ||
| 558 | 0x9bd9bae7U, 0x36ce4a6fU, 0x09d4ea9fU, 0x7cd629b0U, | ||
| 559 | 0xb2af31a4U, 0x23312a3fU, 0x9430c6a5U, 0x66c035a2U, | ||
| 560 | 0xbc37744eU, 0xcaa6fc82U, 0xd0b0e090U, 0xd81533a7U, | ||
| 561 | 0x984af104U, 0xdaf741ecU, 0x500e7fcdU, 0xf62f1791U, | ||
| 562 | 0xd68d764dU, 0xb04d43efU, 0x4d54ccaaU, 0x04dfe496U, | ||
| 563 | 0xb5e39ed1U, 0x881b4c6aU, 0x1fb8c12cU, 0x517f4665U, | ||
| 564 | 0xea049d5eU, 0x355d018cU, 0x7473fa87U, 0x412efb0bU, | ||
| 565 | 0x1d5ab367U, 0xd25292dbU, 0x5633e910U, 0x47136dd6U, | ||
| 566 | 0x618c9ad7U, 0x0c7a37a1U, 0x148e59f8U, 0x3c89eb13U, | ||
| 567 | 0x27eecea9U, 0xc935b761U, 0xe5ede11cU, 0xb13c7a47U, | ||
| 568 | 0xdf599cd2U, 0x733f55f2U, 0xce791814U, 0x37bf73c7U, | ||
| 569 | 0xcdea53f7U, 0xaa5b5ffdU, 0x6f14df3dU, 0xdb867844U, | ||
| 570 | 0xf381caafU, 0xc43eb968U, 0x342c3824U, 0x405fc2a3U, | ||
| 571 | 0xc372161dU, 0x250cbce2U, 0x498b283cU, 0x9541ff0dU, | ||
| 572 | 0x017139a8U, 0xb3de080cU, 0xe49cd8b4U, 0xc1906456U, | ||
| 573 | 0x84617bcbU, 0xb670d532U, 0x5c74486cU, 0x5742d0b8U, | ||
| 574 | }; | ||
| 575 | static const u32 Td3[256] = { | ||
| 576 | 0xf4a75051U, 0x4165537eU, 0x17a4c31aU, 0x275e963aU, | ||
| 577 | 0xab6bcb3bU, 0x9d45f11fU, 0xfa58abacU, 0xe303934bU, | ||
| 578 | 0x30fa5520U, 0x766df6adU, 0xcc769188U, 0x024c25f5U, | ||
| 579 | 0xe5d7fc4fU, 0x2acbd7c5U, 0x35448026U, 0x62a38fb5U, | ||
| 580 | 0xb15a49deU, 0xba1b6725U, 0xea0e9845U, 0xfec0e15dU, | ||
| 581 | 0x2f7502c3U, 0x4cf01281U, 0x4697a38dU, 0xd3f9c66bU, | ||
| 582 | 0x8f5fe703U, 0x929c9515U, 0x6d7aebbfU, 0x5259da95U, | ||
| 583 | 0xbe832dd4U, 0x7421d358U, 0xe0692949U, 0xc9c8448eU, | ||
| 584 | 0xc2896a75U, 0x8e7978f4U, 0x583e6b99U, 0xb971dd27U, | ||
| 585 | 0xe14fb6beU, 0x88ad17f0U, 0x20ac66c9U, 0xce3ab47dU, | ||
| 586 | 0xdf4a1863U, 0x1a3182e5U, 0x51336097U, 0x537f4562U, | ||
| 587 | 0x6477e0b1U, 0x6bae84bbU, 0x81a01cfeU, 0x082b94f9U, | ||
| 588 | 0x48685870U, 0x45fd198fU, 0xde6c8794U, 0x7bf8b752U, | ||
| 589 | 0x73d323abU, 0x4b02e272U, 0x1f8f57e3U, 0x55ab2a66U, | ||
| 590 | 0xeb2807b2U, 0xb5c2032fU, 0xc57b9a86U, 0x3708a5d3U, | ||
| 591 | 0x2887f230U, 0xbfa5b223U, 0x036aba02U, 0x16825cedU, | ||
| 592 | 0xcf1c2b8aU, 0x79b492a7U, 0x07f2f0f3U, 0x69e2a14eU, | ||
| 593 | 0xdaf4cd65U, 0x05bed506U, 0x34621fd1U, 0xa6fe8ac4U, | ||
| 594 | 0x2e539d34U, 0xf355a0a2U, 0x8ae13205U, 0xf6eb75a4U, | ||
| 595 | 0x83ec390bU, 0x60efaa40U, 0x719f065eU, 0x6e1051bdU, | ||
| 596 | 0x218af93eU, 0xdd063d96U, 0x3e05aeddU, 0xe6bd464dU, | ||
| 597 | 0x548db591U, 0xc45d0571U, 0x06d46f04U, 0x5015ff60U, | ||
| 598 | 0x98fb2419U, 0xbde997d6U, 0x4043cc89U, 0xd99e7767U, | ||
| 599 | 0xe842bdb0U, 0x898b8807U, 0x195b38e7U, 0xc8eedb79U, | ||
| 600 | 0x7c0a47a1U, 0x420fe97cU, 0x841ec9f8U, 0x00000000U, | ||
| 601 | 0x80868309U, 0x2bed4832U, 0x1170ac1eU, 0x5a724e6cU, | ||
| 602 | 0x0efffbfdU, 0x8538560fU, 0xaed51e3dU, 0x2d392736U, | ||
| 603 | 0x0fd9640aU, 0x5ca62168U, 0x5b54d19bU, 0x362e3a24U, | ||
| 604 | 0x0a67b10cU, 0x57e70f93U, 0xee96d2b4U, 0x9b919e1bU, | ||
| 605 | 0xc0c54f80U, 0xdc20a261U, 0x774b695aU, 0x121a161cU, | ||
| 606 | 0x93ba0ae2U, 0xa02ae5c0U, 0x22e0433cU, 0x1b171d12U, | ||
| 607 | 0x090d0b0eU, 0x8bc7adf2U, 0xb6a8b92dU, 0x1ea9c814U, | ||
| 608 | 0xf1198557U, 0x75074cafU, 0x99ddbbeeU, 0x7f60fda3U, | ||
| 609 | 0x01269ff7U, 0x72f5bc5cU, 0x663bc544U, 0xfb7e345bU, | ||
| 610 | 0x4329768bU, 0x23c6dccbU, 0xedfc68b6U, 0xe4f163b8U, | ||
| 611 | 0x31dccad7U, 0x63851042U, 0x97224013U, 0xc6112084U, | ||
| 612 | 0x4a247d85U, 0xbb3df8d2U, 0xf93211aeU, 0x29a16dc7U, | ||
| 613 | 0x9e2f4b1dU, 0xb230f3dcU, 0x8652ec0dU, 0xc1e3d077U, | ||
| 614 | 0xb3166c2bU, 0x70b999a9U, 0x9448fa11U, 0xe9642247U, | ||
| 615 | 0xfc8cc4a8U, 0xf03f1aa0U, 0x7d2cd856U, 0x3390ef22U, | ||
| 616 | 0x494ec787U, 0x38d1c1d9U, 0xcaa2fe8cU, 0xd40b3698U, | ||
| 617 | 0xf581cfa6U, 0x7ade28a5U, 0xb78e26daU, 0xadbfa43fU, | ||
| 618 | 0x3a9de42cU, 0x78920d50U, 0x5fcc9b6aU, 0x7e466254U, | ||
| 619 | 0x8d13c2f6U, 0xd8b8e890U, 0x39f75e2eU, 0xc3aff582U, | ||
| 620 | 0x5d80be9fU, 0xd0937c69U, 0xd52da96fU, 0x2512b3cfU, | ||
| 621 | 0xac993bc8U, 0x187da710U, 0x9c636ee8U, 0x3bbb7bdbU, | ||
| 622 | 0x267809cdU, 0x5918f46eU, 0x9ab701ecU, 0x4f9aa883U, | ||
| 623 | 0x956e65e6U, 0xffe67eaaU, 0xbccf0821U, 0x15e8e6efU, | ||
| 624 | 0xe79bd9baU, 0x6f36ce4aU, 0x9f09d4eaU, 0xb07cd629U, | ||
| 625 | 0xa4b2af31U, 0x3f23312aU, 0xa59430c6U, 0xa266c035U, | ||
| 626 | 0x4ebc3774U, 0x82caa6fcU, 0x90d0b0e0U, 0xa7d81533U, | ||
| 627 | 0x04984af1U, 0xecdaf741U, 0xcd500e7fU, 0x91f62f17U, | ||
| 628 | 0x4dd68d76U, 0xefb04d43U, 0xaa4d54ccU, 0x9604dfe4U, | ||
| 629 | 0xd1b5e39eU, 0x6a881b4cU, 0x2c1fb8c1U, 0x65517f46U, | ||
| 630 | 0x5eea049dU, 0x8c355d01U, 0x877473faU, 0x0b412efbU, | ||
| 631 | 0x671d5ab3U, 0xdbd25292U, 0x105633e9U, 0xd647136dU, | ||
| 632 | 0xd7618c9aU, 0xa10c7a37U, 0xf8148e59U, 0x133c89ebU, | ||
| 633 | 0xa927eeceU, 0x61c935b7U, 0x1ce5ede1U, 0x47b13c7aU, | ||
| 634 | 0xd2df599cU, 0xf2733f55U, 0x14ce7918U, 0xc737bf73U, | ||
| 635 | 0xf7cdea53U, 0xfdaa5b5fU, 0x3d6f14dfU, 0x44db8678U, | ||
| 636 | 0xaff381caU, 0x68c43eb9U, 0x24342c38U, 0xa3405fc2U, | ||
| 637 | 0x1dc37216U, 0xe2250cbcU, 0x3c498b28U, 0x0d9541ffU, | ||
| 638 | 0xa8017139U, 0x0cb3de08U, 0xb4e49cd8U, 0x56c19064U, | ||
| 639 | 0xcb84617bU, 0x32b670d5U, 0x6c5c7448U, 0xb85742d0U, | ||
| 640 | }; | ||
| 641 | static const u32 Td4[256] = { | ||
| 642 | 0x52525252U, 0x09090909U, 0x6a6a6a6aU, 0xd5d5d5d5U, | ||
| 643 | 0x30303030U, 0x36363636U, 0xa5a5a5a5U, 0x38383838U, | ||
| 644 | 0xbfbfbfbfU, 0x40404040U, 0xa3a3a3a3U, 0x9e9e9e9eU, | ||
| 645 | 0x81818181U, 0xf3f3f3f3U, 0xd7d7d7d7U, 0xfbfbfbfbU, | ||
| 646 | 0x7c7c7c7cU, 0xe3e3e3e3U, 0x39393939U, 0x82828282U, | ||
| 647 | 0x9b9b9b9bU, 0x2f2f2f2fU, 0xffffffffU, 0x87878787U, | ||
| 648 | 0x34343434U, 0x8e8e8e8eU, 0x43434343U, 0x44444444U, | ||
| 649 | 0xc4c4c4c4U, 0xdedededeU, 0xe9e9e9e9U, 0xcbcbcbcbU, | ||
| 650 | 0x54545454U, 0x7b7b7b7bU, 0x94949494U, 0x32323232U, | ||
| 651 | 0xa6a6a6a6U, 0xc2c2c2c2U, 0x23232323U, 0x3d3d3d3dU, | ||
| 652 | 0xeeeeeeeeU, 0x4c4c4c4cU, 0x95959595U, 0x0b0b0b0bU, | ||
| 653 | 0x42424242U, 0xfafafafaU, 0xc3c3c3c3U, 0x4e4e4e4eU, | ||
| 654 | 0x08080808U, 0x2e2e2e2eU, 0xa1a1a1a1U, 0x66666666U, | ||
| 655 | 0x28282828U, 0xd9d9d9d9U, 0x24242424U, 0xb2b2b2b2U, | ||
| 656 | 0x76767676U, 0x5b5b5b5bU, 0xa2a2a2a2U, 0x49494949U, | ||
| 657 | 0x6d6d6d6dU, 0x8b8b8b8bU, 0xd1d1d1d1U, 0x25252525U, | ||
| 658 | 0x72727272U, 0xf8f8f8f8U, 0xf6f6f6f6U, 0x64646464U, | ||
| 659 | 0x86868686U, 0x68686868U, 0x98989898U, 0x16161616U, | ||
| 660 | 0xd4d4d4d4U, 0xa4a4a4a4U, 0x5c5c5c5cU, 0xccccccccU, | ||
| 661 | 0x5d5d5d5dU, 0x65656565U, 0xb6b6b6b6U, 0x92929292U, | ||
| 662 | 0x6c6c6c6cU, 0x70707070U, 0x48484848U, 0x50505050U, | ||
| 663 | 0xfdfdfdfdU, 0xededededU, 0xb9b9b9b9U, 0xdadadadaU, | ||
| 664 | 0x5e5e5e5eU, 0x15151515U, 0x46464646U, 0x57575757U, | ||
| 665 | 0xa7a7a7a7U, 0x8d8d8d8dU, 0x9d9d9d9dU, 0x84848484U, | ||
| 666 | 0x90909090U, 0xd8d8d8d8U, 0xababababU, 0x00000000U, | ||
| 667 | 0x8c8c8c8cU, 0xbcbcbcbcU, 0xd3d3d3d3U, 0x0a0a0a0aU, | ||
| 668 | 0xf7f7f7f7U, 0xe4e4e4e4U, 0x58585858U, 0x05050505U, | ||
| 669 | 0xb8b8b8b8U, 0xb3b3b3b3U, 0x45454545U, 0x06060606U, | ||
| 670 | 0xd0d0d0d0U, 0x2c2c2c2cU, 0x1e1e1e1eU, 0x8f8f8f8fU, | ||
| 671 | 0xcacacacaU, 0x3f3f3f3fU, 0x0f0f0f0fU, 0x02020202U, | ||
| 672 | 0xc1c1c1c1U, 0xafafafafU, 0xbdbdbdbdU, 0x03030303U, | ||
| 673 | 0x01010101U, 0x13131313U, 0x8a8a8a8aU, 0x6b6b6b6bU, | ||
| 674 | 0x3a3a3a3aU, 0x91919191U, 0x11111111U, 0x41414141U, | ||
| 675 | 0x4f4f4f4fU, 0x67676767U, 0xdcdcdcdcU, 0xeaeaeaeaU, | ||
| 676 | 0x97979797U, 0xf2f2f2f2U, 0xcfcfcfcfU, 0xcecececeU, | ||
| 677 | 0xf0f0f0f0U, 0xb4b4b4b4U, 0xe6e6e6e6U, 0x73737373U, | ||
| 678 | 0x96969696U, 0xacacacacU, 0x74747474U, 0x22222222U, | ||
| 679 | 0xe7e7e7e7U, 0xadadadadU, 0x35353535U, 0x85858585U, | ||
| 680 | 0xe2e2e2e2U, 0xf9f9f9f9U, 0x37373737U, 0xe8e8e8e8U, | ||
| 681 | 0x1c1c1c1cU, 0x75757575U, 0xdfdfdfdfU, 0x6e6e6e6eU, | ||
| 682 | 0x47474747U, 0xf1f1f1f1U, 0x1a1a1a1aU, 0x71717171U, | ||
| 683 | 0x1d1d1d1dU, 0x29292929U, 0xc5c5c5c5U, 0x89898989U, | ||
| 684 | 0x6f6f6f6fU, 0xb7b7b7b7U, 0x62626262U, 0x0e0e0e0eU, | ||
| 685 | 0xaaaaaaaaU, 0x18181818U, 0xbebebebeU, 0x1b1b1b1bU, | ||
| 686 | 0xfcfcfcfcU, 0x56565656U, 0x3e3e3e3eU, 0x4b4b4b4bU, | ||
| 687 | 0xc6c6c6c6U, 0xd2d2d2d2U, 0x79797979U, 0x20202020U, | ||
| 688 | 0x9a9a9a9aU, 0xdbdbdbdbU, 0xc0c0c0c0U, 0xfefefefeU, | ||
| 689 | 0x78787878U, 0xcdcdcdcdU, 0x5a5a5a5aU, 0xf4f4f4f4U, | ||
| 690 | 0x1f1f1f1fU, 0xddddddddU, 0xa8a8a8a8U, 0x33333333U, | ||
| 691 | 0x88888888U, 0x07070707U, 0xc7c7c7c7U, 0x31313131U, | ||
| 692 | 0xb1b1b1b1U, 0x12121212U, 0x10101010U, 0x59595959U, | ||
| 693 | 0x27272727U, 0x80808080U, 0xececececU, 0x5f5f5f5fU, | ||
| 694 | 0x60606060U, 0x51515151U, 0x7f7f7f7fU, 0xa9a9a9a9U, | ||
| 695 | 0x19191919U, 0xb5b5b5b5U, 0x4a4a4a4aU, 0x0d0d0d0dU, | ||
| 696 | 0x2d2d2d2dU, 0xe5e5e5e5U, 0x7a7a7a7aU, 0x9f9f9f9fU, | ||
| 697 | 0x93939393U, 0xc9c9c9c9U, 0x9c9c9c9cU, 0xefefefefU, | ||
| 698 | 0xa0a0a0a0U, 0xe0e0e0e0U, 0x3b3b3b3bU, 0x4d4d4d4dU, | ||
| 699 | 0xaeaeaeaeU, 0x2a2a2a2aU, 0xf5f5f5f5U, 0xb0b0b0b0U, | ||
| 700 | 0xc8c8c8c8U, 0xebebebebU, 0xbbbbbbbbU, 0x3c3c3c3cU, | ||
| 701 | 0x83838383U, 0x53535353U, 0x99999999U, 0x61616161U, | ||
| 702 | 0x17171717U, 0x2b2b2b2bU, 0x04040404U, 0x7e7e7e7eU, | ||
| 703 | 0xbabababaU, 0x77777777U, 0xd6d6d6d6U, 0x26262626U, | ||
| 704 | 0xe1e1e1e1U, 0x69696969U, 0x14141414U, 0x63636363U, | ||
| 705 | 0x55555555U, 0x21212121U, 0x0c0c0c0cU, 0x7d7d7d7dU, | ||
| 706 | }; | ||
| 707 | static const u32 rcon[] = { | ||
| 708 | 0x01000000, 0x02000000, 0x04000000, 0x08000000, | ||
| 709 | 0x10000000, 0x20000000, 0x40000000, 0x80000000, | ||
| 710 | 0x1B000000, 0x36000000, /* for 128-bit blocks, Rijndael never uses more than 10 rcon values */ | ||
| 711 | }; | ||
| 712 | |||
| 713 | #define SWAP(x) (_lrotl(x, 8) & 0x00ff00ff | _lrotr(x, 8) & 0xff00ff00) | ||
| 714 | |||
| 715 | #ifdef _MSC_VER | ||
| 716 | #define GETU32(p) SWAP(*((u32 *)(p))) | ||
| 717 | #define PUTU32(ct, st) { *((u32 *)(ct)) = SWAP((st)); } | ||
| 718 | #else | ||
| 719 | #define GETU32(pt) (((u32)(pt)[0] << 24) ^ ((u32)(pt)[1] << 16) ^ ((u32)(pt)[2] << 8) ^ ((u32)(pt)[3])) | ||
| 720 | #define PUTU32(ct, st) { (ct)[0] = (u8)((st) >> 24); (ct)[1] = (u8)((st) >> 16); (ct)[2] = (u8)((st) >> 8); (ct)[3] = (u8)(st); } | ||
| 721 | #endif | ||
| 722 | |||
| 723 | /** | ||
| 724 | * Expand the cipher key into the encryption key schedule. | ||
| 725 | * | ||
| 726 | * @return the number of rounds for the given cipher key size. | ||
| 727 | */ | ||
| 728 | int rijndaelKeySetupEnc(u32 rk[/*4*(Nr + 1)*/], const u8 cipherKey[], int keyBits) { | ||
| 729 | int i = 0; | ||
| 730 | u32 temp; | ||
| 731 | |||
| 732 | rk[0] = GETU32(cipherKey ); | ||
| 733 | rk[1] = GETU32(cipherKey + 4); | ||
| 734 | rk[2] = GETU32(cipherKey + 8); | ||
| 735 | rk[3] = GETU32(cipherKey + 12); | ||
| 736 | if (keyBits == 128) { | ||
| 737 | for (;;) { | ||
| 738 | temp = rk[3]; | ||
| 739 | rk[4] = rk[0] ^ | ||
| 740 | (Te4[(temp >> 16) & 0xff] & 0xff000000) ^ | ||
| 741 | (Te4[(temp >> 8) & 0xff] & 0x00ff0000) ^ | ||
| 742 | (Te4[(temp ) & 0xff] & 0x0000ff00) ^ | ||
| 743 | (Te4[(temp >> 24) ] & 0x000000ff) ^ | ||
| 744 | rcon[i]; | ||
| 745 | rk[5] = rk[1] ^ rk[4]; | ||
| 746 | rk[6] = rk[2] ^ rk[5]; | ||
| 747 | rk[7] = rk[3] ^ rk[6]; | ||
| 748 | if (++i == 10) { | ||
| 749 | return 10; | ||
| 750 | } | ||
| 751 | rk += 4; | ||
| 752 | } | ||
| 753 | } | ||
| 754 | rk[4] = GETU32(cipherKey + 16); | ||
| 755 | rk[5] = GETU32(cipherKey + 20); | ||
| 756 | if (keyBits == 192) { | ||
| 757 | for (;;) { | ||
| 758 | temp = rk[ 5]; | ||
| 759 | rk[ 6] = rk[ 0] ^ | ||
| 760 | (Te4[(temp >> 16) & 0xff] & 0xff000000) ^ | ||
| 761 | (Te4[(temp >> 8) & 0xff] & 0x00ff0000) ^ | ||
| 762 | (Te4[(temp ) & 0xff] & 0x0000ff00) ^ | ||
| 763 | (Te4[(temp >> 24) ] & 0x000000ff) ^ | ||
| 764 | rcon[i]; | ||
| 765 | rk[ 7] = rk[ 1] ^ rk[ 6]; | ||
| 766 | rk[ 8] = rk[ 2] ^ rk[ 7]; | ||
| 767 | rk[ 9] = rk[ 3] ^ rk[ 8]; | ||
| 768 | if (++i == 8) { | ||
| 769 | return 12; | ||
| 770 | } | ||
| 771 | rk[10] = rk[ 4] ^ rk[ 9]; | ||
| 772 | rk[11] = rk[ 5] ^ rk[10]; | ||
| 773 | rk += 6; | ||
| 774 | } | ||
| 775 | } | ||
| 776 | rk[6] = GETU32(cipherKey + 24); | ||
| 777 | rk[7] = GETU32(cipherKey + 28); | ||
| 778 | if (keyBits == 256) { | ||
| 779 | for (;;) { | ||
| 780 | temp = rk[ 7]; | ||
| 781 | rk[ 8] = rk[ 0] ^ | ||
| 782 | (Te4[(temp >> 16) & 0xff] & 0xff000000) ^ | ||
| 783 | (Te4[(temp >> 8) & 0xff] & 0x00ff0000) ^ | ||
| 784 | (Te4[(temp ) & 0xff] & 0x0000ff00) ^ | ||
| 785 | (Te4[(temp >> 24) ] & 0x000000ff) ^ | ||
| 786 | rcon[i]; | ||
| 787 | rk[ 9] = rk[ 1] ^ rk[ 8]; | ||
| 788 | rk[10] = rk[ 2] ^ rk[ 9]; | ||
| 789 | rk[11] = rk[ 3] ^ rk[10]; | ||
| 790 | if (++i == 7) { | ||
| 791 | return 14; | ||
| 792 | } | ||
| 793 | temp = rk[11]; | ||
| 794 | rk[12] = rk[ 4] ^ | ||
| 795 | (Te4[(temp >> 24) ] & 0xff000000) ^ | ||
| 796 | (Te4[(temp >> 16) & 0xff] & 0x00ff0000) ^ | ||
| 797 | (Te4[(temp >> 8) & 0xff] & 0x0000ff00) ^ | ||
| 798 | (Te4[(temp ) & 0xff] & 0x000000ff); | ||
| 799 | rk[13] = rk[ 5] ^ rk[12]; | ||
| 800 | rk[14] = rk[ 6] ^ rk[13]; | ||
| 801 | rk[15] = rk[ 7] ^ rk[14]; | ||
| 802 | |||
| 803 | rk += 8; | ||
| 804 | } | ||
| 805 | } | ||
| 806 | return 0; | ||
| 807 | } | ||
| 808 | |||
| 809 | /** | ||
| 810 | * Expand the cipher key into the decryption key schedule. | ||
| 811 | * | ||
| 812 | * @return the number of rounds for the given cipher key size. | ||
| 813 | */ | ||
| 814 | int rijndaelKeySetupDec(u32 rk[/*4*(Nr + 1)*/], const u8 cipherKey[], int keyBits) { | ||
| 815 | int Nr, i, j; | ||
| 816 | u32 temp; | ||
| 817 | |||
| 818 | /* expand the cipher key: */ | ||
| 819 | Nr = rijndaelKeySetupEnc(rk, cipherKey, keyBits); | ||
| 820 | /* invert the order of the round keys: */ | ||
| 821 | for (i = 0, j = 4*Nr; i < j; i += 4, j -= 4) { | ||
| 822 | temp = rk[i ]; rk[i ] = rk[j ]; rk[j ] = temp; | ||
| 823 | temp = rk[i + 1]; rk[i + 1] = rk[j + 1]; rk[j + 1] = temp; | ||
| 824 | temp = rk[i + 2]; rk[i + 2] = rk[j + 2]; rk[j + 2] = temp; | ||
| 825 | temp = rk[i + 3]; rk[i + 3] = rk[j + 3]; rk[j + 3] = temp; | ||
| 826 | } | ||
| 827 | /* apply the inverse MixColumn transform to all round keys but the first and the last: */ | ||
| 828 | for (i = 1; i < Nr; i++) { | ||
| 829 | rk += 4; | ||
| 830 | rk[0] = | ||
| 831 | Td0[Te4[(rk[0] >> 24) ] & 0xff] ^ | ||
| 832 | Td1[Te4[(rk[0] >> 16) & 0xff] & 0xff] ^ | ||
| 833 | Td2[Te4[(rk[0] >> 8) & 0xff] & 0xff] ^ | ||
| 834 | Td3[Te4[(rk[0] ) & 0xff] & 0xff]; | ||
| 835 | rk[1] = | ||
| 836 | Td0[Te4[(rk[1] >> 24) ] & 0xff] ^ | ||
| 837 | Td1[Te4[(rk[1] >> 16) & 0xff] & 0xff] ^ | ||
| 838 | Td2[Te4[(rk[1] >> 8) & 0xff] & 0xff] ^ | ||
| 839 | Td3[Te4[(rk[1] ) & 0xff] & 0xff]; | ||
| 840 | rk[2] = | ||
| 841 | Td0[Te4[(rk[2] >> 24) ] & 0xff] ^ | ||
| 842 | Td1[Te4[(rk[2] >> 16) & 0xff] & 0xff] ^ | ||
| 843 | Td2[Te4[(rk[2] >> 8) & 0xff] & 0xff] ^ | ||
| 844 | Td3[Te4[(rk[2] ) & 0xff] & 0xff]; | ||
| 845 | rk[3] = | ||
| 846 | Td0[Te4[(rk[3] >> 24) ] & 0xff] ^ | ||
| 847 | Td1[Te4[(rk[3] >> 16) & 0xff] & 0xff] ^ | ||
| 848 | Td2[Te4[(rk[3] >> 8) & 0xff] & 0xff] ^ | ||
| 849 | Td3[Te4[(rk[3] ) & 0xff] & 0xff]; | ||
| 850 | } | ||
| 851 | return Nr; | ||
| 852 | } | ||
| 853 | |||
| 854 | void rijndaelEncrypt(const u32 rk[/*4*(Nr + 1)*/], int Nr, const u8 pt[16], u8 ct[16]) { | ||
| 855 | u32 s0, s1, s2, s3, t0, t1, t2, t3; | ||
| 856 | #ifndef FULL_UNROLL | ||
| 857 | int r; | ||
| 858 | #endif /* ?FULL_UNROLL */ | ||
| 859 | |||
| 860 | /* | ||
| 861 | * map byte array block to cipher state | ||
| 862 | * and add initial round key: | ||
| 863 | */ | ||
| 864 | s0 = GETU32(pt ) ^ rk[0]; | ||
| 865 | s1 = GETU32(pt + 4) ^ rk[1]; | ||
| 866 | s2 = GETU32(pt + 8) ^ rk[2]; | ||
| 867 | s3 = GETU32(pt + 12) ^ rk[3]; | ||
| 868 | #ifdef FULL_UNROLL | ||
| 869 | /* round 1: */ | ||
| 870 | t0 = Te0[s0 >> 24] ^ Te1[(s1 >> 16) & 0xff] ^ Te2[(s2 >> 8) & 0xff] ^ Te3[s3 & 0xff] ^ rk[ 4]; | ||
| 871 | t1 = Te0[s1 >> 24] ^ Te1[(s2 >> 16) & 0xff] ^ Te2[(s3 >> 8) & 0xff] ^ Te3[s0 & 0xff] ^ rk[ 5]; | ||
| 872 | t2 = Te0[s2 >> 24] ^ Te1[(s3 >> 16) & 0xff] ^ Te2[(s0 >> 8) & 0xff] ^ Te3[s1 & 0xff] ^ rk[ 6]; | ||
| 873 | t3 = Te0[s3 >> 24] ^ Te1[(s0 >> 16) & 0xff] ^ Te2[(s1 >> 8) & 0xff] ^ Te3[s2 & 0xff] ^ rk[ 7]; | ||
| 874 | /* round 2: */ | ||
| 875 | s0 = Te0[t0 >> 24] ^ Te1[(t1 >> 16) & 0xff] ^ Te2[(t2 >> 8) & 0xff] ^ Te3[t3 & 0xff] ^ rk[ 8]; | ||
| 876 | s1 = Te0[t1 >> 24] ^ Te1[(t2 >> 16) & 0xff] ^ Te2[(t3 >> 8) & 0xff] ^ Te3[t0 & 0xff] ^ rk[ 9]; | ||
| 877 | s2 = Te0[t2 >> 24] ^ Te1[(t3 >> 16) & 0xff] ^ Te2[(t0 >> 8) & 0xff] ^ Te3[t1 & 0xff] ^ rk[10]; | ||
| 878 | s3 = Te0[t3 >> 24] ^ Te1[(t0 >> 16) & 0xff] ^ Te2[(t1 >> 8) & 0xff] ^ Te3[t2 & 0xff] ^ rk[11]; | ||
| 879 | /* round 3: */ | ||
| 880 | t0 = Te0[s0 >> 24] ^ Te1[(s1 >> 16) & 0xff] ^ Te2[(s2 >> 8) & 0xff] ^ Te3[s3 & 0xff] ^ rk[12]; | ||
| 881 | t1 = Te0[s1 >> 24] ^ Te1[(s2 >> 16) & 0xff] ^ Te2[(s3 >> 8) & 0xff] ^ Te3[s0 & 0xff] ^ rk[13]; | ||
| 882 | t2 = Te0[s2 >> 24] ^ Te1[(s3 >> 16) & 0xff] ^ Te2[(s0 >> 8) & 0xff] ^ Te3[s1 & 0xff] ^ rk[14]; | ||
| 883 | t3 = Te0[s3 >> 24] ^ Te1[(s0 >> 16) & 0xff] ^ Te2[(s1 >> 8) & 0xff] ^ Te3[s2 & 0xff] ^ rk[15]; | ||
| 884 | /* round 4: */ | ||
| 885 | s0 = Te0[t0 >> 24] ^ Te1[(t1 >> 16) & 0xff] ^ Te2[(t2 >> 8) & 0xff] ^ Te3[t3 & 0xff] ^ rk[16]; | ||
| 886 | s1 = Te0[t1 >> 24] ^ Te1[(t2 >> 16) & 0xff] ^ Te2[(t3 >> 8) & 0xff] ^ Te3[t0 & 0xff] ^ rk[17]; | ||
| 887 | s2 = Te0[t2 >> 24] ^ Te1[(t3 >> 16) & 0xff] ^ Te2[(t0 >> 8) & 0xff] ^ Te3[t1 & 0xff] ^ rk[18]; | ||
| 888 | s3 = Te0[t3 >> 24] ^ Te1[(t0 >> 16) & 0xff] ^ Te2[(t1 >> 8) & 0xff] ^ Te3[t2 & 0xff] ^ rk[19]; | ||
| 889 | /* round 5: */ | ||
| 890 | t0 = Te0[s0 >> 24] ^ Te1[(s1 >> 16) & 0xff] ^ Te2[(s2 >> 8) & 0xff] ^ Te3[s3 & 0xff] ^ rk[20]; | ||
| 891 | t1 = Te0[s1 >> 24] ^ Te1[(s2 >> 16) & 0xff] ^ Te2[(s3 >> 8) & 0xff] ^ Te3[s0 & 0xff] ^ rk[21]; | ||
| 892 | t2 = Te0[s2 >> 24] ^ Te1[(s3 >> 16) & 0xff] ^ Te2[(s0 >> 8) & 0xff] ^ Te3[s1 & 0xff] ^ rk[22]; | ||
| 893 | t3 = Te0[s3 >> 24] ^ Te1[(s0 >> 16) & 0xff] ^ Te2[(s1 >> 8) & 0xff] ^ Te3[s2 & 0xff] ^ rk[23]; | ||
| 894 | /* round 6: */ | ||
| 895 | s0 = Te0[t0 >> 24] ^ Te1[(t1 >> 16) & 0xff] ^ Te2[(t2 >> 8) & 0xff] ^ Te3[t3 & 0xff] ^ rk[24]; | ||
| 896 | s1 = Te0[t1 >> 24] ^ Te1[(t2 >> 16) & 0xff] ^ Te2[(t3 >> 8) & 0xff] ^ Te3[t0 & 0xff] ^ rk[25]; | ||
| 897 | s2 = Te0[t2 >> 24] ^ Te1[(t3 >> 16) & 0xff] ^ Te2[(t0 >> 8) & 0xff] ^ Te3[t1 & 0xff] ^ rk[26]; | ||
| 898 | s3 = Te0[t3 >> 24] ^ Te1[(t0 >> 16) & 0xff] ^ Te2[(t1 >> 8) & 0xff] ^ Te3[t2 & 0xff] ^ rk[27]; | ||
| 899 | /* round 7: */ | ||
| 900 | t0 = Te0[s0 >> 24] ^ Te1[(s1 >> 16) & 0xff] ^ Te2[(s2 >> 8) & 0xff] ^ Te3[s3 & 0xff] ^ rk[28]; | ||
| 901 | t1 = Te0[s1 >> 24] ^ Te1[(s2 >> 16) & 0xff] ^ Te2[(s3 >> 8) & 0xff] ^ Te3[s0 & 0xff] ^ rk[29]; | ||
| 902 | t2 = Te0[s2 >> 24] ^ Te1[(s3 >> 16) & 0xff] ^ Te2[(s0 >> 8) & 0xff] ^ Te3[s1 & 0xff] ^ rk[30]; | ||
| 903 | t3 = Te0[s3 >> 24] ^ Te1[(s0 >> 16) & 0xff] ^ Te2[(s1 >> 8) & 0xff] ^ Te3[s2 & 0xff] ^ rk[31]; | ||
| 904 | /* round 8: */ | ||
| 905 | s0 = Te0[t0 >> 24] ^ Te1[(t1 >> 16) & 0xff] ^ Te2[(t2 >> 8) & 0xff] ^ Te3[t3 & 0xff] ^ rk[32]; | ||
| 906 | s1 = Te0[t1 >> 24] ^ Te1[(t2 >> 16) & 0xff] ^ Te2[(t3 >> 8) & 0xff] ^ Te3[t0 & 0xff] ^ rk[33]; | ||
| 907 | s2 = Te0[t2 >> 24] ^ Te1[(t3 >> 16) & 0xff] ^ Te2[(t0 >> 8) & 0xff] ^ Te3[t1 & 0xff] ^ rk[34]; | ||
| 908 | s3 = Te0[t3 >> 24] ^ Te1[(t0 >> 16) & 0xff] ^ Te2[(t1 >> 8) & 0xff] ^ Te3[t2 & 0xff] ^ rk[35]; | ||
| 909 | /* round 9: */ | ||
| 910 | t0 = Te0[s0 >> 24] ^ Te1[(s1 >> 16) & 0xff] ^ Te2[(s2 >> 8) & 0xff] ^ Te3[s3 & 0xff] ^ rk[36]; | ||
| 911 | t1 = Te0[s1 >> 24] ^ Te1[(s2 >> 16) & 0xff] ^ Te2[(s3 >> 8) & 0xff] ^ Te3[s0 & 0xff] ^ rk[37]; | ||
| 912 | t2 = Te0[s2 >> 24] ^ Te1[(s3 >> 16) & 0xff] ^ Te2[(s0 >> 8) & 0xff] ^ Te3[s1 & 0xff] ^ rk[38]; | ||
| 913 | t3 = Te0[s3 >> 24] ^ Te1[(s0 >> 16) & 0xff] ^ Te2[(s1 >> 8) & 0xff] ^ Te3[s2 & 0xff] ^ rk[39]; | ||
| 914 | if (Nr > 10) { | ||
| 915 | /* round 10: */ | ||
| 916 | s0 = Te0[t0 >> 24] ^ Te1[(t1 >> 16) & 0xff] ^ Te2[(t2 >> 8) & 0xff] ^ Te3[t3 & 0xff] ^ rk[40]; | ||
| 917 | s1 = Te0[t1 >> 24] ^ Te1[(t2 >> 16) & 0xff] ^ Te2[(t3 >> 8) & 0xff] ^ Te3[t0 & 0xff] ^ rk[41]; | ||
| 918 | s2 = Te0[t2 >> 24] ^ Te1[(t3 >> 16) & 0xff] ^ Te2[(t0 >> 8) & 0xff] ^ Te3[t1 & 0xff] ^ rk[42]; | ||
| 919 | s3 = Te0[t3 >> 24] ^ Te1[(t0 >> 16) & 0xff] ^ Te2[(t1 >> 8) & 0xff] ^ Te3[t2 & 0xff] ^ rk[43]; | ||
| 920 | /* round 11: */ | ||
| 921 | t0 = Te0[s0 >> 24] ^ Te1[(s1 >> 16) & 0xff] ^ Te2[(s2 >> 8) & 0xff] ^ Te3[s3 & 0xff] ^ rk[44]; | ||
| 922 | t1 = Te0[s1 >> 24] ^ Te1[(s2 >> 16) & 0xff] ^ Te2[(s3 >> 8) & 0xff] ^ Te3[s0 & 0xff] ^ rk[45]; | ||
| 923 | t2 = Te0[s2 >> 24] ^ Te1[(s3 >> 16) & 0xff] ^ Te2[(s0 >> 8) & 0xff] ^ Te3[s1 & 0xff] ^ rk[46]; | ||
| 924 | t3 = Te0[s3 >> 24] ^ Te1[(s0 >> 16) & 0xff] ^ Te2[(s1 >> 8) & 0xff] ^ Te3[s2 & 0xff] ^ rk[47]; | ||
| 925 | if (Nr > 12) { | ||
| 926 | /* round 12: */ | ||
| 927 | s0 = Te0[t0 >> 24] ^ Te1[(t1 >> 16) & 0xff] ^ Te2[(t2 >> 8) & 0xff] ^ Te3[t3 & 0xff] ^ rk[48]; | ||
| 928 | s1 = Te0[t1 >> 24] ^ Te1[(t2 >> 16) & 0xff] ^ Te2[(t3 >> 8) & 0xff] ^ Te3[t0 & 0xff] ^ rk[49]; | ||
| 929 | s2 = Te0[t2 >> 24] ^ Te1[(t3 >> 16) & 0xff] ^ Te2[(t0 >> 8) & 0xff] ^ Te3[t1 & 0xff] ^ rk[50]; | ||
| 930 | s3 = Te0[t3 >> 24] ^ Te1[(t0 >> 16) & 0xff] ^ Te2[(t1 >> 8) & 0xff] ^ Te3[t2 & 0xff] ^ rk[51]; | ||
| 931 | /* round 13: */ | ||
| 932 | t0 = Te0[s0 >> 24] ^ Te1[(s1 >> 16) & 0xff] ^ Te2[(s2 >> 8) & 0xff] ^ Te3[s3 & 0xff] ^ rk[52]; | ||
| 933 | t1 = Te0[s1 >> 24] ^ Te1[(s2 >> 16) & 0xff] ^ Te2[(s3 >> 8) & 0xff] ^ Te3[s0 & 0xff] ^ rk[53]; | ||
| 934 | t2 = Te0[s2 >> 24] ^ Te1[(s3 >> 16) & 0xff] ^ Te2[(s0 >> 8) & 0xff] ^ Te3[s1 & 0xff] ^ rk[54]; | ||
| 935 | t3 = Te0[s3 >> 24] ^ Te1[(s0 >> 16) & 0xff] ^ Te2[(s1 >> 8) & 0xff] ^ Te3[s2 & 0xff] ^ rk[55]; | ||
| 936 | } | ||
| 937 | } | ||
| 938 | rk += Nr << 2; | ||
| 939 | #else /* !FULL_UNROLL */ | ||
| 940 | /* | ||
| 941 | * Nr - 1 full rounds: | ||
| 942 | */ | ||
| 943 | r = Nr >> 1; | ||
| 944 | for (;;) { | ||
| 945 | t0 = | ||
| 946 | Te0[(s0 >> 24) ] ^ | ||
| 947 | Te1[(s1 >> 16) & 0xff] ^ | ||
| 948 | Te2[(s2 >> 8) & 0xff] ^ | ||
| 949 | Te3[(s3 ) & 0xff] ^ | ||
| 950 | rk[4]; | ||
| 951 | t1 = | ||
| 952 | Te0[(s1 >> 24) ] ^ | ||
| 953 | Te1[(s2 >> 16) & 0xff] ^ | ||
| 954 | Te2[(s3 >> 8) & 0xff] ^ | ||
| 955 | Te3[(s0 ) & 0xff] ^ | ||
| 956 | rk[5]; | ||
| 957 | t2 = | ||
| 958 | Te0[(s2 >> 24) ] ^ | ||
| 959 | Te1[(s3 >> 16) & 0xff] ^ | ||
| 960 | Te2[(s0 >> 8) & 0xff] ^ | ||
| 961 | Te3[(s1 ) & 0xff] ^ | ||
| 962 | rk[6]; | ||
| 963 | t3 = | ||
| 964 | Te0[(s3 >> 24) ] ^ | ||
| 965 | Te1[(s0 >> 16) & 0xff] ^ | ||
| 966 | Te2[(s1 >> 8) & 0xff] ^ | ||
| 967 | Te3[(s2 ) & 0xff] ^ | ||
| 968 | rk[7]; | ||
| 969 | |||
| 970 | rk += 8; | ||
| 971 | if (--r == 0) { | ||
| 972 | break; | ||
| 973 | } | ||
| 974 | |||
| 975 | s0 = | ||
| 976 | Te0[(t0 >> 24) ] ^ | ||
| 977 | Te1[(t1 >> 16) & 0xff] ^ | ||
| 978 | Te2[(t2 >> 8) & 0xff] ^ | ||
| 979 | Te3[(t3 ) & 0xff] ^ | ||
| 980 | rk[0]; | ||
| 981 | s1 = | ||
| 982 | Te0[(t1 >> 24) ] ^ | ||
| 983 | Te1[(t2 >> 16) & 0xff] ^ | ||
| 984 | Te2[(t3 >> 8) & 0xff] ^ | ||
| 985 | Te3[(t0 ) & 0xff] ^ | ||
| 986 | rk[1]; | ||
| 987 | s2 = | ||
| 988 | Te0[(t2 >> 24) ] ^ | ||
| 989 | Te1[(t3 >> 16) & 0xff] ^ | ||
| 990 | Te2[(t0 >> 8) & 0xff] ^ | ||
| 991 | Te3[(t1 ) & 0xff] ^ | ||
| 992 | rk[2]; | ||
| 993 | s3 = | ||
| 994 | Te0[(t3 >> 24) ] ^ | ||
| 995 | Te1[(t0 >> 16) & 0xff] ^ | ||
| 996 | Te2[(t1 >> 8) & 0xff] ^ | ||
| 997 | Te3[(t2 ) & 0xff] ^ | ||
| 998 | rk[3]; | ||
| 999 | } | ||
| 1000 | #endif /* ?FULL_UNROLL */ | ||
| 1001 | /* | ||
| 1002 | * apply last round and | ||
| 1003 | * map cipher state to byte array block: | ||
| 1004 | */ | ||
| 1005 | s0 = | ||
| 1006 | (Te4[(t0 >> 24) ] & 0xff000000) ^ | ||
| 1007 | (Te4[(t1 >> 16) & 0xff] & 0x00ff0000) ^ | ||
| 1008 | (Te4[(t2 >> 8) & 0xff] & 0x0000ff00) ^ | ||
| 1009 | (Te4[(t3 ) & 0xff] & 0x000000ff) ^ | ||
| 1010 | rk[0]; | ||
| 1011 | PUTU32(ct , s0); | ||
| 1012 | s1 = | ||
| 1013 | (Te4[(t1 >> 24) ] & 0xff000000) ^ | ||
| 1014 | (Te4[(t2 >> 16) & 0xff] & 0x00ff0000) ^ | ||
| 1015 | (Te4[(t3 >> 8) & 0xff] & 0x0000ff00) ^ | ||
| 1016 | (Te4[(t0 ) & 0xff] & 0x000000ff) ^ | ||
| 1017 | rk[1]; | ||
| 1018 | PUTU32(ct + 4, s1); | ||
| 1019 | s2 = | ||
| 1020 | (Te4[(t2 >> 24) ] & 0xff000000) ^ | ||
| 1021 | (Te4[(t3 >> 16) & 0xff] & 0x00ff0000) ^ | ||
| 1022 | (Te4[(t0 >> 8) & 0xff] & 0x0000ff00) ^ | ||
| 1023 | (Te4[(t1 ) & 0xff] & 0x000000ff) ^ | ||
| 1024 | rk[2]; | ||
| 1025 | PUTU32(ct + 8, s2); | ||
| 1026 | s3 = | ||
| 1027 | (Te4[(t3 >> 24) ] & 0xff000000) ^ | ||
| 1028 | (Te4[(t0 >> 16) & 0xff] & 0x00ff0000) ^ | ||
| 1029 | (Te4[(t1 >> 8) & 0xff] & 0x0000ff00) ^ | ||
| 1030 | (Te4[(t2 ) & 0xff] & 0x000000ff) ^ | ||
| 1031 | rk[3]; | ||
| 1032 | PUTU32(ct + 12, s3); | ||
| 1033 | } | ||
| 1034 | |||
| 1035 | void rijndaelDecrypt(const u32 rk[/*4*(Nr + 1)*/], int Nr, const u8 ct[16], u8 pt[16]) { | ||
| 1036 | u32 s0, s1, s2, s3, t0, t1, t2, t3; | ||
| 1037 | #ifndef FULL_UNROLL | ||
| 1038 | int r; | ||
| 1039 | #endif /* ?FULL_UNROLL */ | ||
| 1040 | |||
| 1041 | /* | ||
| 1042 | * map byte array block to cipher state | ||
| 1043 | * and add initial round key: | ||
| 1044 | */ | ||
| 1045 | s0 = GETU32(ct ) ^ rk[0]; | ||
| 1046 | s1 = GETU32(ct + 4) ^ rk[1]; | ||
| 1047 | s2 = GETU32(ct + 8) ^ rk[2]; | ||
| 1048 | s3 = GETU32(ct + 12) ^ rk[3]; | ||
| 1049 | #ifdef FULL_UNROLL | ||
| 1050 | /* round 1: */ | ||
| 1051 | t0 = Td0[s0 >> 24] ^ Td1[(s3 >> 16) & 0xff] ^ Td2[(s2 >> 8) & 0xff] ^ Td3[s1 & 0xff] ^ rk[ 4]; | ||
| 1052 | t1 = Td0[s1 >> 24] ^ Td1[(s0 >> 16) & 0xff] ^ Td2[(s3 >> 8) & 0xff] ^ Td3[s2 & 0xff] ^ rk[ 5]; | ||
| 1053 | t2 = Td0[s2 >> 24] ^ Td1[(s1 >> 16) & 0xff] ^ Td2[(s0 >> 8) & 0xff] ^ Td3[s3 & 0xff] ^ rk[ 6]; | ||
| 1054 | t3 = Td0[s3 >> 24] ^ Td1[(s2 >> 16) & 0xff] ^ Td2[(s1 >> 8) & 0xff] ^ Td3[s0 & 0xff] ^ rk[ 7]; | ||
| 1055 | /* round 2: */ | ||
| 1056 | s0 = Td0[t0 >> 24] ^ Td1[(t3 >> 16) & 0xff] ^ Td2[(t2 >> 8) & 0xff] ^ Td3[t1 & 0xff] ^ rk[ 8]; | ||
| 1057 | s1 = Td0[t1 >> 24] ^ Td1[(t0 >> 16) & 0xff] ^ Td2[(t3 >> 8) & 0xff] ^ Td3[t2 & 0xff] ^ rk[ 9]; | ||
| 1058 | s2 = Td0[t2 >> 24] ^ Td1[(t1 >> 16) & 0xff] ^ Td2[(t0 >> 8) & 0xff] ^ Td3[t3 & 0xff] ^ rk[10]; | ||
| 1059 | s3 = Td0[t3 >> 24] ^ Td1[(t2 >> 16) & 0xff] ^ Td2[(t1 >> 8) & 0xff] ^ Td3[t0 & 0xff] ^ rk[11]; | ||
| 1060 | /* round 3: */ | ||
| 1061 | t0 = Td0[s0 >> 24] ^ Td1[(s3 >> 16) & 0xff] ^ Td2[(s2 >> 8) & 0xff] ^ Td3[s1 & 0xff] ^ rk[12]; | ||
| 1062 | t1 = Td0[s1 >> 24] ^ Td1[(s0 >> 16) & 0xff] ^ Td2[(s3 >> 8) & 0xff] ^ Td3[s2 & 0xff] ^ rk[13]; | ||
| 1063 | t2 = Td0[s2 >> 24] ^ Td1[(s1 >> 16) & 0xff] ^ Td2[(s0 >> 8) & 0xff] ^ Td3[s3 & 0xff] ^ rk[14]; | ||
| 1064 | t3 = Td0[s3 >> 24] ^ Td1[(s2 >> 16) & 0xff] ^ Td2[(s1 >> 8) & 0xff] ^ Td3[s0 & 0xff] ^ rk[15]; | ||
| 1065 | /* round 4: */ | ||
| 1066 | s0 = Td0[t0 >> 24] ^ Td1[(t3 >> 16) & 0xff] ^ Td2[(t2 >> 8) & 0xff] ^ Td3[t1 & 0xff] ^ rk[16]; | ||
| 1067 | s1 = Td0[t1 >> 24] ^ Td1[(t0 >> 16) & 0xff] ^ Td2[(t3 >> 8) & 0xff] ^ Td3[t2 & 0xff] ^ rk[17]; | ||
| 1068 | s2 = Td0[t2 >> 24] ^ Td1[(t1 >> 16) & 0xff] ^ Td2[(t0 >> 8) & 0xff] ^ Td3[t3 & 0xff] ^ rk[18]; | ||
| 1069 | s3 = Td0[t3 >> 24] ^ Td1[(t2 >> 16) & 0xff] ^ Td2[(t1 >> 8) & 0xff] ^ Td3[t0 & 0xff] ^ rk[19]; | ||
| 1070 | /* round 5: */ | ||
| 1071 | t0 = Td0[s0 >> 24] ^ Td1[(s3 >> 16) & 0xff] ^ Td2[(s2 >> 8) & 0xff] ^ Td3[s1 & 0xff] ^ rk[20]; | ||
| 1072 | t1 = Td0[s1 >> 24] ^ Td1[(s0 >> 16) & 0xff] ^ Td2[(s3 >> 8) & 0xff] ^ Td3[s2 & 0xff] ^ rk[21]; | ||
| 1073 | t2 = Td0[s2 >> 24] ^ Td1[(s1 >> 16) & 0xff] ^ Td2[(s0 >> 8) & 0xff] ^ Td3[s3 & 0xff] ^ rk[22]; | ||
| 1074 | t3 = Td0[s3 >> 24] ^ Td1[(s2 >> 16) & 0xff] ^ Td2[(s1 >> 8) & 0xff] ^ Td3[s0 & 0xff] ^ rk[23]; | ||
| 1075 | /* round 6: */ | ||
| 1076 | s0 = Td0[t0 >> 24] ^ Td1[(t3 >> 16) & 0xff] ^ Td2[(t2 >> 8) & 0xff] ^ Td3[t1 & 0xff] ^ rk[24]; | ||
| 1077 | s1 = Td0[t1 >> 24] ^ Td1[(t0 >> 16) & 0xff] ^ Td2[(t3 >> 8) & 0xff] ^ Td3[t2 & 0xff] ^ rk[25]; | ||
| 1078 | s2 = Td0[t2 >> 24] ^ Td1[(t1 >> 16) & 0xff] ^ Td2[(t0 >> 8) & 0xff] ^ Td3[t3 & 0xff] ^ rk[26]; | ||
| 1079 | s3 = Td0[t3 >> 24] ^ Td1[(t2 >> 16) & 0xff] ^ Td2[(t1 >> 8) & 0xff] ^ Td3[t0 & 0xff] ^ rk[27]; | ||
| 1080 | /* round 7: */ | ||
| 1081 | t0 = Td0[s0 >> 24] ^ Td1[(s3 >> 16) & 0xff] ^ Td2[(s2 >> 8) & 0xff] ^ Td3[s1 & 0xff] ^ rk[28]; | ||
| 1082 | t1 = Td0[s1 >> 24] ^ Td1[(s0 >> 16) & 0xff] ^ Td2[(s3 >> 8) & 0xff] ^ Td3[s2 & 0xff] ^ rk[29]; | ||
| 1083 | t2 = Td0[s2 >> 24] ^ Td1[(s1 >> 16) & 0xff] ^ Td2[(s0 >> 8) & 0xff] ^ Td3[s3 & 0xff] ^ rk[30]; | ||
| 1084 | t3 = Td0[s3 >> 24] ^ Td1[(s2 >> 16) & 0xff] ^ Td2[(s1 >> 8) & 0xff] ^ Td3[s0 & 0xff] ^ rk[31]; | ||
| 1085 | /* round 8: */ | ||
| 1086 | s0 = Td0[t0 >> 24] ^ Td1[(t3 >> 16) & 0xff] ^ Td2[(t2 >> 8) & 0xff] ^ Td3[t1 & 0xff] ^ rk[32]; | ||
| 1087 | s1 = Td0[t1 >> 24] ^ Td1[(t0 >> 16) & 0xff] ^ Td2[(t3 >> 8) & 0xff] ^ Td3[t2 & 0xff] ^ rk[33]; | ||
| 1088 | s2 = Td0[t2 >> 24] ^ Td1[(t1 >> 16) & 0xff] ^ Td2[(t0 >> 8) & 0xff] ^ Td3[t3 & 0xff] ^ rk[34]; | ||
| 1089 | s3 = Td0[t3 >> 24] ^ Td1[(t2 >> 16) & 0xff] ^ Td2[(t1 >> 8) & 0xff] ^ Td3[t0 & 0xff] ^ rk[35]; | ||
| 1090 | /* round 9: */ | ||
| 1091 | t0 = Td0[s0 >> 24] ^ Td1[(s3 >> 16) & 0xff] ^ Td2[(s2 >> 8) & 0xff] ^ Td3[s1 & 0xff] ^ rk[36]; | ||
| 1092 | t1 = Td0[s1 >> 24] ^ Td1[(s0 >> 16) & 0xff] ^ Td2[(s3 >> 8) & 0xff] ^ Td3[s2 & 0xff] ^ rk[37]; | ||
| 1093 | t2 = Td0[s2 >> 24] ^ Td1[(s1 >> 16) & 0xff] ^ Td2[(s0 >> 8) & 0xff] ^ Td3[s3 & 0xff] ^ rk[38]; | ||
| 1094 | t3 = Td0[s3 >> 24] ^ Td1[(s2 >> 16) & 0xff] ^ Td2[(s1 >> 8) & 0xff] ^ Td3[s0 & 0xff] ^ rk[39]; | ||
| 1095 | if (Nr > 10) { | ||
| 1096 | /* round 10: */ | ||
| 1097 | s0 = Td0[t0 >> 24] ^ Td1[(t3 >> 16) & 0xff] ^ Td2[(t2 >> 8) & 0xff] ^ Td3[t1 & 0xff] ^ rk[40]; | ||
| 1098 | s1 = Td0[t1 >> 24] ^ Td1[(t0 >> 16) & 0xff] ^ Td2[(t3 >> 8) & 0xff] ^ Td3[t2 & 0xff] ^ rk[41]; | ||
| 1099 | s2 = Td0[t2 >> 24] ^ Td1[(t1 >> 16) & 0xff] ^ Td2[(t0 >> 8) & 0xff] ^ Td3[t3 & 0xff] ^ rk[42]; | ||
| 1100 | s3 = Td0[t3 >> 24] ^ Td1[(t2 >> 16) & 0xff] ^ Td2[(t1 >> 8) & 0xff] ^ Td3[t0 & 0xff] ^ rk[43]; | ||
| 1101 | /* round 11: */ | ||
| 1102 | t0 = Td0[s0 >> 24] ^ Td1[(s3 >> 16) & 0xff] ^ Td2[(s2 >> 8) & 0xff] ^ Td3[s1 & 0xff] ^ rk[44]; | ||
| 1103 | t1 = Td0[s1 >> 24] ^ Td1[(s0 >> 16) & 0xff] ^ Td2[(s3 >> 8) & 0xff] ^ Td3[s2 & 0xff] ^ rk[45]; | ||
| 1104 | t2 = Td0[s2 >> 24] ^ Td1[(s1 >> 16) & 0xff] ^ Td2[(s0 >> 8) & 0xff] ^ Td3[s3 & 0xff] ^ rk[46]; | ||
| 1105 | t3 = Td0[s3 >> 24] ^ Td1[(s2 >> 16) & 0xff] ^ Td2[(s1 >> 8) & 0xff] ^ Td3[s0 & 0xff] ^ rk[47]; | ||
| 1106 | if (Nr > 12) { | ||
| 1107 | /* round 12: */ | ||
| 1108 | s0 = Td0[t0 >> 24] ^ Td1[(t3 >> 16) & 0xff] ^ Td2[(t2 >> 8) & 0xff] ^ Td3[t1 & 0xff] ^ rk[48]; | ||
| 1109 | s1 = Td0[t1 >> 24] ^ Td1[(t0 >> 16) & 0xff] ^ Td2[(t3 >> 8) & 0xff] ^ Td3[t2 & 0xff] ^ rk[49]; | ||
| 1110 | s2 = Td0[t2 >> 24] ^ Td1[(t1 >> 16) & 0xff] ^ Td2[(t0 >> 8) & 0xff] ^ Td3[t3 & 0xff] ^ rk[50]; | ||
| 1111 | s3 = Td0[t3 >> 24] ^ Td1[(t2 >> 16) & 0xff] ^ Td2[(t1 >> 8) & 0xff] ^ Td3[t0 & 0xff] ^ rk[51]; | ||
| 1112 | /* round 13: */ | ||
| 1113 | t0 = Td0[s0 >> 24] ^ Td1[(s3 >> 16) & 0xff] ^ Td2[(s2 >> 8) & 0xff] ^ Td3[s1 & 0xff] ^ rk[52]; | ||
| 1114 | t1 = Td0[s1 >> 24] ^ Td1[(s0 >> 16) & 0xff] ^ Td2[(s3 >> 8) & 0xff] ^ Td3[s2 & 0xff] ^ rk[53]; | ||
| 1115 | t2 = Td0[s2 >> 24] ^ Td1[(s1 >> 16) & 0xff] ^ Td2[(s0 >> 8) & 0xff] ^ Td3[s3 & 0xff] ^ rk[54]; | ||
| 1116 | t3 = Td0[s3 >> 24] ^ Td1[(s2 >> 16) & 0xff] ^ Td2[(s1 >> 8) & 0xff] ^ Td3[s0 & 0xff] ^ rk[55]; | ||
| 1117 | } | ||
| 1118 | } | ||
| 1119 | rk += Nr << 2; | ||
| 1120 | #else /* !FULL_UNROLL */ | ||
| 1121 | /* | ||
| 1122 | * Nr - 1 full rounds: | ||
| 1123 | */ | ||
| 1124 | r = Nr >> 1; | ||
| 1125 | for (;;) { | ||
| 1126 | t0 = | ||
| 1127 | Td0[(s0 >> 24) ] ^ | ||
| 1128 | Td1[(s3 >> 16) & 0xff] ^ | ||
| 1129 | Td2[(s2 >> 8) & 0xff] ^ | ||
| 1130 | Td3[(s1 ) & 0xff] ^ | ||
| 1131 | rk[4]; | ||
| 1132 | t1 = | ||
| 1133 | Td0[(s1 >> 24) ] ^ | ||
| 1134 | Td1[(s0 >> 16) & 0xff] ^ | ||
| 1135 | Td2[(s3 >> 8) & 0xff] ^ | ||
| 1136 | Td3[(s2 ) & 0xff] ^ | ||
| 1137 | rk[5]; | ||
| 1138 | t2 = | ||
| 1139 | Td0[(s2 >> 24) ] ^ | ||
| 1140 | Td1[(s1 >> 16) & 0xff] ^ | ||
| 1141 | Td2[(s0 >> 8) & 0xff] ^ | ||
| 1142 | Td3[(s3 ) & 0xff] ^ | ||
| 1143 | rk[6]; | ||
| 1144 | t3 = | ||
| 1145 | Td0[(s3 >> 24) ] ^ | ||
| 1146 | Td1[(s2 >> 16) & 0xff] ^ | ||
| 1147 | Td2[(s1 >> 8) & 0xff] ^ | ||
| 1148 | Td3[(s0 ) & 0xff] ^ | ||
| 1149 | rk[7]; | ||
| 1150 | |||
| 1151 | rk += 8; | ||
| 1152 | if (--r == 0) { | ||
| 1153 | break; | ||
| 1154 | } | ||
| 1155 | |||
| 1156 | s0 = | ||
| 1157 | Td0[(t0 >> 24) ] ^ | ||
| 1158 | Td1[(t3 >> 16) & 0xff] ^ | ||
| 1159 | Td2[(t2 >> 8) & 0xff] ^ | ||
| 1160 | Td3[(t1 ) & 0xff] ^ | ||
| 1161 | rk[0]; | ||
| 1162 | s1 = | ||
| 1163 | Td0[(t1 >> 24) ] ^ | ||
| 1164 | Td1[(t0 >> 16) & 0xff] ^ | ||
| 1165 | Td2[(t3 >> 8) & 0xff] ^ | ||
| 1166 | Td3[(t2 ) & 0xff] ^ | ||
| 1167 | rk[1]; | ||
| 1168 | s2 = | ||
| 1169 | Td0[(t2 >> 24) ] ^ | ||
| 1170 | Td1[(t1 >> 16) & 0xff] ^ | ||
| 1171 | Td2[(t0 >> 8) & 0xff] ^ | ||
| 1172 | Td3[(t3 ) & 0xff] ^ | ||
| 1173 | rk[2]; | ||
| 1174 | s3 = | ||
| 1175 | Td0[(t3 >> 24) ] ^ | ||
| 1176 | Td1[(t2 >> 16) & 0xff] ^ | ||
| 1177 | Td2[(t1 >> 8) & 0xff] ^ | ||
| 1178 | Td3[(t0 ) & 0xff] ^ | ||
| 1179 | rk[3]; | ||
| 1180 | } | ||
| 1181 | #endif /* ?FULL_UNROLL */ | ||
| 1182 | /* | ||
| 1183 | * apply last round and | ||
| 1184 | * map cipher state to byte array block: | ||
| 1185 | */ | ||
| 1186 | s0 = | ||
| 1187 | (Td4[(t0 >> 24) ] & 0xff000000) ^ | ||
| 1188 | (Td4[(t3 >> 16) & 0xff] & 0x00ff0000) ^ | ||
| 1189 | (Td4[(t2 >> 8) & 0xff] & 0x0000ff00) ^ | ||
| 1190 | (Td4[(t1 ) & 0xff] & 0x000000ff) ^ | ||
| 1191 | rk[0]; | ||
| 1192 | PUTU32(pt , s0); | ||
| 1193 | s1 = | ||
| 1194 | (Td4[(t1 >> 24) ] & 0xff000000) ^ | ||
| 1195 | (Td4[(t0 >> 16) & 0xff] & 0x00ff0000) ^ | ||
| 1196 | (Td4[(t3 >> 8) & 0xff] & 0x0000ff00) ^ | ||
| 1197 | (Td4[(t2 ) & 0xff] & 0x000000ff) ^ | ||
| 1198 | rk[1]; | ||
| 1199 | PUTU32(pt + 4, s1); | ||
| 1200 | s2 = | ||
| 1201 | (Td4[(t2 >> 24) ] & 0xff000000) ^ | ||
| 1202 | (Td4[(t1 >> 16) & 0xff] & 0x00ff0000) ^ | ||
| 1203 | (Td4[(t0 >> 8) & 0xff] & 0x0000ff00) ^ | ||
| 1204 | (Td4[(t3 ) & 0xff] & 0x000000ff) ^ | ||
| 1205 | rk[2]; | ||
| 1206 | PUTU32(pt + 8, s2); | ||
| 1207 | s3 = | ||
| 1208 | (Td4[(t3 >> 24) ] & 0xff000000) ^ | ||
| 1209 | (Td4[(t2 >> 16) & 0xff] & 0x00ff0000) ^ | ||
| 1210 | (Td4[(t1 >> 8) & 0xff] & 0x0000ff00) ^ | ||
| 1211 | (Td4[(t0 ) & 0xff] & 0x000000ff) ^ | ||
| 1212 | rk[3]; | ||
| 1213 | PUTU32(pt + 12, s3); | ||
| 1214 | } | ||
| 1215 | |||
| 1216 | #ifdef INTERMEDIATE_VALUE_KAT | ||
| 1217 | |||
| 1218 | void rijndaelEncryptRound(const u32 rk[/*4*(Nr + 1)*/], int Nr, u8 block[16], int rounds) { | ||
| 1219 | int r; | ||
| 1220 | u32 s0, s1, s2, s3, t0, t1, t2, t3; | ||
| 1221 | |||
| 1222 | /* | ||
| 1223 | * map byte array block to cipher state | ||
| 1224 | * and add initial round key: | ||
| 1225 | */ | ||
| 1226 | s0 = GETU32(block ) ^ rk[0]; | ||
| 1227 | s1 = GETU32(block + 4) ^ rk[1]; | ||
| 1228 | s2 = GETU32(block + 8) ^ rk[2]; | ||
| 1229 | s3 = GETU32(block + 12) ^ rk[3]; | ||
| 1230 | rk += 4; | ||
| 1231 | |||
| 1232 | /* | ||
| 1233 | * Nr - 1 full rounds: | ||
| 1234 | */ | ||
| 1235 | for (r = (rounds < Nr ? rounds : Nr - 1); r > 0; r--) { | ||
| 1236 | t0 = | ||
| 1237 | Te0[(s0 >> 24) ] ^ | ||
| 1238 | Te1[(s1 >> 16) & 0xff] ^ | ||
| 1239 | Te2[(s2 >> 8) & 0xff] ^ | ||
| 1240 | Te3[(s3 ) & 0xff] ^ | ||
| 1241 | rk[0]; | ||
| 1242 | t1 = | ||
| 1243 | Te0[(s1 >> 24) ] ^ | ||
| 1244 | Te1[(s2 >> 16) & 0xff] ^ | ||
| 1245 | Te2[(s3 >> 8) & 0xff] ^ | ||
| 1246 | Te3[(s0 ) & 0xff] ^ | ||
| 1247 | rk[1]; | ||
| 1248 | t2 = | ||
| 1249 | Te0[(s2 >> 24) ] ^ | ||
| 1250 | Te1[(s3 >> 16) & 0xff] ^ | ||
| 1251 | Te2[(s0 >> 8) & 0xff] ^ | ||
| 1252 | Te3[(s1 ) & 0xff] ^ | ||
| 1253 | rk[2]; | ||
| 1254 | t3 = | ||
| 1255 | Te0[(s3 >> 24) ] ^ | ||
| 1256 | Te1[(s0 >> 16) & 0xff] ^ | ||
| 1257 | Te2[(s1 >> 8) & 0xff] ^ | ||
| 1258 | Te3[(s2 ) & 0xff] ^ | ||
| 1259 | rk[3]; | ||
| 1260 | |||
| 1261 | s0 = t0; | ||
| 1262 | s1 = t1; | ||
| 1263 | s2 = t2; | ||
| 1264 | s3 = t3; | ||
| 1265 | rk += 4; | ||
| 1266 | |||
| 1267 | } | ||
| 1268 | |||
| 1269 | /* | ||
| 1270 | * apply last round and | ||
| 1271 | * map cipher state to byte array block: | ||
| 1272 | */ | ||
| 1273 | if (rounds == Nr) { | ||
| 1274 | t0 = | ||
| 1275 | (Te4[(s0 >> 24) ] & 0xff000000) ^ | ||
| 1276 | (Te4[(s1 >> 16) & 0xff] & 0x00ff0000) ^ | ||
| 1277 | (Te4[(s2 >> 8) & 0xff] & 0x0000ff00) ^ | ||
| 1278 | (Te4[(s3 ) & 0xff] & 0x000000ff) ^ | ||
| 1279 | rk[0]; | ||
| 1280 | t1 = | ||
| 1281 | (Te4[(s1 >> 24) ] & 0xff000000) ^ | ||
| 1282 | (Te4[(s2 >> 16) & 0xff] & 0x00ff0000) ^ | ||
| 1283 | (Te4[(s3 >> 8) & 0xff] & 0x0000ff00) ^ | ||
| 1284 | (Te4[(s0 ) & 0xff] & 0x000000ff) ^ | ||
| 1285 | rk[1]; | ||
| 1286 | t2 = | ||
| 1287 | (Te4[(s2 >> 24) ] & 0xff000000) ^ | ||
| 1288 | (Te4[(s3 >> 16) & 0xff] & 0x00ff0000) ^ | ||
| 1289 | (Te4[(s0 >> 8) & 0xff] & 0x0000ff00) ^ | ||
| 1290 | (Te4[(s1 ) & 0xff] & 0x000000ff) ^ | ||
| 1291 | rk[2]; | ||
| 1292 | t3 = | ||
| 1293 | (Te4[(s3 >> 24) ] & 0xff000000) ^ | ||
| 1294 | (Te4[(s0 >> 16) & 0xff] & 0x00ff0000) ^ | ||
| 1295 | (Te4[(s1 >> 8) & 0xff] & 0x0000ff00) ^ | ||
| 1296 | (Te4[(s2 ) & 0xff] & 0x000000ff) ^ | ||
| 1297 | rk[3]; | ||
| 1298 | |||
| 1299 | s0 = t0; | ||
| 1300 | s1 = t1; | ||
| 1301 | s2 = t2; | ||
| 1302 | s3 = t3; | ||
| 1303 | } | ||
| 1304 | |||
| 1305 | PUTU32(block , s0); | ||
| 1306 | PUTU32(block + 4, s1); | ||
| 1307 | PUTU32(block + 8, s2); | ||
| 1308 | PUTU32(block + 12, s3); | ||
| 1309 | } | ||
| 1310 | |||
| 1311 | void rijndaelDecryptRound(const u32 rk[/*4*(Nr + 1)*/], int Nr, u8 block[16], int rounds) { | ||
| 1312 | int r; | ||
| 1313 | u32 s0, s1, s2, s3, t0, t1, t2, t3; | ||
| 1314 | |||
| 1315 | /* | ||
| 1316 | * map byte array block to cipher state | ||
| 1317 | * and add initial round key: | ||
| 1318 | */ | ||
| 1319 | s0 = GETU32(block ) ^ rk[0]; | ||
| 1320 | s1 = GETU32(block + 4) ^ rk[1]; | ||
| 1321 | s2 = GETU32(block + 8) ^ rk[2]; | ||
| 1322 | s3 = GETU32(block + 12) ^ rk[3]; | ||
| 1323 | rk += 4; | ||
| 1324 | |||
| 1325 | /* | ||
| 1326 | * Nr - 1 full rounds: | ||
| 1327 | */ | ||
| 1328 | for (r = (rounds < Nr ? rounds : Nr) - 1; r > 0; r--) { | ||
| 1329 | t0 = | ||
| 1330 | Td0[(s0 >> 24) ] ^ | ||
| 1331 | Td1[(s3 >> 16) & 0xff] ^ | ||
| 1332 | Td2[(s2 >> 8) & 0xff] ^ | ||
| 1333 | Td3[(s1 ) & 0xff] ^ | ||
| 1334 | rk[0]; | ||
| 1335 | t1 = | ||
| 1336 | Td0[(s1 >> 24) ] ^ | ||
| 1337 | Td1[(s0 >> 16) & 0xff] ^ | ||
| 1338 | Td2[(s3 >> 8) & 0xff] ^ | ||
| 1339 | Td3[(s2 ) & 0xff] ^ | ||
| 1340 | rk[1]; | ||
| 1341 | t2 = | ||
| 1342 | Td0[(s2 >> 24) ] ^ | ||
| 1343 | Td1[(s1 >> 16) & 0xff] ^ | ||
| 1344 | Td2[(s0 >> 8) & 0xff] ^ | ||
| 1345 | Td3[(s3 ) & 0xff] ^ | ||
| 1346 | rk[2]; | ||
| 1347 | t3 = | ||
| 1348 | Td0[(s3 >> 24) ] ^ | ||
| 1349 | Td1[(s2 >> 16) & 0xff] ^ | ||
| 1350 | Td2[(s1 >> 8) & 0xff] ^ | ||
| 1351 | Td3[(s0 ) & 0xff] ^ | ||
| 1352 | rk[3]; | ||
| 1353 | |||
| 1354 | s0 = t0; | ||
| 1355 | s1 = t1; | ||
| 1356 | s2 = t2; | ||
| 1357 | s3 = t3; | ||
| 1358 | rk += 4; | ||
| 1359 | |||
| 1360 | } | ||
| 1361 | |||
| 1362 | /* | ||
| 1363 | * complete the last round and | ||
| 1364 | * map cipher state to byte array block: | ||
| 1365 | */ | ||
| 1366 | t0 = | ||
| 1367 | (Td4[(s0 >> 24) ] & 0xff000000) ^ | ||
| 1368 | (Td4[(s3 >> 16) & 0xff] & 0x00ff0000) ^ | ||
| 1369 | (Td4[(s2 >> 8) & 0xff] & 0x0000ff00) ^ | ||
| 1370 | (Td4[(s1 ) & 0xff] & 0x000000ff); | ||
| 1371 | t1 = | ||
| 1372 | (Td4[(s1 >> 24) ] & 0xff000000) ^ | ||
| 1373 | (Td4[(s0 >> 16) & 0xff] & 0x00ff0000) ^ | ||
| 1374 | (Td4[(s3 >> 8) & 0xff] & 0x0000ff00) ^ | ||
| 1375 | (Td4[(s2 ) & 0xff] & 0x000000ff); | ||
| 1376 | t2 = | ||
| 1377 | (Td4[(s2 >> 24) ] & 0xff000000) ^ | ||
| 1378 | (Td4[(s1 >> 16) & 0xff] & 0x00ff0000) ^ | ||
| 1379 | (Td4[(s0 >> 8) & 0xff] & 0x0000ff00) ^ | ||
| 1380 | (Td4[(s3 ) & 0xff] & 0x000000ff); | ||
| 1381 | t3 = | ||
| 1382 | (Td4[(s3 >> 24) ] & 0xff000000) ^ | ||
| 1383 | (Td4[(s2 >> 16) & 0xff] & 0x00ff0000) ^ | ||
| 1384 | (Td4[(s1 >> 8) & 0xff] & 0x0000ff00) ^ | ||
| 1385 | (Td4[(s0 ) & 0xff] & 0x000000ff); | ||
| 1386 | |||
| 1387 | if (rounds == Nr) { | ||
| 1388 | t0 ^= rk[0]; | ||
| 1389 | t1 ^= rk[1]; | ||
| 1390 | t2 ^= rk[2]; | ||
| 1391 | t3 ^= rk[3]; | ||
| 1392 | } | ||
| 1393 | |||
| 1394 | PUTU32(block , t0); | ||
| 1395 | PUTU32(block + 4, t1); | ||
| 1396 | PUTU32(block + 8, t2); | ||
| 1397 | PUTU32(block + 12, t3); | ||
| 1398 | } | ||
| 1399 | |||
| 1400 | #endif /* INTERMEDIATE_VALUE_KAT */ | ||
diff --git a/src/lib/libcrypto/rijndael/rd_fst.h b/src/lib/libcrypto/rijndael/rd_fst.h deleted file mode 100644 index fcace29478..0000000000 --- a/src/lib/libcrypto/rijndael/rd_fst.h +++ /dev/null | |||
| @@ -1,42 +0,0 @@ | |||
| 1 | /** | ||
| 2 | * rijndael-alg-fst.h | ||
| 3 | * | ||
| 4 | * @version 3.0 (December 2000) | ||
| 5 | * | ||
| 6 | * Optimised ANSI C code for the Rijndael cipher (now AES) | ||
| 7 | * | ||
| 8 | * @author Vincent Rijmen <vincent.rijmen@esat.kuleuven.ac.be> | ||
| 9 | * @author Antoon Bosselaers <antoon.bosselaers@esat.kuleuven.ac.be> | ||
| 10 | * @author Paulo Barreto <paulo.barreto@terra.com.br> | ||
| 11 | * | ||
| 12 | * This code is hereby placed in the public domain. | ||
| 13 | * | ||
| 14 | * THIS SOFTWARE IS PROVIDED BY THE AUTHORS ''AS IS'' AND ANY EXPRESS | ||
| 15 | * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | ||
| 16 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
| 17 | * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE | ||
| 18 | * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | ||
| 19 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | ||
| 20 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR | ||
| 21 | * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, | ||
| 22 | * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE | ||
| 23 | * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, | ||
| 24 | * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| 25 | */ | ||
| 26 | #ifndef __RIJNDAEL_ALG_FST_H | ||
| 27 | #define __RIJNDAEL_ALG_FST_H | ||
| 28 | |||
| 29 | #define MAXKC (256/32) | ||
| 30 | #define MAXKB (256/8) | ||
| 31 | #define MAXNR 14 | ||
| 32 | |||
| 33 | typedef unsigned char u8; | ||
| 34 | typedef unsigned short u16; | ||
| 35 | typedef unsigned int u32; | ||
| 36 | |||
| 37 | int rijndaelKeySetupEnc(u32 rk[/*4*(Nr + 1)*/], const u8 cipherKey[], int keyBits); | ||
| 38 | int rijndaelKeySetupDec(u32 rk[/*4*(Nr + 1)*/], const u8 cipherKey[], int keyBits); | ||
| 39 | void rijndaelEncrypt(const u32 rk[/*4*(Nr + 1)*/], int Nr, const u8 pt[16], u8 ct[16]); | ||
| 40 | void rijndaelDecrypt(const u32 rk[/*4*(Nr + 1)*/], int Nr, const u8 ct[16], u8 pt[16]); | ||
| 41 | |||
| 42 | #endif /* __RIJNDAEL_ALG_FST_H */ | ||
diff --git a/src/lib/libcrypto/rijndael/rijndael.h b/src/lib/libcrypto/rijndael/rijndael.h deleted file mode 100644 index 72edcc2942..0000000000 --- a/src/lib/libcrypto/rijndael/rijndael.h +++ /dev/null | |||
| @@ -1,7 +0,0 @@ | |||
| 1 | #include "openssl/rd_fst.h" | ||
| 2 | |||
| 3 | typedef struct | ||
| 4 | { | ||
| 5 | u32 rd_key[4 *(MAXNR + 1)]; | ||
| 6 | int rounds; | ||
| 7 | } RIJNDAEL_KEY; | ||
diff --git a/src/lib/libcrypto/ripemd/Makefile.ssl b/src/lib/libcrypto/ripemd/Makefile.ssl deleted file mode 100644 index f22ac790ae..0000000000 --- a/src/lib/libcrypto/ripemd/Makefile.ssl +++ /dev/null | |||
| @@ -1,108 +0,0 @@ | |||
| 1 | # | ||
| 2 | # SSLeay/crypto/ripemd/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= ripemd | ||
| 6 | TOP= ../.. | ||
| 7 | CC= cc | ||
| 8 | CPP= $(CC) -E | ||
| 9 | INCLUDES= | ||
| 10 | CFLAG=-g | ||
| 11 | INSTALL_PREFIX= | ||
| 12 | OPENSSLDIR= /usr/local/ssl | ||
| 13 | INSTALLTOP=/usr/local/ssl | ||
| 14 | MAKE= make -f Makefile.ssl | ||
| 15 | MAKEDEPPROG= makedepend | ||
| 16 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
| 17 | MAKEFILE= Makefile.ssl | ||
| 18 | AR= ar r | ||
| 19 | |||
| 20 | RIP_ASM_OBJ= | ||
| 21 | |||
| 22 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 23 | ASFLAGS= $(INCLUDES) $(ASFLAG) | ||
| 24 | |||
| 25 | GENERAL=Makefile | ||
| 26 | TEST=rmdtest.c | ||
| 27 | APPS= | ||
| 28 | |||
| 29 | LIB=$(TOP)/libcrypto.a | ||
| 30 | LIBSRC=rmd_dgst.c rmd_one.c | ||
| 31 | LIBOBJ=rmd_dgst.o rmd_one.o $(RMD160_ASM_OBJ) | ||
| 32 | |||
| 33 | SRC= $(LIBSRC) | ||
| 34 | |||
| 35 | EXHEADER= ripemd.h | ||
| 36 | HEADER= rmd_locl.h rmdconst.h $(EXHEADER) | ||
| 37 | |||
| 38 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
| 39 | |||
| 40 | top: | ||
| 41 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
| 42 | |||
| 43 | all: lib | ||
| 44 | |||
| 45 | lib: $(LIBOBJ) | ||
| 46 | $(AR) $(LIB) $(LIBOBJ) | ||
| 47 | $(RANLIB) $(LIB) || echo Never mind. | ||
| 48 | @touch lib | ||
| 49 | |||
| 50 | # elf | ||
| 51 | asm/rm86-elf.s: asm/rmd-586.pl ../perlasm/x86asm.pl | ||
| 52 | (cd asm; $(PERL) rmd-586.pl elf $(CFLAGS) > rm86-elf.s) | ||
| 53 | |||
| 54 | # a.out | ||
| 55 | asm/rm86-out.o: asm/rm86unix.cpp | ||
| 56 | $(CPP) -DOUT asm/rm86unix.cpp | as -o asm/rm86-out.o | ||
| 57 | |||
| 58 | # bsdi | ||
| 59 | asm/rm86bsdi.o: asm/rm86unix.cpp | ||
| 60 | $(CPP) -DBSDI asm/rm86unix.cpp | sed 's/ :/:/' | as -o asm/rm86bsdi.o | ||
| 61 | |||
| 62 | asm/rm86unix.cpp: asm/rmd-586.pl ../perlasm/x86asm.pl | ||
| 63 | (cd asm; $(PERL) rmd-586.pl cpp >rm86unix.cpp) | ||
| 64 | |||
| 65 | files: | ||
| 66 | $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
| 67 | |||
| 68 | links: | ||
| 69 | @sh $(TOP)/util/point.sh Makefile.ssl Makefile | ||
| 70 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | ||
| 71 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | ||
| 72 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | ||
| 73 | |||
| 74 | install: | ||
| 75 | @for i in $(EXHEADER) ; \ | ||
| 76 | do \ | ||
| 77 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 78 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
| 79 | done; | ||
| 80 | |||
| 81 | tags: | ||
| 82 | ctags $(SRC) | ||
| 83 | |||
| 84 | tests: | ||
| 85 | |||
| 86 | lint: | ||
| 87 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
| 88 | |||
| 89 | depend: | ||
| 90 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) | ||
| 91 | |||
| 92 | dclean: | ||
| 93 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 94 | mv -f Makefile.new $(MAKEFILE) | ||
| 95 | |||
| 96 | clean: | ||
| 97 | rm -f asm/rm86unix.cpp asm/*-elf.* *.o asm/*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
| 98 | |||
| 99 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 100 | |||
| 101 | rmd_dgst.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h | ||
| 102 | rmd_dgst.o: ../../include/openssl/opensslv.h ../../include/openssl/ripemd.h | ||
| 103 | rmd_dgst.o: ../md32_common.h rmd_dgst.c rmd_locl.h rmdconst.h | ||
| 104 | rmd_one.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 105 | rmd_one.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 106 | rmd_one.o: ../../include/openssl/ripemd.h ../../include/openssl/safestack.h | ||
| 107 | rmd_one.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 108 | rmd_one.o: rmd_one.c | ||
diff --git a/src/lib/libcrypto/rsa/Makefile.ssl b/src/lib/libcrypto/rsa/Makefile.ssl deleted file mode 100644 index 8089344a04..0000000000 --- a/src/lib/libcrypto/rsa/Makefile.ssl +++ /dev/null | |||
| @@ -1,241 +0,0 @@ | |||
| 1 | # | ||
| 2 | # SSLeay/crypto/rsa/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= rsa | ||
| 6 | TOP= ../.. | ||
| 7 | CC= cc | ||
| 8 | INCLUDES= -I.. -I$(TOP) -I../../include | ||
| 9 | CFLAG=-g | ||
| 10 | INSTALL_PREFIX= | ||
| 11 | OPENSSLDIR= /usr/local/ssl | ||
| 12 | INSTALLTOP=/usr/local/ssl | ||
| 13 | MAKE= make -f Makefile.ssl | ||
| 14 | MAKEDEPPROG= makedepend | ||
| 15 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
| 16 | MAKEFILE= Makefile.ssl | ||
| 17 | AR= ar r | ||
| 18 | |||
| 19 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 20 | |||
| 21 | GENERAL=Makefile | ||
| 22 | TEST=rsa_test.c | ||
| 23 | APPS= | ||
| 24 | |||
| 25 | LIB=$(TOP)/libcrypto.a | ||
| 26 | LIBSRC= rsa_eay.c rsa_gen.c rsa_lib.c rsa_sign.c rsa_saos.c rsa_err.c \ | ||
| 27 | rsa_pk1.c rsa_ssl.c rsa_none.c rsa_oaep.c rsa_chk.c rsa_null.c \ | ||
| 28 | rsa_asn1.c | ||
| 29 | LIBOBJ= rsa_eay.o rsa_gen.o rsa_lib.o rsa_sign.o rsa_saos.o rsa_err.o \ | ||
| 30 | rsa_pk1.o rsa_ssl.o rsa_none.o rsa_oaep.o rsa_chk.o rsa_null.o \ | ||
| 31 | rsa_asn1.o | ||
| 32 | |||
| 33 | SRC= $(LIBSRC) | ||
| 34 | |||
| 35 | EXHEADER= rsa.h | ||
| 36 | HEADER= $(EXHEADER) | ||
| 37 | |||
| 38 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
| 39 | |||
| 40 | top: | ||
| 41 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
| 42 | |||
| 43 | all: lib | ||
| 44 | |||
| 45 | lib: $(LIBOBJ) | ||
| 46 | $(AR) $(LIB) $(LIBOBJ) | ||
| 47 | $(RANLIB) $(LIB) || echo Never mind. | ||
| 48 | @touch lib | ||
| 49 | |||
| 50 | files: | ||
| 51 | $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
| 52 | |||
| 53 | links: | ||
| 54 | @sh $(TOP)/util/point.sh Makefile.ssl Makefile | ||
| 55 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | ||
| 56 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | ||
| 57 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | ||
| 58 | |||
| 59 | install: | ||
| 60 | @for i in $(EXHEADER) ; \ | ||
| 61 | do \ | ||
| 62 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 63 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
| 64 | done; | ||
| 65 | |||
| 66 | tags: | ||
| 67 | ctags $(SRC) | ||
| 68 | |||
| 69 | tests: | ||
| 70 | |||
| 71 | lint: | ||
| 72 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
| 73 | |||
| 74 | depend: | ||
| 75 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) | ||
| 76 | |||
| 77 | dclean: | ||
| 78 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 79 | mv -f Makefile.new $(MAKEFILE) | ||
| 80 | |||
| 81 | clean: | ||
| 82 | rm -f *.o */*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
| 83 | |||
| 84 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 85 | |||
| 86 | rsa_asn1.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 87 | rsa_asn1.o: ../../include/openssl/asn1t.h ../../include/openssl/bio.h | ||
| 88 | rsa_asn1.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 89 | rsa_asn1.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 90 | rsa_asn1.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
| 91 | rsa_asn1.o: ../../include/openssl/opensslconf.h | ||
| 92 | rsa_asn1.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 93 | rsa_asn1.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 94 | rsa_asn1.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 95 | rsa_asn1.o: ../cryptlib.h rsa_asn1.c | ||
| 96 | rsa_chk.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 97 | rsa_chk.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h | ||
| 98 | rsa_chk.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 99 | rsa_chk.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 100 | rsa_chk.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 101 | rsa_chk.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 102 | rsa_chk.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 103 | rsa_chk.o: rsa_chk.c | ||
| 104 | rsa_eay.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 105 | rsa_eay.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 106 | rsa_eay.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 107 | rsa_eay.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 108 | rsa_eay.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 109 | rsa_eay.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 110 | rsa_eay.o: ../../include/openssl/rand.h ../../include/openssl/rsa.h | ||
| 111 | rsa_eay.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 112 | rsa_eay.o: ../../include/openssl/symhacks.h ../cryptlib.h rsa_eay.c | ||
| 113 | rsa_err.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 114 | rsa_err.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h | ||
| 115 | rsa_err.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 116 | rsa_err.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 117 | rsa_err.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 118 | rsa_err.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 119 | rsa_err.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 120 | rsa_err.o: rsa_err.c | ||
| 121 | rsa_gen.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 122 | rsa_gen.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 123 | rsa_gen.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 124 | rsa_gen.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 125 | rsa_gen.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 126 | rsa_gen.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 127 | rsa_gen.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 128 | rsa_gen.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 129 | rsa_gen.o: ../cryptlib.h rsa_gen.c | ||
| 130 | rsa_lib.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 131 | rsa_lib.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 132 | rsa_lib.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 133 | rsa_lib.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 134 | rsa_lib.o: ../../include/openssl/e_os2.h ../../include/openssl/engine.h | ||
| 135 | rsa_lib.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
| 136 | rsa_lib.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 137 | rsa_lib.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h | ||
| 138 | rsa_lib.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 139 | rsa_lib.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 140 | rsa_lib.o: ../../include/openssl/ui.h ../cryptlib.h rsa_lib.c | ||
| 141 | rsa_none.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 142 | rsa_none.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 143 | rsa_none.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 144 | rsa_none.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 145 | rsa_none.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 146 | rsa_none.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 147 | rsa_none.o: ../../include/openssl/rand.h ../../include/openssl/rsa.h | ||
| 148 | rsa_none.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 149 | rsa_none.o: ../../include/openssl/symhacks.h ../cryptlib.h rsa_none.c | ||
| 150 | rsa_null.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 151 | rsa_null.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 152 | rsa_null.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 153 | rsa_null.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 154 | rsa_null.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 155 | rsa_null.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 156 | rsa_null.o: ../../include/openssl/rand.h ../../include/openssl/rsa.h | ||
| 157 | rsa_null.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 158 | rsa_null.o: ../../include/openssl/symhacks.h ../cryptlib.h rsa_null.c | ||
| 159 | rsa_oaep.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 160 | rsa_oaep.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 161 | rsa_oaep.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 162 | rsa_oaep.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 163 | rsa_oaep.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 164 | rsa_oaep.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 165 | rsa_oaep.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 166 | rsa_oaep.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 167 | rsa_oaep.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 168 | rsa_oaep.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 169 | rsa_oaep.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 170 | rsa_oaep.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 171 | rsa_oaep.o: ../../include/openssl/opensslconf.h | ||
| 172 | rsa_oaep.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 173 | rsa_oaep.o: ../../include/openssl/rand.h ../../include/openssl/rc2.h | ||
| 174 | rsa_oaep.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 175 | rsa_oaep.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 176 | rsa_oaep.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 177 | rsa_oaep.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 178 | rsa_oaep.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 179 | rsa_oaep.o: ../cryptlib.h rsa_oaep.c | ||
| 180 | rsa_pk1.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 181 | rsa_pk1.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 182 | rsa_pk1.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 183 | rsa_pk1.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 184 | rsa_pk1.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 185 | rsa_pk1.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 186 | rsa_pk1.o: ../../include/openssl/rand.h ../../include/openssl/rsa.h | ||
| 187 | rsa_pk1.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 188 | rsa_pk1.o: ../../include/openssl/symhacks.h ../cryptlib.h rsa_pk1.c | ||
| 189 | rsa_saos.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 190 | rsa_saos.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 191 | rsa_saos.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 192 | rsa_saos.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 193 | rsa_saos.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 194 | rsa_saos.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 195 | rsa_saos.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 196 | rsa_saos.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 197 | rsa_saos.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 198 | rsa_saos.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 199 | rsa_saos.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 200 | rsa_saos.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 201 | rsa_saos.o: ../../include/openssl/opensslconf.h | ||
| 202 | rsa_saos.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 203 | rsa_saos.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 204 | rsa_saos.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 205 | rsa_saos.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 206 | rsa_saos.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 207 | rsa_saos.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 208 | rsa_saos.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 209 | rsa_saos.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 210 | rsa_saos.o: ../cryptlib.h rsa_saos.c | ||
| 211 | rsa_sign.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 212 | rsa_sign.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 213 | rsa_sign.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 214 | rsa_sign.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 215 | rsa_sign.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 216 | rsa_sign.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 217 | rsa_sign.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 218 | rsa_sign.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 219 | rsa_sign.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 220 | rsa_sign.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 221 | rsa_sign.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 222 | rsa_sign.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 223 | rsa_sign.o: ../../include/openssl/opensslconf.h | ||
| 224 | rsa_sign.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 225 | rsa_sign.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 226 | rsa_sign.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 227 | rsa_sign.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 228 | rsa_sign.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 229 | rsa_sign.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 230 | rsa_sign.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 231 | rsa_sign.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 232 | rsa_sign.o: ../cryptlib.h rsa_sign.c | ||
| 233 | rsa_ssl.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 234 | rsa_ssl.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 235 | rsa_ssl.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 236 | rsa_ssl.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 237 | rsa_ssl.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 238 | rsa_ssl.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 239 | rsa_ssl.o: ../../include/openssl/rand.h ../../include/openssl/rsa.h | ||
| 240 | rsa_ssl.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 241 | rsa_ssl.o: ../../include/openssl/symhacks.h ../cryptlib.h rsa_ssl.c | ||
diff --git a/src/lib/libcrypto/seed/Makefile b/src/lib/libcrypto/seed/Makefile deleted file mode 100644 index 4bc55e4916..0000000000 --- a/src/lib/libcrypto/seed/Makefile +++ /dev/null | |||
| @@ -1,106 +0,0 @@ | |||
| 1 | # | ||
| 2 | # crypto/seed/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= seed | ||
| 6 | TOP= ../.. | ||
| 7 | CC= cc | ||
| 8 | CPP= $(CC) -E | ||
| 9 | INCLUDES= | ||
| 10 | CFLAG=-g | ||
| 11 | MAKEFILE= Makefile | ||
| 12 | AR= ar r | ||
| 13 | |||
| 14 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 15 | |||
| 16 | GENERAL=Makefile | ||
| 17 | TEST= | ||
| 18 | APPS= | ||
| 19 | |||
| 20 | LIB=$(TOP)/libcrypto.a | ||
| 21 | LIBSRC=seed.c seed_ecb.c seed_cbc.c seed_cfb.c seed_ofb.c | ||
| 22 | LIBOBJ=seed.o seed_ecb.o seed_cbc.o seed_cfb.o seed_ofb.o | ||
| 23 | |||
| 24 | SRC= $(LIBSRC) | ||
| 25 | |||
| 26 | EXHEADER= seed.h | ||
| 27 | HEADER= seed_locl.h $(EXHEADER) | ||
| 28 | |||
| 29 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
| 30 | |||
| 31 | top: | ||
| 32 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
| 33 | |||
| 34 | all: lib | ||
| 35 | |||
| 36 | lib: $(LIBOBJ) | ||
| 37 | $(AR) $(LIB) $(LIBOBJ) | ||
| 38 | $(RANLIB) $(LIB) || echo Never mind. | ||
| 39 | @touch lib | ||
| 40 | |||
| 41 | files: | ||
| 42 | $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO | ||
| 43 | |||
| 44 | links: | ||
| 45 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | ||
| 46 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | ||
| 47 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | ||
| 48 | |||
| 49 | install: | ||
| 50 | @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile... | ||
| 51 | @headerlist="$(EXHEADER)"; for i in $$headerlist ; \ | ||
| 52 | do \ | ||
| 53 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 54 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
| 55 | done; | ||
| 56 | |||
| 57 | tags: | ||
| 58 | ctags $(SRC) | ||
| 59 | |||
| 60 | tests: | ||
| 61 | |||
| 62 | lint: | ||
| 63 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
| 64 | |||
| 65 | depend: | ||
| 66 | @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile... | ||
| 67 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) | ||
| 68 | |||
| 69 | dclean: | ||
| 70 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 71 | mv -f Makefile.new $(MAKEFILE) | ||
| 72 | |||
| 73 | clean: | ||
| 74 | rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
| 75 | |||
| 76 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 77 | |||
| 78 | seed.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 79 | seed.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 80 | seed.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h | ||
| 81 | seed.o: ../../include/openssl/seed.h ../../include/openssl/stack.h | ||
| 82 | seed.o: ../../include/openssl/symhacks.h seed.c seed_locl.h | ||
| 83 | seed_cbc.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 84 | seed_cbc.o: ../../include/openssl/modes.h ../../include/openssl/opensslconf.h | ||
| 85 | seed_cbc.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 86 | seed_cbc.o: ../../include/openssl/safestack.h ../../include/openssl/seed.h | ||
| 87 | seed_cbc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 88 | seed_cbc.o: seed_cbc.c | ||
| 89 | seed_cfb.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 90 | seed_cfb.o: ../../include/openssl/modes.h ../../include/openssl/opensslconf.h | ||
| 91 | seed_cfb.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 92 | seed_cfb.o: ../../include/openssl/safestack.h ../../include/openssl/seed.h | ||
| 93 | seed_cfb.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 94 | seed_cfb.o: seed_cfb.c | ||
| 95 | seed_ecb.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 96 | seed_ecb.o: ../../include/openssl/opensslconf.h | ||
| 97 | seed_ecb.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 98 | seed_ecb.o: ../../include/openssl/safestack.h ../../include/openssl/seed.h | ||
| 99 | seed_ecb.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 100 | seed_ecb.o: seed_ecb.c | ||
| 101 | seed_ofb.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 102 | seed_ofb.o: ../../include/openssl/modes.h ../../include/openssl/opensslconf.h | ||
| 103 | seed_ofb.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 104 | seed_ofb.o: ../../include/openssl/safestack.h ../../include/openssl/seed.h | ||
| 105 | seed_ofb.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 106 | seed_ofb.o: seed_ofb.c | ||
diff --git a/src/lib/libcrypto/seed/seed.c b/src/lib/libcrypto/seed/seed.c deleted file mode 100644 index 3e675a8d75..0000000000 --- a/src/lib/libcrypto/seed/seed.c +++ /dev/null | |||
| @@ -1,336 +0,0 @@ | |||
| 1 | /* | ||
| 2 | * Copyright (c) 2007 KISA(Korea Information Security Agency). All rights reserved. | ||
| 3 | * | ||
| 4 | * Redistribution and use in source and binary forms, with or without | ||
| 5 | * modification, are permitted provided that the following conditions | ||
| 6 | * are met: | ||
| 7 | * 1. Redistributions of source code must retain the above copyright | ||
| 8 | * notice, this list of conditions and the following disclaimer. | ||
| 9 | * 2. Neither the name of author nor the names of its contributors may | ||
| 10 | * be used to endorse or promote products derived from this software | ||
| 11 | * without specific prior written permission. | ||
| 12 | * | ||
| 13 | * THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND | ||
| 14 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
| 15 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
| 16 | * ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE | ||
| 17 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
| 18 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | ||
| 19 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
| 20 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
| 21 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||
| 22 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||
| 23 | * SUCH DAMAGE. | ||
| 24 | * | ||
| 25 | */ | ||
| 26 | #ifndef OPENSSL_NO_SEED | ||
| 27 | |||
| 28 | #include <stdio.h> | ||
| 29 | #include <stdlib.h> | ||
| 30 | #include <string.h> | ||
| 31 | #ifdef WIN32 | ||
| 32 | #include <memory.h> | ||
| 33 | #endif | ||
| 34 | |||
| 35 | #include <openssl/crypto.h> | ||
| 36 | #include <openssl/seed.h> | ||
| 37 | #include "seed_locl.h" | ||
| 38 | |||
| 39 | #ifdef SS /* can get defined on Solaris by inclusion of <stdlib.h> */ | ||
| 40 | #undef SS | ||
| 41 | #endif | ||
| 42 | |||
| 43 | static const seed_word SS[4][256] = { { | ||
| 44 | 0x2989a1a8, 0x05858184, 0x16c6d2d4, 0x13c3d3d0, 0x14445054, 0x1d0d111c, 0x2c8ca0ac, 0x25052124, | ||
| 45 | 0x1d4d515c, 0x03434340, 0x18081018, 0x1e0e121c, 0x11415150, 0x3cccf0fc, 0x0acac2c8, 0x23436360, | ||
| 46 | 0x28082028, 0x04444044, 0x20002020, 0x1d8d919c, 0x20c0e0e0, 0x22c2e2e0, 0x08c8c0c8, 0x17071314, | ||
| 47 | 0x2585a1a4, 0x0f8f838c, 0x03030300, 0x3b4b7378, 0x3b8bb3b8, 0x13031310, 0x12c2d2d0, 0x2ecee2ec, | ||
| 48 | 0x30407070, 0x0c8c808c, 0x3f0f333c, 0x2888a0a8, 0x32023230, 0x1dcdd1dc, 0x36c6f2f4, 0x34447074, | ||
| 49 | 0x2ccce0ec, 0x15859194, 0x0b0b0308, 0x17475354, 0x1c4c505c, 0x1b4b5358, 0x3d8db1bc, 0x01010100, | ||
| 50 | 0x24042024, 0x1c0c101c, 0x33437370, 0x18889098, 0x10001010, 0x0cccc0cc, 0x32c2f2f0, 0x19c9d1d8, | ||
| 51 | 0x2c0c202c, 0x27c7e3e4, 0x32427270, 0x03838380, 0x1b8b9398, 0x11c1d1d0, 0x06868284, 0x09c9c1c8, | ||
| 52 | 0x20406060, 0x10405050, 0x2383a3a0, 0x2bcbe3e8, 0x0d0d010c, 0x3686b2b4, 0x1e8e929c, 0x0f4f434c, | ||
| 53 | 0x3787b3b4, 0x1a4a5258, 0x06c6c2c4, 0x38487078, 0x2686a2a4, 0x12021210, 0x2f8fa3ac, 0x15c5d1d4, | ||
| 54 | 0x21416160, 0x03c3c3c0, 0x3484b0b4, 0x01414140, 0x12425250, 0x3d4d717c, 0x0d8d818c, 0x08080008, | ||
| 55 | 0x1f0f131c, 0x19899198, 0x00000000, 0x19091118, 0x04040004, 0x13435350, 0x37c7f3f4, 0x21c1e1e0, | ||
| 56 | 0x3dcdf1fc, 0x36467274, 0x2f0f232c, 0x27072324, 0x3080b0b0, 0x0b8b8388, 0x0e0e020c, 0x2b8ba3a8, | ||
| 57 | 0x2282a2a0, 0x2e4e626c, 0x13839390, 0x0d4d414c, 0x29496168, 0x3c4c707c, 0x09090108, 0x0a0a0208, | ||
| 58 | 0x3f8fb3bc, 0x2fcfe3ec, 0x33c3f3f0, 0x05c5c1c4, 0x07878384, 0x14041014, 0x3ecef2fc, 0x24446064, | ||
| 59 | 0x1eced2dc, 0x2e0e222c, 0x0b4b4348, 0x1a0a1218, 0x06060204, 0x21012120, 0x2b4b6368, 0x26466264, | ||
| 60 | 0x02020200, 0x35c5f1f4, 0x12829290, 0x0a8a8288, 0x0c0c000c, 0x3383b3b0, 0x3e4e727c, 0x10c0d0d0, | ||
| 61 | 0x3a4a7278, 0x07474344, 0x16869294, 0x25c5e1e4, 0x26062224, 0x00808080, 0x2d8da1ac, 0x1fcfd3dc, | ||
| 62 | 0x2181a1a0, 0x30003030, 0x37073334, 0x2e8ea2ac, 0x36063234, 0x15051114, 0x22022220, 0x38083038, | ||
| 63 | 0x34c4f0f4, 0x2787a3a4, 0x05454144, 0x0c4c404c, 0x01818180, 0x29c9e1e8, 0x04848084, 0x17879394, | ||
| 64 | 0x35053134, 0x0bcbc3c8, 0x0ecec2cc, 0x3c0c303c, 0x31417170, 0x11011110, 0x07c7c3c4, 0x09898188, | ||
| 65 | 0x35457174, 0x3bcbf3f8, 0x1acad2d8, 0x38c8f0f8, 0x14849094, 0x19495158, 0x02828280, 0x04c4c0c4, | ||
| 66 | 0x3fcff3fc, 0x09494148, 0x39093138, 0x27476364, 0x00c0c0c0, 0x0fcfc3cc, 0x17c7d3d4, 0x3888b0b8, | ||
| 67 | 0x0f0f030c, 0x0e8e828c, 0x02424240, 0x23032320, 0x11819190, 0x2c4c606c, 0x1bcbd3d8, 0x2484a0a4, | ||
| 68 | 0x34043034, 0x31c1f1f0, 0x08484048, 0x02c2c2c0, 0x2f4f636c, 0x3d0d313c, 0x2d0d212c, 0x00404040, | ||
| 69 | 0x3e8eb2bc, 0x3e0e323c, 0x3c8cb0bc, 0x01c1c1c0, 0x2a8aa2a8, 0x3a8ab2b8, 0x0e4e424c, 0x15455154, | ||
| 70 | 0x3b0b3338, 0x1cccd0dc, 0x28486068, 0x3f4f737c, 0x1c8c909c, 0x18c8d0d8, 0x0a4a4248, 0x16465254, | ||
| 71 | 0x37477374, 0x2080a0a0, 0x2dcde1ec, 0x06464244, 0x3585b1b4, 0x2b0b2328, 0x25456164, 0x3acaf2f8, | ||
| 72 | 0x23c3e3e0, 0x3989b1b8, 0x3181b1b0, 0x1f8f939c, 0x1e4e525c, 0x39c9f1f8, 0x26c6e2e4, 0x3282b2b0, | ||
| 73 | 0x31013130, 0x2acae2e8, 0x2d4d616c, 0x1f4f535c, 0x24c4e0e4, 0x30c0f0f0, 0x0dcdc1cc, 0x08888088, | ||
| 74 | 0x16061214, 0x3a0a3238, 0x18485058, 0x14c4d0d4, 0x22426260, 0x29092128, 0x07070304, 0x33033330, | ||
| 75 | 0x28c8e0e8, 0x1b0b1318, 0x05050104, 0x39497178, 0x10809090, 0x2a4a6268, 0x2a0a2228, 0x1a8a9298 | ||
| 76 | }, { | ||
| 77 | 0x38380830, 0xe828c8e0, 0x2c2d0d21, 0xa42686a2, 0xcc0fcfc3, 0xdc1eced2, 0xb03383b3, 0xb83888b0, | ||
| 78 | 0xac2f8fa3, 0x60204060, 0x54154551, 0xc407c7c3, 0x44044440, 0x6c2f4f63, 0x682b4b63, 0x581b4b53, | ||
| 79 | 0xc003c3c3, 0x60224262, 0x30330333, 0xb43585b1, 0x28290921, 0xa02080a0, 0xe022c2e2, 0xa42787a3, | ||
| 80 | 0xd013c3d3, 0x90118191, 0x10110111, 0x04060602, 0x1c1c0c10, 0xbc3c8cb0, 0x34360632, 0x480b4b43, | ||
| 81 | 0xec2fcfe3, 0x88088880, 0x6c2c4c60, 0xa82888a0, 0x14170713, 0xc404c4c0, 0x14160612, 0xf434c4f0, | ||
| 82 | 0xc002c2c2, 0x44054541, 0xe021c1e1, 0xd416c6d2, 0x3c3f0f33, 0x3c3d0d31, 0x8c0e8e82, 0x98188890, | ||
| 83 | 0x28280820, 0x4c0e4e42, 0xf436c6f2, 0x3c3e0e32, 0xa42585a1, 0xf839c9f1, 0x0c0d0d01, 0xdc1fcfd3, | ||
| 84 | 0xd818c8d0, 0x282b0b23, 0x64264662, 0x783a4a72, 0x24270723, 0x2c2f0f23, 0xf031c1f1, 0x70324272, | ||
| 85 | 0x40024242, 0xd414c4d0, 0x40014141, 0xc000c0c0, 0x70334373, 0x64274763, 0xac2c8ca0, 0x880b8b83, | ||
| 86 | 0xf437c7f3, 0xac2d8da1, 0x80008080, 0x1c1f0f13, 0xc80acac2, 0x2c2c0c20, 0xa82a8aa2, 0x34340430, | ||
| 87 | 0xd012c2d2, 0x080b0b03, 0xec2ecee2, 0xe829c9e1, 0x5c1d4d51, 0x94148490, 0x18180810, 0xf838c8f0, | ||
| 88 | 0x54174753, 0xac2e8ea2, 0x08080800, 0xc405c5c1, 0x10130313, 0xcc0dcdc1, 0x84068682, 0xb83989b1, | ||
| 89 | 0xfc3fcff3, 0x7c3d4d71, 0xc001c1c1, 0x30310131, 0xf435c5f1, 0x880a8a82, 0x682a4a62, 0xb03181b1, | ||
| 90 | 0xd011c1d1, 0x20200020, 0xd417c7d3, 0x00020202, 0x20220222, 0x04040400, 0x68284860, 0x70314171, | ||
| 91 | 0x04070703, 0xd81bcbd3, 0x9c1d8d91, 0x98198991, 0x60214161, 0xbc3e8eb2, 0xe426c6e2, 0x58194951, | ||
| 92 | 0xdc1dcdd1, 0x50114151, 0x90108090, 0xdc1cccd0, 0x981a8a92, 0xa02383a3, 0xa82b8ba3, 0xd010c0d0, | ||
| 93 | 0x80018181, 0x0c0f0f03, 0x44074743, 0x181a0a12, 0xe023c3e3, 0xec2ccce0, 0x8c0d8d81, 0xbc3f8fb3, | ||
| 94 | 0x94168692, 0x783b4b73, 0x5c1c4c50, 0xa02282a2, 0xa02181a1, 0x60234363, 0x20230323, 0x4c0d4d41, | ||
| 95 | 0xc808c8c0, 0x9c1e8e92, 0x9c1c8c90, 0x383a0a32, 0x0c0c0c00, 0x2c2e0e22, 0xb83a8ab2, 0x6c2e4e62, | ||
| 96 | 0x9c1f8f93, 0x581a4a52, 0xf032c2f2, 0x90128292, 0xf033c3f3, 0x48094941, 0x78384870, 0xcc0cccc0, | ||
| 97 | 0x14150511, 0xf83bcbf3, 0x70304070, 0x74354571, 0x7c3f4f73, 0x34350531, 0x10100010, 0x00030303, | ||
| 98 | 0x64244460, 0x6c2d4d61, 0xc406c6c2, 0x74344470, 0xd415c5d1, 0xb43484b0, 0xe82acae2, 0x08090901, | ||
| 99 | 0x74364672, 0x18190911, 0xfc3ecef2, 0x40004040, 0x10120212, 0xe020c0e0, 0xbc3d8db1, 0x04050501, | ||
| 100 | 0xf83acaf2, 0x00010101, 0xf030c0f0, 0x282a0a22, 0x5c1e4e52, 0xa82989a1, 0x54164652, 0x40034343, | ||
| 101 | 0x84058581, 0x14140410, 0x88098981, 0x981b8b93, 0xb03080b0, 0xe425c5e1, 0x48084840, 0x78394971, | ||
| 102 | 0x94178793, 0xfc3cccf0, 0x1c1e0e12, 0x80028282, 0x20210121, 0x8c0c8c80, 0x181b0b13, 0x5c1f4f53, | ||
| 103 | 0x74374773, 0x54144450, 0xb03282b2, 0x1c1d0d11, 0x24250521, 0x4c0f4f43, 0x00000000, 0x44064642, | ||
| 104 | 0xec2dcde1, 0x58184850, 0x50124252, 0xe82bcbe3, 0x7c3e4e72, 0xd81acad2, 0xc809c9c1, 0xfc3dcdf1, | ||
| 105 | 0x30300030, 0x94158591, 0x64254561, 0x3c3c0c30, 0xb43686b2, 0xe424c4e0, 0xb83b8bb3, 0x7c3c4c70, | ||
| 106 | 0x0c0e0e02, 0x50104050, 0x38390931, 0x24260622, 0x30320232, 0x84048480, 0x68294961, 0x90138393, | ||
| 107 | 0x34370733, 0xe427c7e3, 0x24240420, 0xa42484a0, 0xc80bcbc3, 0x50134353, 0x080a0a02, 0x84078783, | ||
| 108 | 0xd819c9d1, 0x4c0c4c40, 0x80038383, 0x8c0f8f83, 0xcc0ecec2, 0x383b0b33, 0x480a4a42, 0xb43787b3 | ||
| 109 | }, { | ||
| 110 | 0xa1a82989, 0x81840585, 0xd2d416c6, 0xd3d013c3, 0x50541444, 0x111c1d0d, 0xa0ac2c8c, 0x21242505, | ||
| 111 | 0x515c1d4d, 0x43400343, 0x10181808, 0x121c1e0e, 0x51501141, 0xf0fc3ccc, 0xc2c80aca, 0x63602343, | ||
| 112 | 0x20282808, 0x40440444, 0x20202000, 0x919c1d8d, 0xe0e020c0, 0xe2e022c2, 0xc0c808c8, 0x13141707, | ||
| 113 | 0xa1a42585, 0x838c0f8f, 0x03000303, 0x73783b4b, 0xb3b83b8b, 0x13101303, 0xd2d012c2, 0xe2ec2ece, | ||
| 114 | 0x70703040, 0x808c0c8c, 0x333c3f0f, 0xa0a82888, 0x32303202, 0xd1dc1dcd, 0xf2f436c6, 0x70743444, | ||
| 115 | 0xe0ec2ccc, 0x91941585, 0x03080b0b, 0x53541747, 0x505c1c4c, 0x53581b4b, 0xb1bc3d8d, 0x01000101, | ||
| 116 | 0x20242404, 0x101c1c0c, 0x73703343, 0x90981888, 0x10101000, 0xc0cc0ccc, 0xf2f032c2, 0xd1d819c9, | ||
| 117 | 0x202c2c0c, 0xe3e427c7, 0x72703242, 0x83800383, 0x93981b8b, 0xd1d011c1, 0x82840686, 0xc1c809c9, | ||
| 118 | 0x60602040, 0x50501040, 0xa3a02383, 0xe3e82bcb, 0x010c0d0d, 0xb2b43686, 0x929c1e8e, 0x434c0f4f, | ||
| 119 | 0xb3b43787, 0x52581a4a, 0xc2c406c6, 0x70783848, 0xa2a42686, 0x12101202, 0xa3ac2f8f, 0xd1d415c5, | ||
| 120 | 0x61602141, 0xc3c003c3, 0xb0b43484, 0x41400141, 0x52501242, 0x717c3d4d, 0x818c0d8d, 0x00080808, | ||
| 121 | 0x131c1f0f, 0x91981989, 0x00000000, 0x11181909, 0x00040404, 0x53501343, 0xf3f437c7, 0xe1e021c1, | ||
| 122 | 0xf1fc3dcd, 0x72743646, 0x232c2f0f, 0x23242707, 0xb0b03080, 0x83880b8b, 0x020c0e0e, 0xa3a82b8b, | ||
| 123 | 0xa2a02282, 0x626c2e4e, 0x93901383, 0x414c0d4d, 0x61682949, 0x707c3c4c, 0x01080909, 0x02080a0a, | ||
| 124 | 0xb3bc3f8f, 0xe3ec2fcf, 0xf3f033c3, 0xc1c405c5, 0x83840787, 0x10141404, 0xf2fc3ece, 0x60642444, | ||
| 125 | 0xd2dc1ece, 0x222c2e0e, 0x43480b4b, 0x12181a0a, 0x02040606, 0x21202101, 0x63682b4b, 0x62642646, | ||
| 126 | 0x02000202, 0xf1f435c5, 0x92901282, 0x82880a8a, 0x000c0c0c, 0xb3b03383, 0x727c3e4e, 0xd0d010c0, | ||
| 127 | 0x72783a4a, 0x43440747, 0x92941686, 0xe1e425c5, 0x22242606, 0x80800080, 0xa1ac2d8d, 0xd3dc1fcf, | ||
| 128 | 0xa1a02181, 0x30303000, 0x33343707, 0xa2ac2e8e, 0x32343606, 0x11141505, 0x22202202, 0x30383808, | ||
| 129 | 0xf0f434c4, 0xa3a42787, 0x41440545, 0x404c0c4c, 0x81800181, 0xe1e829c9, 0x80840484, 0x93941787, | ||
| 130 | 0x31343505, 0xc3c80bcb, 0xc2cc0ece, 0x303c3c0c, 0x71703141, 0x11101101, 0xc3c407c7, 0x81880989, | ||
| 131 | 0x71743545, 0xf3f83bcb, 0xd2d81aca, 0xf0f838c8, 0x90941484, 0x51581949, 0x82800282, 0xc0c404c4, | ||
| 132 | 0xf3fc3fcf, 0x41480949, 0x31383909, 0x63642747, 0xc0c000c0, 0xc3cc0fcf, 0xd3d417c7, 0xb0b83888, | ||
| 133 | 0x030c0f0f, 0x828c0e8e, 0x42400242, 0x23202303, 0x91901181, 0x606c2c4c, 0xd3d81bcb, 0xa0a42484, | ||
| 134 | 0x30343404, 0xf1f031c1, 0x40480848, 0xc2c002c2, 0x636c2f4f, 0x313c3d0d, 0x212c2d0d, 0x40400040, | ||
| 135 | 0xb2bc3e8e, 0x323c3e0e, 0xb0bc3c8c, 0xc1c001c1, 0xa2a82a8a, 0xb2b83a8a, 0x424c0e4e, 0x51541545, | ||
| 136 | 0x33383b0b, 0xd0dc1ccc, 0x60682848, 0x737c3f4f, 0x909c1c8c, 0xd0d818c8, 0x42480a4a, 0x52541646, | ||
| 137 | 0x73743747, 0xa0a02080, 0xe1ec2dcd, 0x42440646, 0xb1b43585, 0x23282b0b, 0x61642545, 0xf2f83aca, | ||
| 138 | 0xe3e023c3, 0xb1b83989, 0xb1b03181, 0x939c1f8f, 0x525c1e4e, 0xf1f839c9, 0xe2e426c6, 0xb2b03282, | ||
| 139 | 0x31303101, 0xe2e82aca, 0x616c2d4d, 0x535c1f4f, 0xe0e424c4, 0xf0f030c0, 0xc1cc0dcd, 0x80880888, | ||
| 140 | 0x12141606, 0x32383a0a, 0x50581848, 0xd0d414c4, 0x62602242, 0x21282909, 0x03040707, 0x33303303, | ||
| 141 | 0xe0e828c8, 0x13181b0b, 0x01040505, 0x71783949, 0x90901080, 0x62682a4a, 0x22282a0a, 0x92981a8a | ||
| 142 | }, { | ||
| 143 | 0x08303838, 0xc8e0e828, 0x0d212c2d, 0x86a2a426, 0xcfc3cc0f, 0xced2dc1e, 0x83b3b033, 0x88b0b838, | ||
| 144 | 0x8fa3ac2f, 0x40606020, 0x45515415, 0xc7c3c407, 0x44404404, 0x4f636c2f, 0x4b63682b, 0x4b53581b, | ||
| 145 | 0xc3c3c003, 0x42626022, 0x03333033, 0x85b1b435, 0x09212829, 0x80a0a020, 0xc2e2e022, 0x87a3a427, | ||
| 146 | 0xc3d3d013, 0x81919011, 0x01111011, 0x06020406, 0x0c101c1c, 0x8cb0bc3c, 0x06323436, 0x4b43480b, | ||
| 147 | 0xcfe3ec2f, 0x88808808, 0x4c606c2c, 0x88a0a828, 0x07131417, 0xc4c0c404, 0x06121416, 0xc4f0f434, | ||
| 148 | 0xc2c2c002, 0x45414405, 0xc1e1e021, 0xc6d2d416, 0x0f333c3f, 0x0d313c3d, 0x8e828c0e, 0x88909818, | ||
| 149 | 0x08202828, 0x4e424c0e, 0xc6f2f436, 0x0e323c3e, 0x85a1a425, 0xc9f1f839, 0x0d010c0d, 0xcfd3dc1f, | ||
| 150 | 0xc8d0d818, 0x0b23282b, 0x46626426, 0x4a72783a, 0x07232427, 0x0f232c2f, 0xc1f1f031, 0x42727032, | ||
| 151 | 0x42424002, 0xc4d0d414, 0x41414001, 0xc0c0c000, 0x43737033, 0x47636427, 0x8ca0ac2c, 0x8b83880b, | ||
| 152 | 0xc7f3f437, 0x8da1ac2d, 0x80808000, 0x0f131c1f, 0xcac2c80a, 0x0c202c2c, 0x8aa2a82a, 0x04303434, | ||
| 153 | 0xc2d2d012, 0x0b03080b, 0xcee2ec2e, 0xc9e1e829, 0x4d515c1d, 0x84909414, 0x08101818, 0xc8f0f838, | ||
| 154 | 0x47535417, 0x8ea2ac2e, 0x08000808, 0xc5c1c405, 0x03131013, 0xcdc1cc0d, 0x86828406, 0x89b1b839, | ||
| 155 | 0xcff3fc3f, 0x4d717c3d, 0xc1c1c001, 0x01313031, 0xc5f1f435, 0x8a82880a, 0x4a62682a, 0x81b1b031, | ||
| 156 | 0xc1d1d011, 0x00202020, 0xc7d3d417, 0x02020002, 0x02222022, 0x04000404, 0x48606828, 0x41717031, | ||
| 157 | 0x07030407, 0xcbd3d81b, 0x8d919c1d, 0x89919819, 0x41616021, 0x8eb2bc3e, 0xc6e2e426, 0x49515819, | ||
| 158 | 0xcdd1dc1d, 0x41515011, 0x80909010, 0xccd0dc1c, 0x8a92981a, 0x83a3a023, 0x8ba3a82b, 0xc0d0d010, | ||
| 159 | 0x81818001, 0x0f030c0f, 0x47434407, 0x0a12181a, 0xc3e3e023, 0xcce0ec2c, 0x8d818c0d, 0x8fb3bc3f, | ||
| 160 | 0x86929416, 0x4b73783b, 0x4c505c1c, 0x82a2a022, 0x81a1a021, 0x43636023, 0x03232023, 0x4d414c0d, | ||
| 161 | 0xc8c0c808, 0x8e929c1e, 0x8c909c1c, 0x0a32383a, 0x0c000c0c, 0x0e222c2e, 0x8ab2b83a, 0x4e626c2e, | ||
| 162 | 0x8f939c1f, 0x4a52581a, 0xc2f2f032, 0x82929012, 0xc3f3f033, 0x49414809, 0x48707838, 0xccc0cc0c, | ||
| 163 | 0x05111415, 0xcbf3f83b, 0x40707030, 0x45717435, 0x4f737c3f, 0x05313435, 0x00101010, 0x03030003, | ||
| 164 | 0x44606424, 0x4d616c2d, 0xc6c2c406, 0x44707434, 0xc5d1d415, 0x84b0b434, 0xcae2e82a, 0x09010809, | ||
| 165 | 0x46727436, 0x09111819, 0xcef2fc3e, 0x40404000, 0x02121012, 0xc0e0e020, 0x8db1bc3d, 0x05010405, | ||
| 166 | 0xcaf2f83a, 0x01010001, 0xc0f0f030, 0x0a22282a, 0x4e525c1e, 0x89a1a829, 0x46525416, 0x43434003, | ||
| 167 | 0x85818405, 0x04101414, 0x89818809, 0x8b93981b, 0x80b0b030, 0xc5e1e425, 0x48404808, 0x49717839, | ||
| 168 | 0x87939417, 0xccf0fc3c, 0x0e121c1e, 0x82828002, 0x01212021, 0x8c808c0c, 0x0b13181b, 0x4f535c1f, | ||
| 169 | 0x47737437, 0x44505414, 0x82b2b032, 0x0d111c1d, 0x05212425, 0x4f434c0f, 0x00000000, 0x46424406, | ||
| 170 | 0xcde1ec2d, 0x48505818, 0x42525012, 0xcbe3e82b, 0x4e727c3e, 0xcad2d81a, 0xc9c1c809, 0xcdf1fc3d, | ||
| 171 | 0x00303030, 0x85919415, 0x45616425, 0x0c303c3c, 0x86b2b436, 0xc4e0e424, 0x8bb3b83b, 0x4c707c3c, | ||
| 172 | 0x0e020c0e, 0x40505010, 0x09313839, 0x06222426, 0x02323032, 0x84808404, 0x49616829, 0x83939013, | ||
| 173 | 0x07333437, 0xc7e3e427, 0x04202424, 0x84a0a424, 0xcbc3c80b, 0x43535013, 0x0a02080a, 0x87838407, | ||
| 174 | 0xc9d1d819, 0x4c404c0c, 0x83838003, 0x8f838c0f, 0xcec2cc0e, 0x0b33383b, 0x4a42480a, 0x87b3b437 | ||
| 175 | } }; | ||
| 176 | |||
| 177 | /* key schedule constants - golden ratio */ | ||
| 178 | #define KC0 0x9e3779b9 | ||
| 179 | #define KC1 0x3c6ef373 | ||
| 180 | #define KC2 0x78dde6e6 | ||
| 181 | #define KC3 0xf1bbcdcc | ||
| 182 | #define KC4 0xe3779b99 | ||
| 183 | #define KC5 0xc6ef3733 | ||
| 184 | #define KC6 0x8dde6e67 | ||
| 185 | #define KC7 0x1bbcdccf | ||
| 186 | #define KC8 0x3779b99e | ||
| 187 | #define KC9 0x6ef3733c | ||
| 188 | #define KC10 0xdde6e678 | ||
| 189 | #define KC11 0xbbcdccf1 | ||
| 190 | #define KC12 0x779b99e3 | ||
| 191 | #define KC13 0xef3733c6 | ||
| 192 | #define KC14 0xde6e678d | ||
| 193 | #define KC15 0xbcdccf1b | ||
| 194 | |||
| 195 | #if defined(OPENSSL_SMALL_FOOTPRINT) | ||
| 196 | static const seed_word KC[] = { | ||
| 197 | KC0, KC1, KC2, KC3, KC4, KC5, KC6, KC7, | ||
| 198 | KC8, KC9, KC10, KC11, KC12, KC13, KC14, KC15 }; | ||
| 199 | #endif | ||
| 200 | void SEED_set_key(const unsigned char rawkey[SEED_KEY_LENGTH], SEED_KEY_SCHEDULE *ks) | ||
| 201 | #ifdef OPENSSL_FIPS | ||
| 202 | { | ||
| 203 | fips_cipher_abort(SEED); | ||
| 204 | private_SEED_set_key(rawkey, ks); | ||
| 205 | } | ||
| 206 | void private_SEED_set_key(const unsigned char rawkey[SEED_KEY_LENGTH], SEED_KEY_SCHEDULE *ks) | ||
| 207 | #endif | ||
| 208 | { | ||
| 209 | seed_word x1, x2, x3, x4; | ||
| 210 | seed_word t0, t1; | ||
| 211 | |||
| 212 | char2word(rawkey , x1); | ||
| 213 | char2word(rawkey+4 , x2); | ||
| 214 | char2word(rawkey+8 , x3); | ||
| 215 | char2word(rawkey+12, x4); | ||
| 216 | |||
| 217 | t0 = (x1 + x3 - KC0) & 0xffffffff; | ||
| 218 | t1 = (x2 - x4 + KC0) & 0xffffffff; KEYUPDATE_TEMP(t0, t1, &ks->data[0]); | ||
| 219 | KEYSCHEDULE_UPDATE1(t0, t1, x1, x2, x3, x4, KC1); KEYUPDATE_TEMP(t0, t1, &ks->data[2]); | ||
| 220 | |||
| 221 | #if !defined(OPENSSL_SMALL_FOOTPRINT) | ||
| 222 | KEYSCHEDULE_UPDATE0(t0, t1, x1, x2, x3, x4, KC2); KEYUPDATE_TEMP(t0, t1, &ks->data[4]); | ||
| 223 | KEYSCHEDULE_UPDATE1(t0, t1, x1, x2, x3, x4, KC3); KEYUPDATE_TEMP(t0, t1, &ks->data[6]); | ||
| 224 | KEYSCHEDULE_UPDATE0(t0, t1, x1, x2, x3, x4, KC4); KEYUPDATE_TEMP(t0, t1, &ks->data[8]); | ||
| 225 | KEYSCHEDULE_UPDATE1(t0, t1, x1, x2, x3, x4, KC5); KEYUPDATE_TEMP(t0, t1, &ks->data[10]); | ||
| 226 | KEYSCHEDULE_UPDATE0(t0, t1, x1, x2, x3, x4, KC6); KEYUPDATE_TEMP(t0, t1, &ks->data[12]); | ||
| 227 | KEYSCHEDULE_UPDATE1(t0, t1, x1, x2, x3, x4, KC7); KEYUPDATE_TEMP(t0, t1, &ks->data[14]); | ||
| 228 | KEYSCHEDULE_UPDATE0(t0, t1, x1, x2, x3, x4, KC8); KEYUPDATE_TEMP(t0, t1, &ks->data[16]); | ||
| 229 | KEYSCHEDULE_UPDATE1(t0, t1, x1, x2, x3, x4, KC9); KEYUPDATE_TEMP(t0, t1, &ks->data[18]); | ||
| 230 | KEYSCHEDULE_UPDATE0(t0, t1, x1, x2, x3, x4, KC10); KEYUPDATE_TEMP(t0, t1, &ks->data[20]); | ||
| 231 | KEYSCHEDULE_UPDATE1(t0, t1, x1, x2, x3, x4, KC11); KEYUPDATE_TEMP(t0, t1, &ks->data[22]); | ||
| 232 | KEYSCHEDULE_UPDATE0(t0, t1, x1, x2, x3, x4, KC12); KEYUPDATE_TEMP(t0, t1, &ks->data[24]); | ||
| 233 | KEYSCHEDULE_UPDATE1(t0, t1, x1, x2, x3, x4, KC13); KEYUPDATE_TEMP(t0, t1, &ks->data[26]); | ||
| 234 | KEYSCHEDULE_UPDATE0(t0, t1, x1, x2, x3, x4, KC14); KEYUPDATE_TEMP(t0, t1, &ks->data[28]); | ||
| 235 | KEYSCHEDULE_UPDATE1(t0, t1, x1, x2, x3, x4, KC15); KEYUPDATE_TEMP(t0, t1, &ks->data[30]); | ||
| 236 | #else | ||
| 237 | { | ||
| 238 | int i; | ||
| 239 | for (i=2; i<16; i+=2) { | ||
| 240 | KEYSCHEDULE_UPDATE0(t0, t1, x1, x2, x3, x4, KC[i]); | ||
| 241 | KEYUPDATE_TEMP(t0, t1, &ks->data[i*2]); | ||
| 242 | KEYSCHEDULE_UPDATE1(t0, t1, x1, x2, x3, x4, KC[i+1]); | ||
| 243 | KEYUPDATE_TEMP(t0, t1, &ks->data[i*2+2]); | ||
| 244 | } | ||
| 245 | } | ||
| 246 | #endif | ||
| 247 | } | ||
| 248 | |||
| 249 | void SEED_encrypt(const unsigned char s[SEED_BLOCK_SIZE], unsigned char d[SEED_BLOCK_SIZE], const SEED_KEY_SCHEDULE *ks) | ||
| 250 | { | ||
| 251 | seed_word x1, x2, x3, x4; | ||
| 252 | seed_word t0, t1; | ||
| 253 | |||
| 254 | char2word(s, x1); | ||
| 255 | char2word(s+4, x2); | ||
| 256 | char2word(s+8, x3); | ||
| 257 | char2word(s+12, x4); | ||
| 258 | |||
| 259 | #if !defined(OPENSSL_SMALL_FOOTPRINT) | ||
| 260 | E_SEED(t0, t1, x1, x2, x3, x4, 0); | ||
| 261 | E_SEED(t0, t1, x3, x4, x1, x2, 2); | ||
| 262 | E_SEED(t0, t1, x1, x2, x3, x4, 4); | ||
| 263 | E_SEED(t0, t1, x3, x4, x1, x2, 6); | ||
| 264 | E_SEED(t0, t1, x1, x2, x3, x4, 8); | ||
| 265 | E_SEED(t0, t1, x3, x4, x1, x2, 10); | ||
| 266 | E_SEED(t0, t1, x1, x2, x3, x4, 12); | ||
| 267 | E_SEED(t0, t1, x3, x4, x1, x2, 14); | ||
| 268 | E_SEED(t0, t1, x1, x2, x3, x4, 16); | ||
| 269 | E_SEED(t0, t1, x3, x4, x1, x2, 18); | ||
| 270 | E_SEED(t0, t1, x1, x2, x3, x4, 20); | ||
| 271 | E_SEED(t0, t1, x3, x4, x1, x2, 22); | ||
| 272 | E_SEED(t0, t1, x1, x2, x3, x4, 24); | ||
| 273 | E_SEED(t0, t1, x3, x4, x1, x2, 26); | ||
| 274 | E_SEED(t0, t1, x1, x2, x3, x4, 28); | ||
| 275 | E_SEED(t0, t1, x3, x4, x1, x2, 30); | ||
| 276 | #else | ||
| 277 | { | ||
| 278 | int i; | ||
| 279 | for (i=0;i<30;i+=4) { | ||
| 280 | E_SEED(t0,t1,x1,x2,x3,x4,i); | ||
| 281 | E_SEED(t0,t1,x3,x4,x1,x2,i+2); | ||
| 282 | } | ||
| 283 | } | ||
| 284 | #endif | ||
| 285 | |||
| 286 | word2char(x3, d); | ||
| 287 | word2char(x4, d+4); | ||
| 288 | word2char(x1, d+8); | ||
| 289 | word2char(x2, d+12); | ||
| 290 | } | ||
| 291 | |||
| 292 | void SEED_decrypt(const unsigned char s[SEED_BLOCK_SIZE], unsigned char d[SEED_BLOCK_SIZE], const SEED_KEY_SCHEDULE *ks) | ||
| 293 | { | ||
| 294 | seed_word x1, x2, x3, x4; | ||
| 295 | seed_word t0, t1; | ||
| 296 | |||
| 297 | char2word(s, x1); | ||
| 298 | char2word(s+4, x2); | ||
| 299 | char2word(s+8, x3); | ||
| 300 | char2word(s+12, x4); | ||
| 301 | |||
| 302 | #if !defined(OPENSSL_SMALL_FOOTPRINT) | ||
| 303 | E_SEED(t0, t1, x1, x2, x3, x4, 30); | ||
| 304 | E_SEED(t0, t1, x3, x4, x1, x2, 28); | ||
| 305 | E_SEED(t0, t1, x1, x2, x3, x4, 26); | ||
| 306 | E_SEED(t0, t1, x3, x4, x1, x2, 24); | ||
| 307 | E_SEED(t0, t1, x1, x2, x3, x4, 22); | ||
| 308 | E_SEED(t0, t1, x3, x4, x1, x2, 20); | ||
| 309 | E_SEED(t0, t1, x1, x2, x3, x4, 18); | ||
| 310 | E_SEED(t0, t1, x3, x4, x1, x2, 16); | ||
| 311 | E_SEED(t0, t1, x1, x2, x3, x4, 14); | ||
| 312 | E_SEED(t0, t1, x3, x4, x1, x2, 12); | ||
| 313 | E_SEED(t0, t1, x1, x2, x3, x4, 10); | ||
| 314 | E_SEED(t0, t1, x3, x4, x1, x2, 8); | ||
| 315 | E_SEED(t0, t1, x1, x2, x3, x4, 6); | ||
| 316 | E_SEED(t0, t1, x3, x4, x1, x2, 4); | ||
| 317 | E_SEED(t0, t1, x1, x2, x3, x4, 2); | ||
| 318 | E_SEED(t0, t1, x3, x4, x1, x2, 0); | ||
| 319 | #else | ||
| 320 | { | ||
| 321 | int i; | ||
| 322 | for (i=30; i>0; i-=4) { | ||
| 323 | E_SEED(t0, t1, x1, x2, x3, x4, i); | ||
| 324 | E_SEED(t0, t1, x3, x4, x1, x2, i-2); | ||
| 325 | |||
| 326 | } | ||
| 327 | } | ||
| 328 | #endif | ||
| 329 | |||
| 330 | word2char(x3, d); | ||
| 331 | word2char(x4, d+4); | ||
| 332 | word2char(x1, d+8); | ||
| 333 | word2char(x2, d+12); | ||
| 334 | } | ||
| 335 | |||
| 336 | #endif /* OPENSSL_NO_SEED */ | ||
diff --git a/src/lib/libcrypto/seed/seed.h b/src/lib/libcrypto/seed/seed.h deleted file mode 100644 index c50fdd3607..0000000000 --- a/src/lib/libcrypto/seed/seed.h +++ /dev/null | |||
| @@ -1,139 +0,0 @@ | |||
| 1 | /* | ||
| 2 | * Copyright (c) 2007 KISA(Korea Information Security Agency). All rights reserved. | ||
| 3 | * | ||
| 4 | * Redistribution and use in source and binary forms, with or without | ||
| 5 | * modification, are permitted provided that the following conditions | ||
| 6 | * are met: | ||
| 7 | * 1. Redistributions of source code must retain the above copyright | ||
| 8 | * notice, this list of conditions and the following disclaimer. | ||
| 9 | * 2. Neither the name of author nor the names of its contributors may | ||
| 10 | * be used to endorse or promote products derived from this software | ||
| 11 | * without specific prior written permission. | ||
| 12 | * | ||
| 13 | * THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND | ||
| 14 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
| 15 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
| 16 | * ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE | ||
| 17 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
| 18 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | ||
| 19 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
| 20 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
| 21 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||
| 22 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||
| 23 | * SUCH DAMAGE. | ||
| 24 | * | ||
| 25 | */ | ||
| 26 | /* ==================================================================== | ||
| 27 | * Copyright (c) 1998-2007 The OpenSSL Project. All rights reserved. | ||
| 28 | * | ||
| 29 | * Redistribution and use in source and binary forms, with or without | ||
| 30 | * modification, are permitted provided that the following conditions | ||
| 31 | * are met: | ||
| 32 | * | ||
| 33 | * 1. Redistributions of source code must retain the above copyright | ||
| 34 | * notice, this list of conditions and the following disclaimer. | ||
| 35 | * | ||
| 36 | * 2. Redistributions in binary form must reproduce the above copyright | ||
| 37 | * notice, this list of conditions and the following disclaimer in | ||
| 38 | * the documentation and/or other materials provided with the | ||
| 39 | * distribution. | ||
| 40 | * | ||
| 41 | * 3. All advertising materials mentioning features or use of this | ||
| 42 | * software must display the following acknowledgment: | ||
| 43 | * "This product includes software developed by the OpenSSL Project | ||
| 44 | * for use in the OpenSSL Toolkit. (http://www.openssl.org/)" | ||
| 45 | * | ||
| 46 | * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to | ||
| 47 | * endorse or promote products derived from this software without | ||
| 48 | * prior written permission. For written permission, please contact | ||
| 49 | * openssl-core@openssl.org. | ||
| 50 | * | ||
| 51 | * 5. Products derived from this software may not be called "OpenSSL" | ||
| 52 | * nor may "OpenSSL" appear in their names without prior written | ||
| 53 | * permission of the OpenSSL Project. | ||
| 54 | * | ||
| 55 | * 6. Redistributions of any form whatsoever must retain the following | ||
| 56 | * acknowledgment: | ||
| 57 | * "This product includes software developed by the OpenSSL Project | ||
| 58 | * for use in the OpenSSL Toolkit (http://www.openssl.org/)" | ||
| 59 | * | ||
| 60 | * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY | ||
| 61 | * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
| 62 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | ||
| 63 | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR | ||
| 64 | * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
| 65 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | ||
| 66 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
| 67 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
| 68 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | ||
| 69 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
| 70 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | ||
| 71 | * OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| 72 | * ==================================================================== | ||
| 73 | * | ||
| 74 | * This product includes cryptographic software written by Eric Young | ||
| 75 | * (eay@cryptsoft.com). This product includes software written by Tim | ||
| 76 | * Hudson (tjh@cryptsoft.com). | ||
| 77 | * | ||
| 78 | */ | ||
| 79 | |||
| 80 | |||
| 81 | #ifndef HEADER_SEED_H | ||
| 82 | #define HEADER_SEED_H | ||
| 83 | |||
| 84 | #include <openssl/opensslconf.h> | ||
| 85 | #include <openssl/e_os2.h> | ||
| 86 | #include <openssl/crypto.h> | ||
| 87 | |||
| 88 | #ifdef OPENSSL_NO_SEED | ||
| 89 | #error SEED is disabled. | ||
| 90 | #endif | ||
| 91 | |||
| 92 | #ifdef AES_LONG /* look whether we need 'long' to get 32 bits */ | ||
| 93 | # ifndef SEED_LONG | ||
| 94 | # define SEED_LONG 1 | ||
| 95 | # endif | ||
| 96 | #endif | ||
| 97 | |||
| 98 | #if !defined(NO_SYS_TYPES_H) | ||
| 99 | # include <sys/types.h> | ||
| 100 | #endif | ||
| 101 | |||
| 102 | #define SEED_BLOCK_SIZE 16 | ||
| 103 | #define SEED_KEY_LENGTH 16 | ||
| 104 | |||
| 105 | |||
| 106 | #ifdef __cplusplus | ||
| 107 | extern "C" { | ||
| 108 | #endif | ||
| 109 | |||
| 110 | |||
| 111 | typedef struct seed_key_st { | ||
| 112 | #ifdef SEED_LONG | ||
| 113 | unsigned long data[32]; | ||
| 114 | #else | ||
| 115 | unsigned int data[32]; | ||
| 116 | #endif | ||
| 117 | } SEED_KEY_SCHEDULE; | ||
| 118 | |||
| 119 | #ifdef OPENSSL_FIPS | ||
| 120 | void private_SEED_set_key(const unsigned char rawkey[SEED_KEY_LENGTH], SEED_KEY_SCHEDULE *ks); | ||
| 121 | #endif | ||
| 122 | void SEED_set_key(const unsigned char rawkey[SEED_KEY_LENGTH], SEED_KEY_SCHEDULE *ks); | ||
| 123 | |||
| 124 | void SEED_encrypt(const unsigned char s[SEED_BLOCK_SIZE], unsigned char d[SEED_BLOCK_SIZE], const SEED_KEY_SCHEDULE *ks); | ||
| 125 | void SEED_decrypt(const unsigned char s[SEED_BLOCK_SIZE], unsigned char d[SEED_BLOCK_SIZE], const SEED_KEY_SCHEDULE *ks); | ||
| 126 | |||
| 127 | void SEED_ecb_encrypt(const unsigned char *in, unsigned char *out, const SEED_KEY_SCHEDULE *ks, int enc); | ||
| 128 | void SEED_cbc_encrypt(const unsigned char *in, unsigned char *out, | ||
| 129 | size_t len, const SEED_KEY_SCHEDULE *ks, unsigned char ivec[SEED_BLOCK_SIZE], int enc); | ||
| 130 | void SEED_cfb128_encrypt(const unsigned char *in, unsigned char *out, | ||
| 131 | size_t len, const SEED_KEY_SCHEDULE *ks, unsigned char ivec[SEED_BLOCK_SIZE], int *num, int enc); | ||
| 132 | void SEED_ofb128_encrypt(const unsigned char *in, unsigned char *out, | ||
| 133 | size_t len, const SEED_KEY_SCHEDULE *ks, unsigned char ivec[SEED_BLOCK_SIZE], int *num); | ||
| 134 | |||
| 135 | #ifdef __cplusplus | ||
| 136 | } | ||
| 137 | #endif | ||
| 138 | |||
| 139 | #endif /* HEADER_SEED_H */ | ||
diff --git a/src/lib/libcrypto/seed/seed_cbc.c b/src/lib/libcrypto/seed/seed_cbc.c deleted file mode 100644 index 6c3f9b527a..0000000000 --- a/src/lib/libcrypto/seed/seed_cbc.c +++ /dev/null | |||
| @@ -1,63 +0,0 @@ | |||
| 1 | /* crypto/seed/seed_cbc.c -*- mode:C; c-file-style: "eay" -*- */ | ||
| 2 | /* ==================================================================== | ||
| 3 | * Copyright (c) 1998-2007 The OpenSSL Project. All rights reserved. | ||
| 4 | * | ||
| 5 | * Redistribution and use in source and binary forms, with or without | ||
| 6 | * modification, are permitted provided that the following conditions | ||
| 7 | * are met: | ||
| 8 | * | ||
| 9 | * 1. Redistributions of source code must retain the above copyright | ||
| 10 | * notice, this list of conditions and the following disclaimer. | ||
| 11 | * | ||
| 12 | * 2. Redistributions in binary form must reproduce the above copyright | ||
| 13 | * notice, this list of conditions and the following disclaimer in | ||
| 14 | * the documentation and/or other materials provided with the | ||
| 15 | * distribution. | ||
| 16 | * | ||
| 17 | * 3. All advertising materials mentioning features or use of this | ||
| 18 | * software must display the following acknowledgment: | ||
| 19 | * "This product includes software developed by the OpenSSL Project | ||
| 20 | * for use in the OpenSSL Toolkit. (http://www.openssl.org/)" | ||
| 21 | * | ||
| 22 | * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to | ||
| 23 | * endorse or promote products derived from this software without | ||
| 24 | * prior written permission. For written permission, please contact | ||
| 25 | * openssl-core@openssl.org. | ||
| 26 | * | ||
| 27 | * 5. Products derived from this software may not be called "OpenSSL" | ||
| 28 | * nor may "OpenSSL" appear in their names without prior written | ||
| 29 | * permission of the OpenSSL Project. | ||
| 30 | * | ||
| 31 | * 6. Redistributions of any form whatsoever must retain the following | ||
| 32 | * acknowledgment: | ||
| 33 | * "This product includes software developed by the OpenSSL Project | ||
| 34 | * for use in the OpenSSL Toolkit (http://www.openssl.org/)" | ||
| 35 | * | ||
| 36 | * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY | ||
| 37 | * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
| 38 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | ||
| 39 | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR | ||
| 40 | * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
| 41 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | ||
| 42 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
| 43 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
| 44 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | ||
| 45 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
| 46 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | ||
| 47 | * OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| 48 | * ==================================================================== | ||
| 49 | * | ||
| 50 | */ | ||
| 51 | |||
| 52 | #include <openssl/seed.h> | ||
| 53 | #include <openssl/modes.h> | ||
| 54 | |||
| 55 | void SEED_cbc_encrypt(const unsigned char *in, unsigned char *out, | ||
| 56 | size_t len, const SEED_KEY_SCHEDULE *ks, | ||
| 57 | unsigned char ivec[SEED_BLOCK_SIZE], int enc) | ||
| 58 | { | ||
| 59 | if (enc) | ||
| 60 | CRYPTO_cbc128_encrypt(in,out,len,ks,ivec,(block128_f)SEED_encrypt); | ||
| 61 | else | ||
| 62 | CRYPTO_cbc128_decrypt(in,out,len,ks,ivec,(block128_f)SEED_decrypt); | ||
| 63 | } | ||
diff --git a/src/lib/libcrypto/seed/seed_cfb.c b/src/lib/libcrypto/seed/seed_cfb.c deleted file mode 100644 index 694597dd06..0000000000 --- a/src/lib/libcrypto/seed/seed_cfb.c +++ /dev/null | |||
| @@ -1,116 +0,0 @@ | |||
| 1 | /* crypto/seed/seed_cfb.c -*- mode:C; c-file-style: "eay" -*- */ | ||
| 2 | /* ==================================================================== | ||
| 3 | * Copyright (c) 1998-2007 The OpenSSL Project. All rights reserved. | ||
| 4 | * | ||
| 5 | * Redistribution and use in source and binary forms, with or without | ||
| 6 | * modification, are permitted provided that the following conditions | ||
| 7 | * are met: | ||
| 8 | * | ||
| 9 | * 1. Redistributions of source code must retain the above copyright | ||
| 10 | * notice, this list of conditions and the following disclaimer. | ||
| 11 | * | ||
| 12 | * 2. Redistributions in binary form must reproduce the above copyright | ||
| 13 | * notice, this list of conditions and the following disclaimer in | ||
| 14 | * the documentation and/or other materials provided with the | ||
| 15 | * distribution. | ||
| 16 | * | ||
| 17 | * 3. All advertising materials mentioning features or use of this | ||
| 18 | * software must display the following acknowledgment: | ||
| 19 | * "This product includes software developed by the OpenSSL Project | ||
| 20 | * for use in the OpenSSL Toolkit. (http://www.openssl.org/)" | ||
| 21 | * | ||
| 22 | * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to | ||
| 23 | * endorse or promote products derived from this software without | ||
| 24 | * prior written permission. For written permission, please contact | ||
| 25 | * openssl-core@openssl.org. | ||
| 26 | * | ||
| 27 | * 5. Products derived from this software may not be called "OpenSSL" | ||
| 28 | * nor may "OpenSSL" appear in their names without prior written | ||
| 29 | * permission of the OpenSSL Project. | ||
| 30 | * | ||
| 31 | * 6. Redistributions of any form whatsoever must retain the following | ||
| 32 | * acknowledgment: | ||
| 33 | * "This product includes software developed by the OpenSSL Project | ||
| 34 | * for use in the OpenSSL Toolkit (http://www.openssl.org/)" | ||
| 35 | * | ||
| 36 | * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY | ||
| 37 | * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
| 38 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | ||
| 39 | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR | ||
| 40 | * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
| 41 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | ||
| 42 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
| 43 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
| 44 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | ||
| 45 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
| 46 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | ||
| 47 | * OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| 48 | * ==================================================================== | ||
| 49 | * | ||
| 50 | */ | ||
| 51 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | ||
| 52 | * All rights reserved. | ||
| 53 | * | ||
| 54 | * This package is an SSL implementation written | ||
| 55 | * by Eric Young (eay@cryptsoft.com). | ||
| 56 | * The implementation was written so as to conform with Netscapes SSL. | ||
| 57 | * | ||
| 58 | * This library is free for commercial and non-commercial use as long as | ||
| 59 | * the following conditions are aheared to. The following conditions | ||
| 60 | * apply to all code found in this distribution, be it the RC4, RSA, | ||
| 61 | * lhash, DES, etc., code; not just the SSL code. The SSL documentation | ||
| 62 | * included with this distribution is covered by the same copyright terms | ||
| 63 | * except that the holder is Tim Hudson (tjh@cryptsoft.com). | ||
| 64 | * | ||
| 65 | * Copyright remains Eric Young's, and as such any Copyright notices in | ||
| 66 | * the code are not to be removed. | ||
| 67 | * If this package is used in a product, Eric Young should be given attribution | ||
| 68 | * as the author of the parts of the library used. | ||
| 69 | * This can be in the form of a textual message at program startup or | ||
| 70 | * in documentation (online or textual) provided with the package. | ||
| 71 | * | ||
| 72 | * Redistribution and use in source and binary forms, with or without | ||
| 73 | * modification, are permitted provided that the following conditions | ||
| 74 | * are met: | ||
| 75 | * 1. Redistributions of source code must retain the copyright | ||
| 76 | * notice, this list of conditions and the following disclaimer. | ||
| 77 | * 2. Redistributions in binary form must reproduce the above copyright | ||
| 78 | * notice, this list of conditions and the following disclaimer in the | ||
| 79 | * documentation and/or other materials provided with the distribution. | ||
| 80 | * 3. All advertising materials mentioning features or use of this software | ||
| 81 | * must display the following acknowledgement: | ||
| 82 | * "This product includes cryptographic software written by | ||
| 83 | * Eric Young (eay@cryptsoft.com)" | ||
| 84 | * The word 'cryptographic' can be left out if the rouines from the library | ||
| 85 | * being used are not cryptographic related :-). | ||
| 86 | * 4. If you include any Windows specific code (or a derivative thereof) from | ||
| 87 | * the apps directory (application code) you must include an acknowledgement: | ||
| 88 | * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" | ||
| 89 | * | ||
| 90 | * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND | ||
| 91 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
| 92 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
| 93 | * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE | ||
| 94 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
| 95 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | ||
| 96 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
| 97 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
| 98 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||
| 99 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||
| 100 | * SUCH DAMAGE. | ||
| 101 | * | ||
| 102 | * The licence and distribution terms for any publically available version or | ||
| 103 | * derivative of this code cannot be changed. i.e. this code cannot simply be | ||
| 104 | * copied and put under another distribution licence | ||
| 105 | * [including the GNU Public Licence.] | ||
| 106 | */ | ||
| 107 | |||
| 108 | #include <openssl/seed.h> | ||
| 109 | #include <openssl/modes.h> | ||
| 110 | |||
| 111 | void SEED_cfb128_encrypt(const unsigned char *in, unsigned char *out, | ||
| 112 | size_t len, const SEED_KEY_SCHEDULE *ks, | ||
| 113 | unsigned char ivec[SEED_BLOCK_SIZE], int *num, int enc) | ||
| 114 | { | ||
| 115 | CRYPTO_cfb128_encrypt(in,out,len,ks,ivec,num,enc,(block128_f)SEED_encrypt); | ||
| 116 | } | ||
diff --git a/src/lib/libcrypto/seed/seed_ecb.c b/src/lib/libcrypto/seed/seed_ecb.c deleted file mode 100644 index e63f5ae14e..0000000000 --- a/src/lib/libcrypto/seed/seed_ecb.c +++ /dev/null | |||
| @@ -1,60 +0,0 @@ | |||
| 1 | /* crypto/seed/seed_ecb.c -*- mode:C; c-file-style: "eay" -*- */ | ||
| 2 | /* ==================================================================== | ||
| 3 | * Copyright (c) 2007 The OpenSSL Project. All rights reserved. | ||
| 4 | * | ||
| 5 | * Redistribution and use in source and binary forms, with or without | ||
| 6 | * modification, are permitted provided that the following conditions | ||
| 7 | * are met: | ||
| 8 | * | ||
| 9 | * 1. Redistributions of source code must retain the above copyright | ||
| 10 | * notice, this list of conditions and the following disclaimer. | ||
| 11 | * | ||
| 12 | * 2. Redistributions in binary form must reproduce the above copyright | ||
| 13 | * notice, this list of conditions and the following disclaimer in | ||
| 14 | * the documentation and/or other materials provided with the | ||
| 15 | * distribution. | ||
| 16 | * | ||
| 17 | * 3. All advertising materials mentioning features or use of this | ||
| 18 | * software must display the following acknowledgment: | ||
| 19 | * "This product includes software developed by the OpenSSL Project | ||
| 20 | * for use in the OpenSSL Toolkit. (http://www.openssl.org/)" | ||
| 21 | * | ||
| 22 | * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to | ||
| 23 | * endorse or promote products derived from this software without | ||
| 24 | * prior written permission. For written permission, please contact | ||
| 25 | * openssl-core@openssl.org. | ||
| 26 | * | ||
| 27 | * 5. Products derived from this software may not be called "OpenSSL" | ||
| 28 | * nor may "OpenSSL" appear in their names without prior written | ||
| 29 | * permission of the OpenSSL Project. | ||
| 30 | * | ||
| 31 | * 6. Redistributions of any form whatsoever must retain the following | ||
| 32 | * acknowledgment: | ||
| 33 | * "This product includes software developed by the OpenSSL Project | ||
| 34 | * for use in the OpenSSL Toolkit (http://www.openssl.org/)" | ||
| 35 | * | ||
| 36 | * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY | ||
| 37 | * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
| 38 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | ||
| 39 | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR | ||
| 40 | * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
| 41 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | ||
| 42 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
| 43 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
| 44 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | ||
| 45 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
| 46 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | ||
| 47 | * OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| 48 | * ==================================================================== | ||
| 49 | * | ||
| 50 | */ | ||
| 51 | |||
| 52 | #include <openssl/seed.h> | ||
| 53 | |||
| 54 | void SEED_ecb_encrypt(const unsigned char *in, unsigned char *out, const SEED_KEY_SCHEDULE *ks, int enc) | ||
| 55 | { | ||
| 56 | if (enc) | ||
| 57 | SEED_encrypt(in, out, ks); | ||
| 58 | else | ||
| 59 | SEED_decrypt(in, out, ks); | ||
| 60 | } | ||
diff --git a/src/lib/libcrypto/seed/seed_locl.h b/src/lib/libcrypto/seed/seed_locl.h deleted file mode 100644 index fd456b6422..0000000000 --- a/src/lib/libcrypto/seed/seed_locl.h +++ /dev/null | |||
| @@ -1,116 +0,0 @@ | |||
| 1 | /* | ||
| 2 | * Copyright (c) 2007 KISA(Korea Information Security Agency). All rights reserved. | ||
| 3 | * | ||
| 4 | * Redistribution and use in source and binary forms, with or without | ||
| 5 | * modification, are permitted provided that the following conditions | ||
| 6 | * are met: | ||
| 7 | * 1. Redistributions of source code must retain the above copyright | ||
| 8 | * notice, this list of conditions and the following disclaimer. | ||
| 9 | * 2. Neither the name of author nor the names of its contributors may | ||
| 10 | * be used to endorse or promote products derived from this software | ||
| 11 | * without specific prior written permission. | ||
| 12 | * | ||
| 13 | * THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND | ||
| 14 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
| 15 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
| 16 | * ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE | ||
| 17 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
| 18 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | ||
| 19 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
| 20 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
| 21 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||
| 22 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||
| 23 | * SUCH DAMAGE. | ||
| 24 | * | ||
| 25 | */ | ||
| 26 | #ifndef HEADER_SEED_LOCL_H | ||
| 27 | #define HEADER_SEED_LOCL_H | ||
| 28 | |||
| 29 | #include "openssl/e_os2.h" | ||
| 30 | #include <openssl/seed.h> | ||
| 31 | |||
| 32 | |||
| 33 | #ifdef SEED_LONG /* need 32-bit type */ | ||
| 34 | typedef unsigned long seed_word; | ||
| 35 | #else | ||
| 36 | typedef unsigned int seed_word; | ||
| 37 | #endif | ||
| 38 | |||
| 39 | |||
| 40 | #ifdef __cplusplus | ||
| 41 | extern "C" { | ||
| 42 | #endif | ||
| 43 | |||
| 44 | #define G_FUNC(v) \ | ||
| 45 | SS[0][(unsigned char) (v) & 0xff] ^ SS[1][(unsigned char) ((v)>>8) & 0xff] ^ \ | ||
| 46 | SS[2][(unsigned char)((v)>>16) & 0xff] ^ SS[3][(unsigned char)((v)>>24) & 0xff] | ||
| 47 | |||
| 48 | #define char2word(c, i) \ | ||
| 49 | (i) = ((((seed_word)(c)[0]) << 24) | (((seed_word)(c)[1]) << 16) | (((seed_word)(c)[2]) << 8) | ((seed_word)(c)[3])) | ||
| 50 | |||
| 51 | #define word2char(l, c) \ | ||
| 52 | *((c)+0) = (unsigned char)((l)>>24) & 0xff; \ | ||
| 53 | *((c)+1) = (unsigned char)((l)>>16) & 0xff; \ | ||
| 54 | *((c)+2) = (unsigned char)((l)>> 8) & 0xff; \ | ||
| 55 | *((c)+3) = (unsigned char)((l)) & 0xff | ||
| 56 | |||
| 57 | #define KEYSCHEDULE_UPDATE0(T0, T1, X1, X2, X3, X4, KC) \ | ||
| 58 | (T0) = (X3); \ | ||
| 59 | (X3) = (((X3)<<8) ^ ((X4)>>24)) & 0xffffffff; \ | ||
| 60 | (X4) = (((X4)<<8) ^ ((T0)>>24)) & 0xffffffff; \ | ||
| 61 | (T0) = ((X1) + (X3) - (KC)) & 0xffffffff; \ | ||
| 62 | (T1) = ((X2) + (KC) - (X4)) & 0xffffffff | ||
| 63 | |||
| 64 | #define KEYSCHEDULE_UPDATE1(T0, T1, X1, X2, X3, X4, KC) \ | ||
| 65 | (T0) = (X1); \ | ||
| 66 | (X1) = (((X1)>>8) ^ ((X2)<<24)) & 0xffffffff; \ | ||
| 67 | (X2) = (((X2)>>8) ^ ((T0)<<24)) & 0xffffffff; \ | ||
| 68 | (T0) = ((X1) + (X3) - (KC)) & 0xffffffff; \ | ||
| 69 | (T1) = ((X2) + (KC) - (X4)) & 0xffffffff | ||
| 70 | |||
| 71 | #define KEYUPDATE_TEMP(T0, T1, K) \ | ||
| 72 | (K)[0] = G_FUNC((T0)); \ | ||
| 73 | (K)[1] = G_FUNC((T1)) | ||
| 74 | |||
| 75 | #define XOR_SEEDBLOCK(DST, SRC) \ | ||
| 76 | ((DST))[0] ^= ((SRC))[0]; \ | ||
| 77 | ((DST))[1] ^= ((SRC))[1]; \ | ||
| 78 | ((DST))[2] ^= ((SRC))[2]; \ | ||
| 79 | ((DST))[3] ^= ((SRC))[3] | ||
| 80 | |||
| 81 | #define MOV_SEEDBLOCK(DST, SRC) \ | ||
| 82 | ((DST))[0] = ((SRC))[0]; \ | ||
| 83 | ((DST))[1] = ((SRC))[1]; \ | ||
| 84 | ((DST))[2] = ((SRC))[2]; \ | ||
| 85 | ((DST))[3] = ((SRC))[3] | ||
| 86 | |||
| 87 | # define CHAR2WORD(C, I) \ | ||
| 88 | char2word((C), (I)[0]); \ | ||
| 89 | char2word((C+4), (I)[1]); \ | ||
| 90 | char2word((C+8), (I)[2]); \ | ||
| 91 | char2word((C+12), (I)[3]) | ||
| 92 | |||
| 93 | # define WORD2CHAR(I, C) \ | ||
| 94 | word2char((I)[0], (C)); \ | ||
| 95 | word2char((I)[1], (C+4)); \ | ||
| 96 | word2char((I)[2], (C+8)); \ | ||
| 97 | word2char((I)[3], (C+12)) | ||
| 98 | |||
| 99 | # define E_SEED(T0, T1, X1, X2, X3, X4, rbase) \ | ||
| 100 | (T0) = (X3) ^ (ks->data)[(rbase)]; \ | ||
| 101 | (T1) = (X4) ^ (ks->data)[(rbase)+1]; \ | ||
| 102 | (T1) ^= (T0); \ | ||
| 103 | (T1) = G_FUNC((T1)); \ | ||
| 104 | (T0) = ((T0) + (T1)) & 0xffffffff; \ | ||
| 105 | (T0) = G_FUNC((T0)); \ | ||
| 106 | (T1) = ((T1) + (T0)) & 0xffffffff; \ | ||
| 107 | (T1) = G_FUNC((T1)); \ | ||
| 108 | (T0) = ((T0) + (T1)) & 0xffffffff; \ | ||
| 109 | (X1) ^= (T0); \ | ||
| 110 | (X2) ^= (T1) | ||
| 111 | |||
| 112 | #ifdef __cplusplus | ||
| 113 | } | ||
| 114 | #endif | ||
| 115 | |||
| 116 | #endif /* HEADER_SEED_LOCL_H */ | ||
diff --git a/src/lib/libcrypto/seed/seed_ofb.c b/src/lib/libcrypto/seed/seed_ofb.c deleted file mode 100644 index 3c8ba33bb9..0000000000 --- a/src/lib/libcrypto/seed/seed_ofb.c +++ /dev/null | |||
| @@ -1,116 +0,0 @@ | |||
| 1 | /* crypto/seed/seed_ofb.c -*- mode:C; c-file-style: "eay" -*- */ | ||
| 2 | /* ==================================================================== | ||
| 3 | * Copyright (c) 1998-2007 The OpenSSL Project. All rights reserved. | ||
| 4 | * | ||
| 5 | * Redistribution and use in source and binary forms, with or without | ||
| 6 | * modification, are permitted provided that the following conditions | ||
| 7 | * are met: | ||
| 8 | * | ||
| 9 | * 1. Redistributions of source code must retain the above copyright | ||
| 10 | * notice, this list of conditions and the following disclaimer. | ||
| 11 | * | ||
| 12 | * 2. Redistributions in binary form must reproduce the above copyright | ||
| 13 | * notice, this list of conditions and the following disclaimer in | ||
| 14 | * the documentation and/or other materials provided with the | ||
| 15 | * distribution. | ||
| 16 | * | ||
| 17 | * 3. All advertising materials mentioning features or use of this | ||
| 18 | * software must display the following acknowledgment: | ||
| 19 | * "This product includes software developed by the OpenSSL Project | ||
| 20 | * for use in the OpenSSL Toolkit. (http://www.openssl.org/)" | ||
| 21 | * | ||
| 22 | * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to | ||
| 23 | * endorse or promote products derived from this software without | ||
| 24 | * prior written permission. For written permission, please contact | ||
| 25 | * openssl-core@openssl.org. | ||
| 26 | * | ||
| 27 | * 5. Products derived from this software may not be called "OpenSSL" | ||
| 28 | * nor may "OpenSSL" appear in their names without prior written | ||
| 29 | * permission of the OpenSSL Project. | ||
| 30 | * | ||
| 31 | * 6. Redistributions of any form whatsoever must retain the following | ||
| 32 | * acknowledgment: | ||
| 33 | * "This product includes software developed by the OpenSSL Project | ||
| 34 | * for use in the OpenSSL Toolkit (http://www.openssl.org/)" | ||
| 35 | * | ||
| 36 | * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY | ||
| 37 | * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
| 38 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | ||
| 39 | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR | ||
| 40 | * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
| 41 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | ||
| 42 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
| 43 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
| 44 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | ||
| 45 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
| 46 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | ||
| 47 | * OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| 48 | * ==================================================================== | ||
| 49 | * | ||
| 50 | */ | ||
| 51 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | ||
| 52 | * All rights reserved. | ||
| 53 | * | ||
| 54 | * This package is an SSL implementation written | ||
| 55 | * by Eric Young (eay@cryptsoft.com). | ||
| 56 | * The implementation was written so as to conform with Netscapes SSL. | ||
| 57 | * | ||
| 58 | * This library is free for commercial and non-commercial use as long as | ||
| 59 | * the following conditions are aheared to. The following conditions | ||
| 60 | * apply to all code found in this distribution, be it the RC4, RSA, | ||
| 61 | * lhash, DES, etc., code; not just the SSL code. The SSL documentation | ||
| 62 | * included with this distribution is covered by the same copyright terms | ||
| 63 | * except that the holder is Tim Hudson (tjh@cryptsoft.com). | ||
| 64 | * | ||
| 65 | * Copyright remains Eric Young's, and as such any Copyright notices in | ||
| 66 | * the code are not to be removed. | ||
| 67 | * If this package is used in a product, Eric Young should be given attribution | ||
| 68 | * as the author of the parts of the library used. | ||
| 69 | * This can be in the form of a textual message at program startup or | ||
| 70 | * in documentation (online or textual) provided with the package. | ||
| 71 | * | ||
| 72 | * Redistribution and use in source and binary forms, with or without | ||
| 73 | * modification, are permitted provided that the following conditions | ||
| 74 | * are met: | ||
| 75 | * 1. Redistributions of source code must retain the copyright | ||
| 76 | * notice, this list of conditions and the following disclaimer. | ||
| 77 | * 2. Redistributions in binary form must reproduce the above copyright | ||
| 78 | * notice, this list of conditions and the following disclaimer in the | ||
| 79 | * documentation and/or other materials provided with the distribution. | ||
| 80 | * 3. All advertising materials mentioning features or use of this software | ||
| 81 | * must display the following acknowledgement: | ||
| 82 | * "This product includes cryptographic software written by | ||
| 83 | * Eric Young (eay@cryptsoft.com)" | ||
| 84 | * The word 'cryptographic' can be left out if the rouines from the library | ||
| 85 | * being used are not cryptographic related :-). | ||
| 86 | * 4. If you include any Windows specific code (or a derivative thereof) from | ||
| 87 | * the apps directory (application code) you must include an acknowledgement: | ||
| 88 | * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" | ||
| 89 | * | ||
| 90 | * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND | ||
| 91 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
| 92 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
| 93 | * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE | ||
| 94 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
| 95 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | ||
| 96 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
| 97 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
| 98 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||
| 99 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||
| 100 | * SUCH DAMAGE. | ||
| 101 | * | ||
| 102 | * The licence and distribution terms for any publically available version or | ||
| 103 | * derivative of this code cannot be changed. i.e. this code cannot simply be | ||
| 104 | * copied and put under another distribution licence | ||
| 105 | * [including the GNU Public Licence.] | ||
| 106 | */ | ||
| 107 | |||
| 108 | #include <openssl/seed.h> | ||
| 109 | #include <openssl/modes.h> | ||
| 110 | |||
| 111 | void SEED_ofb128_encrypt(const unsigned char *in, unsigned char *out, | ||
| 112 | size_t len, const SEED_KEY_SCHEDULE *ks, | ||
| 113 | unsigned char ivec[SEED_BLOCK_SIZE], int *num) | ||
| 114 | { | ||
| 115 | CRYPTO_ofb128_encrypt(in,out,len,ks,ivec,num,(block128_f)SEED_encrypt); | ||
| 116 | } | ||
diff --git a/src/lib/libcrypto/sha/Makefile.ssl b/src/lib/libcrypto/sha/Makefile.ssl deleted file mode 100644 index 4ba201c787..0000000000 --- a/src/lib/libcrypto/sha/Makefile.ssl +++ /dev/null | |||
| @@ -1,116 +0,0 @@ | |||
| 1 | # | ||
| 2 | # SSLeay/crypto/sha/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= sha | ||
| 6 | TOP= ../.. | ||
| 7 | CC= cc | ||
| 8 | CPP= $(CC) -E | ||
| 9 | INCLUDES= | ||
| 10 | CFLAG=-g | ||
| 11 | INSTALL_PREFIX= | ||
| 12 | OPENSSLDIR= /usr/local/ssl | ||
| 13 | INSTALLTOP=/usr/local/ssl | ||
| 14 | MAKE= make -f Makefile.ssl | ||
| 15 | MAKEDEPPROG= makedepend | ||
| 16 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
| 17 | MAKEFILE= Makefile.ssl | ||
| 18 | AR= ar r | ||
| 19 | |||
| 20 | SHA1_ASM_OBJ= | ||
| 21 | |||
| 22 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 23 | ASFLAGS= $(INCLUDES) $(ASFLAG) | ||
| 24 | |||
| 25 | GENERAL=Makefile | ||
| 26 | TEST=shatest.c sha1test.c | ||
| 27 | APPS= | ||
| 28 | |||
| 29 | LIB=$(TOP)/libcrypto.a | ||
| 30 | LIBSRC=sha_dgst.c sha1dgst.c sha_one.c sha1_one.c | ||
| 31 | LIBOBJ=sha_dgst.o sha1dgst.o sha_one.o sha1_one.o $(SHA1_ASM_OBJ) | ||
| 32 | |||
| 33 | SRC= $(LIBSRC) | ||
| 34 | |||
| 35 | EXHEADER= sha.h | ||
| 36 | HEADER= sha_locl.h $(EXHEADER) | ||
| 37 | |||
| 38 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
| 39 | |||
| 40 | top: | ||
| 41 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
| 42 | |||
| 43 | all: lib | ||
| 44 | |||
| 45 | lib: $(LIBOBJ) | ||
| 46 | $(AR) $(LIB) $(LIBOBJ) | ||
| 47 | $(RANLIB) $(LIB) || echo Never mind. | ||
| 48 | @touch lib | ||
| 49 | |||
| 50 | # elf | ||
| 51 | asm/sx86-elf.s: asm/sha1-586.pl ../perlasm/x86asm.pl | ||
| 52 | (cd asm; $(PERL) sha1-586.pl elf $(CFLAGS) $(PROCESSOR) > sx86-elf.s) | ||
| 53 | |||
| 54 | # a.out | ||
| 55 | asm/sx86-out.o: asm/sx86unix.cpp | ||
| 56 | $(CPP) -DOUT asm/sx86unix.cpp | as -o asm/sx86-out.o | ||
| 57 | |||
| 58 | # bsdi | ||
| 59 | asm/sx86bsdi.o: asm/sx86unix.cpp | ||
| 60 | $(CPP) -DBSDI asm/sx86unix.cpp | sed 's/ :/:/' | as -o asm/sx86bsdi.o | ||
| 61 | |||
| 62 | asm/sx86unix.cpp: asm/sha1-586.pl ../perlasm/x86asm.pl | ||
| 63 | (cd asm; $(PERL) sha1-586.pl cpp $(PROCESSOR) >sx86unix.cpp) | ||
| 64 | |||
| 65 | files: | ||
| 66 | $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
| 67 | |||
| 68 | links: | ||
| 69 | @sh $(TOP)/util/point.sh Makefile.ssl Makefile | ||
| 70 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | ||
| 71 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | ||
| 72 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | ||
| 73 | |||
| 74 | install: | ||
| 75 | @for i in $(EXHEADER) ; \ | ||
| 76 | do \ | ||
| 77 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 78 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
| 79 | done; | ||
| 80 | |||
| 81 | tags: | ||
| 82 | ctags $(SRC) | ||
| 83 | |||
| 84 | tests: | ||
| 85 | |||
| 86 | lint: | ||
| 87 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
| 88 | |||
| 89 | depend: | ||
| 90 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) | ||
| 91 | |||
| 92 | dclean: | ||
| 93 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 94 | mv -f Makefile.new $(MAKEFILE) | ||
| 95 | |||
| 96 | clean: | ||
| 97 | rm -f asm/sx86unix.cpp asm/*-elf.* *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff asm/*.o | ||
| 98 | |||
| 99 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 100 | |||
| 101 | sha1_one.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 102 | sha1_one.o: ../../include/openssl/opensslconf.h | ||
| 103 | sha1_one.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 104 | sha1_one.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 105 | sha1_one.o: ../../include/openssl/symhacks.h sha1_one.c | ||
| 106 | sha1dgst.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h | ||
| 107 | sha1dgst.o: ../../include/openssl/opensslv.h ../../include/openssl/sha.h | ||
| 108 | sha1dgst.o: ../md32_common.h sha1dgst.c sha_locl.h | ||
| 109 | sha_dgst.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h | ||
| 110 | sha_dgst.o: ../../include/openssl/opensslv.h ../../include/openssl/sha.h | ||
| 111 | sha_dgst.o: ../md32_common.h sha_dgst.c sha_locl.h | ||
| 112 | sha_one.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 113 | sha_one.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 114 | sha_one.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 115 | sha_one.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 116 | sha_one.o: sha_one.c | ||
diff --git a/src/lib/libcrypto/sha/sha256t.c b/src/lib/libcrypto/sha/sha256t.c deleted file mode 100644 index 6b4a3bd001..0000000000 --- a/src/lib/libcrypto/sha/sha256t.c +++ /dev/null | |||
| @@ -1,147 +0,0 @@ | |||
| 1 | /* crypto/sha/sha256t.c */ | ||
| 2 | /* ==================================================================== | ||
| 3 | * Copyright (c) 2004 The OpenSSL Project. All rights reserved. | ||
| 4 | * ==================================================================== | ||
| 5 | */ | ||
| 6 | #include <stdio.h> | ||
| 7 | #include <string.h> | ||
| 8 | #include <stdlib.h> | ||
| 9 | |||
| 10 | #include <openssl/sha.h> | ||
| 11 | #include <openssl/evp.h> | ||
| 12 | |||
| 13 | #if defined(OPENSSL_NO_SHA) || defined(OPENSSL_NO_SHA256) | ||
| 14 | int main(int argc, char *argv[]) | ||
| 15 | { | ||
| 16 | printf("No SHA256 support\n"); | ||
| 17 | return(0); | ||
| 18 | } | ||
| 19 | #else | ||
| 20 | |||
| 21 | unsigned char app_b1[SHA256_DIGEST_LENGTH] = { | ||
| 22 | 0xba,0x78,0x16,0xbf,0x8f,0x01,0xcf,0xea, | ||
| 23 | 0x41,0x41,0x40,0xde,0x5d,0xae,0x22,0x23, | ||
| 24 | 0xb0,0x03,0x61,0xa3,0x96,0x17,0x7a,0x9c, | ||
| 25 | 0xb4,0x10,0xff,0x61,0xf2,0x00,0x15,0xad }; | ||
| 26 | |||
| 27 | unsigned char app_b2[SHA256_DIGEST_LENGTH] = { | ||
| 28 | 0x24,0x8d,0x6a,0x61,0xd2,0x06,0x38,0xb8, | ||
| 29 | 0xe5,0xc0,0x26,0x93,0x0c,0x3e,0x60,0x39, | ||
| 30 | 0xa3,0x3c,0xe4,0x59,0x64,0xff,0x21,0x67, | ||
| 31 | 0xf6,0xec,0xed,0xd4,0x19,0xdb,0x06,0xc1 }; | ||
| 32 | |||
| 33 | unsigned char app_b3[SHA256_DIGEST_LENGTH] = { | ||
| 34 | 0xcd,0xc7,0x6e,0x5c,0x99,0x14,0xfb,0x92, | ||
| 35 | 0x81,0xa1,0xc7,0xe2,0x84,0xd7,0x3e,0x67, | ||
| 36 | 0xf1,0x80,0x9a,0x48,0xa4,0x97,0x20,0x0e, | ||
| 37 | 0x04,0x6d,0x39,0xcc,0xc7,0x11,0x2c,0xd0 }; | ||
| 38 | |||
| 39 | unsigned char addenum_1[SHA224_DIGEST_LENGTH] = { | ||
| 40 | 0x23,0x09,0x7d,0x22,0x34,0x05,0xd8,0x22, | ||
| 41 | 0x86,0x42,0xa4,0x77,0xbd,0xa2,0x55,0xb3, | ||
| 42 | 0x2a,0xad,0xbc,0xe4,0xbd,0xa0,0xb3,0xf7, | ||
| 43 | 0xe3,0x6c,0x9d,0xa7 }; | ||
| 44 | |||
| 45 | unsigned char addenum_2[SHA224_DIGEST_LENGTH] = { | ||
| 46 | 0x75,0x38,0x8b,0x16,0x51,0x27,0x76,0xcc, | ||
| 47 | 0x5d,0xba,0x5d,0xa1,0xfd,0x89,0x01,0x50, | ||
| 48 | 0xb0,0xc6,0x45,0x5c,0xb4,0xf5,0x8b,0x19, | ||
| 49 | 0x52,0x52,0x25,0x25 }; | ||
| 50 | |||
| 51 | unsigned char addenum_3[SHA224_DIGEST_LENGTH] = { | ||
| 52 | 0x20,0x79,0x46,0x55,0x98,0x0c,0x91,0xd8, | ||
| 53 | 0xbb,0xb4,0xc1,0xea,0x97,0x61,0x8a,0x4b, | ||
| 54 | 0xf0,0x3f,0x42,0x58,0x19,0x48,0xb2,0xee, | ||
| 55 | 0x4e,0xe7,0xad,0x67 }; | ||
| 56 | |||
| 57 | int main (int argc,char **argv) | ||
| 58 | { unsigned char md[SHA256_DIGEST_LENGTH]; | ||
| 59 | int i; | ||
| 60 | EVP_MD_CTX evp; | ||
| 61 | |||
| 62 | fprintf(stdout,"Testing SHA-256 "); | ||
| 63 | |||
| 64 | EVP_Digest ("abc",3,md,NULL,EVP_sha256(),NULL); | ||
| 65 | if (memcmp(md,app_b1,sizeof(app_b1))) | ||
| 66 | { fflush(stdout); | ||
| 67 | fprintf(stderr,"\nTEST 1 of 3 failed.\n"); | ||
| 68 | return 1; | ||
| 69 | } | ||
| 70 | else | ||
| 71 | fprintf(stdout,"."); fflush(stdout); | ||
| 72 | |||
| 73 | EVP_Digest ("abcdbcde""cdefdefg""efghfghi""ghijhijk" | ||
| 74 | "ijkljklm""klmnlmno""mnopnopq",56,md,NULL,EVP_sha256(),NULL); | ||
| 75 | if (memcmp(md,app_b2,sizeof(app_b2))) | ||
| 76 | { fflush(stdout); | ||
| 77 | fprintf(stderr,"\nTEST 2 of 3 failed.\n"); | ||
| 78 | return 1; | ||
| 79 | } | ||
| 80 | else | ||
| 81 | fprintf(stdout,"."); fflush(stdout); | ||
| 82 | |||
| 83 | EVP_MD_CTX_init (&evp); | ||
| 84 | EVP_DigestInit_ex (&evp,EVP_sha256(),NULL); | ||
| 85 | for (i=0;i<1000000;i+=160) | ||
| 86 | EVP_DigestUpdate (&evp, "aaaaaaaa""aaaaaaaa""aaaaaaaa""aaaaaaaa" | ||
| 87 | "aaaaaaaa""aaaaaaaa""aaaaaaaa""aaaaaaaa" | ||
| 88 | "aaaaaaaa""aaaaaaaa""aaaaaaaa""aaaaaaaa" | ||
| 89 | "aaaaaaaa""aaaaaaaa""aaaaaaaa""aaaaaaaa" | ||
| 90 | "aaaaaaaa""aaaaaaaa""aaaaaaaa""aaaaaaaa", | ||
| 91 | (1000000-i)<160?1000000-i:160); | ||
| 92 | EVP_DigestFinal_ex (&evp,md,NULL); | ||
| 93 | EVP_MD_CTX_cleanup (&evp); | ||
| 94 | |||
| 95 | if (memcmp(md,app_b3,sizeof(app_b3))) | ||
| 96 | { fflush(stdout); | ||
| 97 | fprintf(stderr,"\nTEST 3 of 3 failed.\n"); | ||
| 98 | return 1; | ||
| 99 | } | ||
| 100 | else | ||
| 101 | fprintf(stdout,"."); fflush(stdout); | ||
| 102 | |||
| 103 | fprintf(stdout," passed.\n"); fflush(stdout); | ||
| 104 | |||
| 105 | fprintf(stdout,"Testing SHA-224 "); | ||
| 106 | |||
| 107 | EVP_Digest ("abc",3,md,NULL,EVP_sha224(),NULL); | ||
| 108 | if (memcmp(md,addenum_1,sizeof(addenum_1))) | ||
| 109 | { fflush(stdout); | ||
| 110 | fprintf(stderr,"\nTEST 1 of 3 failed.\n"); | ||
| 111 | return 1; | ||
| 112 | } | ||
| 113 | else | ||
| 114 | fprintf(stdout,"."); fflush(stdout); | ||
| 115 | |||
| 116 | EVP_Digest ("abcdbcde""cdefdefg""efghfghi""ghijhijk" | ||
| 117 | "ijkljklm""klmnlmno""mnopnopq",56,md,NULL,EVP_sha224(),NULL); | ||
| 118 | if (memcmp(md,addenum_2,sizeof(addenum_2))) | ||
| 119 | { fflush(stdout); | ||
| 120 | fprintf(stderr,"\nTEST 2 of 3 failed.\n"); | ||
| 121 | return 1; | ||
| 122 | } | ||
| 123 | else | ||
| 124 | fprintf(stdout,"."); fflush(stdout); | ||
| 125 | |||
| 126 | EVP_MD_CTX_init (&evp); | ||
| 127 | EVP_DigestInit_ex (&evp,EVP_sha224(),NULL); | ||
| 128 | for (i=0;i<1000000;i+=64) | ||
| 129 | EVP_DigestUpdate (&evp, "aaaaaaaa""aaaaaaaa""aaaaaaaa""aaaaaaaa" | ||
| 130 | "aaaaaaaa""aaaaaaaa""aaaaaaaa""aaaaaaaa", | ||
| 131 | (1000000-i)<64?1000000-i:64); | ||
| 132 | EVP_DigestFinal_ex (&evp,md,NULL); | ||
| 133 | EVP_MD_CTX_cleanup (&evp); | ||
| 134 | |||
| 135 | if (memcmp(md,addenum_3,sizeof(addenum_3))) | ||
| 136 | { fflush(stdout); | ||
| 137 | fprintf(stderr,"\nTEST 3 of 3 failed.\n"); | ||
| 138 | return 1; | ||
| 139 | } | ||
| 140 | else | ||
| 141 | fprintf(stdout,"."); fflush(stdout); | ||
| 142 | |||
| 143 | fprintf(stdout," passed.\n"); fflush(stdout); | ||
| 144 | |||
| 145 | return 0; | ||
| 146 | } | ||
| 147 | #endif | ||
diff --git a/src/lib/libcrypto/sha/sha512t.c b/src/lib/libcrypto/sha/sha512t.c deleted file mode 100644 index 210041d435..0000000000 --- a/src/lib/libcrypto/sha/sha512t.c +++ /dev/null | |||
| @@ -1,184 +0,0 @@ | |||
| 1 | /* crypto/sha/sha512t.c */ | ||
| 2 | /* ==================================================================== | ||
| 3 | * Copyright (c) 2004 The OpenSSL Project. All rights reserved. | ||
| 4 | * ==================================================================== | ||
| 5 | */ | ||
| 6 | #include <stdio.h> | ||
| 7 | #include <string.h> | ||
| 8 | #include <stdlib.h> | ||
| 9 | |||
| 10 | #include <openssl/sha.h> | ||
| 11 | #include <openssl/evp.h> | ||
| 12 | #include <openssl/crypto.h> | ||
| 13 | |||
| 14 | #if defined(OPENSSL_NO_SHA) || defined(OPENSSL_NO_SHA512) | ||
| 15 | int main(int argc, char *argv[]) | ||
| 16 | { | ||
| 17 | printf("No SHA512 support\n"); | ||
| 18 | return(0); | ||
| 19 | } | ||
| 20 | #else | ||
| 21 | |||
| 22 | unsigned char app_c1[SHA512_DIGEST_LENGTH] = { | ||
| 23 | 0xdd,0xaf,0x35,0xa1,0x93,0x61,0x7a,0xba, | ||
| 24 | 0xcc,0x41,0x73,0x49,0xae,0x20,0x41,0x31, | ||
| 25 | 0x12,0xe6,0xfa,0x4e,0x89,0xa9,0x7e,0xa2, | ||
| 26 | 0x0a,0x9e,0xee,0xe6,0x4b,0x55,0xd3,0x9a, | ||
| 27 | 0x21,0x92,0x99,0x2a,0x27,0x4f,0xc1,0xa8, | ||
| 28 | 0x36,0xba,0x3c,0x23,0xa3,0xfe,0xeb,0xbd, | ||
| 29 | 0x45,0x4d,0x44,0x23,0x64,0x3c,0xe8,0x0e, | ||
| 30 | 0x2a,0x9a,0xc9,0x4f,0xa5,0x4c,0xa4,0x9f }; | ||
| 31 | |||
| 32 | unsigned char app_c2[SHA512_DIGEST_LENGTH] = { | ||
| 33 | 0x8e,0x95,0x9b,0x75,0xda,0xe3,0x13,0xda, | ||
| 34 | 0x8c,0xf4,0xf7,0x28,0x14,0xfc,0x14,0x3f, | ||
| 35 | 0x8f,0x77,0x79,0xc6,0xeb,0x9f,0x7f,0xa1, | ||
| 36 | 0x72,0x99,0xae,0xad,0xb6,0x88,0x90,0x18, | ||
| 37 | 0x50,0x1d,0x28,0x9e,0x49,0x00,0xf7,0xe4, | ||
| 38 | 0x33,0x1b,0x99,0xde,0xc4,0xb5,0x43,0x3a, | ||
| 39 | 0xc7,0xd3,0x29,0xee,0xb6,0xdd,0x26,0x54, | ||
| 40 | 0x5e,0x96,0xe5,0x5b,0x87,0x4b,0xe9,0x09 }; | ||
| 41 | |||
| 42 | unsigned char app_c3[SHA512_DIGEST_LENGTH] = { | ||
| 43 | 0xe7,0x18,0x48,0x3d,0x0c,0xe7,0x69,0x64, | ||
| 44 | 0x4e,0x2e,0x42,0xc7,0xbc,0x15,0xb4,0x63, | ||
| 45 | 0x8e,0x1f,0x98,0xb1,0x3b,0x20,0x44,0x28, | ||
| 46 | 0x56,0x32,0xa8,0x03,0xaf,0xa9,0x73,0xeb, | ||
| 47 | 0xde,0x0f,0xf2,0x44,0x87,0x7e,0xa6,0x0a, | ||
| 48 | 0x4c,0xb0,0x43,0x2c,0xe5,0x77,0xc3,0x1b, | ||
| 49 | 0xeb,0x00,0x9c,0x5c,0x2c,0x49,0xaa,0x2e, | ||
| 50 | 0x4e,0xad,0xb2,0x17,0xad,0x8c,0xc0,0x9b }; | ||
| 51 | |||
| 52 | unsigned char app_d1[SHA384_DIGEST_LENGTH] = { | ||
| 53 | 0xcb,0x00,0x75,0x3f,0x45,0xa3,0x5e,0x8b, | ||
| 54 | 0xb5,0xa0,0x3d,0x69,0x9a,0xc6,0x50,0x07, | ||
| 55 | 0x27,0x2c,0x32,0xab,0x0e,0xde,0xd1,0x63, | ||
| 56 | 0x1a,0x8b,0x60,0x5a,0x43,0xff,0x5b,0xed, | ||
| 57 | 0x80,0x86,0x07,0x2b,0xa1,0xe7,0xcc,0x23, | ||
| 58 | 0x58,0xba,0xec,0xa1,0x34,0xc8,0x25,0xa7 }; | ||
| 59 | |||
| 60 | unsigned char app_d2[SHA384_DIGEST_LENGTH] = { | ||
| 61 | 0x09,0x33,0x0c,0x33,0xf7,0x11,0x47,0xe8, | ||
| 62 | 0x3d,0x19,0x2f,0xc7,0x82,0xcd,0x1b,0x47, | ||
| 63 | 0x53,0x11,0x1b,0x17,0x3b,0x3b,0x05,0xd2, | ||
| 64 | 0x2f,0xa0,0x80,0x86,0xe3,0xb0,0xf7,0x12, | ||
| 65 | 0xfc,0xc7,0xc7,0x1a,0x55,0x7e,0x2d,0xb9, | ||
| 66 | 0x66,0xc3,0xe9,0xfa,0x91,0x74,0x60,0x39 }; | ||
| 67 | |||
| 68 | unsigned char app_d3[SHA384_DIGEST_LENGTH] = { | ||
| 69 | 0x9d,0x0e,0x18,0x09,0x71,0x64,0x74,0xcb, | ||
| 70 | 0x08,0x6e,0x83,0x4e,0x31,0x0a,0x4a,0x1c, | ||
| 71 | 0xed,0x14,0x9e,0x9c,0x00,0xf2,0x48,0x52, | ||
| 72 | 0x79,0x72,0xce,0xc5,0x70,0x4c,0x2a,0x5b, | ||
| 73 | 0x07,0xb8,0xb3,0xdc,0x38,0xec,0xc4,0xeb, | ||
| 74 | 0xae,0x97,0xdd,0xd8,0x7f,0x3d,0x89,0x85 }; | ||
| 75 | |||
| 76 | int main (int argc,char **argv) | ||
| 77 | { unsigned char md[SHA512_DIGEST_LENGTH]; | ||
| 78 | int i; | ||
| 79 | EVP_MD_CTX evp; | ||
| 80 | |||
| 81 | #ifdef OPENSSL_IA32_SSE2 | ||
| 82 | /* Alternative to this is to call OpenSSL_add_all_algorithms... | ||
| 83 | * The below code is retained exclusively for debugging purposes. */ | ||
| 84 | { char *env; | ||
| 85 | |||
| 86 | if ((env=getenv("OPENSSL_ia32cap"))) | ||
| 87 | OPENSSL_ia32cap = strtoul (env,NULL,0); | ||
| 88 | } | ||
| 89 | #endif | ||
| 90 | |||
| 91 | fprintf(stdout,"Testing SHA-512 "); | ||
| 92 | |||
| 93 | EVP_Digest ("abc",3,md,NULL,EVP_sha512(),NULL); | ||
| 94 | if (memcmp(md,app_c1,sizeof(app_c1))) | ||
| 95 | { fflush(stdout); | ||
| 96 | fprintf(stderr,"\nTEST 1 of 3 failed.\n"); | ||
| 97 | return 1; | ||
| 98 | } | ||
| 99 | else | ||
| 100 | fprintf(stdout,"."); fflush(stdout); | ||
| 101 | |||
| 102 | EVP_Digest ("abcdefgh""bcdefghi""cdefghij""defghijk" | ||
| 103 | "efghijkl""fghijklm""ghijklmn""hijklmno" | ||
| 104 | "ijklmnop""jklmnopq""klmnopqr""lmnopqrs" | ||
| 105 | "mnopqrst""nopqrstu",112,md,NULL,EVP_sha512(),NULL); | ||
| 106 | if (memcmp(md,app_c2,sizeof(app_c2))) | ||
| 107 | { fflush(stdout); | ||
| 108 | fprintf(stderr,"\nTEST 2 of 3 failed.\n"); | ||
| 109 | return 1; | ||
| 110 | } | ||
| 111 | else | ||
| 112 | fprintf(stdout,"."); fflush(stdout); | ||
| 113 | |||
| 114 | EVP_MD_CTX_init (&evp); | ||
| 115 | EVP_DigestInit_ex (&evp,EVP_sha512(),NULL); | ||
| 116 | for (i=0;i<1000000;i+=288) | ||
| 117 | EVP_DigestUpdate (&evp, "aaaaaaaa""aaaaaaaa""aaaaaaaa""aaaaaaaa" | ||
| 118 | "aaaaaaaa""aaaaaaaa""aaaaaaaa""aaaaaaaa" | ||
| 119 | "aaaaaaaa""aaaaaaaa""aaaaaaaa""aaaaaaaa" | ||
| 120 | "aaaaaaaa""aaaaaaaa""aaaaaaaa""aaaaaaaa" | ||
| 121 | "aaaaaaaa""aaaaaaaa""aaaaaaaa""aaaaaaaa" | ||
| 122 | "aaaaaaaa""aaaaaaaa""aaaaaaaa""aaaaaaaa" | ||
| 123 | "aaaaaaaa""aaaaaaaa""aaaaaaaa""aaaaaaaa" | ||
| 124 | "aaaaaaaa""aaaaaaaa""aaaaaaaa""aaaaaaaa" | ||
| 125 | "aaaaaaaa""aaaaaaaa""aaaaaaaa""aaaaaaaa", | ||
| 126 | (1000000-i)<288?1000000-i:288); | ||
| 127 | EVP_DigestFinal_ex (&evp,md,NULL); | ||
| 128 | EVP_MD_CTX_cleanup (&evp); | ||
| 129 | |||
| 130 | if (memcmp(md,app_c3,sizeof(app_c3))) | ||
| 131 | { fflush(stdout); | ||
| 132 | fprintf(stderr,"\nTEST 3 of 3 failed.\n"); | ||
| 133 | return 1; | ||
| 134 | } | ||
| 135 | else | ||
| 136 | fprintf(stdout,"."); fflush(stdout); | ||
| 137 | |||
| 138 | fprintf(stdout," passed.\n"); fflush(stdout); | ||
| 139 | |||
| 140 | fprintf(stdout,"Testing SHA-384 "); | ||
| 141 | |||
| 142 | EVP_Digest ("abc",3,md,NULL,EVP_sha384(),NULL); | ||
| 143 | if (memcmp(md,app_d1,sizeof(app_d1))) | ||
| 144 | { fflush(stdout); | ||
| 145 | fprintf(stderr,"\nTEST 1 of 3 failed.\n"); | ||
| 146 | return 1; | ||
| 147 | } | ||
| 148 | else | ||
| 149 | fprintf(stdout,"."); fflush(stdout); | ||
| 150 | |||
| 151 | EVP_Digest ("abcdefgh""bcdefghi""cdefghij""defghijk" | ||
| 152 | "efghijkl""fghijklm""ghijklmn""hijklmno" | ||
| 153 | "ijklmnop""jklmnopq""klmnopqr""lmnopqrs" | ||
| 154 | "mnopqrst""nopqrstu",112,md,NULL,EVP_sha384(),NULL); | ||
| 155 | if (memcmp(md,app_d2,sizeof(app_d2))) | ||
| 156 | { fflush(stdout); | ||
| 157 | fprintf(stderr,"\nTEST 2 of 3 failed.\n"); | ||
| 158 | return 1; | ||
| 159 | } | ||
| 160 | else | ||
| 161 | fprintf(stdout,"."); fflush(stdout); | ||
| 162 | |||
| 163 | EVP_MD_CTX_init (&evp); | ||
| 164 | EVP_DigestInit_ex (&evp,EVP_sha384(),NULL); | ||
| 165 | for (i=0;i<1000000;i+=64) | ||
| 166 | EVP_DigestUpdate (&evp, "aaaaaaaa""aaaaaaaa""aaaaaaaa""aaaaaaaa" | ||
| 167 | "aaaaaaaa""aaaaaaaa""aaaaaaaa""aaaaaaaa", | ||
| 168 | (1000000-i)<64?1000000-i:64); | ||
| 169 | EVP_DigestFinal_ex (&evp,md,NULL); | ||
| 170 | EVP_MD_CTX_cleanup (&evp); | ||
| 171 | |||
| 172 | if (memcmp(md,app_d3,sizeof(app_d3))) | ||
| 173 | { fflush(stdout); | ||
| 174 | fprintf(stderr,"\nTEST 3 of 3 failed.\n"); | ||
| 175 | return 1; | ||
| 176 | } | ||
| 177 | else | ||
| 178 | fprintf(stdout,"."); fflush(stdout); | ||
| 179 | |||
| 180 | fprintf(stdout," passed.\n"); fflush(stdout); | ||
| 181 | |||
| 182 | return 0; | ||
| 183 | } | ||
| 184 | #endif | ||
diff --git a/src/lib/libcrypto/srp/Makefile b/src/lib/libcrypto/srp/Makefile deleted file mode 100644 index 41859d46fa..0000000000 --- a/src/lib/libcrypto/srp/Makefile +++ /dev/null | |||
| @@ -1,98 +0,0 @@ | |||
| 1 | DIR= srp | ||
| 2 | TOP= ../.. | ||
| 3 | CC= cc | ||
| 4 | INCLUDES= -I.. -I$(TOP) -I../../include | ||
| 5 | CFLAG=-g | ||
| 6 | INSTALL_PREFIX= | ||
| 7 | OPENSSLDIR= /usr/local/ssl | ||
| 8 | INSTALLTOP=/usr/local/ssl | ||
| 9 | MAKE= make -f Makefile.ssl | ||
| 10 | MAKEDEPPROG= makedepend | ||
| 11 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
| 12 | MAKEFILE= Makefile.ssl | ||
| 13 | AR= ar r | ||
| 14 | |||
| 15 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 16 | |||
| 17 | GENERAL=Makefile | ||
| 18 | TEST=srptest.c | ||
| 19 | APPS= | ||
| 20 | |||
| 21 | LIB=$(TOP)/libcrypto.a | ||
| 22 | LIBSRC=srp_lib.c srp_vfy.c | ||
| 23 | LIBOBJ=srp_lib.o srp_vfy.o | ||
| 24 | |||
| 25 | SRC= $(LIBSRC) | ||
| 26 | |||
| 27 | EXHEADER= srp.h | ||
| 28 | HEADER= $(EXHEADER) | ||
| 29 | |||
| 30 | top: | ||
| 31 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
| 32 | |||
| 33 | all: lib | ||
| 34 | |||
| 35 | lib: $(LIBOBJ) | ||
| 36 | $(AR) $(LIB) $(LIBOBJ) | ||
| 37 | $(RANLIB) $(LIB) || echo Never mind. | ||
| 38 | @touch lib | ||
| 39 | |||
| 40 | links: | ||
| 41 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | ||
| 42 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | ||
| 43 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | ||
| 44 | |||
| 45 | install: | ||
| 46 | @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile... | ||
| 47 | @headerlist="$(EXHEADER)"; for i in $$headerlist ; \ | ||
| 48 | do \ | ||
| 49 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 50 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
| 51 | done; | ||
| 52 | |||
| 53 | tags: | ||
| 54 | ctags $(SRC) | ||
| 55 | |||
| 56 | tests: | ||
| 57 | |||
| 58 | srptest: top srptest.c $(LIB) | ||
| 59 | $(CC) $(CFLAGS) -Wall -Werror -g -o srptest srptest.c $(LIB) | ||
| 60 | |||
| 61 | lint: | ||
| 62 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
| 63 | |||
| 64 | depend: | ||
| 65 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) | ||
| 66 | |||
| 67 | dclean: | ||
| 68 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 69 | mv -f Makefile.new $(MAKEFILE) | ||
| 70 | |||
| 71 | clean: | ||
| 72 | rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
| 73 | |||
| 74 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 75 | |||
| 76 | srp_lib.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 77 | srp_lib.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 78 | srp_lib.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 79 | srp_lib.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 80 | srp_lib.o: ../../include/openssl/evp.h ../../include/openssl/lhash.h | ||
| 81 | srp_lib.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 82 | srp_lib.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 83 | srp_lib.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h | ||
| 84 | srp_lib.o: ../../include/openssl/sha.h ../../include/openssl/srp.h | ||
| 85 | srp_lib.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 86 | srp_lib.o: ../cryptlib.h srp_grps.h srp_lcl.h srp_lib.c | ||
| 87 | srp_vfy.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 88 | srp_vfy.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 89 | srp_vfy.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 90 | srp_vfy.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 91 | srp_vfy.o: ../../include/openssl/evp.h ../../include/openssl/lhash.h | ||
| 92 | srp_vfy.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 93 | srp_vfy.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 94 | srp_vfy.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h | ||
| 95 | srp_vfy.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 96 | srp_vfy.o: ../../include/openssl/srp.h ../../include/openssl/stack.h | ||
| 97 | srp_vfy.o: ../../include/openssl/symhacks.h ../../include/openssl/txt_db.h | ||
| 98 | srp_vfy.o: ../cryptlib.h srp_lcl.h srp_vfy.c | ||
diff --git a/src/lib/libcrypto/srp/srp.h b/src/lib/libcrypto/srp/srp.h deleted file mode 100644 index 7ec7825cad..0000000000 --- a/src/lib/libcrypto/srp/srp.h +++ /dev/null | |||
| @@ -1,172 +0,0 @@ | |||
| 1 | /* crypto/srp/srp.h */ | ||
| 2 | /* Written by Christophe Renou (christophe.renou@edelweb.fr) with | ||
| 3 | * the precious help of Peter Sylvester (peter.sylvester@edelweb.fr) | ||
| 4 | * for the EdelKey project and contributed to the OpenSSL project 2004. | ||
| 5 | */ | ||
| 6 | /* ==================================================================== | ||
| 7 | * Copyright (c) 2004 The OpenSSL Project. All rights reserved. | ||
| 8 | * | ||
| 9 | * Redistribution and use in source and binary forms, with or without | ||
| 10 | * modification, are permitted provided that the following conditions | ||
| 11 | * are met: | ||
| 12 | * | ||
| 13 | * 1. Redistributions of source code must retain the above copyright | ||
| 14 | * notice, this list of conditions and the following disclaimer. | ||
| 15 | * | ||
| 16 | * 2. Redistributions in binary form must reproduce the above copyright | ||
| 17 | * notice, this list of conditions and the following disclaimer in | ||
| 18 | * the documentation and/or other materials provided with the | ||
| 19 | * distribution. | ||
| 20 | * | ||
| 21 | * 3. All advertising materials mentioning features or use of this | ||
| 22 | * software must display the following acknowledgment: | ||
| 23 | * "This product includes software developed by the OpenSSL Project | ||
| 24 | * for use in the OpenSSL Toolkit. (http://www.OpenSSL.org/)" | ||
| 25 | * | ||
| 26 | * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to | ||
| 27 | * endorse or promote products derived from this software without | ||
| 28 | * prior written permission. For written permission, please contact | ||
| 29 | * licensing@OpenSSL.org. | ||
| 30 | * | ||
| 31 | * 5. Products derived from this software may not be called "OpenSSL" | ||
| 32 | * nor may "OpenSSL" appear in their names without prior written | ||
| 33 | * permission of the OpenSSL Project. | ||
| 34 | * | ||
| 35 | * 6. Redistributions of any form whatsoever must retain the following | ||
| 36 | * acknowledgment: | ||
| 37 | * "This product includes software developed by the OpenSSL Project | ||
| 38 | * for use in the OpenSSL Toolkit (http://www.OpenSSL.org/)" | ||
| 39 | * | ||
| 40 | * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY | ||
| 41 | * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
| 42 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | ||
| 43 | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR | ||
| 44 | * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
| 45 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | ||
| 46 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
| 47 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
| 48 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | ||
| 49 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
| 50 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | ||
| 51 | * OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| 52 | * ==================================================================== | ||
| 53 | * | ||
| 54 | * This product includes cryptographic software written by Eric Young | ||
| 55 | * (eay@cryptsoft.com). This product includes software written by Tim | ||
| 56 | * Hudson (tjh@cryptsoft.com). | ||
| 57 | * | ||
| 58 | */ | ||
| 59 | #ifndef __SRP_H__ | ||
| 60 | #define __SRP_H__ | ||
| 61 | |||
| 62 | #ifndef OPENSSL_NO_SRP | ||
| 63 | |||
| 64 | #include <stdio.h> | ||
| 65 | #include <string.h> | ||
| 66 | |||
| 67 | #ifdef __cplusplus | ||
| 68 | extern "C" { | ||
| 69 | #endif | ||
| 70 | |||
| 71 | #include <openssl/safestack.h> | ||
| 72 | #include <openssl/bn.h> | ||
| 73 | #include <openssl/crypto.h> | ||
| 74 | |||
| 75 | typedef struct SRP_gN_cache_st | ||
| 76 | { | ||
| 77 | char *b64_bn; | ||
| 78 | BIGNUM *bn; | ||
| 79 | } SRP_gN_cache; | ||
| 80 | |||
| 81 | |||
| 82 | DECLARE_STACK_OF(SRP_gN_cache) | ||
| 83 | |||
| 84 | typedef struct SRP_user_pwd_st | ||
| 85 | { | ||
| 86 | char *id; | ||
| 87 | BIGNUM *s; | ||
| 88 | BIGNUM *v; | ||
| 89 | const BIGNUM *g; | ||
| 90 | const BIGNUM *N; | ||
| 91 | char *info; | ||
| 92 | } SRP_user_pwd; | ||
| 93 | |||
| 94 | DECLARE_STACK_OF(SRP_user_pwd) | ||
| 95 | |||
| 96 | typedef struct SRP_VBASE_st | ||
| 97 | { | ||
| 98 | STACK_OF(SRP_user_pwd) *users_pwd; | ||
| 99 | STACK_OF(SRP_gN_cache) *gN_cache; | ||
| 100 | /* to simulate a user */ | ||
| 101 | char *seed_key; | ||
| 102 | BIGNUM *default_g; | ||
| 103 | BIGNUM *default_N; | ||
| 104 | } SRP_VBASE; | ||
| 105 | |||
| 106 | |||
| 107 | /*Structure interne pour retenir les couples N et g*/ | ||
| 108 | typedef struct SRP_gN_st | ||
| 109 | { | ||
| 110 | char *id; | ||
| 111 | BIGNUM *g; | ||
| 112 | BIGNUM *N; | ||
| 113 | } SRP_gN; | ||
| 114 | |||
| 115 | DECLARE_STACK_OF(SRP_gN) | ||
| 116 | |||
| 117 | SRP_VBASE *SRP_VBASE_new(char *seed_key); | ||
| 118 | int SRP_VBASE_free(SRP_VBASE *vb); | ||
| 119 | int SRP_VBASE_init(SRP_VBASE *vb, char * verifier_file); | ||
| 120 | SRP_user_pwd *SRP_VBASE_get_by_user(SRP_VBASE *vb, char *username); | ||
| 121 | char *SRP_create_verifier(const char *user, const char *pass, char **salt, | ||
| 122 | char **verifier, const char *N, const char *g); | ||
| 123 | int SRP_create_verifier_BN(const char *user, const char *pass, BIGNUM **salt, BIGNUM **verifier, BIGNUM *N, BIGNUM *g); | ||
| 124 | |||
| 125 | |||
| 126 | #define SRP_NO_ERROR 0 | ||
| 127 | #define SRP_ERR_VBASE_INCOMPLETE_FILE 1 | ||
| 128 | #define SRP_ERR_VBASE_BN_LIB 2 | ||
| 129 | #define SRP_ERR_OPEN_FILE 3 | ||
| 130 | #define SRP_ERR_MEMORY 4 | ||
| 131 | |||
| 132 | #define DB_srptype 0 | ||
| 133 | #define DB_srpverifier 1 | ||
| 134 | #define DB_srpsalt 2 | ||
| 135 | #define DB_srpid 3 | ||
| 136 | #define DB_srpgN 4 | ||
| 137 | #define DB_srpinfo 5 | ||
| 138 | #undef DB_NUMBER | ||
| 139 | #define DB_NUMBER 6 | ||
| 140 | |||
| 141 | #define DB_SRP_INDEX 'I' | ||
| 142 | #define DB_SRP_VALID 'V' | ||
| 143 | #define DB_SRP_REVOKED 'R' | ||
| 144 | #define DB_SRP_MODIF 'v' | ||
| 145 | |||
| 146 | |||
| 147 | /* see srp.c */ | ||
| 148 | char * SRP_check_known_gN_param(BIGNUM* g, BIGNUM* N); | ||
| 149 | SRP_gN *SRP_get_default_gN(const char * id) ; | ||
| 150 | |||
| 151 | /* server side .... */ | ||
| 152 | BIGNUM *SRP_Calc_server_key(BIGNUM *A, BIGNUM *v, BIGNUM *u, BIGNUM *b, BIGNUM *N); | ||
| 153 | BIGNUM *SRP_Calc_B(BIGNUM *b, BIGNUM *N, BIGNUM *g, BIGNUM *v); | ||
| 154 | int SRP_Verify_A_mod_N(BIGNUM *A, BIGNUM *N); | ||
| 155 | BIGNUM *SRP_Calc_u(BIGNUM *A, BIGNUM *B, BIGNUM *N) ; | ||
| 156 | |||
| 157 | |||
| 158 | |||
| 159 | /* client side .... */ | ||
| 160 | BIGNUM *SRP_Calc_x(BIGNUM *s, const char *user, const char *pass); | ||
| 161 | BIGNUM *SRP_Calc_A(BIGNUM *a, BIGNUM *N, BIGNUM *g); | ||
| 162 | BIGNUM *SRP_Calc_client_key(BIGNUM *N, BIGNUM *B, BIGNUM *g, BIGNUM *x, BIGNUM *a, BIGNUM *u); | ||
| 163 | int SRP_Verify_B_mod_N(BIGNUM *B, BIGNUM *N); | ||
| 164 | |||
| 165 | #define SRP_MINIMAL_N 1024 | ||
| 166 | |||
| 167 | #ifdef __cplusplus | ||
| 168 | } | ||
| 169 | #endif | ||
| 170 | |||
| 171 | #endif | ||
| 172 | #endif | ||
diff --git a/src/lib/libcrypto/srp/srp_grps.h b/src/lib/libcrypto/srp/srp_grps.h deleted file mode 100644 index 8e3c35e3f5..0000000000 --- a/src/lib/libcrypto/srp/srp_grps.h +++ /dev/null | |||
| @@ -1,517 +0,0 @@ | |||
| 1 | /* start of generated data */ | ||
| 2 | |||
| 3 | static BN_ULONG bn_group_1024_value[] = { | ||
| 4 | bn_pack4(0x9FC6,0x1D2F,0xC0EB,0x06E3), | ||
| 5 | bn_pack4(0xFD51,0x38FE,0x8376,0x435B), | ||
| 6 | bn_pack4(0x2FD4,0xCBF4,0x976E,0xAA9A), | ||
| 7 | bn_pack4(0x68ED,0xBC3C,0x0572,0x6CC0), | ||
| 8 | bn_pack4(0xC529,0xF566,0x660E,0x57EC), | ||
| 9 | bn_pack4(0x8255,0x9B29,0x7BCF,0x1885), | ||
| 10 | bn_pack4(0xCE8E,0xF4AD,0x69B1,0x5D49), | ||
| 11 | bn_pack4(0x5DC7,0xD7B4,0x6154,0xD6B6), | ||
| 12 | bn_pack4(0x8E49,0x5C1D,0x6089,0xDAD1), | ||
| 13 | bn_pack4(0xE0D5,0xD8E2,0x50B9,0x8BE4), | ||
| 14 | bn_pack4(0x383B,0x4813,0xD692,0xC6E0), | ||
| 15 | bn_pack4(0xD674,0xDF74,0x96EA,0x81D3), | ||
| 16 | bn_pack4(0x9EA2,0x314C,0x9C25,0x6576), | ||
| 17 | bn_pack4(0x6072,0x6187,0x75FF,0x3C0B), | ||
| 18 | bn_pack4(0x9C33,0xF80A,0xFA8F,0xC5E8), | ||
| 19 | bn_pack4(0xEEAF,0x0AB9,0xADB3,0x8DD6) | ||
| 20 | }; | ||
| 21 | static BIGNUM bn_group_1024 = { | ||
| 22 | bn_group_1024_value, | ||
| 23 | (sizeof bn_group_1024_value)/sizeof(BN_ULONG), | ||
| 24 | (sizeof bn_group_1024_value)/sizeof(BN_ULONG), | ||
| 25 | 0, | ||
| 26 | BN_FLG_STATIC_DATA | ||
| 27 | }; | ||
| 28 | |||
| 29 | static BN_ULONG bn_group_1536_value[] = { | ||
| 30 | bn_pack4(0xCF76,0xE3FE,0xD135,0xF9BB), | ||
| 31 | bn_pack4(0x1518,0x0F93,0x499A,0x234D), | ||
| 32 | bn_pack4(0x8CE7,0xA28C,0x2442,0xC6F3), | ||
| 33 | bn_pack4(0x5A02,0x1FFF,0x5E91,0x479E), | ||
| 34 | bn_pack4(0x7F8A,0x2FE9,0xB8B5,0x292E), | ||
| 35 | bn_pack4(0x837C,0x264A,0xE3A9,0xBEB8), | ||
| 36 | bn_pack4(0xE442,0x734A,0xF7CC,0xB7AE), | ||
| 37 | bn_pack4(0x6577,0x2E43,0x7D6C,0x7F8C), | ||
| 38 | bn_pack4(0xDB2F,0xD53D,0x24B7,0xC486), | ||
| 39 | bn_pack4(0x6EDF,0x0195,0x3934,0x9627), | ||
| 40 | bn_pack4(0x158B,0xFD3E,0x2B9C,0x8CF5), | ||
| 41 | bn_pack4(0x764E,0x3F4B,0x53DD,0x9DA1), | ||
| 42 | bn_pack4(0x4754,0x8381,0xDBC5,0xB1FC), | ||
| 43 | bn_pack4(0x9B60,0x9E0B,0xE3BA,0xB63D), | ||
| 44 | bn_pack4(0x8134,0xB1C8,0xB979,0x8914), | ||
| 45 | bn_pack4(0xDF02,0x8A7C,0xEC67,0xF0D0), | ||
| 46 | bn_pack4(0x80B6,0x55BB,0x9A22,0xE8DC), | ||
| 47 | bn_pack4(0x1558,0x903B,0xA0D0,0xF843), | ||
| 48 | bn_pack4(0x51C6,0xA94B,0xE460,0x7A29), | ||
| 49 | bn_pack4(0x5F4F,0x5F55,0x6E27,0xCBDE), | ||
| 50 | bn_pack4(0xBEEE,0xA961,0x4B19,0xCC4D), | ||
| 51 | bn_pack4(0xDBA5,0x1DF4,0x99AC,0x4C80), | ||
| 52 | bn_pack4(0xB1F1,0x2A86,0x17A4,0x7BBB), | ||
| 53 | bn_pack4(0x9DEF,0x3CAF,0xB939,0x277A) | ||
| 54 | }; | ||
| 55 | static BIGNUM bn_group_1536 = { | ||
| 56 | bn_group_1536_value, | ||
| 57 | (sizeof bn_group_1536_value)/sizeof(BN_ULONG), | ||
| 58 | (sizeof bn_group_1536_value)/sizeof(BN_ULONG), | ||
| 59 | 0, | ||
| 60 | BN_FLG_STATIC_DATA | ||
| 61 | }; | ||
| 62 | |||
| 63 | static BN_ULONG bn_group_2048_value[] = { | ||
| 64 | bn_pack4(0x0FA7,0x111F,0x9E4A,0xFF73), | ||
| 65 | bn_pack4(0x9B65,0xE372,0xFCD6,0x8EF2), | ||
| 66 | bn_pack4(0x35DE,0x236D,0x525F,0x5475), | ||
| 67 | bn_pack4(0x94B5,0xC803,0xD89F,0x7AE4), | ||
| 68 | bn_pack4(0x71AE,0x35F8,0xE9DB,0xFBB6), | ||
| 69 | bn_pack4(0x2A56,0x98F3,0xA8D0,0xC382), | ||
| 70 | bn_pack4(0x9CCC,0x041C,0x7BC3,0x08D8), | ||
| 71 | bn_pack4(0xAF87,0x4E73,0x03CE,0x5329), | ||
| 72 | bn_pack4(0x6160,0x2790,0x04E5,0x7AE6), | ||
| 73 | bn_pack4(0x032C,0xFBDB,0xF52F,0xB378), | ||
| 74 | bn_pack4(0x5EA7,0x7A27,0x75D2,0xECFA), | ||
| 75 | bn_pack4(0x5445,0x23B5,0x24B0,0xD57D), | ||
| 76 | bn_pack4(0x5B9D,0x32E6,0x88F8,0x7748), | ||
| 77 | bn_pack4(0xF1D2,0xB907,0x8717,0x461A), | ||
| 78 | bn_pack4(0x76BD,0x207A,0x436C,0x6481), | ||
| 79 | bn_pack4(0xCA97,0xB43A,0x23FB,0x8016), | ||
| 80 | bn_pack4(0x1D28,0x1E44,0x6B14,0x773B), | ||
| 81 | bn_pack4(0x7359,0xD041,0xD5C3,0x3EA7), | ||
| 82 | bn_pack4(0xA80D,0x740A,0xDBF4,0xFF74), | ||
| 83 | bn_pack4(0x55F9,0x7993,0xEC97,0x5EEA), | ||
| 84 | bn_pack4(0x2918,0xA996,0x2F0B,0x93B8), | ||
| 85 | bn_pack4(0x661A,0x05FB,0xD5FA,0xAAE8), | ||
| 86 | bn_pack4(0xCF60,0x9517,0x9A16,0x3AB3), | ||
| 87 | bn_pack4(0xE808,0x3969,0xEDB7,0x67B0), | ||
| 88 | bn_pack4(0xCD7F,0x48A9,0xDA04,0xFD50), | ||
| 89 | bn_pack4(0xD523,0x12AB,0x4B03,0x310D), | ||
| 90 | bn_pack4(0x8193,0xE075,0x7767,0xA13D), | ||
| 91 | bn_pack4(0xA373,0x29CB,0xB4A0,0x99ED), | ||
| 92 | bn_pack4(0xFC31,0x9294,0x3DB5,0x6050), | ||
| 93 | bn_pack4(0xAF72,0xB665,0x1987,0xEE07), | ||
| 94 | bn_pack4(0xF166,0xDE5E,0x1389,0x582F), | ||
| 95 | bn_pack4(0xAC6B,0xDB41,0x324A,0x9A9B) | ||
| 96 | }; | ||
| 97 | static BIGNUM bn_group_2048 = { | ||
| 98 | bn_group_2048_value, | ||
| 99 | (sizeof bn_group_2048_value)/sizeof(BN_ULONG), | ||
| 100 | (sizeof bn_group_2048_value)/sizeof(BN_ULONG), | ||
| 101 | 0, | ||
| 102 | BN_FLG_STATIC_DATA | ||
| 103 | }; | ||
| 104 | |||
| 105 | static BN_ULONG bn_group_3072_value[] = { | ||
| 106 | bn_pack4(0xFFFF,0xFFFF,0xFFFF,0xFFFF), | ||
| 107 | bn_pack4(0x4B82,0xD120,0xA93A,0xD2CA), | ||
| 108 | bn_pack4(0x43DB,0x5BFC,0xE0FD,0x108E), | ||
| 109 | bn_pack4(0x08E2,0x4FA0,0x74E5,0xAB31), | ||
| 110 | bn_pack4(0x7709,0x88C0,0xBAD9,0x46E2), | ||
| 111 | bn_pack4(0xBBE1,0x1757,0x7A61,0x5D6C), | ||
| 112 | bn_pack4(0x521F,0x2B18,0x177B,0x200C), | ||
| 113 | bn_pack4(0xD876,0x0273,0x3EC8,0x6A64), | ||
| 114 | bn_pack4(0xF12F,0xFA06,0xD98A,0x0864), | ||
| 115 | bn_pack4(0xCEE3,0xD226,0x1AD2,0xEE6B), | ||
| 116 | bn_pack4(0x1E8C,0x94E0,0x4A25,0x619D), | ||
| 117 | bn_pack4(0xABF5,0xAE8C,0xDB09,0x33D7), | ||
| 118 | bn_pack4(0xB397,0x0F85,0xA6E1,0xE4C7), | ||
| 119 | bn_pack4(0x8AEA,0x7157,0x5D06,0x0C7D), | ||
| 120 | bn_pack4(0xECFB,0x8504,0x58DB,0xEF0A), | ||
| 121 | bn_pack4(0xA855,0x21AB,0xDF1C,0xBA64), | ||
| 122 | bn_pack4(0xAD33,0x170D,0x0450,0x7A33), | ||
| 123 | bn_pack4(0x1572,0x8E5A,0x8AAA,0xC42D), | ||
| 124 | bn_pack4(0x15D2,0x2618,0x98FA,0x0510), | ||
| 125 | bn_pack4(0x3995,0x497C,0xEA95,0x6AE5), | ||
| 126 | bn_pack4(0xDE2B,0xCBF6,0x9558,0x1718), | ||
| 127 | bn_pack4(0xB5C5,0x5DF0,0x6F4C,0x52C9), | ||
| 128 | bn_pack4(0x9B27,0x83A2,0xEC07,0xA28F), | ||
| 129 | bn_pack4(0xE39E,0x772C,0x180E,0x8603), | ||
| 130 | bn_pack4(0x3290,0x5E46,0x2E36,0xCE3B), | ||
| 131 | bn_pack4(0xF174,0x6C08,0xCA18,0x217C), | ||
| 132 | bn_pack4(0x670C,0x354E,0x4ABC,0x9804), | ||
| 133 | bn_pack4(0x9ED5,0x2907,0x7096,0x966D), | ||
| 134 | bn_pack4(0x1C62,0xF356,0x2085,0x52BB), | ||
| 135 | bn_pack4(0x8365,0x5D23,0xDCA3,0xAD96), | ||
| 136 | bn_pack4(0x6916,0x3FA8,0xFD24,0xCF5F), | ||
| 137 | bn_pack4(0x98DA,0x4836,0x1C55,0xD39A), | ||
| 138 | bn_pack4(0xC200,0x7CB8,0xA163,0xBF05), | ||
| 139 | bn_pack4(0x4928,0x6651,0xECE4,0x5B3D), | ||
| 140 | bn_pack4(0xAE9F,0x2411,0x7C4B,0x1FE6), | ||
| 141 | bn_pack4(0xEE38,0x6BFB,0x5A89,0x9FA5), | ||
| 142 | bn_pack4(0x0BFF,0x5CB6,0xF406,0xB7ED), | ||
| 143 | bn_pack4(0xF44C,0x42E9,0xA637,0xED6B), | ||
| 144 | bn_pack4(0xE485,0xB576,0x625E,0x7EC6), | ||
| 145 | bn_pack4(0x4FE1,0x356D,0x6D51,0xC245), | ||
| 146 | bn_pack4(0x302B,0x0A6D,0xF25F,0x1437), | ||
| 147 | bn_pack4(0xEF95,0x19B3,0xCD3A,0x431B), | ||
| 148 | bn_pack4(0x514A,0x0879,0x8E34,0x04DD), | ||
| 149 | bn_pack4(0x020B,0xBEA6,0x3B13,0x9B22), | ||
| 150 | bn_pack4(0x2902,0x4E08,0x8A67,0xCC74), | ||
| 151 | bn_pack4(0xC4C6,0x628B,0x80DC,0x1CD1), | ||
| 152 | bn_pack4(0xC90F,0xDAA2,0x2168,0xC234), | ||
| 153 | bn_pack4(0xFFFF,0xFFFF,0xFFFF,0xFFFF) | ||
| 154 | }; | ||
| 155 | static BIGNUM bn_group_3072 = { | ||
| 156 | bn_group_3072_value, | ||
| 157 | (sizeof bn_group_3072_value)/sizeof(BN_ULONG), | ||
| 158 | (sizeof bn_group_3072_value)/sizeof(BN_ULONG), | ||
| 159 | 0, | ||
| 160 | BN_FLG_STATIC_DATA | ||
| 161 | }; | ||
| 162 | |||
| 163 | static BN_ULONG bn_group_4096_value[] = { | ||
| 164 | bn_pack4(0xFFFF,0xFFFF,0xFFFF,0xFFFF), | ||
| 165 | bn_pack4(0x4DF4,0x35C9,0x3406,0x3199), | ||
| 166 | bn_pack4(0x86FF,0xB7DC,0x90A6,0xC08F), | ||
| 167 | bn_pack4(0x93B4,0xEA98,0x8D8F,0xDDC1), | ||
| 168 | bn_pack4(0xD006,0x9127,0xD5B0,0x5AA9), | ||
| 169 | bn_pack4(0xB81B,0xDD76,0x2170,0x481C), | ||
| 170 | bn_pack4(0x1F61,0x2970,0xCEE2,0xD7AF), | ||
| 171 | bn_pack4(0x233B,0xA186,0x515B,0xE7ED), | ||
| 172 | bn_pack4(0x99B2,0x964F,0xA090,0xC3A2), | ||
| 173 | bn_pack4(0x287C,0x5947,0x4E6B,0xC05D), | ||
| 174 | bn_pack4(0x2E8E,0xFC14,0x1FBE,0xCAA6), | ||
| 175 | bn_pack4(0xDBBB,0xC2DB,0x04DE,0x8EF9), | ||
| 176 | bn_pack4(0x2583,0xE9CA,0x2AD4,0x4CE8), | ||
| 177 | bn_pack4(0x1A94,0x6834,0xB615,0x0BDA), | ||
| 178 | bn_pack4(0x99C3,0x2718,0x6AF4,0xE23C), | ||
| 179 | bn_pack4(0x8871,0x9A10,0xBDBA,0x5B26), | ||
| 180 | bn_pack4(0x1A72,0x3C12,0xA787,0xE6D7), | ||
| 181 | bn_pack4(0x4B82,0xD120,0xA921,0x0801), | ||
| 182 | bn_pack4(0x43DB,0x5BFC,0xE0FD,0x108E), | ||
| 183 | bn_pack4(0x08E2,0x4FA0,0x74E5,0xAB31), | ||
| 184 | bn_pack4(0x7709,0x88C0,0xBAD9,0x46E2), | ||
| 185 | bn_pack4(0xBBE1,0x1757,0x7A61,0x5D6C), | ||
| 186 | bn_pack4(0x521F,0x2B18,0x177B,0x200C), | ||
| 187 | bn_pack4(0xD876,0x0273,0x3EC8,0x6A64), | ||
| 188 | bn_pack4(0xF12F,0xFA06,0xD98A,0x0864), | ||
| 189 | bn_pack4(0xCEE3,0xD226,0x1AD2,0xEE6B), | ||
| 190 | bn_pack4(0x1E8C,0x94E0,0x4A25,0x619D), | ||
| 191 | bn_pack4(0xABF5,0xAE8C,0xDB09,0x33D7), | ||
| 192 | bn_pack4(0xB397,0x0F85,0xA6E1,0xE4C7), | ||
| 193 | bn_pack4(0x8AEA,0x7157,0x5D06,0x0C7D), | ||
| 194 | bn_pack4(0xECFB,0x8504,0x58DB,0xEF0A), | ||
| 195 | bn_pack4(0xA855,0x21AB,0xDF1C,0xBA64), | ||
| 196 | bn_pack4(0xAD33,0x170D,0x0450,0x7A33), | ||
| 197 | bn_pack4(0x1572,0x8E5A,0x8AAA,0xC42D), | ||
| 198 | bn_pack4(0x15D2,0x2618,0x98FA,0x0510), | ||
| 199 | bn_pack4(0x3995,0x497C,0xEA95,0x6AE5), | ||
| 200 | bn_pack4(0xDE2B,0xCBF6,0x9558,0x1718), | ||
| 201 | bn_pack4(0xB5C5,0x5DF0,0x6F4C,0x52C9), | ||
| 202 | bn_pack4(0x9B27,0x83A2,0xEC07,0xA28F), | ||
| 203 | bn_pack4(0xE39E,0x772C,0x180E,0x8603), | ||
| 204 | bn_pack4(0x3290,0x5E46,0x2E36,0xCE3B), | ||
| 205 | bn_pack4(0xF174,0x6C08,0xCA18,0x217C), | ||
| 206 | bn_pack4(0x670C,0x354E,0x4ABC,0x9804), | ||
| 207 | bn_pack4(0x9ED5,0x2907,0x7096,0x966D), | ||
| 208 | bn_pack4(0x1C62,0xF356,0x2085,0x52BB), | ||
| 209 | bn_pack4(0x8365,0x5D23,0xDCA3,0xAD96), | ||
| 210 | bn_pack4(0x6916,0x3FA8,0xFD24,0xCF5F), | ||
| 211 | bn_pack4(0x98DA,0x4836,0x1C55,0xD39A), | ||
| 212 | bn_pack4(0xC200,0x7CB8,0xA163,0xBF05), | ||
| 213 | bn_pack4(0x4928,0x6651,0xECE4,0x5B3D), | ||
| 214 | bn_pack4(0xAE9F,0x2411,0x7C4B,0x1FE6), | ||
| 215 | bn_pack4(0xEE38,0x6BFB,0x5A89,0x9FA5), | ||
| 216 | bn_pack4(0x0BFF,0x5CB6,0xF406,0xB7ED), | ||
| 217 | bn_pack4(0xF44C,0x42E9,0xA637,0xED6B), | ||
| 218 | bn_pack4(0xE485,0xB576,0x625E,0x7EC6), | ||
| 219 | bn_pack4(0x4FE1,0x356D,0x6D51,0xC245), | ||
| 220 | bn_pack4(0x302B,0x0A6D,0xF25F,0x1437), | ||
| 221 | bn_pack4(0xEF95,0x19B3,0xCD3A,0x431B), | ||
| 222 | bn_pack4(0x514A,0x0879,0x8E34,0x04DD), | ||
| 223 | bn_pack4(0x020B,0xBEA6,0x3B13,0x9B22), | ||
| 224 | bn_pack4(0x2902,0x4E08,0x8A67,0xCC74), | ||
| 225 | bn_pack4(0xC4C6,0x628B,0x80DC,0x1CD1), | ||
| 226 | bn_pack4(0xC90F,0xDAA2,0x2168,0xC234), | ||
| 227 | bn_pack4(0xFFFF,0xFFFF,0xFFFF,0xFFFF) | ||
| 228 | }; | ||
| 229 | static BIGNUM bn_group_4096 = { | ||
| 230 | bn_group_4096_value, | ||
| 231 | (sizeof bn_group_4096_value)/sizeof(BN_ULONG), | ||
| 232 | (sizeof bn_group_4096_value)/sizeof(BN_ULONG), | ||
| 233 | 0, | ||
| 234 | BN_FLG_STATIC_DATA | ||
| 235 | }; | ||
| 236 | |||
| 237 | static BN_ULONG bn_group_6144_value[] = { | ||
| 238 | bn_pack4(0xFFFF,0xFFFF,0xFFFF,0xFFFF), | ||
| 239 | bn_pack4(0xE694,0xF91E,0x6DCC,0x4024), | ||
| 240 | bn_pack4(0x12BF,0x2D5B,0x0B74,0x74D6), | ||
| 241 | bn_pack4(0x043E,0x8F66,0x3F48,0x60EE), | ||
| 242 | bn_pack4(0x387F,0xE8D7,0x6E3C,0x0468), | ||
| 243 | bn_pack4(0xDA56,0xC9EC,0x2EF2,0x9632), | ||
| 244 | bn_pack4(0xEB19,0xCCB1,0xA313,0xD55C), | ||
| 245 | bn_pack4(0xF550,0xAA3D,0x8A1F,0xBFF0), | ||
| 246 | bn_pack4(0x06A1,0xD58B,0xB7C5,0xDA76), | ||
| 247 | bn_pack4(0xA797,0x15EE,0xF29B,0xE328), | ||
| 248 | bn_pack4(0x14CC,0x5ED2,0x0F80,0x37E0), | ||
| 249 | bn_pack4(0xCC8F,0x6D7E,0xBF48,0xE1D8), | ||
| 250 | bn_pack4(0x4BD4,0x07B2,0x2B41,0x54AA), | ||
| 251 | bn_pack4(0x0F1D,0x45B7,0xFF58,0x5AC5), | ||
| 252 | bn_pack4(0x23A9,0x7A7E,0x36CC,0x88BE), | ||
| 253 | bn_pack4(0x59E7,0xC97F,0xBEC7,0xE8F3), | ||
| 254 | bn_pack4(0xB5A8,0x4031,0x900B,0x1C9E), | ||
| 255 | bn_pack4(0xD55E,0x702F,0x4698,0x0C82), | ||
| 256 | bn_pack4(0xF482,0xD7CE,0x6E74,0xFEF6), | ||
| 257 | bn_pack4(0xF032,0xEA15,0xD172,0x1D03), | ||
| 258 | bn_pack4(0x5983,0xCA01,0xC64B,0x92EC), | ||
| 259 | bn_pack4(0x6FB8,0xF401,0x378C,0xD2BF), | ||
| 260 | bn_pack4(0x3320,0x5151,0x2BD7,0xAF42), | ||
| 261 | bn_pack4(0xDB7F,0x1447,0xE6CC,0x254B), | ||
| 262 | bn_pack4(0x44CE,0x6CBA,0xCED4,0xBB1B), | ||
| 263 | bn_pack4(0xDA3E,0xDBEB,0xCF9B,0x14ED), | ||
| 264 | bn_pack4(0x1797,0x27B0,0x865A,0x8918), | ||
| 265 | bn_pack4(0xB06A,0x53ED,0x9027,0xD831), | ||
| 266 | bn_pack4(0xE5DB,0x382F,0x4130,0x01AE), | ||
| 267 | bn_pack4(0xF8FF,0x9406,0xAD9E,0x530E), | ||
| 268 | bn_pack4(0xC975,0x1E76,0x3DBA,0x37BD), | ||
| 269 | bn_pack4(0xC1D4,0xDCB2,0x6026,0x46DE), | ||
| 270 | bn_pack4(0x36C3,0xFAB4,0xD27C,0x7026), | ||
| 271 | bn_pack4(0x4DF4,0x35C9,0x3402,0x8492), | ||
| 272 | bn_pack4(0x86FF,0xB7DC,0x90A6,0xC08F), | ||
| 273 | bn_pack4(0x93B4,0xEA98,0x8D8F,0xDDC1), | ||
| 274 | bn_pack4(0xD006,0x9127,0xD5B0,0x5AA9), | ||
| 275 | bn_pack4(0xB81B,0xDD76,0x2170,0x481C), | ||
| 276 | bn_pack4(0x1F61,0x2970,0xCEE2,0xD7AF), | ||
| 277 | bn_pack4(0x233B,0xA186,0x515B,0xE7ED), | ||
| 278 | bn_pack4(0x99B2,0x964F,0xA090,0xC3A2), | ||
| 279 | bn_pack4(0x287C,0x5947,0x4E6B,0xC05D), | ||
| 280 | bn_pack4(0x2E8E,0xFC14,0x1FBE,0xCAA6), | ||
| 281 | bn_pack4(0xDBBB,0xC2DB,0x04DE,0x8EF9), | ||
| 282 | bn_pack4(0x2583,0xE9CA,0x2AD4,0x4CE8), | ||
| 283 | bn_pack4(0x1A94,0x6834,0xB615,0x0BDA), | ||
| 284 | bn_pack4(0x99C3,0x2718,0x6AF4,0xE23C), | ||
| 285 | bn_pack4(0x8871,0x9A10,0xBDBA,0x5B26), | ||
| 286 | bn_pack4(0x1A72,0x3C12,0xA787,0xE6D7), | ||
| 287 | bn_pack4(0x4B82,0xD120,0xA921,0x0801), | ||
| 288 | bn_pack4(0x43DB,0x5BFC,0xE0FD,0x108E), | ||
| 289 | bn_pack4(0x08E2,0x4FA0,0x74E5,0xAB31), | ||
| 290 | bn_pack4(0x7709,0x88C0,0xBAD9,0x46E2), | ||
| 291 | bn_pack4(0xBBE1,0x1757,0x7A61,0x5D6C), | ||
| 292 | bn_pack4(0x521F,0x2B18,0x177B,0x200C), | ||
| 293 | bn_pack4(0xD876,0x0273,0x3EC8,0x6A64), | ||
| 294 | bn_pack4(0xF12F,0xFA06,0xD98A,0x0864), | ||
| 295 | bn_pack4(0xCEE3,0xD226,0x1AD2,0xEE6B), | ||
| 296 | bn_pack4(0x1E8C,0x94E0,0x4A25,0x619D), | ||
| 297 | bn_pack4(0xABF5,0xAE8C,0xDB09,0x33D7), | ||
| 298 | bn_pack4(0xB397,0x0F85,0xA6E1,0xE4C7), | ||
| 299 | bn_pack4(0x8AEA,0x7157,0x5D06,0x0C7D), | ||
| 300 | bn_pack4(0xECFB,0x8504,0x58DB,0xEF0A), | ||
| 301 | bn_pack4(0xA855,0x21AB,0xDF1C,0xBA64), | ||
| 302 | bn_pack4(0xAD33,0x170D,0x0450,0x7A33), | ||
| 303 | bn_pack4(0x1572,0x8E5A,0x8AAA,0xC42D), | ||
| 304 | bn_pack4(0x15D2,0x2618,0x98FA,0x0510), | ||
| 305 | bn_pack4(0x3995,0x497C,0xEA95,0x6AE5), | ||
| 306 | bn_pack4(0xDE2B,0xCBF6,0x9558,0x1718), | ||
| 307 | bn_pack4(0xB5C5,0x5DF0,0x6F4C,0x52C9), | ||
| 308 | bn_pack4(0x9B27,0x83A2,0xEC07,0xA28F), | ||
| 309 | bn_pack4(0xE39E,0x772C,0x180E,0x8603), | ||
| 310 | bn_pack4(0x3290,0x5E46,0x2E36,0xCE3B), | ||
| 311 | bn_pack4(0xF174,0x6C08,0xCA18,0x217C), | ||
| 312 | bn_pack4(0x670C,0x354E,0x4ABC,0x9804), | ||
| 313 | bn_pack4(0x9ED5,0x2907,0x7096,0x966D), | ||
| 314 | bn_pack4(0x1C62,0xF356,0x2085,0x52BB), | ||
| 315 | bn_pack4(0x8365,0x5D23,0xDCA3,0xAD96), | ||
| 316 | bn_pack4(0x6916,0x3FA8,0xFD24,0xCF5F), | ||
| 317 | bn_pack4(0x98DA,0x4836,0x1C55,0xD39A), | ||
| 318 | bn_pack4(0xC200,0x7CB8,0xA163,0xBF05), | ||
| 319 | bn_pack4(0x4928,0x6651,0xECE4,0x5B3D), | ||
| 320 | bn_pack4(0xAE9F,0x2411,0x7C4B,0x1FE6), | ||
| 321 | bn_pack4(0xEE38,0x6BFB,0x5A89,0x9FA5), | ||
| 322 | bn_pack4(0x0BFF,0x5CB6,0xF406,0xB7ED), | ||
| 323 | bn_pack4(0xF44C,0x42E9,0xA637,0xED6B), | ||
| 324 | bn_pack4(0xE485,0xB576,0x625E,0x7EC6), | ||
| 325 | bn_pack4(0x4FE1,0x356D,0x6D51,0xC245), | ||
| 326 | bn_pack4(0x302B,0x0A6D,0xF25F,0x1437), | ||
| 327 | bn_pack4(0xEF95,0x19B3,0xCD3A,0x431B), | ||
| 328 | bn_pack4(0x514A,0x0879,0x8E34,0x04DD), | ||
| 329 | bn_pack4(0x020B,0xBEA6,0x3B13,0x9B22), | ||
| 330 | bn_pack4(0x2902,0x4E08,0x8A67,0xCC74), | ||
| 331 | bn_pack4(0xC4C6,0x628B,0x80DC,0x1CD1), | ||
| 332 | bn_pack4(0xC90F,0xDAA2,0x2168,0xC234), | ||
| 333 | bn_pack4(0xFFFF,0xFFFF,0xFFFF,0xFFFF) | ||
| 334 | }; | ||
| 335 | static BIGNUM bn_group_6144 = { | ||
| 336 | bn_group_6144_value, | ||
| 337 | (sizeof bn_group_6144_value)/sizeof(BN_ULONG), | ||
| 338 | (sizeof bn_group_6144_value)/sizeof(BN_ULONG), | ||
| 339 | 0, | ||
| 340 | BN_FLG_STATIC_DATA | ||
| 341 | }; | ||
| 342 | |||
| 343 | static BN_ULONG bn_group_8192_value[] = { | ||
| 344 | bn_pack4(0xFFFF,0xFFFF,0xFFFF,0xFFFF), | ||
| 345 | bn_pack4(0x60C9,0x80DD,0x98ED,0xD3DF), | ||
| 346 | bn_pack4(0xC81F,0x56E8,0x80B9,0x6E71), | ||
| 347 | bn_pack4(0x9E30,0x50E2,0x7656,0x94DF), | ||
| 348 | bn_pack4(0x9558,0xE447,0x5677,0xE9AA), | ||
| 349 | bn_pack4(0xC919,0x0DA6,0xFC02,0x6E47), | ||
| 350 | bn_pack4(0x889A,0x002E,0xD5EE,0x382B), | ||
| 351 | bn_pack4(0x4009,0x438B,0x481C,0x6CD7), | ||
| 352 | bn_pack4(0x3590,0x46F4,0xEB87,0x9F92), | ||
| 353 | bn_pack4(0xFAF3,0x6BC3,0x1ECF,0xA268), | ||
| 354 | bn_pack4(0xB1D5,0x10BD,0x7EE7,0x4D73), | ||
| 355 | bn_pack4(0xF9AB,0x4819,0x5DED,0x7EA1), | ||
| 356 | bn_pack4(0x64F3,0x1CC5,0x0846,0x851D), | ||
| 357 | bn_pack4(0x4597,0xE899,0xA025,0x5DC1), | ||
| 358 | bn_pack4(0xDF31,0x0EE0,0x74AB,0x6A36), | ||
| 359 | bn_pack4(0x6D2A,0x13F8,0x3F44,0xF82D), | ||
| 360 | bn_pack4(0x062B,0x3CF5,0xB3A2,0x78A6), | ||
| 361 | bn_pack4(0x7968,0x3303,0xED5B,0xDD3A), | ||
| 362 | bn_pack4(0xFA9D,0x4B7F,0xA2C0,0x87E8), | ||
| 363 | bn_pack4(0x4BCB,0xC886,0x2F83,0x85DD), | ||
| 364 | bn_pack4(0x3473,0xFC64,0x6CEA,0x306B), | ||
| 365 | bn_pack4(0x13EB,0x57A8,0x1A23,0xF0C7), | ||
| 366 | bn_pack4(0x2222,0x2E04,0xA403,0x7C07), | ||
| 367 | bn_pack4(0xE3FD,0xB8BE,0xFC84,0x8AD9), | ||
| 368 | bn_pack4(0x238F,0x16CB,0xE39D,0x652D), | ||
| 369 | bn_pack4(0x3423,0xB474,0x2BF1,0xC978), | ||
| 370 | bn_pack4(0x3AAB,0x639C,0x5AE4,0xF568), | ||
| 371 | bn_pack4(0x2576,0xF693,0x6BA4,0x2466), | ||
| 372 | bn_pack4(0x741F,0xA7BF,0x8AFC,0x47ED), | ||
| 373 | bn_pack4(0x3BC8,0x32B6,0x8D9D,0xD300), | ||
| 374 | bn_pack4(0xD8BE,0xC4D0,0x73B9,0x31BA), | ||
| 375 | bn_pack4(0x3877,0x7CB6,0xA932,0xDF8C), | ||
| 376 | bn_pack4(0x74A3,0x926F,0x12FE,0xE5E4), | ||
| 377 | bn_pack4(0xE694,0xF91E,0x6DBE,0x1159), | ||
| 378 | bn_pack4(0x12BF,0x2D5B,0x0B74,0x74D6), | ||
| 379 | bn_pack4(0x043E,0x8F66,0x3F48,0x60EE), | ||
| 380 | bn_pack4(0x387F,0xE8D7,0x6E3C,0x0468), | ||
| 381 | bn_pack4(0xDA56,0xC9EC,0x2EF2,0x9632), | ||
| 382 | bn_pack4(0xEB19,0xCCB1,0xA313,0xD55C), | ||
| 383 | bn_pack4(0xF550,0xAA3D,0x8A1F,0xBFF0), | ||
| 384 | bn_pack4(0x06A1,0xD58B,0xB7C5,0xDA76), | ||
| 385 | bn_pack4(0xA797,0x15EE,0xF29B,0xE328), | ||
| 386 | bn_pack4(0x14CC,0x5ED2,0x0F80,0x37E0), | ||
| 387 | bn_pack4(0xCC8F,0x6D7E,0xBF48,0xE1D8), | ||
| 388 | bn_pack4(0x4BD4,0x07B2,0x2B41,0x54AA), | ||
| 389 | bn_pack4(0x0F1D,0x45B7,0xFF58,0x5AC5), | ||
| 390 | bn_pack4(0x23A9,0x7A7E,0x36CC,0x88BE), | ||
| 391 | bn_pack4(0x59E7,0xC97F,0xBEC7,0xE8F3), | ||
| 392 | bn_pack4(0xB5A8,0x4031,0x900B,0x1C9E), | ||
| 393 | bn_pack4(0xD55E,0x702F,0x4698,0x0C82), | ||
| 394 | bn_pack4(0xF482,0xD7CE,0x6E74,0xFEF6), | ||
| 395 | bn_pack4(0xF032,0xEA15,0xD172,0x1D03), | ||
| 396 | bn_pack4(0x5983,0xCA01,0xC64B,0x92EC), | ||
| 397 | bn_pack4(0x6FB8,0xF401,0x378C,0xD2BF), | ||
| 398 | bn_pack4(0x3320,0x5151,0x2BD7,0xAF42), | ||
| 399 | bn_pack4(0xDB7F,0x1447,0xE6CC,0x254B), | ||
| 400 | bn_pack4(0x44CE,0x6CBA,0xCED4,0xBB1B), | ||
| 401 | bn_pack4(0xDA3E,0xDBEB,0xCF9B,0x14ED), | ||
| 402 | bn_pack4(0x1797,0x27B0,0x865A,0x8918), | ||
| 403 | bn_pack4(0xB06A,0x53ED,0x9027,0xD831), | ||
| 404 | bn_pack4(0xE5DB,0x382F,0x4130,0x01AE), | ||
| 405 | bn_pack4(0xF8FF,0x9406,0xAD9E,0x530E), | ||
| 406 | bn_pack4(0xC975,0x1E76,0x3DBA,0x37BD), | ||
| 407 | bn_pack4(0xC1D4,0xDCB2,0x6026,0x46DE), | ||
| 408 | bn_pack4(0x36C3,0xFAB4,0xD27C,0x7026), | ||
| 409 | bn_pack4(0x4DF4,0x35C9,0x3402,0x8492), | ||
| 410 | bn_pack4(0x86FF,0xB7DC,0x90A6,0xC08F), | ||
| 411 | bn_pack4(0x93B4,0xEA98,0x8D8F,0xDDC1), | ||
| 412 | bn_pack4(0xD006,0x9127,0xD5B0,0x5AA9), | ||
| 413 | bn_pack4(0xB81B,0xDD76,0x2170,0x481C), | ||
| 414 | bn_pack4(0x1F61,0x2970,0xCEE2,0xD7AF), | ||
| 415 | bn_pack4(0x233B,0xA186,0x515B,0xE7ED), | ||
| 416 | bn_pack4(0x99B2,0x964F,0xA090,0xC3A2), | ||
| 417 | bn_pack4(0x287C,0x5947,0x4E6B,0xC05D), | ||
| 418 | bn_pack4(0x2E8E,0xFC14,0x1FBE,0xCAA6), | ||
| 419 | bn_pack4(0xDBBB,0xC2DB,0x04DE,0x8EF9), | ||
| 420 | bn_pack4(0x2583,0xE9CA,0x2AD4,0x4CE8), | ||
| 421 | bn_pack4(0x1A94,0x6834,0xB615,0x0BDA), | ||
| 422 | bn_pack4(0x99C3,0x2718,0x6AF4,0xE23C), | ||
| 423 | bn_pack4(0x8871,0x9A10,0xBDBA,0x5B26), | ||
| 424 | bn_pack4(0x1A72,0x3C12,0xA787,0xE6D7), | ||
| 425 | bn_pack4(0x4B82,0xD120,0xA921,0x0801), | ||
| 426 | bn_pack4(0x43DB,0x5BFC,0xE0FD,0x108E), | ||
| 427 | bn_pack4(0x08E2,0x4FA0,0x74E5,0xAB31), | ||
| 428 | bn_pack4(0x7709,0x88C0,0xBAD9,0x46E2), | ||
| 429 | bn_pack4(0xBBE1,0x1757,0x7A61,0x5D6C), | ||
| 430 | bn_pack4(0x521F,0x2B18,0x177B,0x200C), | ||
| 431 | bn_pack4(0xD876,0x0273,0x3EC8,0x6A64), | ||
| 432 | bn_pack4(0xF12F,0xFA06,0xD98A,0x0864), | ||
| 433 | bn_pack4(0xCEE3,0xD226,0x1AD2,0xEE6B), | ||
| 434 | bn_pack4(0x1E8C,0x94E0,0x4A25,0x619D), | ||
| 435 | bn_pack4(0xABF5,0xAE8C,0xDB09,0x33D7), | ||
| 436 | bn_pack4(0xB397,0x0F85,0xA6E1,0xE4C7), | ||
| 437 | bn_pack4(0x8AEA,0x7157,0x5D06,0x0C7D), | ||
| 438 | bn_pack4(0xECFB,0x8504,0x58DB,0xEF0A), | ||
| 439 | bn_pack4(0xA855,0x21AB,0xDF1C,0xBA64), | ||
| 440 | bn_pack4(0xAD33,0x170D,0x0450,0x7A33), | ||
| 441 | bn_pack4(0x1572,0x8E5A,0x8AAA,0xC42D), | ||
| 442 | bn_pack4(0x15D2,0x2618,0x98FA,0x0510), | ||
| 443 | bn_pack4(0x3995,0x497C,0xEA95,0x6AE5), | ||
| 444 | bn_pack4(0xDE2B,0xCBF6,0x9558,0x1718), | ||
| 445 | bn_pack4(0xB5C5,0x5DF0,0x6F4C,0x52C9), | ||
| 446 | bn_pack4(0x9B27,0x83A2,0xEC07,0xA28F), | ||
| 447 | bn_pack4(0xE39E,0x772C,0x180E,0x8603), | ||
| 448 | bn_pack4(0x3290,0x5E46,0x2E36,0xCE3B), | ||
| 449 | bn_pack4(0xF174,0x6C08,0xCA18,0x217C), | ||
| 450 | bn_pack4(0x670C,0x354E,0x4ABC,0x9804), | ||
| 451 | bn_pack4(0x9ED5,0x2907,0x7096,0x966D), | ||
| 452 | bn_pack4(0x1C62,0xF356,0x2085,0x52BB), | ||
| 453 | bn_pack4(0x8365,0x5D23,0xDCA3,0xAD96), | ||
| 454 | bn_pack4(0x6916,0x3FA8,0xFD24,0xCF5F), | ||
| 455 | bn_pack4(0x98DA,0x4836,0x1C55,0xD39A), | ||
| 456 | bn_pack4(0xC200,0x7CB8,0xA163,0xBF05), | ||
| 457 | bn_pack4(0x4928,0x6651,0xECE4,0x5B3D), | ||
| 458 | bn_pack4(0xAE9F,0x2411,0x7C4B,0x1FE6), | ||
| 459 | bn_pack4(0xEE38,0x6BFB,0x5A89,0x9FA5), | ||
| 460 | bn_pack4(0x0BFF,0x5CB6,0xF406,0xB7ED), | ||
| 461 | bn_pack4(0xF44C,0x42E9,0xA637,0xED6B), | ||
| 462 | bn_pack4(0xE485,0xB576,0x625E,0x7EC6), | ||
| 463 | bn_pack4(0x4FE1,0x356D,0x6D51,0xC245), | ||
| 464 | bn_pack4(0x302B,0x0A6D,0xF25F,0x1437), | ||
| 465 | bn_pack4(0xEF95,0x19B3,0xCD3A,0x431B), | ||
| 466 | bn_pack4(0x514A,0x0879,0x8E34,0x04DD), | ||
| 467 | bn_pack4(0x020B,0xBEA6,0x3B13,0x9B22), | ||
| 468 | bn_pack4(0x2902,0x4E08,0x8A67,0xCC74), | ||
| 469 | bn_pack4(0xC4C6,0x628B,0x80DC,0x1CD1), | ||
| 470 | bn_pack4(0xC90F,0xDAA2,0x2168,0xC234), | ||
| 471 | bn_pack4(0xFFFF,0xFFFF,0xFFFF,0xFFFF) | ||
| 472 | }; | ||
| 473 | static BIGNUM bn_group_8192 = { | ||
| 474 | bn_group_8192_value, | ||
| 475 | (sizeof bn_group_8192_value)/sizeof(BN_ULONG), | ||
| 476 | (sizeof bn_group_8192_value)/sizeof(BN_ULONG), | ||
| 477 | 0, | ||
| 478 | BN_FLG_STATIC_DATA | ||
| 479 | }; | ||
| 480 | |||
| 481 | static BN_ULONG bn_generator_19_value[] = {19} ; | ||
| 482 | static BIGNUM bn_generator_19 = { | ||
| 483 | bn_generator_19_value, | ||
| 484 | 1, | ||
| 485 | 1, | ||
| 486 | 0, | ||
| 487 | BN_FLG_STATIC_DATA | ||
| 488 | }; | ||
| 489 | static BN_ULONG bn_generator_5_value[] = {5} ; | ||
| 490 | static BIGNUM bn_generator_5 = { | ||
| 491 | bn_generator_5_value, | ||
| 492 | 1, | ||
| 493 | 1, | ||
| 494 | 0, | ||
| 495 | BN_FLG_STATIC_DATA | ||
| 496 | }; | ||
| 497 | static BN_ULONG bn_generator_2_value[] = {2} ; | ||
| 498 | static BIGNUM bn_generator_2 = { | ||
| 499 | bn_generator_2_value, | ||
| 500 | 1, | ||
| 501 | 1, | ||
| 502 | 0, | ||
| 503 | BN_FLG_STATIC_DATA | ||
| 504 | }; | ||
| 505 | |||
| 506 | static SRP_gN knowngN[] = { | ||
| 507 | {"8192",&bn_generator_19 , &bn_group_8192}, | ||
| 508 | {"6144",&bn_generator_5 , &bn_group_6144}, | ||
| 509 | {"4096",&bn_generator_5 , &bn_group_4096}, | ||
| 510 | {"3072",&bn_generator_5 , &bn_group_3072}, | ||
| 511 | {"2048",&bn_generator_2 , &bn_group_2048}, | ||
| 512 | {"1536",&bn_generator_2 , &bn_group_1536}, | ||
| 513 | {"1024",&bn_generator_2 , &bn_group_1024}, | ||
| 514 | }; | ||
| 515 | #define KNOWN_GN_NUMBER sizeof(knowngN) / sizeof(SRP_gN) | ||
| 516 | |||
| 517 | /* end of generated data */ | ||
diff --git a/src/lib/libcrypto/srp/srp_lcl.h b/src/lib/libcrypto/srp/srp_lcl.h deleted file mode 100644 index 42bda3f148..0000000000 --- a/src/lib/libcrypto/srp/srp_lcl.h +++ /dev/null | |||
| @@ -1,83 +0,0 @@ | |||
| 1 | /* crypto/srp/srp_lcl.h */ | ||
| 2 | /* Written by Peter Sylvester (peter.sylvester@edelweb.fr) | ||
| 3 | * for the EdelKey project and contributed to the OpenSSL project 2004. | ||
| 4 | */ | ||
| 5 | /* ==================================================================== | ||
| 6 | * Copyright (c) 2004 The OpenSSL Project. All rights reserved. | ||
| 7 | * | ||
| 8 | * Redistribution and use in source and binary forms, with or without | ||
| 9 | * modification, are permitted provided that the following conditions | ||
| 10 | * are met: | ||
| 11 | * | ||
| 12 | * 1. Redistributions of source code must retain the above copyright | ||
| 13 | * notice, this list of conditions and the following disclaimer. | ||
| 14 | * | ||
| 15 | * 2. Redistributions in binary form must reproduce the above copyright | ||
| 16 | * notice, this list of conditions and the following disclaimer in | ||
| 17 | * the documentation and/or other materials provided with the | ||
| 18 | * distribution. | ||
| 19 | * | ||
| 20 | * 3. All advertising materials mentioning features or use of this | ||
| 21 | * software must display the following acknowledgment: | ||
| 22 | * "This product includes software developed by the OpenSSL Project | ||
| 23 | * for use in the OpenSSL Toolkit. (http://www.OpenSSL.org/)" | ||
| 24 | * | ||
| 25 | * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to | ||
| 26 | * endorse or promote products derived from this software without | ||
| 27 | * prior written permission. For written permission, please contact | ||
| 28 | * licensing@OpenSSL.org. | ||
| 29 | * | ||
| 30 | * 5. Products derived from this software may not be called "OpenSSL" | ||
| 31 | * nor may "OpenSSL" appear in their names without prior written | ||
| 32 | * permission of the OpenSSL Project. | ||
| 33 | * | ||
| 34 | * 6. Redistributions of any form whatsoever must retain the following | ||
| 35 | * acknowledgment: | ||
| 36 | * "This product includes software developed by the OpenSSL Project | ||
| 37 | * for use in the OpenSSL Toolkit (http://www.OpenSSL.org/)" | ||
| 38 | * | ||
| 39 | * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY | ||
| 40 | * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
| 41 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | ||
| 42 | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR | ||
| 43 | * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
| 44 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | ||
| 45 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
| 46 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
| 47 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | ||
| 48 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
| 49 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | ||
| 50 | * OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| 51 | * ==================================================================== | ||
| 52 | * | ||
| 53 | * This product includes cryptographic software written by Eric Young | ||
| 54 | * (eay@cryptsoft.com). This product includes software written by Tim | ||
| 55 | * Hudson (tjh@cryptsoft.com). | ||
| 56 | * | ||
| 57 | */ | ||
| 58 | #ifndef HEADER_SRP_LCL_H | ||
| 59 | #define HEADER_SRP_LCL_H | ||
| 60 | |||
| 61 | #include <openssl/srp.h> | ||
| 62 | #include <openssl/sha.h> | ||
| 63 | |||
| 64 | #if 0 | ||
| 65 | #define srp_bn_print(a) {fprintf(stderr, #a "="); BN_print_fp(stderr,a); \ | ||
| 66 | fprintf(stderr,"\n");} | ||
| 67 | #else | ||
| 68 | #define srp_bn_print(a) | ||
| 69 | #endif | ||
| 70 | |||
| 71 | |||
| 72 | |||
| 73 | #ifdef __cplusplus | ||
| 74 | extern "C" { | ||
| 75 | #endif | ||
| 76 | |||
| 77 | |||
| 78 | |||
| 79 | #ifdef __cplusplus | ||
| 80 | } | ||
| 81 | #endif | ||
| 82 | |||
| 83 | #endif | ||
diff --git a/src/lib/libcrypto/srp/srp_lib.c b/src/lib/libcrypto/srp/srp_lib.c deleted file mode 100644 index 7c1dcc5111..0000000000 --- a/src/lib/libcrypto/srp/srp_lib.c +++ /dev/null | |||
| @@ -1,361 +0,0 @@ | |||
| 1 | /* crypto/srp/srp_lib.c */ | ||
| 2 | /* Written by Christophe Renou (christophe.renou@edelweb.fr) with | ||
| 3 | * the precious help of Peter Sylvester (peter.sylvester@edelweb.fr) | ||
| 4 | * for the EdelKey project and contributed to the OpenSSL project 2004. | ||
| 5 | */ | ||
| 6 | /* ==================================================================== | ||
| 7 | * Copyright (c) 2004 The OpenSSL Project. All rights reserved. | ||
| 8 | * | ||
| 9 | * Redistribution and use in source and binary forms, with or without | ||
| 10 | * modification, are permitted provided that the following conditions | ||
| 11 | * are met: | ||
| 12 | * | ||
| 13 | * 1. Redistributions of source code must retain the above copyright | ||
| 14 | * notice, this list of conditions and the following disclaimer. | ||
| 15 | * | ||
| 16 | * 2. Redistributions in binary form must reproduce the above copyright | ||
| 17 | * notice, this list of conditions and the following disclaimer in | ||
| 18 | * the documentation and/or other materials provided with the | ||
| 19 | * distribution. | ||
| 20 | * | ||
| 21 | * 3. All advertising materials mentioning features or use of this | ||
| 22 | * software must display the following acknowledgment: | ||
| 23 | * "This product includes software developed by the OpenSSL Project | ||
| 24 | * for use in the OpenSSL Toolkit. (http://www.OpenSSL.org/)" | ||
| 25 | * | ||
| 26 | * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to | ||
| 27 | * endorse or promote products derived from this software without | ||
| 28 | * prior written permission. For written permission, please contact | ||
| 29 | * licensing@OpenSSL.org. | ||
| 30 | * | ||
| 31 | * 5. Products derived from this software may not be called "OpenSSL" | ||
| 32 | * nor may "OpenSSL" appear in their names without prior written | ||
| 33 | * permission of the OpenSSL Project. | ||
| 34 | * | ||
| 35 | * 6. Redistributions of any form whatsoever must retain the following | ||
| 36 | * acknowledgment: | ||
| 37 | * "This product includes software developed by the OpenSSL Project | ||
| 38 | * for use in the OpenSSL Toolkit (http://www.OpenSSL.org/)" | ||
| 39 | * | ||
| 40 | * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY | ||
| 41 | * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
| 42 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | ||
| 43 | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR | ||
| 44 | * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
| 45 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | ||
| 46 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
| 47 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
| 48 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | ||
| 49 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
| 50 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | ||
| 51 | * OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| 52 | * ==================================================================== | ||
| 53 | * | ||
| 54 | * This product includes cryptographic software written by Eric Young | ||
| 55 | * (eay@cryptsoft.com). This product includes software written by Tim | ||
| 56 | * Hudson (tjh@cryptsoft.com). | ||
| 57 | * | ||
| 58 | */ | ||
| 59 | #ifndef OPENSSL_NO_SRP | ||
| 60 | #include "cryptlib.h" | ||
| 61 | #include "srp_lcl.h" | ||
| 62 | #include <openssl/srp.h> | ||
| 63 | #include <openssl/evp.h> | ||
| 64 | |||
| 65 | #if (BN_BYTES == 8) | ||
| 66 | # if (defined(_WIN32) || defined(_WIN64)) && !defined(__MINGW32__) | ||
| 67 | # define bn_pack4(a1,a2,a3,a4) ((a1##UI64<<48)|(a2##UI64<<32)|(a3##UI64<<16)|a4##UI64) | ||
| 68 | # elif defined(__arch64__) | ||
| 69 | # define bn_pack4(a1,a2,a3,a4) ((a1##UL<<48)|(a2##UL<<32)|(a3##UL<<16)|a4##UL) | ||
| 70 | # else | ||
| 71 | # define bn_pack4(a1,a2,a3,a4) ((a1##ULL<<48)|(a2##ULL<<32)|(a3##ULL<<16)|a4##ULL) | ||
| 72 | # endif | ||
| 73 | #elif (BN_BYTES == 4) | ||
| 74 | # define bn_pack4(a1,a2,a3,a4) ((a3##UL<<16)|a4##UL), ((a1##UL<<16)|a2##UL) | ||
| 75 | #else | ||
| 76 | # error "unsupported BN_BYTES" | ||
| 77 | #endif | ||
| 78 | |||
| 79 | |||
| 80 | #include "srp_grps.h" | ||
| 81 | |||
| 82 | static BIGNUM *srp_Calc_k(BIGNUM *N, BIGNUM *g) | ||
| 83 | { | ||
| 84 | /* k = SHA1(N | PAD(g)) -- tls-srp draft 8 */ | ||
| 85 | |||
| 86 | unsigned char digest[SHA_DIGEST_LENGTH]; | ||
| 87 | unsigned char *tmp; | ||
| 88 | EVP_MD_CTX ctxt; | ||
| 89 | int longg ; | ||
| 90 | int longN = BN_num_bytes(N); | ||
| 91 | |||
| 92 | if ((tmp = OPENSSL_malloc(longN)) == NULL) | ||
| 93 | return NULL; | ||
| 94 | BN_bn2bin(N,tmp) ; | ||
| 95 | |||
| 96 | EVP_MD_CTX_init(&ctxt); | ||
| 97 | EVP_DigestInit_ex(&ctxt, EVP_sha1(), NULL); | ||
| 98 | EVP_DigestUpdate(&ctxt, tmp, longN); | ||
| 99 | |||
| 100 | memset(tmp, 0, longN); | ||
| 101 | longg = BN_bn2bin(g,tmp) ; | ||
| 102 | /* use the zeros behind to pad on left */ | ||
| 103 | EVP_DigestUpdate(&ctxt, tmp + longg, longN-longg); | ||
| 104 | EVP_DigestUpdate(&ctxt, tmp, longg); | ||
| 105 | OPENSSL_free(tmp); | ||
| 106 | |||
| 107 | EVP_DigestFinal_ex(&ctxt, digest, NULL); | ||
| 108 | EVP_MD_CTX_cleanup(&ctxt); | ||
| 109 | return BN_bin2bn(digest, sizeof(digest), NULL); | ||
| 110 | } | ||
| 111 | |||
| 112 | BIGNUM *SRP_Calc_u(BIGNUM *A, BIGNUM *B, BIGNUM *N) | ||
| 113 | { | ||
| 114 | /* k = SHA1(PAD(A) || PAD(B) ) -- tls-srp draft 8 */ | ||
| 115 | |||
| 116 | BIGNUM *u; | ||
| 117 | unsigned char cu[SHA_DIGEST_LENGTH]; | ||
| 118 | unsigned char *cAB; | ||
| 119 | EVP_MD_CTX ctxt; | ||
| 120 | int longN; | ||
| 121 | if ((A == NULL) ||(B == NULL) || (N == NULL)) | ||
| 122 | return NULL; | ||
| 123 | |||
| 124 | longN= BN_num_bytes(N); | ||
| 125 | |||
| 126 | if ((cAB = OPENSSL_malloc(2*longN)) == NULL) | ||
| 127 | return NULL; | ||
| 128 | |||
| 129 | memset(cAB, 0, longN); | ||
| 130 | |||
| 131 | EVP_MD_CTX_init(&ctxt); | ||
| 132 | EVP_DigestInit_ex(&ctxt, EVP_sha1(), NULL); | ||
| 133 | EVP_DigestUpdate(&ctxt, cAB + BN_bn2bin(A,cAB+longN), longN); | ||
| 134 | EVP_DigestUpdate(&ctxt, cAB + BN_bn2bin(B,cAB+longN), longN); | ||
| 135 | OPENSSL_free(cAB); | ||
| 136 | EVP_DigestFinal_ex(&ctxt, cu, NULL); | ||
| 137 | EVP_MD_CTX_cleanup(&ctxt); | ||
| 138 | |||
| 139 | if (!(u = BN_bin2bn(cu, sizeof(cu), NULL))) | ||
| 140 | return NULL; | ||
| 141 | if (!BN_is_zero(u)) | ||
| 142 | return u; | ||
| 143 | BN_free(u); | ||
| 144 | return NULL; | ||
| 145 | } | ||
| 146 | |||
| 147 | BIGNUM *SRP_Calc_server_key(BIGNUM *A, BIGNUM *v, BIGNUM *u, BIGNUM *b, BIGNUM *N) | ||
| 148 | { | ||
| 149 | BIGNUM *tmp = NULL, *S = NULL; | ||
| 150 | BN_CTX *bn_ctx; | ||
| 151 | |||
| 152 | if (u == NULL || A == NULL || v == NULL || b == NULL || N == NULL) | ||
| 153 | return NULL; | ||
| 154 | |||
| 155 | if ((bn_ctx = BN_CTX_new()) == NULL || | ||
| 156 | (tmp = BN_new()) == NULL || | ||
| 157 | (S = BN_new()) == NULL ) | ||
| 158 | goto err; | ||
| 159 | |||
| 160 | /* S = (A*v**u) ** b */ | ||
| 161 | |||
| 162 | if (!BN_mod_exp(tmp,v,u,N,bn_ctx)) | ||
| 163 | goto err; | ||
| 164 | if (!BN_mod_mul(tmp,A,tmp,N,bn_ctx)) | ||
| 165 | goto err; | ||
| 166 | if (!BN_mod_exp(S,tmp,b,N,bn_ctx)) | ||
| 167 | goto err; | ||
| 168 | err: | ||
| 169 | BN_CTX_free(bn_ctx); | ||
| 170 | BN_clear_free(tmp); | ||
| 171 | return S; | ||
| 172 | } | ||
| 173 | |||
| 174 | BIGNUM *SRP_Calc_B(BIGNUM *b, BIGNUM *N, BIGNUM *g, BIGNUM *v) | ||
| 175 | { | ||
| 176 | BIGNUM *kv = NULL, *gb = NULL; | ||
| 177 | BIGNUM *B = NULL, *k = NULL; | ||
| 178 | BN_CTX *bn_ctx; | ||
| 179 | |||
| 180 | if (b == NULL || N == NULL || g == NULL || v == NULL || | ||
| 181 | (bn_ctx = BN_CTX_new()) == NULL) | ||
| 182 | return NULL; | ||
| 183 | |||
| 184 | if ( (kv = BN_new()) == NULL || | ||
| 185 | (gb = BN_new()) == NULL || | ||
| 186 | (B = BN_new())== NULL) | ||
| 187 | goto err; | ||
| 188 | |||
| 189 | /* B = g**b + k*v */ | ||
| 190 | |||
| 191 | if (!BN_mod_exp(gb,g,b,N,bn_ctx) || | ||
| 192 | !(k = srp_Calc_k(N,g)) || | ||
| 193 | !BN_mod_mul(kv,v,k,N,bn_ctx) || | ||
| 194 | !BN_mod_add(B,gb,kv,N,bn_ctx)) | ||
| 195 | { | ||
| 196 | BN_free(B); | ||
| 197 | B = NULL; | ||
| 198 | } | ||
| 199 | err: | ||
| 200 | BN_CTX_free(bn_ctx); | ||
| 201 | BN_clear_free(kv); | ||
| 202 | BN_clear_free(gb); | ||
| 203 | BN_free(k); | ||
| 204 | return B; | ||
| 205 | } | ||
| 206 | |||
| 207 | BIGNUM *SRP_Calc_x(BIGNUM *s, const char *user, const char *pass) | ||
| 208 | { | ||
| 209 | unsigned char dig[SHA_DIGEST_LENGTH]; | ||
| 210 | EVP_MD_CTX ctxt; | ||
| 211 | unsigned char *cs; | ||
| 212 | |||
| 213 | if ((s == NULL) || | ||
| 214 | (user == NULL) || | ||
| 215 | (pass == NULL)) | ||
| 216 | return NULL; | ||
| 217 | |||
| 218 | if ((cs = OPENSSL_malloc(BN_num_bytes(s))) == NULL) | ||
| 219 | return NULL; | ||
| 220 | |||
| 221 | EVP_MD_CTX_init(&ctxt); | ||
| 222 | EVP_DigestInit_ex(&ctxt, EVP_sha1(), NULL); | ||
| 223 | EVP_DigestUpdate(&ctxt, user, strlen(user)); | ||
| 224 | EVP_DigestUpdate(&ctxt, ":", 1); | ||
| 225 | EVP_DigestUpdate(&ctxt, pass, strlen(pass)); | ||
| 226 | EVP_DigestFinal_ex(&ctxt, dig, NULL); | ||
| 227 | |||
| 228 | EVP_DigestInit_ex(&ctxt, EVP_sha1(), NULL); | ||
| 229 | BN_bn2bin(s,cs); | ||
| 230 | EVP_DigestUpdate(&ctxt, cs, BN_num_bytes(s)); | ||
| 231 | OPENSSL_free(cs); | ||
| 232 | EVP_DigestUpdate(&ctxt, dig, sizeof(dig)); | ||
| 233 | EVP_DigestFinal_ex(&ctxt, dig, NULL); | ||
| 234 | EVP_MD_CTX_cleanup(&ctxt); | ||
| 235 | |||
| 236 | return BN_bin2bn(dig, sizeof(dig), NULL); | ||
| 237 | } | ||
| 238 | |||
| 239 | BIGNUM *SRP_Calc_A(BIGNUM *a, BIGNUM *N, BIGNUM *g) | ||
| 240 | { | ||
| 241 | BN_CTX *bn_ctx; | ||
| 242 | BIGNUM * A = NULL; | ||
| 243 | |||
| 244 | if (a == NULL || N == NULL || g == NULL || | ||
| 245 | (bn_ctx = BN_CTX_new()) == NULL) | ||
| 246 | return NULL; | ||
| 247 | |||
| 248 | if ((A = BN_new()) != NULL && | ||
| 249 | !BN_mod_exp(A,g,a,N,bn_ctx)) | ||
| 250 | { | ||
| 251 | BN_free(A); | ||
| 252 | A = NULL; | ||
| 253 | } | ||
| 254 | BN_CTX_free(bn_ctx); | ||
| 255 | return A; | ||
| 256 | } | ||
| 257 | |||
| 258 | |||
| 259 | BIGNUM *SRP_Calc_client_key(BIGNUM *N, BIGNUM *B, BIGNUM *g, BIGNUM *x, BIGNUM *a, BIGNUM *u) | ||
| 260 | { | ||
| 261 | BIGNUM *tmp = NULL, *tmp2 = NULL, *tmp3 = NULL , *k = NULL, *K = NULL; | ||
| 262 | BN_CTX *bn_ctx; | ||
| 263 | |||
| 264 | if (u == NULL || B == NULL || N == NULL || g == NULL || x == NULL || a == NULL || | ||
| 265 | (bn_ctx = BN_CTX_new()) == NULL) | ||
| 266 | return NULL; | ||
| 267 | |||
| 268 | if ((tmp = BN_new()) == NULL || | ||
| 269 | (tmp2 = BN_new())== NULL || | ||
| 270 | (tmp3 = BN_new())== NULL || | ||
| 271 | (K = BN_new()) == NULL) | ||
| 272 | goto err; | ||
| 273 | |||
| 274 | if (!BN_mod_exp(tmp,g,x,N,bn_ctx)) | ||
| 275 | goto err; | ||
| 276 | if (!(k = srp_Calc_k(N,g))) | ||
| 277 | goto err; | ||
| 278 | if (!BN_mod_mul(tmp2,tmp,k,N,bn_ctx)) | ||
| 279 | goto err; | ||
| 280 | if (!BN_mod_sub(tmp,B,tmp2,N,bn_ctx)) | ||
| 281 | goto err; | ||
| 282 | |||
| 283 | if (!BN_mod_mul(tmp3,u,x,N,bn_ctx)) | ||
| 284 | goto err; | ||
| 285 | if (!BN_mod_add(tmp2,a,tmp3,N,bn_ctx)) | ||
| 286 | goto err; | ||
| 287 | if (!BN_mod_exp(K,tmp,tmp2,N,bn_ctx)) | ||
| 288 | goto err; | ||
| 289 | |||
| 290 | err : | ||
| 291 | BN_CTX_free(bn_ctx); | ||
| 292 | BN_clear_free(tmp); | ||
| 293 | BN_clear_free(tmp2); | ||
| 294 | BN_clear_free(tmp3); | ||
| 295 | BN_free(k); | ||
| 296 | return K; | ||
| 297 | } | ||
| 298 | |||
| 299 | int SRP_Verify_B_mod_N(BIGNUM *B, BIGNUM *N) | ||
| 300 | { | ||
| 301 | BIGNUM *r; | ||
| 302 | BN_CTX *bn_ctx; | ||
| 303 | int ret = 0; | ||
| 304 | |||
| 305 | if (B == NULL || N == NULL || | ||
| 306 | (bn_ctx = BN_CTX_new()) == NULL) | ||
| 307 | return 0; | ||
| 308 | |||
| 309 | if ((r = BN_new()) == NULL) | ||
| 310 | goto err; | ||
| 311 | /* Checks if B % N == 0 */ | ||
| 312 | if (!BN_nnmod(r,B,N,bn_ctx)) | ||
| 313 | goto err; | ||
| 314 | ret = !BN_is_zero(r); | ||
| 315 | err: | ||
| 316 | BN_CTX_free(bn_ctx); | ||
| 317 | BN_free(r); | ||
| 318 | return ret; | ||
| 319 | } | ||
| 320 | |||
| 321 | int SRP_Verify_A_mod_N(BIGNUM *A, BIGNUM *N) | ||
| 322 | { | ||
| 323 | /* Checks if A % N == 0 */ | ||
| 324 | return SRP_Verify_B_mod_N(A,N) ; | ||
| 325 | } | ||
| 326 | |||
| 327 | |||
| 328 | /* Check if G and N are kwown parameters. | ||
| 329 | The values have been generated from the ietf-tls-srp draft version 8 | ||
| 330 | */ | ||
| 331 | char *SRP_check_known_gN_param(BIGNUM *g, BIGNUM *N) | ||
| 332 | { | ||
| 333 | size_t i; | ||
| 334 | if ((g == NULL) || (N == NULL)) | ||
| 335 | return 0; | ||
| 336 | |||
| 337 | srp_bn_print(g); | ||
| 338 | srp_bn_print(N); | ||
| 339 | |||
| 340 | for(i = 0; i < KNOWN_GN_NUMBER; i++) | ||
| 341 | { | ||
| 342 | if (BN_cmp(knowngN[i].g, g) == 0 && BN_cmp(knowngN[i].N, N) == 0) | ||
| 343 | return knowngN[i].id; | ||
| 344 | } | ||
| 345 | return NULL; | ||
| 346 | } | ||
| 347 | |||
| 348 | SRP_gN *SRP_get_default_gN(const char *id) | ||
| 349 | { | ||
| 350 | size_t i; | ||
| 351 | |||
| 352 | if (id == NULL) | ||
| 353 | return knowngN; | ||
| 354 | for(i = 0; i < KNOWN_GN_NUMBER; i++) | ||
| 355 | { | ||
| 356 | if (strcmp(knowngN[i].id, id)==0) | ||
| 357 | return knowngN + i; | ||
| 358 | } | ||
| 359 | return NULL; | ||
| 360 | } | ||
| 361 | #endif | ||
diff --git a/src/lib/libcrypto/srp/srp_vfy.c b/src/lib/libcrypto/srp/srp_vfy.c deleted file mode 100644 index 4a3d13edf6..0000000000 --- a/src/lib/libcrypto/srp/srp_vfy.c +++ /dev/null | |||
| @@ -1,658 +0,0 @@ | |||
| 1 | /* crypto/srp/srp_vfy.c */ | ||
| 2 | /* Written by Christophe Renou (christophe.renou@edelweb.fr) with | ||
| 3 | * the precious help of Peter Sylvester (peter.sylvester@edelweb.fr) | ||
| 4 | * for the EdelKey project and contributed to the OpenSSL project 2004. | ||
| 5 | */ | ||
| 6 | /* ==================================================================== | ||
| 7 | * Copyright (c) 2004 The OpenSSL Project. All rights reserved. | ||
| 8 | * | ||
| 9 | * Redistribution and use in source and binary forms, with or without | ||
| 10 | * modification, are permitted provided that the following conditions | ||
| 11 | * are met: | ||
| 12 | * | ||
| 13 | * 1. Redistributions of source code must retain the above copyright | ||
| 14 | * notice, this list of conditions and the following disclaimer. | ||
| 15 | * | ||
| 16 | * 2. Redistributions in binary form must reproduce the above copyright | ||
| 17 | * notice, this list of conditions and the following disclaimer in | ||
| 18 | * the documentation and/or other materials provided with the | ||
| 19 | * distribution. | ||
| 20 | * | ||
| 21 | * 3. All advertising materials mentioning features or use of this | ||
| 22 | * software must display the following acknowledgment: | ||
| 23 | * "This product includes software developed by the OpenSSL Project | ||
| 24 | * for use in the OpenSSL Toolkit. (http://www.OpenSSL.org/)" | ||
| 25 | * | ||
| 26 | * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to | ||
| 27 | * endorse or promote products derived from this software without | ||
| 28 | * prior written permission. For written permission, please contact | ||
| 29 | * licensing@OpenSSL.org. | ||
| 30 | * | ||
| 31 | * 5. Products derived from this software may not be called "OpenSSL" | ||
| 32 | * nor may "OpenSSL" appear in their names without prior written | ||
| 33 | * permission of the OpenSSL Project. | ||
| 34 | * | ||
| 35 | * 6. Redistributions of any form whatsoever must retain the following | ||
| 36 | * acknowledgment: | ||
| 37 | * "This product includes software developed by the OpenSSL Project | ||
| 38 | * for use in the OpenSSL Toolkit (http://www.OpenSSL.org/)" | ||
| 39 | * | ||
| 40 | * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY | ||
| 41 | * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
| 42 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | ||
| 43 | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR | ||
| 44 | * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
| 45 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | ||
| 46 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
| 47 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
| 48 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | ||
| 49 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
| 50 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | ||
| 51 | * OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| 52 | * ==================================================================== | ||
| 53 | * | ||
| 54 | * This product includes cryptographic software written by Eric Young | ||
| 55 | * (eay@cryptsoft.com). This product includes software written by Tim | ||
| 56 | * Hudson (tjh@cryptsoft.com). | ||
| 57 | * | ||
| 58 | */ | ||
| 59 | #ifndef OPENSSL_NO_SRP | ||
| 60 | #include "cryptlib.h" | ||
| 61 | #include "srp_lcl.h" | ||
| 62 | #include <openssl/srp.h> | ||
| 63 | #include <openssl/evp.h> | ||
| 64 | #include <openssl/buffer.h> | ||
| 65 | #include <openssl/rand.h> | ||
| 66 | #include <openssl/txt_db.h> | ||
| 67 | |||
| 68 | #define SRP_RANDOM_SALT_LEN 20 | ||
| 69 | #define MAX_LEN 2500 | ||
| 70 | |||
| 71 | static char b64table[] = | ||
| 72 | "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz./"; | ||
| 73 | |||
| 74 | /* the following two conversion routines have been inspired by code from Stanford */ | ||
| 75 | |||
| 76 | /* | ||
| 77 | * Convert a base64 string into raw byte array representation. | ||
| 78 | */ | ||
| 79 | static int t_fromb64(unsigned char *a, const char *src) | ||
| 80 | { | ||
| 81 | char *loc; | ||
| 82 | int i, j; | ||
| 83 | int size; | ||
| 84 | |||
| 85 | while(*src && (*src == ' ' || *src == '\t' || *src == '\n')) | ||
| 86 | ++src; | ||
| 87 | size = strlen(src); | ||
| 88 | i = 0; | ||
| 89 | while(i < size) | ||
| 90 | { | ||
| 91 | loc = strchr(b64table, src[i]); | ||
| 92 | if(loc == (char *) 0) break; | ||
| 93 | else a[i] = loc - b64table; | ||
| 94 | ++i; | ||
| 95 | } | ||
| 96 | size = i; | ||
| 97 | i = size - 1; | ||
| 98 | j = size; | ||
| 99 | while(1) | ||
| 100 | { | ||
| 101 | a[j] = a[i]; | ||
| 102 | if(--i < 0) break; | ||
| 103 | a[j] |= (a[i] & 3) << 6; | ||
| 104 | --j; | ||
| 105 | a[j] = (unsigned char) ((a[i] & 0x3c) >> 2); | ||
| 106 | if(--i < 0) break; | ||
| 107 | a[j] |= (a[i] & 0xf) << 4; | ||
| 108 | --j; | ||
| 109 | a[j] = (unsigned char) ((a[i] & 0x30) >> 4); | ||
| 110 | if(--i < 0) break; | ||
| 111 | a[j] |= (a[i] << 2); | ||
| 112 | |||
| 113 | a[--j] = 0; | ||
| 114 | if(--i < 0) break; | ||
| 115 | } | ||
| 116 | while(a[j] == 0 && j <= size) ++j; | ||
| 117 | i = 0; | ||
| 118 | while (j <= size) a[i++] = a[j++]; | ||
| 119 | return i; | ||
| 120 | } | ||
| 121 | |||
| 122 | |||
| 123 | /* | ||
| 124 | * Convert a raw byte string into a null-terminated base64 ASCII string. | ||
| 125 | */ | ||
| 126 | static char *t_tob64(char *dst, const unsigned char *src, int size) | ||
| 127 | { | ||
| 128 | int c, pos = size % 3; | ||
| 129 | unsigned char b0 = 0, b1 = 0, b2 = 0, notleading = 0; | ||
| 130 | char *olddst = dst; | ||
| 131 | |||
| 132 | switch(pos) | ||
| 133 | { | ||
| 134 | case 1: | ||
| 135 | b2 = src[0]; | ||
| 136 | break; | ||
| 137 | case 2: | ||
| 138 | b1 = src[0]; | ||
| 139 | b2 = src[1]; | ||
| 140 | break; | ||
| 141 | } | ||
| 142 | |||
| 143 | while(1) | ||
| 144 | { | ||
| 145 | c = (b0 & 0xfc) >> 2; | ||
| 146 | if(notleading || c != 0) | ||
| 147 | { | ||
| 148 | *dst++ = b64table[c]; | ||
| 149 | notleading = 1; | ||
| 150 | } | ||
| 151 | c = ((b0 & 3) << 4) | ((b1 & 0xf0) >> 4); | ||
| 152 | if(notleading || c != 0) | ||
| 153 | { | ||
| 154 | *dst++ = b64table[c]; | ||
| 155 | notleading = 1; | ||
| 156 | } | ||
| 157 | c = ((b1 & 0xf) << 2) | ((b2 & 0xc0) >> 6); | ||
| 158 | if(notleading || c != 0) | ||
| 159 | { | ||
| 160 | *dst++ = b64table[c]; | ||
| 161 | notleading = 1; | ||
| 162 | } | ||
| 163 | c = b2 & 0x3f; | ||
| 164 | if(notleading || c != 0) | ||
| 165 | { | ||
| 166 | *dst++ = b64table[c]; | ||
| 167 | notleading = 1; | ||
| 168 | } | ||
| 169 | if(pos >= size) break; | ||
| 170 | else | ||
| 171 | { | ||
| 172 | b0 = src[pos++]; | ||
| 173 | b1 = src[pos++]; | ||
| 174 | b2 = src[pos++]; | ||
| 175 | } | ||
| 176 | } | ||
| 177 | |||
| 178 | *dst++ = '\0'; | ||
| 179 | return olddst; | ||
| 180 | } | ||
| 181 | |||
| 182 | static void SRP_user_pwd_free(SRP_user_pwd *user_pwd) | ||
| 183 | { | ||
| 184 | if (user_pwd == NULL) | ||
| 185 | return; | ||
| 186 | BN_free(user_pwd->s); | ||
| 187 | BN_clear_free(user_pwd->v); | ||
| 188 | OPENSSL_free(user_pwd->id); | ||
| 189 | OPENSSL_free(user_pwd->info); | ||
| 190 | OPENSSL_free(user_pwd); | ||
| 191 | } | ||
| 192 | |||
| 193 | static SRP_user_pwd *SRP_user_pwd_new() | ||
| 194 | { | ||
| 195 | SRP_user_pwd *ret = OPENSSL_malloc(sizeof(SRP_user_pwd)); | ||
| 196 | if (ret == NULL) | ||
| 197 | return NULL; | ||
| 198 | ret->N = NULL; | ||
| 199 | ret->g = NULL; | ||
| 200 | ret->s = NULL; | ||
| 201 | ret->v = NULL; | ||
| 202 | ret->id = NULL ; | ||
| 203 | ret->info = NULL; | ||
| 204 | return ret; | ||
| 205 | } | ||
| 206 | |||
| 207 | static void SRP_user_pwd_set_gN(SRP_user_pwd *vinfo, const BIGNUM *g, | ||
| 208 | const BIGNUM *N) | ||
| 209 | { | ||
| 210 | vinfo->N = N; | ||
| 211 | vinfo->g = g; | ||
| 212 | } | ||
| 213 | |||
| 214 | static int SRP_user_pwd_set_ids(SRP_user_pwd *vinfo, const char *id, | ||
| 215 | const char *info) | ||
| 216 | { | ||
| 217 | if (id != NULL && NULL == (vinfo->id = BUF_strdup(id))) | ||
| 218 | return 0; | ||
| 219 | return (info == NULL || NULL != (vinfo->info = BUF_strdup(info))) ; | ||
| 220 | } | ||
| 221 | |||
| 222 | static int SRP_user_pwd_set_sv(SRP_user_pwd *vinfo, const char *s, | ||
| 223 | const char *v) | ||
| 224 | { | ||
| 225 | unsigned char tmp[MAX_LEN]; | ||
| 226 | int len; | ||
| 227 | |||
| 228 | if (strlen(s) > MAX_LEN || strlen(v) > MAX_LEN) | ||
| 229 | return 0; | ||
| 230 | len = t_fromb64(tmp, v); | ||
| 231 | if (NULL == (vinfo->v = BN_bin2bn(tmp, len, NULL)) ) | ||
| 232 | return 0; | ||
| 233 | len = t_fromb64(tmp, s); | ||
| 234 | return ((vinfo->s = BN_bin2bn(tmp, len, NULL)) != NULL) ; | ||
| 235 | } | ||
| 236 | |||
| 237 | static int SRP_user_pwd_set_sv_BN(SRP_user_pwd *vinfo, BIGNUM *s, BIGNUM *v) | ||
| 238 | { | ||
| 239 | vinfo->v = v; | ||
| 240 | vinfo->s = s; | ||
| 241 | return (vinfo->s != NULL && vinfo->v != NULL) ; | ||
| 242 | } | ||
| 243 | |||
| 244 | SRP_VBASE *SRP_VBASE_new(char *seed_key) | ||
| 245 | { | ||
| 246 | SRP_VBASE *vb = (SRP_VBASE *) OPENSSL_malloc(sizeof(SRP_VBASE)); | ||
| 247 | |||
| 248 | if (vb == NULL) | ||
| 249 | return NULL; | ||
| 250 | if (!(vb->users_pwd = sk_SRP_user_pwd_new_null()) || | ||
| 251 | !(vb->gN_cache = sk_SRP_gN_cache_new_null())) | ||
| 252 | { | ||
| 253 | OPENSSL_free(vb); | ||
| 254 | return NULL; | ||
| 255 | } | ||
| 256 | vb->default_g = NULL; | ||
| 257 | vb->default_N = NULL; | ||
| 258 | vb->seed_key = NULL; | ||
| 259 | if ((seed_key != NULL) && | ||
| 260 | (vb->seed_key = BUF_strdup(seed_key)) == NULL) | ||
| 261 | { | ||
| 262 | sk_SRP_user_pwd_free(vb->users_pwd); | ||
| 263 | sk_SRP_gN_cache_free(vb->gN_cache); | ||
| 264 | OPENSSL_free(vb); | ||
| 265 | return NULL; | ||
| 266 | } | ||
| 267 | return vb; | ||
| 268 | } | ||
| 269 | |||
| 270 | |||
| 271 | int SRP_VBASE_free(SRP_VBASE *vb) | ||
| 272 | { | ||
| 273 | sk_SRP_user_pwd_pop_free(vb->users_pwd,SRP_user_pwd_free); | ||
| 274 | sk_SRP_gN_cache_free(vb->gN_cache); | ||
| 275 | OPENSSL_free(vb->seed_key); | ||
| 276 | OPENSSL_free(vb); | ||
| 277 | return 0; | ||
| 278 | } | ||
| 279 | |||
| 280 | |||
| 281 | static SRP_gN_cache *SRP_gN_new_init(const char *ch) | ||
| 282 | { | ||
| 283 | unsigned char tmp[MAX_LEN]; | ||
| 284 | int len; | ||
| 285 | |||
| 286 | SRP_gN_cache *newgN = (SRP_gN_cache *)OPENSSL_malloc(sizeof(SRP_gN_cache)); | ||
| 287 | if (newgN == NULL) | ||
| 288 | return NULL; | ||
| 289 | |||
| 290 | if ((newgN->b64_bn = BUF_strdup(ch)) == NULL) | ||
| 291 | goto err; | ||
| 292 | |||
| 293 | len = t_fromb64(tmp, ch); | ||
| 294 | if ((newgN->bn = BN_bin2bn(tmp, len, NULL))) | ||
| 295 | return newgN; | ||
| 296 | |||
| 297 | OPENSSL_free(newgN->b64_bn); | ||
| 298 | err: | ||
| 299 | OPENSSL_free(newgN); | ||
| 300 | return NULL; | ||
| 301 | } | ||
| 302 | |||
| 303 | |||
| 304 | static void SRP_gN_free(SRP_gN_cache *gN_cache) | ||
| 305 | { | ||
| 306 | if (gN_cache == NULL) | ||
| 307 | return; | ||
| 308 | OPENSSL_free(gN_cache->b64_bn); | ||
| 309 | BN_free(gN_cache->bn); | ||
| 310 | OPENSSL_free(gN_cache); | ||
| 311 | } | ||
| 312 | |||
| 313 | static SRP_gN *SRP_get_gN_by_id(const char *id, STACK_OF(SRP_gN) *gN_tab) | ||
| 314 | { | ||
| 315 | int i; | ||
| 316 | |||
| 317 | SRP_gN *gN; | ||
| 318 | if (gN_tab != NULL) | ||
| 319 | for(i = 0; i < sk_SRP_gN_num(gN_tab); i++) | ||
| 320 | { | ||
| 321 | gN = sk_SRP_gN_value(gN_tab, i); | ||
| 322 | if (gN && (id == NULL || strcmp(gN->id,id)==0)) | ||
| 323 | return gN; | ||
| 324 | } | ||
| 325 | |||
| 326 | return SRP_get_default_gN(id); | ||
| 327 | } | ||
| 328 | |||
| 329 | static BIGNUM *SRP_gN_place_bn(STACK_OF(SRP_gN_cache) *gN_cache, char *ch) | ||
| 330 | { | ||
| 331 | int i; | ||
| 332 | if (gN_cache == NULL) | ||
| 333 | return NULL; | ||
| 334 | |||
| 335 | /* search if we have already one... */ | ||
| 336 | for(i = 0; i < sk_SRP_gN_cache_num(gN_cache); i++) | ||
| 337 | { | ||
| 338 | SRP_gN_cache *cache = sk_SRP_gN_cache_value(gN_cache, i); | ||
| 339 | if (strcmp(cache->b64_bn,ch)==0) | ||
| 340 | return cache->bn; | ||
| 341 | } | ||
| 342 | { /* it is the first time that we find it */ | ||
| 343 | SRP_gN_cache *newgN = SRP_gN_new_init(ch); | ||
| 344 | if (newgN) | ||
| 345 | { | ||
| 346 | if (sk_SRP_gN_cache_insert(gN_cache,newgN,0)>0) | ||
| 347 | return newgN->bn; | ||
| 348 | SRP_gN_free(newgN); | ||
| 349 | } | ||
| 350 | } | ||
| 351 | return NULL; | ||
| 352 | } | ||
| 353 | |||
| 354 | /* this function parses verifier file. Format is: | ||
| 355 | * string(index):base64(N):base64(g):0 | ||
| 356 | * string(username):base64(v):base64(salt):int(index) | ||
| 357 | */ | ||
| 358 | |||
| 359 | |||
| 360 | int SRP_VBASE_init(SRP_VBASE *vb, char *verifier_file) | ||
| 361 | { | ||
| 362 | int error_code ; | ||
| 363 | STACK_OF(SRP_gN) *SRP_gN_tab = sk_SRP_gN_new_null(); | ||
| 364 | char *last_index = NULL; | ||
| 365 | int i; | ||
| 366 | char **pp; | ||
| 367 | |||
| 368 | SRP_gN *gN = NULL; | ||
| 369 | SRP_user_pwd *user_pwd = NULL ; | ||
| 370 | |||
| 371 | TXT_DB *tmpdb = NULL; | ||
| 372 | BIO *in = BIO_new(BIO_s_file()); | ||
| 373 | |||
| 374 | error_code = SRP_ERR_OPEN_FILE; | ||
| 375 | |||
| 376 | if (in == NULL || BIO_read_filename(in,verifier_file) <= 0) | ||
| 377 | goto err; | ||
| 378 | |||
| 379 | error_code = SRP_ERR_VBASE_INCOMPLETE_FILE; | ||
| 380 | |||
| 381 | if ((tmpdb =TXT_DB_read(in,DB_NUMBER)) == NULL) | ||
| 382 | goto err; | ||
| 383 | |||
| 384 | error_code = SRP_ERR_MEMORY; | ||
| 385 | |||
| 386 | |||
| 387 | if (vb->seed_key) | ||
| 388 | { | ||
| 389 | last_index = SRP_get_default_gN(NULL)->id; | ||
| 390 | } | ||
| 391 | for (i = 0; i < sk_OPENSSL_PSTRING_num(tmpdb->data); i++) | ||
| 392 | { | ||
| 393 | pp = sk_OPENSSL_PSTRING_value(tmpdb->data,i); | ||
| 394 | if (pp[DB_srptype][0] == DB_SRP_INDEX) | ||
| 395 | { | ||
| 396 | /*we add this couple in the internal Stack */ | ||
| 397 | |||
| 398 | if ((gN = (SRP_gN *)OPENSSL_malloc(sizeof(SRP_gN))) == NULL) | ||
| 399 | goto err; | ||
| 400 | |||
| 401 | if (!(gN->id = BUF_strdup(pp[DB_srpid])) | ||
| 402 | || !(gN->N = SRP_gN_place_bn(vb->gN_cache,pp[DB_srpverifier])) | ||
| 403 | || !(gN->g = SRP_gN_place_bn(vb->gN_cache,pp[DB_srpsalt])) | ||
| 404 | || sk_SRP_gN_insert(SRP_gN_tab,gN,0) == 0) | ||
| 405 | goto err; | ||
| 406 | |||
| 407 | gN = NULL; | ||
| 408 | |||
| 409 | if (vb->seed_key != NULL) | ||
| 410 | { | ||
| 411 | last_index = pp[DB_srpid]; | ||
| 412 | } | ||
| 413 | } | ||
| 414 | else if (pp[DB_srptype][0] == DB_SRP_VALID) | ||
| 415 | { | ||
| 416 | /* it is a user .... */ | ||
| 417 | SRP_gN *lgN; | ||
| 418 | if ((lgN = SRP_get_gN_by_id(pp[DB_srpgN],SRP_gN_tab))!=NULL) | ||
| 419 | { | ||
| 420 | error_code = SRP_ERR_MEMORY; | ||
| 421 | if ((user_pwd = SRP_user_pwd_new()) == NULL) | ||
| 422 | goto err; | ||
| 423 | |||
| 424 | SRP_user_pwd_set_gN(user_pwd,lgN->g,lgN->N); | ||
| 425 | if (!SRP_user_pwd_set_ids(user_pwd, pp[DB_srpid],pp[DB_srpinfo])) | ||
| 426 | goto err; | ||
| 427 | |||
| 428 | error_code = SRP_ERR_VBASE_BN_LIB; | ||
| 429 | if (!SRP_user_pwd_set_sv(user_pwd, pp[DB_srpsalt],pp[DB_srpverifier])) | ||
| 430 | goto err; | ||
| 431 | |||
| 432 | if (sk_SRP_user_pwd_insert(vb->users_pwd, user_pwd, 0) == 0) | ||
| 433 | goto err; | ||
| 434 | user_pwd = NULL; /* abandon responsability */ | ||
| 435 | } | ||
| 436 | } | ||
| 437 | } | ||
| 438 | |||
| 439 | if (last_index != NULL) | ||
| 440 | { | ||
| 441 | /* this means that we want to simulate a default user */ | ||
| 442 | |||
| 443 | if (((gN = SRP_get_gN_by_id(last_index,SRP_gN_tab))==NULL)) | ||
| 444 | { | ||
| 445 | error_code = SRP_ERR_VBASE_BN_LIB; | ||
| 446 | goto err; | ||
| 447 | } | ||
| 448 | vb->default_g = gN->g ; | ||
| 449 | vb->default_N = gN->N ; | ||
| 450 | gN = NULL ; | ||
| 451 | } | ||
| 452 | error_code = SRP_NO_ERROR; | ||
| 453 | |||
| 454 | err: | ||
| 455 | /* there may be still some leaks to fix, if this fails, the application terminates most likely */ | ||
| 456 | |||
| 457 | if (gN != NULL) | ||
| 458 | { | ||
| 459 | OPENSSL_free(gN->id); | ||
| 460 | OPENSSL_free(gN); | ||
| 461 | } | ||
| 462 | |||
| 463 | SRP_user_pwd_free(user_pwd); | ||
| 464 | |||
| 465 | if (tmpdb) TXT_DB_free(tmpdb); | ||
| 466 | if (in) BIO_free_all(in); | ||
| 467 | |||
| 468 | sk_SRP_gN_free(SRP_gN_tab); | ||
| 469 | |||
| 470 | return error_code; | ||
| 471 | |||
| 472 | } | ||
| 473 | |||
| 474 | |||
| 475 | SRP_user_pwd *SRP_VBASE_get_by_user(SRP_VBASE *vb, char *username) | ||
| 476 | { | ||
| 477 | int i; | ||
| 478 | SRP_user_pwd *user; | ||
| 479 | unsigned char digv[SHA_DIGEST_LENGTH]; | ||
| 480 | unsigned char digs[SHA_DIGEST_LENGTH]; | ||
| 481 | EVP_MD_CTX ctxt; | ||
| 482 | |||
| 483 | if (vb == NULL) | ||
| 484 | return NULL; | ||
| 485 | for(i = 0; i < sk_SRP_user_pwd_num(vb->users_pwd); i++) | ||
| 486 | { | ||
| 487 | user = sk_SRP_user_pwd_value(vb->users_pwd, i); | ||
| 488 | if (strcmp(user->id,username)==0) | ||
| 489 | return user; | ||
| 490 | } | ||
| 491 | if ((vb->seed_key == NULL) || | ||
| 492 | (vb->default_g == NULL) || | ||
| 493 | (vb->default_N == NULL)) | ||
| 494 | return NULL; | ||
| 495 | |||
| 496 | /* if the user is unknown we set parameters as well if we have a seed_key */ | ||
| 497 | |||
| 498 | if ((user = SRP_user_pwd_new()) == NULL) | ||
| 499 | return NULL; | ||
| 500 | |||
| 501 | SRP_user_pwd_set_gN(user,vb->default_g,vb->default_N); | ||
| 502 | |||
| 503 | if (!SRP_user_pwd_set_ids(user,username,NULL)) | ||
| 504 | goto err; | ||
| 505 | |||
| 506 | RAND_pseudo_bytes(digv, SHA_DIGEST_LENGTH); | ||
| 507 | EVP_MD_CTX_init(&ctxt); | ||
| 508 | EVP_DigestInit_ex(&ctxt, EVP_sha1(), NULL); | ||
| 509 | EVP_DigestUpdate(&ctxt, vb->seed_key, strlen(vb->seed_key)); | ||
| 510 | EVP_DigestUpdate(&ctxt, username, strlen(username)); | ||
| 511 | EVP_DigestFinal_ex(&ctxt, digs, NULL); | ||
| 512 | EVP_MD_CTX_cleanup(&ctxt); | ||
| 513 | if (SRP_user_pwd_set_sv_BN(user, BN_bin2bn(digs,SHA_DIGEST_LENGTH,NULL), BN_bin2bn(digv,SHA_DIGEST_LENGTH, NULL))) | ||
| 514 | return user; | ||
| 515 | |||
| 516 | err: SRP_user_pwd_free(user); | ||
| 517 | return NULL; | ||
| 518 | } | ||
| 519 | |||
| 520 | |||
| 521 | /* | ||
| 522 | create a verifier (*salt,*verifier,g and N are in base64) | ||
| 523 | */ | ||
| 524 | char *SRP_create_verifier(const char *user, const char *pass, char **salt, | ||
| 525 | char **verifier, const char *N, const char *g) | ||
| 526 | { | ||
| 527 | int len; | ||
| 528 | char * result=NULL; | ||
| 529 | char *vf; | ||
| 530 | BIGNUM *N_bn = NULL, *g_bn = NULL, *s = NULL, *v = NULL; | ||
| 531 | unsigned char tmp[MAX_LEN]; | ||
| 532 | unsigned char tmp2[MAX_LEN]; | ||
| 533 | char * defgNid = NULL; | ||
| 534 | |||
| 535 | if ((user == NULL)|| | ||
| 536 | (pass == NULL)|| | ||
| 537 | (salt == NULL)|| | ||
| 538 | (verifier == NULL)) | ||
| 539 | goto err; | ||
| 540 | |||
| 541 | if (N) | ||
| 542 | { | ||
| 543 | if (!(len = t_fromb64(tmp, N))) goto err; | ||
| 544 | N_bn = BN_bin2bn(tmp, len, NULL); | ||
| 545 | if (!(len = t_fromb64(tmp, g))) goto err; | ||
| 546 | g_bn = BN_bin2bn(tmp, len, NULL); | ||
| 547 | defgNid = "*"; | ||
| 548 | } | ||
| 549 | else | ||
| 550 | { | ||
| 551 | SRP_gN * gN = SRP_get_gN_by_id(g, NULL) ; | ||
| 552 | if (gN == NULL) | ||
| 553 | goto err; | ||
| 554 | N_bn = gN->N; | ||
| 555 | g_bn = gN->g; | ||
| 556 | defgNid = gN->id; | ||
| 557 | } | ||
| 558 | |||
| 559 | if (*salt == NULL) | ||
| 560 | { | ||
| 561 | RAND_pseudo_bytes(tmp2, SRP_RANDOM_SALT_LEN); | ||
| 562 | |||
| 563 | s = BN_bin2bn(tmp2, SRP_RANDOM_SALT_LEN, NULL); | ||
| 564 | } | ||
| 565 | else | ||
| 566 | { | ||
| 567 | if (!(len = t_fromb64(tmp2, *salt))) | ||
| 568 | goto err; | ||
| 569 | s = BN_bin2bn(tmp2, len, NULL); | ||
| 570 | } | ||
| 571 | |||
| 572 | |||
| 573 | if(!SRP_create_verifier_BN(user, pass, &s, &v, N_bn, g_bn)) goto err; | ||
| 574 | |||
| 575 | BN_bn2bin(v,tmp); | ||
| 576 | if (((vf = OPENSSL_malloc(BN_num_bytes(v)*2)) == NULL)) | ||
| 577 | goto err; | ||
| 578 | t_tob64(vf, tmp, BN_num_bytes(v)); | ||
| 579 | |||
| 580 | *verifier = vf; | ||
| 581 | if (*salt == NULL) | ||
| 582 | { | ||
| 583 | char *tmp_salt; | ||
| 584 | |||
| 585 | if ((tmp_salt = OPENSSL_malloc(SRP_RANDOM_SALT_LEN * 2)) == NULL) | ||
| 586 | { | ||
| 587 | OPENSSL_free(vf); | ||
| 588 | goto err; | ||
| 589 | } | ||
| 590 | t_tob64(tmp_salt, tmp2, SRP_RANDOM_SALT_LEN); | ||
| 591 | *salt = tmp_salt; | ||
| 592 | } | ||
| 593 | |||
| 594 | result=defgNid; | ||
| 595 | |||
| 596 | err: | ||
| 597 | if(N) | ||
| 598 | { | ||
| 599 | BN_free(N_bn); | ||
| 600 | BN_free(g_bn); | ||
| 601 | } | ||
| 602 | return result; | ||
| 603 | } | ||
| 604 | |||
| 605 | /* | ||
| 606 | create a verifier (*salt,*verifier,g and N are BIGNUMs) | ||
| 607 | */ | ||
| 608 | int SRP_create_verifier_BN(const char *user, const char *pass, BIGNUM **salt, BIGNUM **verifier, BIGNUM *N, BIGNUM *g) | ||
| 609 | { | ||
| 610 | int result=0; | ||
| 611 | BIGNUM *x = NULL; | ||
| 612 | BN_CTX *bn_ctx = BN_CTX_new(); | ||
| 613 | unsigned char tmp2[MAX_LEN]; | ||
| 614 | |||
| 615 | if ((user == NULL)|| | ||
| 616 | (pass == NULL)|| | ||
| 617 | (salt == NULL)|| | ||
| 618 | (verifier == NULL)|| | ||
| 619 | (N == NULL)|| | ||
| 620 | (g == NULL)|| | ||
| 621 | (bn_ctx == NULL)) | ||
| 622 | goto err; | ||
| 623 | |||
| 624 | srp_bn_print(N); | ||
| 625 | srp_bn_print(g); | ||
| 626 | |||
| 627 | if (*salt == NULL) | ||
| 628 | { | ||
| 629 | RAND_pseudo_bytes(tmp2, SRP_RANDOM_SALT_LEN); | ||
| 630 | |||
| 631 | *salt = BN_bin2bn(tmp2,SRP_RANDOM_SALT_LEN,NULL); | ||
| 632 | } | ||
| 633 | |||
| 634 | x = SRP_Calc_x(*salt,user,pass); | ||
| 635 | |||
| 636 | *verifier = BN_new(); | ||
| 637 | if(*verifier == NULL) goto err; | ||
| 638 | |||
| 639 | if (!BN_mod_exp(*verifier,g,x,N,bn_ctx)) | ||
| 640 | { | ||
| 641 | BN_clear_free(*verifier); | ||
| 642 | goto err; | ||
| 643 | } | ||
| 644 | |||
| 645 | srp_bn_print(*verifier); | ||
| 646 | |||
| 647 | result=1; | ||
| 648 | |||
| 649 | err: | ||
| 650 | |||
| 651 | BN_clear_free(x); | ||
| 652 | BN_CTX_free(bn_ctx); | ||
| 653 | return result; | ||
| 654 | } | ||
| 655 | |||
| 656 | |||
| 657 | |||
| 658 | #endif | ||
diff --git a/src/lib/libcrypto/srp/srptest.c b/src/lib/libcrypto/srp/srptest.c deleted file mode 100644 index 04b66b4544..0000000000 --- a/src/lib/libcrypto/srp/srptest.c +++ /dev/null | |||
| @@ -1,162 +0,0 @@ | |||
| 1 | #include <openssl/opensslconf.h> | ||
| 2 | #ifdef OPENSSL_NO_SRP | ||
| 3 | |||
| 4 | #include <stdio.h> | ||
| 5 | |||
| 6 | int main(int argc, char *argv[]) | ||
| 7 | { | ||
| 8 | printf("No SRP support\n"); | ||
| 9 | return(0); | ||
| 10 | } | ||
| 11 | |||
| 12 | #else | ||
| 13 | |||
| 14 | #include <openssl/srp.h> | ||
| 15 | #include <openssl/rand.h> | ||
| 16 | #include <openssl/err.h> | ||
| 17 | |||
| 18 | static void showbn(const char *name, const BIGNUM *bn) | ||
| 19 | { | ||
| 20 | fputs(name, stdout); | ||
| 21 | fputs(" = ", stdout); | ||
| 22 | BN_print_fp(stdout, bn); | ||
| 23 | putc('\n', stdout); | ||
| 24 | } | ||
| 25 | |||
| 26 | #define RANDOM_SIZE 32 /* use 256 bits on each side */ | ||
| 27 | |||
| 28 | static int run_srp(const char *username, const char *client_pass, const char *server_pass) | ||
| 29 | { | ||
| 30 | int ret=-1; | ||
| 31 | BIGNUM *s = NULL; | ||
| 32 | BIGNUM *v = NULL; | ||
| 33 | BIGNUM *a = NULL; | ||
| 34 | BIGNUM *b = NULL; | ||
| 35 | BIGNUM *u = NULL; | ||
| 36 | BIGNUM *x = NULL; | ||
| 37 | BIGNUM *Apub = NULL; | ||
| 38 | BIGNUM *Bpub = NULL; | ||
| 39 | BIGNUM *Kclient = NULL; | ||
| 40 | BIGNUM *Kserver = NULL; | ||
| 41 | unsigned char rand_tmp[RANDOM_SIZE]; | ||
| 42 | /* use builtin 1024-bit params */ | ||
| 43 | SRP_gN *GN = SRP_get_default_gN("1024"); | ||
| 44 | |||
| 45 | if(GN == NULL) | ||
| 46 | { | ||
| 47 | fprintf(stderr, "Failed to get SRP parameters\n"); | ||
| 48 | return -1; | ||
| 49 | } | ||
| 50 | /* Set up server's password entry */ | ||
| 51 | if(!SRP_create_verifier_BN(username, server_pass, &s, &v, GN->N, GN->g)) | ||
| 52 | { | ||
| 53 | fprintf(stderr, "Failed to create SRP verifier\n"); | ||
| 54 | return -1; | ||
| 55 | } | ||
| 56 | |||
| 57 | showbn("N", GN->N); | ||
| 58 | showbn("g", GN->g); | ||
| 59 | showbn("Salt", s); | ||
| 60 | showbn("Verifier", v); | ||
| 61 | |||
| 62 | /* Server random */ | ||
| 63 | RAND_pseudo_bytes(rand_tmp, sizeof(rand_tmp)); | ||
| 64 | b = BN_bin2bn(rand_tmp, sizeof(rand_tmp), NULL); | ||
| 65 | /* TODO - check b != 0 */ | ||
| 66 | showbn("b", b); | ||
| 67 | |||
| 68 | /* Server's first message */ | ||
| 69 | Bpub = SRP_Calc_B(b, GN->N, GN->g, v); | ||
| 70 | showbn("B", Bpub); | ||
| 71 | |||
| 72 | if(!SRP_Verify_B_mod_N(Bpub, GN->N)) | ||
| 73 | { | ||
| 74 | fprintf(stderr, "Invalid B\n"); | ||
| 75 | return -1; | ||
| 76 | } | ||
| 77 | |||
| 78 | /* Client random */ | ||
| 79 | RAND_pseudo_bytes(rand_tmp, sizeof(rand_tmp)); | ||
| 80 | a = BN_bin2bn(rand_tmp, sizeof(rand_tmp), NULL); | ||
| 81 | /* TODO - check a != 0 */ | ||
| 82 | showbn("a", a); | ||
| 83 | |||
| 84 | /* Client's response */ | ||
| 85 | Apub = SRP_Calc_A(a, GN->N, GN->g); | ||
| 86 | showbn("A", Apub); | ||
| 87 | |||
| 88 | if(!SRP_Verify_A_mod_N(Apub, GN->N)) | ||
| 89 | { | ||
| 90 | fprintf(stderr, "Invalid A\n"); | ||
| 91 | return -1; | ||
| 92 | } | ||
| 93 | |||
| 94 | /* Both sides calculate u */ | ||
| 95 | u = SRP_Calc_u(Apub, Bpub, GN->N); | ||
| 96 | |||
| 97 | /* Client's key */ | ||
| 98 | x = SRP_Calc_x(s, username, client_pass); | ||
| 99 | Kclient = SRP_Calc_client_key(GN->N, Bpub, GN->g, x, a, u); | ||
| 100 | showbn("Client's key", Kclient); | ||
| 101 | |||
| 102 | /* Server's key */ | ||
| 103 | Kserver = SRP_Calc_server_key(Apub, v, u, b, GN->N); | ||
| 104 | showbn("Server's key", Kserver); | ||
| 105 | |||
| 106 | if(BN_cmp(Kclient, Kserver) == 0) | ||
| 107 | { | ||
| 108 | ret = 0; | ||
| 109 | } | ||
| 110 | else | ||
| 111 | { | ||
| 112 | fprintf(stderr, "Keys mismatch\n"); | ||
| 113 | ret = 1; | ||
| 114 | } | ||
| 115 | |||
| 116 | BN_clear_free(Kclient); | ||
| 117 | BN_clear_free(Kserver); | ||
| 118 | BN_clear_free(x); | ||
| 119 | BN_free(u); | ||
| 120 | BN_free(Apub); | ||
| 121 | BN_clear_free(a); | ||
| 122 | BN_free(Bpub); | ||
| 123 | BN_clear_free(b); | ||
| 124 | BN_free(s); | ||
| 125 | BN_clear_free(v); | ||
| 126 | |||
| 127 | return ret; | ||
| 128 | } | ||
| 129 | |||
| 130 | int main(int argc, char **argv) | ||
| 131 | { | ||
| 132 | BIO *bio_err; | ||
| 133 | bio_err = BIO_new_fp(stderr, BIO_NOCLOSE); | ||
| 134 | |||
| 135 | CRYPTO_malloc_debug_init(); | ||
| 136 | CRYPTO_dbg_set_options(V_CRYPTO_MDEBUG_ALL); | ||
| 137 | CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_ON); | ||
| 138 | |||
| 139 | ERR_load_crypto_strings(); | ||
| 140 | |||
| 141 | /* "Negative" test, expect a mismatch */ | ||
| 142 | if(run_srp("alice", "password1", "password2") == 0) | ||
| 143 | { | ||
| 144 | fprintf(stderr, "Mismatched SRP run failed\n"); | ||
| 145 | return 1; | ||
| 146 | } | ||
| 147 | |||
| 148 | /* "Positive" test, should pass */ | ||
| 149 | if(run_srp("alice", "password", "password") != 0) | ||
| 150 | { | ||
| 151 | fprintf(stderr, "Plain SRP run failed\n"); | ||
| 152 | return 1; | ||
| 153 | } | ||
| 154 | |||
| 155 | CRYPTO_cleanup_all_ex_data(); | ||
| 156 | ERR_remove_thread_state(NULL); | ||
| 157 | ERR_free_strings(); | ||
| 158 | CRYPTO_mem_leaks(bio_err); | ||
| 159 | |||
| 160 | return 0; | ||
| 161 | } | ||
| 162 | #endif | ||
diff --git a/src/lib/libcrypto/stack/Makefile.ssl b/src/lib/libcrypto/stack/Makefile.ssl deleted file mode 100644 index 7120fb804a..0000000000 --- a/src/lib/libcrypto/stack/Makefile.ssl +++ /dev/null | |||
| @@ -1,88 +0,0 @@ | |||
| 1 | # | ||
| 2 | # SSLeay/crypto/stack/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= stack | ||
| 6 | TOP= ../.. | ||
| 7 | CC= cc | ||
| 8 | INCLUDES= | ||
| 9 | CFLAG=-g | ||
| 10 | INSTALL_PREFIX= | ||
| 11 | OPENSSLDIR= /usr/local/ssl | ||
| 12 | INSTALLTOP=/usr/local/ssl | ||
| 13 | MAKE= make -f Makefile.ssl | ||
| 14 | MAKEDEPPROG= makedepend | ||
| 15 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
| 16 | MAKEFILE= Makefile.ssl | ||
| 17 | AR= ar r | ||
| 18 | |||
| 19 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 20 | |||
| 21 | GENERAL=Makefile | ||
| 22 | TEST= | ||
| 23 | APPS= | ||
| 24 | |||
| 25 | LIB=$(TOP)/libcrypto.a | ||
| 26 | LIBSRC=stack.c | ||
| 27 | LIBOBJ=stack.o | ||
| 28 | |||
| 29 | SRC= $(LIBSRC) | ||
| 30 | |||
| 31 | EXHEADER= stack.h safestack.h | ||
| 32 | HEADER= $(EXHEADER) | ||
| 33 | |||
| 34 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
| 35 | |||
| 36 | top: | ||
| 37 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
| 38 | |||
| 39 | all: lib | ||
| 40 | |||
| 41 | lib: $(LIBOBJ) | ||
| 42 | $(AR) $(LIB) $(LIBOBJ) | ||
| 43 | $(RANLIB) $(LIB) || echo Never mind. | ||
| 44 | @touch lib | ||
| 45 | |||
| 46 | files: | ||
| 47 | $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
| 48 | |||
| 49 | links: | ||
| 50 | @sh $(TOP)/util/point.sh Makefile.ssl Makefile | ||
| 51 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | ||
| 52 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | ||
| 53 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | ||
| 54 | |||
| 55 | install: | ||
| 56 | @for i in $(EXHEADER) ; \ | ||
| 57 | do \ | ||
| 58 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 59 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
| 60 | done; | ||
| 61 | |||
| 62 | tags: | ||
| 63 | ctags $(SRC) | ||
| 64 | |||
| 65 | tests: | ||
| 66 | |||
| 67 | lint: | ||
| 68 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
| 69 | |||
| 70 | depend: | ||
| 71 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) | ||
| 72 | |||
| 73 | dclean: | ||
| 74 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 75 | mv -f Makefile.new $(MAKEFILE) | ||
| 76 | |||
| 77 | clean: | ||
| 78 | rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
| 79 | |||
| 80 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 81 | |||
| 82 | stack.o: ../../e_os.h ../../include/openssl/bio.h | ||
| 83 | stack.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 84 | stack.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 85 | stack.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 86 | stack.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 87 | stack.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 88 | stack.o: ../cryptlib.h stack.c | ||
diff --git a/src/lib/libcrypto/store/Makefile b/src/lib/libcrypto/store/Makefile deleted file mode 100644 index 0dcfd7857a..0000000000 --- a/src/lib/libcrypto/store/Makefile +++ /dev/null | |||
| @@ -1,112 +0,0 @@ | |||
| 1 | # | ||
| 2 | # OpenSSL/crypto/store/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= store | ||
| 6 | TOP= ../.. | ||
| 7 | CC= cc | ||
| 8 | INCLUDES= -I.. -I$(TOP) -I../../include | ||
| 9 | CFLAG=-g | ||
| 10 | MAKEFILE= Makefile | ||
| 11 | AR= ar r | ||
| 12 | |||
| 13 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 14 | |||
| 15 | GENERAL=Makefile | ||
| 16 | #TEST= storetest.c | ||
| 17 | TEST= | ||
| 18 | APPS= | ||
| 19 | |||
| 20 | LIB=$(TOP)/libcrypto.a | ||
| 21 | LIBSRC= str_err.c str_lib.c str_meth.c str_mem.c | ||
| 22 | LIBOBJ= str_err.o str_lib.o str_meth.o str_mem.o | ||
| 23 | |||
| 24 | SRC= $(LIBSRC) | ||
| 25 | |||
| 26 | #EXHEADER= store.h str_compat.h | ||
| 27 | EXHEADER= store.h | ||
| 28 | HEADER= $(EXHEADER) str_locl.h | ||
| 29 | |||
| 30 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
| 31 | |||
| 32 | top: | ||
| 33 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
| 34 | |||
| 35 | all: lib | ||
| 36 | |||
| 37 | lib: $(LIBOBJ) | ||
| 38 | $(AR) $(LIB) $(LIBOBJ) | ||
| 39 | $(RANLIB) $(LIB) || echo Never mind. | ||
| 40 | @touch lib | ||
| 41 | |||
| 42 | files: | ||
| 43 | $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO | ||
| 44 | |||
| 45 | links: | ||
| 46 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | ||
| 47 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | ||
| 48 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | ||
| 49 | |||
| 50 | install: | ||
| 51 | @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile... | ||
| 52 | @headerlist="$(EXHEADER)"; for i in $$headerlist; \ | ||
| 53 | do \ | ||
| 54 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 55 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
| 56 | done; | ||
| 57 | |||
| 58 | tags: | ||
| 59 | ctags $(SRC) | ||
| 60 | |||
| 61 | tests: | ||
| 62 | |||
| 63 | lint: | ||
| 64 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
| 65 | |||
| 66 | depend: | ||
| 67 | @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile... | ||
| 68 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) | ||
| 69 | |||
| 70 | dclean: | ||
| 71 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 72 | mv -f Makefile.new $(MAKEFILE) | ||
| 73 | |||
| 74 | clean: | ||
| 75 | rm -f *.o */*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
| 76 | |||
| 77 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 78 | |||
| 79 | str_err.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h | ||
| 80 | str_err.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 81 | str_err.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 82 | str_err.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 83 | str_err.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 84 | str_err.o: ../../include/openssl/store.h ../../include/openssl/symhacks.h | ||
| 85 | str_err.o: str_err.c | ||
| 86 | str_lib.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 87 | str_lib.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 88 | str_lib.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 89 | str_lib.o: ../../include/openssl/ec.h ../../include/openssl/ecdh.h | ||
| 90 | str_lib.o: ../../include/openssl/ecdsa.h ../../include/openssl/engine.h | ||
| 91 | str_lib.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 92 | str_lib.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h | ||
| 93 | str_lib.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 94 | str_lib.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 95 | str_lib.o: ../../include/openssl/pkcs7.h ../../include/openssl/safestack.h | ||
| 96 | str_lib.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 97 | str_lib.o: ../../include/openssl/store.h ../../include/openssl/symhacks.h | ||
| 98 | str_lib.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 99 | str_lib.o: str_lib.c str_locl.h | ||
| 100 | str_mem.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h | ||
| 101 | str_mem.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 102 | str_mem.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 103 | str_mem.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 104 | str_mem.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 105 | str_mem.o: ../../include/openssl/store.h ../../include/openssl/symhacks.h | ||
| 106 | str_mem.o: str_locl.h str_mem.c | ||
| 107 | str_meth.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 108 | str_meth.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h | ||
| 109 | str_meth.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 110 | str_meth.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 111 | str_meth.o: ../../include/openssl/store.h ../../include/openssl/symhacks.h | ||
| 112 | str_meth.o: str_locl.h str_meth.c | ||
diff --git a/src/lib/libcrypto/store/README b/src/lib/libcrypto/store/README deleted file mode 100644 index 966168f6a5..0000000000 --- a/src/lib/libcrypto/store/README +++ /dev/null | |||
| @@ -1,95 +0,0 @@ | |||
| 1 | The STORE type | ||
| 2 | ============== | ||
| 3 | |||
| 4 | A STORE, as defined in this code section, is really a rather simple | ||
| 5 | thing which stores objects and per-object associations to a number | ||
| 6 | of attributes. What attributes are supported entirely depends on | ||
| 7 | the particular implementation of a STORE. It has some support for | ||
| 8 | generation of certain objects (for example, keys and CRLs). | ||
| 9 | |||
| 10 | |||
| 11 | Supported object types | ||
| 12 | ---------------------- | ||
| 13 | |||
| 14 | For now, the objects that are supported are the following: | ||
| 15 | |||
| 16 | X.509 certificate | ||
| 17 | X.509 CRL | ||
| 18 | private key | ||
| 19 | public key | ||
| 20 | number | ||
| 21 | arbitrary (application) data | ||
| 22 | |||
| 23 | The intention is that a STORE should be able to store everything | ||
| 24 | needed by an application that wants a cert/key store, as well as | ||
| 25 | the data a CA might need to store (this includes the serial number | ||
| 26 | counter, which explains the support for numbers). | ||
| 27 | |||
| 28 | |||
| 29 | Supported attribute types | ||
| 30 | ------------------------- | ||
| 31 | |||
| 32 | For now, the following attributes are supported: | ||
| 33 | |||
| 34 | Friendly Name - the value is a normal C string | ||
| 35 | Key ID - the value is a 160 bit SHA1 hash | ||
| 36 | Issuer Key ID - the value is a 160 bit SHA1 hash | ||
| 37 | Subject Key ID - the value is a 160 bit SHA1 hash | ||
| 38 | Issuer/Serial Hash - the value is a 160 bit SHA1 hash | ||
| 39 | Issuer - the value is a X509_NAME | ||
| 40 | Serial - the value is a BIGNUM | ||
| 41 | Subject - the value is a X509_NAME | ||
| 42 | Certificate Hash - the value is a 160 bit SHA1 hash | ||
| 43 | Email - the value is a normal C string | ||
| 44 | Filename - the value is a normal C string | ||
| 45 | |||
| 46 | It is expected that these attributes should be enough to support | ||
| 47 | the need from most, if not all, current applications. Applications | ||
| 48 | that need to do certificate verification would typically use Subject | ||
| 49 | Key ID, Issuer/Serial Hash or Subject to look up issuer certificates. | ||
| 50 | S/MIME applications would typically use Email to look up recipient | ||
| 51 | and signer certificates. | ||
| 52 | |||
| 53 | There's added support for combined sets of attributes to search for, | ||
| 54 | with the special OR attribute. | ||
| 55 | |||
| 56 | |||
| 57 | Supported basic functionality | ||
| 58 | ----------------------------- | ||
| 59 | |||
| 60 | The functions that are supported through the STORE type are these: | ||
| 61 | |||
| 62 | generate_object - for example to generate keys and CRLs | ||
| 63 | get_object - to look up one object | ||
| 64 | NOTE: this function is really rather | ||
| 65 | redundant and probably of lesser usage | ||
| 66 | than the list functions | ||
| 67 | store_object - store an object and the attributes | ||
| 68 | associated with it | ||
| 69 | modify_object - modify the attributes associated with | ||
| 70 | a specific object | ||
| 71 | revoke_object - revoke an object | ||
| 72 | NOTE: this only marks an object as | ||
| 73 | invalid, it doesn't remove the object | ||
| 74 | from the database | ||
| 75 | delete_object - remove an object from the database | ||
| 76 | list_object - list objects associated with a given | ||
| 77 | set of attributes | ||
| 78 | NOTE: this is really four functions: | ||
| 79 | list_start, list_next, list_end and | ||
| 80 | list_endp | ||
| 81 | update_store - update the internal data of the store | ||
| 82 | lock_store - lock the store | ||
| 83 | unlock_store - unlock the store | ||
| 84 | |||
| 85 | The list functions need some extra explanation: list_start is | ||
| 86 | used to set up a lookup. That's where the attributes to use in | ||
| 87 | the search are set up. It returns a search context. list_next | ||
| 88 | returns the next object searched for. list_end closes the search. | ||
| 89 | list_endp is used to check if we have reached the end. | ||
| 90 | |||
| 91 | A few words on the store functions as well: update_store is | ||
| 92 | typically used by a CA application to update the internal | ||
| 93 | structure of a database. This may for example involve automatic | ||
| 94 | removal of expired certificates. lock_store and unlock_store | ||
| 95 | are used for locking a store to allow exclusive writes. | ||
diff --git a/src/lib/libcrypto/store/store.h b/src/lib/libcrypto/store/store.h deleted file mode 100644 index 0a28c7d5a2..0000000000 --- a/src/lib/libcrypto/store/store.h +++ /dev/null | |||
| @@ -1,561 +0,0 @@ | |||
| 1 | /* crypto/store/store.h -*- mode:C; c-file-style: "eay" -*- */ | ||
| 2 | /* Written by Richard Levitte (richard@levitte.org) for the OpenSSL | ||
| 3 | * project 2003. | ||
| 4 | */ | ||
| 5 | /* ==================================================================== | ||
| 6 | * Copyright (c) 2003 The OpenSSL Project. All rights reserved. | ||
| 7 | * | ||
| 8 | * Redistribution and use in source and binary forms, with or without | ||
| 9 | * modification, are permitted provided that the following conditions | ||
| 10 | * are met: | ||
| 11 | * | ||
| 12 | * 1. Redistributions of source code must retain the above copyright | ||
| 13 | * notice, this list of conditions and the following disclaimer. | ||
| 14 | * | ||
| 15 | * 2. Redistributions in binary form must reproduce the above copyright | ||
| 16 | * notice, this list of conditions and the following disclaimer in | ||
| 17 | * the documentation and/or other materials provided with the | ||
| 18 | * distribution. | ||
| 19 | * | ||
| 20 | * 3. All advertising materials mentioning features or use of this | ||
| 21 | * software must display the following acknowledgment: | ||
| 22 | * "This product includes software developed by the OpenSSL Project | ||
| 23 | * for use in the OpenSSL Toolkit. (http://www.openssl.org/)" | ||
| 24 | * | ||
| 25 | * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to | ||
| 26 | * endorse or promote products derived from this software without | ||
| 27 | * prior written permission. For written permission, please contact | ||
| 28 | * openssl-core@openssl.org. | ||
| 29 | * | ||
| 30 | * 5. Products derived from this software may not be called "OpenSSL" | ||
| 31 | * nor may "OpenSSL" appear in their names without prior written | ||
| 32 | * permission of the OpenSSL Project. | ||
| 33 | * | ||
| 34 | * 6. Redistributions of any form whatsoever must retain the following | ||
| 35 | * acknowledgment: | ||
| 36 | * "This product includes software developed by the OpenSSL Project | ||
| 37 | * for use in the OpenSSL Toolkit (http://www.openssl.org/)" | ||
| 38 | * | ||
| 39 | * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY | ||
| 40 | * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
| 41 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | ||
| 42 | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR | ||
| 43 | * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
| 44 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | ||
| 45 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
| 46 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
| 47 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | ||
| 48 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
| 49 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | ||
| 50 | * OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| 51 | * ==================================================================== | ||
| 52 | * | ||
| 53 | * This product includes cryptographic software written by Eric Young | ||
| 54 | * (eay@cryptsoft.com). This product includes software written by Tim | ||
| 55 | * Hudson (tjh@cryptsoft.com). | ||
| 56 | * | ||
| 57 | */ | ||
| 58 | |||
| 59 | #ifndef HEADER_STORE_H | ||
| 60 | #define HEADER_STORE_H | ||
| 61 | |||
| 62 | #include <openssl/opensslconf.h> | ||
| 63 | |||
| 64 | #ifdef OPENSSL_NO_STORE | ||
| 65 | #error STORE is disabled. | ||
| 66 | #endif | ||
| 67 | |||
| 68 | #include <openssl/ossl_typ.h> | ||
| 69 | #ifndef OPENSSL_NO_DEPRECATED | ||
| 70 | #include <openssl/evp.h> | ||
| 71 | #include <openssl/bn.h> | ||
| 72 | #include <openssl/x509.h> | ||
| 73 | #endif | ||
| 74 | |||
| 75 | #ifdef __cplusplus | ||
| 76 | extern "C" { | ||
| 77 | #endif | ||
| 78 | |||
| 79 | /* Already defined in ossl_typ.h */ | ||
| 80 | /* typedef struct store_st STORE; */ | ||
| 81 | /* typedef struct store_method_st STORE_METHOD; */ | ||
| 82 | |||
| 83 | |||
| 84 | /* All the following functions return 0, a negative number or NULL on error. | ||
| 85 | When everything is fine, they return a positive value or a non-NULL | ||
| 86 | pointer, all depending on their purpose. */ | ||
| 87 | |||
| 88 | /* Creators and destructor. */ | ||
| 89 | STORE *STORE_new_method(const STORE_METHOD *method); | ||
| 90 | STORE *STORE_new_engine(ENGINE *engine); | ||
| 91 | void STORE_free(STORE *ui); | ||
| 92 | |||
| 93 | |||
| 94 | /* Give a user interface parametrised control commands. This can be used to | ||
| 95 | send down an integer, a data pointer or a function pointer, as well as | ||
| 96 | be used to get information from a STORE. */ | ||
| 97 | int STORE_ctrl(STORE *store, int cmd, long i, void *p, void (*f)(void)); | ||
| 98 | |||
| 99 | /* A control to set the directory with keys and certificates. Used by the | ||
| 100 | built-in directory level method. */ | ||
| 101 | #define STORE_CTRL_SET_DIRECTORY 0x0001 | ||
| 102 | /* A control to set a file to load. Used by the built-in file level method. */ | ||
| 103 | #define STORE_CTRL_SET_FILE 0x0002 | ||
| 104 | /* A control to set a configuration file to load. Can be used by any method | ||
| 105 | that wishes to load a configuration file. */ | ||
| 106 | #define STORE_CTRL_SET_CONF_FILE 0x0003 | ||
| 107 | /* A control to set a the section of the loaded configuration file. Can be | ||
| 108 | used by any method that wishes to load a configuration file. */ | ||
| 109 | #define STORE_CTRL_SET_CONF_SECTION 0x0004 | ||
| 110 | |||
| 111 | |||
| 112 | /* Some methods may use extra data */ | ||
| 113 | #define STORE_set_app_data(s,arg) STORE_set_ex_data(s,0,arg) | ||
| 114 | #define STORE_get_app_data(s) STORE_get_ex_data(s,0) | ||
| 115 | int STORE_get_ex_new_index(long argl, void *argp, CRYPTO_EX_new *new_func, | ||
| 116 | CRYPTO_EX_dup *dup_func, CRYPTO_EX_free *free_func); | ||
| 117 | int STORE_set_ex_data(STORE *r,int idx,void *arg); | ||
| 118 | void *STORE_get_ex_data(STORE *r, int idx); | ||
| 119 | |||
| 120 | /* Use specific methods instead of the built-in one */ | ||
| 121 | const STORE_METHOD *STORE_get_method(STORE *store); | ||
| 122 | const STORE_METHOD *STORE_set_method(STORE *store, const STORE_METHOD *meth); | ||
| 123 | |||
| 124 | /* The standard OpenSSL methods. */ | ||
| 125 | /* This is the in-memory method. It does everything except revoking and updating, | ||
| 126 | and is of course volatile. It's used by other methods that have an in-memory | ||
| 127 | cache. */ | ||
| 128 | const STORE_METHOD *STORE_Memory(void); | ||
| 129 | #if 0 /* Not yet implemented */ | ||
| 130 | /* This is the directory store. It does everything except revoking and updating, | ||
| 131 | and uses STORE_Memory() to cache things in memory. */ | ||
| 132 | const STORE_METHOD *STORE_Directory(void); | ||
| 133 | /* This is the file store. It does everything except revoking and updating, | ||
| 134 | and uses STORE_Memory() to cache things in memory. Certificates are added | ||
| 135 | to it with the store operation, and it will only get cached certificates. */ | ||
| 136 | const STORE_METHOD *STORE_File(void); | ||
| 137 | #endif | ||
| 138 | |||
| 139 | /* Store functions take a type code for the type of data they should store | ||
| 140 | or fetch */ | ||
| 141 | typedef enum STORE_object_types | ||
| 142 | { | ||
| 143 | STORE_OBJECT_TYPE_X509_CERTIFICATE= 0x01, /* X509 * */ | ||
| 144 | STORE_OBJECT_TYPE_X509_CRL= 0x02, /* X509_CRL * */ | ||
| 145 | STORE_OBJECT_TYPE_PRIVATE_KEY= 0x03, /* EVP_PKEY * */ | ||
| 146 | STORE_OBJECT_TYPE_PUBLIC_KEY= 0x04, /* EVP_PKEY * */ | ||
| 147 | STORE_OBJECT_TYPE_NUMBER= 0x05, /* BIGNUM * */ | ||
| 148 | STORE_OBJECT_TYPE_ARBITRARY= 0x06, /* BUF_MEM * */ | ||
| 149 | STORE_OBJECT_TYPE_NUM= 0x06 /* The amount of known | ||
| 150 | object types */ | ||
| 151 | } STORE_OBJECT_TYPES; | ||
| 152 | /* List of text strings corresponding to the object types. */ | ||
| 153 | extern const char * const STORE_object_type_string[STORE_OBJECT_TYPE_NUM+1]; | ||
| 154 | |||
| 155 | /* Some store functions take a parameter list. Those parameters come with | ||
| 156 | one of the following codes. The comments following the codes below indicate | ||
| 157 | what type the value should be a pointer to. */ | ||
| 158 | typedef enum STORE_params | ||
| 159 | { | ||
| 160 | STORE_PARAM_EVP_TYPE= 0x01, /* int */ | ||
| 161 | STORE_PARAM_BITS= 0x02, /* size_t */ | ||
| 162 | STORE_PARAM_KEY_PARAMETERS= 0x03, /* ??? */ | ||
| 163 | STORE_PARAM_KEY_NO_PARAMETERS= 0x04, /* N/A */ | ||
| 164 | STORE_PARAM_AUTH_PASSPHRASE= 0x05, /* char * */ | ||
| 165 | STORE_PARAM_AUTH_KRB5_TICKET= 0x06, /* void * */ | ||
| 166 | STORE_PARAM_TYPE_NUM= 0x06 /* The amount of known | ||
| 167 | parameter types */ | ||
| 168 | } STORE_PARAM_TYPES; | ||
| 169 | /* Parameter value sizes. -1 means unknown, anything else is the required size. */ | ||
| 170 | extern const int STORE_param_sizes[STORE_PARAM_TYPE_NUM+1]; | ||
| 171 | |||
| 172 | /* Store functions take attribute lists. Those attributes come with codes. | ||
| 173 | The comments following the codes below indicate what type the value should | ||
| 174 | be a pointer to. */ | ||
| 175 | typedef enum STORE_attribs | ||
| 176 | { | ||
| 177 | STORE_ATTR_END= 0x00, | ||
| 178 | STORE_ATTR_FRIENDLYNAME= 0x01, /* C string */ | ||
| 179 | STORE_ATTR_KEYID= 0x02, /* 160 bit string (SHA1) */ | ||
| 180 | STORE_ATTR_ISSUERKEYID= 0x03, /* 160 bit string (SHA1) */ | ||
| 181 | STORE_ATTR_SUBJECTKEYID= 0x04, /* 160 bit string (SHA1) */ | ||
| 182 | STORE_ATTR_ISSUERSERIALHASH= 0x05, /* 160 bit string (SHA1) */ | ||
| 183 | STORE_ATTR_ISSUER= 0x06, /* X509_NAME * */ | ||
| 184 | STORE_ATTR_SERIAL= 0x07, /* BIGNUM * */ | ||
| 185 | STORE_ATTR_SUBJECT= 0x08, /* X509_NAME * */ | ||
| 186 | STORE_ATTR_CERTHASH= 0x09, /* 160 bit string (SHA1) */ | ||
| 187 | STORE_ATTR_EMAIL= 0x0a, /* C string */ | ||
| 188 | STORE_ATTR_FILENAME= 0x0b, /* C string */ | ||
| 189 | STORE_ATTR_TYPE_NUM= 0x0b, /* The amount of known | ||
| 190 | attribute types */ | ||
| 191 | STORE_ATTR_OR= 0xff /* This is a special | ||
| 192 | separator, which | ||
| 193 | expresses the OR | ||
| 194 | operation. */ | ||
| 195 | } STORE_ATTR_TYPES; | ||
| 196 | /* Attribute value sizes. -1 means unknown, anything else is the required size. */ | ||
| 197 | extern const int STORE_attr_sizes[STORE_ATTR_TYPE_NUM+1]; | ||
| 198 | |||
| 199 | typedef enum STORE_certificate_status | ||
| 200 | { | ||
| 201 | STORE_X509_VALID= 0x00, | ||
| 202 | STORE_X509_EXPIRED= 0x01, | ||
| 203 | STORE_X509_SUSPENDED= 0x02, | ||
| 204 | STORE_X509_REVOKED= 0x03 | ||
| 205 | } STORE_CERTIFICATE_STATUS; | ||
| 206 | |||
| 207 | /* Engine store functions will return a structure that contains all the necessary | ||
| 208 | * information, including revokation status for certificates. This is really not | ||
| 209 | * needed for application authors, as the ENGINE framework functions will extract | ||
| 210 | * the OpenSSL-specific information when at all possible. However, for engine | ||
| 211 | * authors, it's crucial to know this structure. */ | ||
| 212 | typedef struct STORE_OBJECT_st | ||
| 213 | { | ||
| 214 | STORE_OBJECT_TYPES type; | ||
| 215 | union | ||
| 216 | { | ||
| 217 | struct | ||
| 218 | { | ||
| 219 | STORE_CERTIFICATE_STATUS status; | ||
| 220 | X509 *certificate; | ||
| 221 | } x509; | ||
| 222 | X509_CRL *crl; | ||
| 223 | EVP_PKEY *key; | ||
| 224 | BIGNUM *number; | ||
| 225 | BUF_MEM *arbitrary; | ||
| 226 | } data; | ||
| 227 | } STORE_OBJECT; | ||
| 228 | DECLARE_STACK_OF(STORE_OBJECT) | ||
| 229 | STORE_OBJECT *STORE_OBJECT_new(void); | ||
| 230 | void STORE_OBJECT_free(STORE_OBJECT *data); | ||
| 231 | |||
| 232 | |||
| 233 | |||
| 234 | /* The following functions handle the storage. They return 0, a negative number | ||
| 235 | or NULL on error, anything else on success. */ | ||
| 236 | X509 *STORE_get_certificate(STORE *e, OPENSSL_ITEM attributes[], | ||
| 237 | OPENSSL_ITEM parameters[]); | ||
| 238 | int STORE_store_certificate(STORE *e, X509 *data, OPENSSL_ITEM attributes[], | ||
| 239 | OPENSSL_ITEM parameters[]); | ||
| 240 | int STORE_modify_certificate(STORE *e, OPENSSL_ITEM search_attributes[], | ||
| 241 | OPENSSL_ITEM add_attributes[], OPENSSL_ITEM modify_attributes[], | ||
| 242 | OPENSSL_ITEM delete_attributes[], OPENSSL_ITEM parameters[]); | ||
| 243 | int STORE_revoke_certificate(STORE *e, OPENSSL_ITEM attributes[], | ||
| 244 | OPENSSL_ITEM parameters[]); | ||
| 245 | int STORE_delete_certificate(STORE *e, OPENSSL_ITEM attributes[], | ||
| 246 | OPENSSL_ITEM parameters[]); | ||
| 247 | void *STORE_list_certificate_start(STORE *e, OPENSSL_ITEM attributes[], | ||
| 248 | OPENSSL_ITEM parameters[]); | ||
| 249 | X509 *STORE_list_certificate_next(STORE *e, void *handle); | ||
| 250 | int STORE_list_certificate_end(STORE *e, void *handle); | ||
| 251 | int STORE_list_certificate_endp(STORE *e, void *handle); | ||
| 252 | EVP_PKEY *STORE_generate_key(STORE *e, OPENSSL_ITEM attributes[], | ||
| 253 | OPENSSL_ITEM parameters[]); | ||
| 254 | EVP_PKEY *STORE_get_private_key(STORE *e, OPENSSL_ITEM attributes[], | ||
| 255 | OPENSSL_ITEM parameters[]); | ||
| 256 | int STORE_store_private_key(STORE *e, EVP_PKEY *data, | ||
| 257 | OPENSSL_ITEM attributes[], OPENSSL_ITEM parameters[]); | ||
| 258 | int STORE_modify_private_key(STORE *e, OPENSSL_ITEM search_attributes[], | ||
| 259 | OPENSSL_ITEM add_sttributes[], OPENSSL_ITEM modify_attributes[], | ||
| 260 | OPENSSL_ITEM delete_attributes[], OPENSSL_ITEM parameters[]); | ||
| 261 | int STORE_revoke_private_key(STORE *e, OPENSSL_ITEM attributes[], | ||
| 262 | OPENSSL_ITEM parameters[]); | ||
| 263 | int STORE_delete_private_key(STORE *e, OPENSSL_ITEM attributes[], | ||
| 264 | OPENSSL_ITEM parameters[]); | ||
| 265 | void *STORE_list_private_key_start(STORE *e, OPENSSL_ITEM attributes[], | ||
| 266 | OPENSSL_ITEM parameters[]); | ||
| 267 | EVP_PKEY *STORE_list_private_key_next(STORE *e, void *handle); | ||
| 268 | int STORE_list_private_key_end(STORE *e, void *handle); | ||
| 269 | int STORE_list_private_key_endp(STORE *e, void *handle); | ||
| 270 | EVP_PKEY *STORE_get_public_key(STORE *e, OPENSSL_ITEM attributes[], | ||
| 271 | OPENSSL_ITEM parameters[]); | ||
| 272 | int STORE_store_public_key(STORE *e, EVP_PKEY *data, OPENSSL_ITEM attributes[], | ||
| 273 | OPENSSL_ITEM parameters[]); | ||
| 274 | int STORE_modify_public_key(STORE *e, OPENSSL_ITEM search_attributes[], | ||
| 275 | OPENSSL_ITEM add_sttributes[], OPENSSL_ITEM modify_attributes[], | ||
| 276 | OPENSSL_ITEM delete_attributes[], OPENSSL_ITEM parameters[]); | ||
| 277 | int STORE_revoke_public_key(STORE *e, OPENSSL_ITEM attributes[], | ||
| 278 | OPENSSL_ITEM parameters[]); | ||
| 279 | int STORE_delete_public_key(STORE *e, OPENSSL_ITEM attributes[], | ||
| 280 | OPENSSL_ITEM parameters[]); | ||
| 281 | void *STORE_list_public_key_start(STORE *e, OPENSSL_ITEM attributes[], | ||
| 282 | OPENSSL_ITEM parameters[]); | ||
| 283 | EVP_PKEY *STORE_list_public_key_next(STORE *e, void *handle); | ||
| 284 | int STORE_list_public_key_end(STORE *e, void *handle); | ||
| 285 | int STORE_list_public_key_endp(STORE *e, void *handle); | ||
| 286 | X509_CRL *STORE_generate_crl(STORE *e, OPENSSL_ITEM attributes[], | ||
| 287 | OPENSSL_ITEM parameters[]); | ||
| 288 | X509_CRL *STORE_get_crl(STORE *e, OPENSSL_ITEM attributes[], | ||
| 289 | OPENSSL_ITEM parameters[]); | ||
| 290 | int STORE_store_crl(STORE *e, X509_CRL *data, OPENSSL_ITEM attributes[], | ||
| 291 | OPENSSL_ITEM parameters[]); | ||
| 292 | int STORE_modify_crl(STORE *e, OPENSSL_ITEM search_attributes[], | ||
| 293 | OPENSSL_ITEM add_sttributes[], OPENSSL_ITEM modify_attributes[], | ||
| 294 | OPENSSL_ITEM delete_attributes[], OPENSSL_ITEM parameters[]); | ||
| 295 | int STORE_delete_crl(STORE *e, OPENSSL_ITEM attributes[], | ||
| 296 | OPENSSL_ITEM parameters[]); | ||
| 297 | void *STORE_list_crl_start(STORE *e, OPENSSL_ITEM attributes[], | ||
| 298 | OPENSSL_ITEM parameters[]); | ||
| 299 | X509_CRL *STORE_list_crl_next(STORE *e, void *handle); | ||
| 300 | int STORE_list_crl_end(STORE *e, void *handle); | ||
| 301 | int STORE_list_crl_endp(STORE *e, void *handle); | ||
| 302 | int STORE_store_number(STORE *e, BIGNUM *data, OPENSSL_ITEM attributes[], | ||
| 303 | OPENSSL_ITEM parameters[]); | ||
| 304 | int STORE_modify_number(STORE *e, OPENSSL_ITEM search_attributes[], | ||
| 305 | OPENSSL_ITEM add_sttributes[], OPENSSL_ITEM modify_attributes[], | ||
| 306 | OPENSSL_ITEM delete_attributes[], OPENSSL_ITEM parameters[]); | ||
| 307 | BIGNUM *STORE_get_number(STORE *e, OPENSSL_ITEM attributes[], | ||
| 308 | OPENSSL_ITEM parameters[]); | ||
| 309 | int STORE_delete_number(STORE *e, OPENSSL_ITEM attributes[], | ||
| 310 | OPENSSL_ITEM parameters[]); | ||
| 311 | int STORE_store_arbitrary(STORE *e, BUF_MEM *data, OPENSSL_ITEM attributes[], | ||
| 312 | OPENSSL_ITEM parameters[]); | ||
| 313 | int STORE_modify_arbitrary(STORE *e, OPENSSL_ITEM search_attributes[], | ||
| 314 | OPENSSL_ITEM add_sttributes[], OPENSSL_ITEM modify_attributes[], | ||
| 315 | OPENSSL_ITEM delete_attributes[], OPENSSL_ITEM parameters[]); | ||
| 316 | BUF_MEM *STORE_get_arbitrary(STORE *e, OPENSSL_ITEM attributes[], | ||
| 317 | OPENSSL_ITEM parameters[]); | ||
| 318 | int STORE_delete_arbitrary(STORE *e, OPENSSL_ITEM attributes[], | ||
| 319 | OPENSSL_ITEM parameters[]); | ||
| 320 | |||
| 321 | |||
| 322 | /* Create and manipulate methods */ | ||
| 323 | STORE_METHOD *STORE_create_method(char *name); | ||
| 324 | void STORE_destroy_method(STORE_METHOD *store_method); | ||
| 325 | |||
| 326 | /* These callback types are use for store handlers */ | ||
| 327 | typedef int (*STORE_INITIALISE_FUNC_PTR)(STORE *); | ||
| 328 | typedef void (*STORE_CLEANUP_FUNC_PTR)(STORE *); | ||
| 329 | typedef STORE_OBJECT *(*STORE_GENERATE_OBJECT_FUNC_PTR)(STORE *, STORE_OBJECT_TYPES type, OPENSSL_ITEM attributes[], OPENSSL_ITEM parameters[]); | ||
| 330 | typedef STORE_OBJECT *(*STORE_GET_OBJECT_FUNC_PTR)(STORE *, STORE_OBJECT_TYPES type, OPENSSL_ITEM attributes[], OPENSSL_ITEM parameters[]); | ||
| 331 | typedef void *(*STORE_START_OBJECT_FUNC_PTR)(STORE *, STORE_OBJECT_TYPES type, OPENSSL_ITEM attributes[], OPENSSL_ITEM parameters[]); | ||
| 332 | typedef STORE_OBJECT *(*STORE_NEXT_OBJECT_FUNC_PTR)(STORE *, void *handle); | ||
| 333 | typedef int (*STORE_END_OBJECT_FUNC_PTR)(STORE *, void *handle); | ||
| 334 | typedef int (*STORE_HANDLE_OBJECT_FUNC_PTR)(STORE *, STORE_OBJECT_TYPES type, OPENSSL_ITEM attributes[], OPENSSL_ITEM parameters[]); | ||
| 335 | typedef int (*STORE_STORE_OBJECT_FUNC_PTR)(STORE *, STORE_OBJECT_TYPES type, STORE_OBJECT *data, OPENSSL_ITEM attributes[], OPENSSL_ITEM parameters[]); | ||
| 336 | typedef int (*STORE_MODIFY_OBJECT_FUNC_PTR)(STORE *, STORE_OBJECT_TYPES type, OPENSSL_ITEM search_attributes[], OPENSSL_ITEM add_attributes[], OPENSSL_ITEM modify_attributes[], OPENSSL_ITEM delete_attributes[], OPENSSL_ITEM parameters[]); | ||
| 337 | typedef int (*STORE_GENERIC_FUNC_PTR)(STORE *, OPENSSL_ITEM attributes[], OPENSSL_ITEM parameters[]); | ||
| 338 | typedef int (*STORE_CTRL_FUNC_PTR)(STORE *, int cmd, long l, void *p, void (*f)(void)); | ||
| 339 | |||
| 340 | int STORE_method_set_initialise_function(STORE_METHOD *sm, STORE_INITIALISE_FUNC_PTR init_f); | ||
| 341 | int STORE_method_set_cleanup_function(STORE_METHOD *sm, STORE_CLEANUP_FUNC_PTR clean_f); | ||
| 342 | int STORE_method_set_generate_function(STORE_METHOD *sm, STORE_GENERATE_OBJECT_FUNC_PTR generate_f); | ||
| 343 | int STORE_method_set_get_function(STORE_METHOD *sm, STORE_GET_OBJECT_FUNC_PTR get_f); | ||
| 344 | int STORE_method_set_store_function(STORE_METHOD *sm, STORE_STORE_OBJECT_FUNC_PTR store_f); | ||
| 345 | int STORE_method_set_modify_function(STORE_METHOD *sm, STORE_MODIFY_OBJECT_FUNC_PTR store_f); | ||
| 346 | int STORE_method_set_revoke_function(STORE_METHOD *sm, STORE_HANDLE_OBJECT_FUNC_PTR revoke_f); | ||
| 347 | int STORE_method_set_delete_function(STORE_METHOD *sm, STORE_HANDLE_OBJECT_FUNC_PTR delete_f); | ||
| 348 | int STORE_method_set_list_start_function(STORE_METHOD *sm, STORE_START_OBJECT_FUNC_PTR list_start_f); | ||
| 349 | int STORE_method_set_list_next_function(STORE_METHOD *sm, STORE_NEXT_OBJECT_FUNC_PTR list_next_f); | ||
| 350 | int STORE_method_set_list_end_function(STORE_METHOD *sm, STORE_END_OBJECT_FUNC_PTR list_end_f); | ||
| 351 | int STORE_method_set_update_store_function(STORE_METHOD *sm, STORE_GENERIC_FUNC_PTR); | ||
| 352 | int STORE_method_set_lock_store_function(STORE_METHOD *sm, STORE_GENERIC_FUNC_PTR); | ||
| 353 | int STORE_method_set_unlock_store_function(STORE_METHOD *sm, STORE_GENERIC_FUNC_PTR); | ||
| 354 | int STORE_method_set_ctrl_function(STORE_METHOD *sm, STORE_CTRL_FUNC_PTR ctrl_f); | ||
| 355 | |||
| 356 | STORE_INITIALISE_FUNC_PTR STORE_method_get_initialise_function(STORE_METHOD *sm); | ||
| 357 | STORE_CLEANUP_FUNC_PTR STORE_method_get_cleanup_function(STORE_METHOD *sm); | ||
| 358 | STORE_GENERATE_OBJECT_FUNC_PTR STORE_method_get_generate_function(STORE_METHOD *sm); | ||
| 359 | STORE_GET_OBJECT_FUNC_PTR STORE_method_get_get_function(STORE_METHOD *sm); | ||
| 360 | STORE_STORE_OBJECT_FUNC_PTR STORE_method_get_store_function(STORE_METHOD *sm); | ||
| 361 | STORE_MODIFY_OBJECT_FUNC_PTR STORE_method_get_modify_function(STORE_METHOD *sm); | ||
| 362 | STORE_HANDLE_OBJECT_FUNC_PTR STORE_method_get_revoke_function(STORE_METHOD *sm); | ||
| 363 | STORE_HANDLE_OBJECT_FUNC_PTR STORE_method_get_delete_function(STORE_METHOD *sm); | ||
| 364 | STORE_START_OBJECT_FUNC_PTR STORE_method_get_list_start_function(STORE_METHOD *sm); | ||
| 365 | STORE_NEXT_OBJECT_FUNC_PTR STORE_method_get_list_next_function(STORE_METHOD *sm); | ||
| 366 | STORE_END_OBJECT_FUNC_PTR STORE_method_get_list_end_function(STORE_METHOD *sm); | ||
| 367 | STORE_GENERIC_FUNC_PTR STORE_method_get_update_store_function(STORE_METHOD *sm); | ||
| 368 | STORE_GENERIC_FUNC_PTR STORE_method_get_lock_store_function(STORE_METHOD *sm); | ||
| 369 | STORE_GENERIC_FUNC_PTR STORE_method_get_unlock_store_function(STORE_METHOD *sm); | ||
| 370 | STORE_CTRL_FUNC_PTR STORE_method_get_ctrl_function(STORE_METHOD *sm); | ||
| 371 | |||
| 372 | /* Method helper structures and functions. */ | ||
| 373 | |||
| 374 | /* This structure is the result of parsing through the information in a list | ||
| 375 | of OPENSSL_ITEMs. It stores all the necessary information in a structured | ||
| 376 | way.*/ | ||
| 377 | typedef struct STORE_attr_info_st STORE_ATTR_INFO; | ||
| 378 | |||
| 379 | /* Parse a list of OPENSSL_ITEMs and return a pointer to a STORE_ATTR_INFO. | ||
| 380 | Note that we do this in the list form, since the list of OPENSSL_ITEMs can | ||
| 381 | come in blocks separated with STORE_ATTR_OR. Note that the value returned | ||
| 382 | by STORE_parse_attrs_next() must be freed with STORE_ATTR_INFO_free(). */ | ||
| 383 | void *STORE_parse_attrs_start(OPENSSL_ITEM *attributes); | ||
| 384 | STORE_ATTR_INFO *STORE_parse_attrs_next(void *handle); | ||
| 385 | int STORE_parse_attrs_end(void *handle); | ||
| 386 | int STORE_parse_attrs_endp(void *handle); | ||
| 387 | |||
| 388 | /* Creator and destructor */ | ||
| 389 | STORE_ATTR_INFO *STORE_ATTR_INFO_new(void); | ||
| 390 | int STORE_ATTR_INFO_free(STORE_ATTR_INFO *attrs); | ||
| 391 | |||
| 392 | /* Manipulators */ | ||
| 393 | char *STORE_ATTR_INFO_get0_cstr(STORE_ATTR_INFO *attrs, STORE_ATTR_TYPES code); | ||
| 394 | unsigned char *STORE_ATTR_INFO_get0_sha1str(STORE_ATTR_INFO *attrs, | ||
| 395 | STORE_ATTR_TYPES code); | ||
| 396 | X509_NAME *STORE_ATTR_INFO_get0_dn(STORE_ATTR_INFO *attrs, STORE_ATTR_TYPES code); | ||
| 397 | BIGNUM *STORE_ATTR_INFO_get0_number(STORE_ATTR_INFO *attrs, STORE_ATTR_TYPES code); | ||
| 398 | int STORE_ATTR_INFO_set_cstr(STORE_ATTR_INFO *attrs, STORE_ATTR_TYPES code, | ||
| 399 | char *cstr, size_t cstr_size); | ||
| 400 | int STORE_ATTR_INFO_set_sha1str(STORE_ATTR_INFO *attrs, STORE_ATTR_TYPES code, | ||
| 401 | unsigned char *sha1str, size_t sha1str_size); | ||
| 402 | int STORE_ATTR_INFO_set_dn(STORE_ATTR_INFO *attrs, STORE_ATTR_TYPES code, | ||
| 403 | X509_NAME *dn); | ||
| 404 | int STORE_ATTR_INFO_set_number(STORE_ATTR_INFO *attrs, STORE_ATTR_TYPES code, | ||
| 405 | BIGNUM *number); | ||
| 406 | int STORE_ATTR_INFO_modify_cstr(STORE_ATTR_INFO *attrs, STORE_ATTR_TYPES code, | ||
| 407 | char *cstr, size_t cstr_size); | ||
| 408 | int STORE_ATTR_INFO_modify_sha1str(STORE_ATTR_INFO *attrs, STORE_ATTR_TYPES code, | ||
| 409 | unsigned char *sha1str, size_t sha1str_size); | ||
| 410 | int STORE_ATTR_INFO_modify_dn(STORE_ATTR_INFO *attrs, STORE_ATTR_TYPES code, | ||
| 411 | X509_NAME *dn); | ||
| 412 | int STORE_ATTR_INFO_modify_number(STORE_ATTR_INFO *attrs, STORE_ATTR_TYPES code, | ||
| 413 | BIGNUM *number); | ||
| 414 | |||
| 415 | /* Compare on basis of a bit pattern formed by the STORE_ATTR_TYPES values | ||
| 416 | in each contained attribute. */ | ||
| 417 | int STORE_ATTR_INFO_compare(const STORE_ATTR_INFO * const *a, | ||
| 418 | const STORE_ATTR_INFO * const *b); | ||
| 419 | /* Check if the set of attributes in a is within the range of attributes | ||
| 420 | set in b. */ | ||
| 421 | int STORE_ATTR_INFO_in_range(STORE_ATTR_INFO *a, STORE_ATTR_INFO *b); | ||
| 422 | /* Check if the set of attributes in a are also set in b. */ | ||
| 423 | int STORE_ATTR_INFO_in(STORE_ATTR_INFO *a, STORE_ATTR_INFO *b); | ||
| 424 | /* Same as STORE_ATTR_INFO_in(), but also checks the attribute values. */ | ||
| 425 | int STORE_ATTR_INFO_in_ex(STORE_ATTR_INFO *a, STORE_ATTR_INFO *b); | ||
| 426 | |||
| 427 | |||
| 428 | /* BEGIN ERROR CODES */ | ||
| 429 | /* The following lines are auto generated by the script mkerr.pl. Any changes | ||
| 430 | * made after this point may be overwritten when the script is next run. | ||
| 431 | */ | ||
| 432 | void ERR_load_STORE_strings(void); | ||
| 433 | |||
| 434 | /* Error codes for the STORE functions. */ | ||
| 435 | |||
| 436 | /* Function codes. */ | ||
| 437 | #define STORE_F_MEM_DELETE 134 | ||
| 438 | #define STORE_F_MEM_GENERATE 135 | ||
| 439 | #define STORE_F_MEM_LIST_END 168 | ||
| 440 | #define STORE_F_MEM_LIST_NEXT 136 | ||
| 441 | #define STORE_F_MEM_LIST_START 137 | ||
| 442 | #define STORE_F_MEM_MODIFY 169 | ||
| 443 | #define STORE_F_MEM_STORE 138 | ||
| 444 | #define STORE_F_STORE_ATTR_INFO_GET0_CSTR 139 | ||
| 445 | #define STORE_F_STORE_ATTR_INFO_GET0_DN 140 | ||
| 446 | #define STORE_F_STORE_ATTR_INFO_GET0_NUMBER 141 | ||
| 447 | #define STORE_F_STORE_ATTR_INFO_GET0_SHA1STR 142 | ||
| 448 | #define STORE_F_STORE_ATTR_INFO_MODIFY_CSTR 143 | ||
| 449 | #define STORE_F_STORE_ATTR_INFO_MODIFY_DN 144 | ||
| 450 | #define STORE_F_STORE_ATTR_INFO_MODIFY_NUMBER 145 | ||
| 451 | #define STORE_F_STORE_ATTR_INFO_MODIFY_SHA1STR 146 | ||
| 452 | #define STORE_F_STORE_ATTR_INFO_SET_CSTR 147 | ||
| 453 | #define STORE_F_STORE_ATTR_INFO_SET_DN 148 | ||
| 454 | #define STORE_F_STORE_ATTR_INFO_SET_NUMBER 149 | ||
| 455 | #define STORE_F_STORE_ATTR_INFO_SET_SHA1STR 150 | ||
| 456 | #define STORE_F_STORE_CERTIFICATE 170 | ||
| 457 | #define STORE_F_STORE_CTRL 161 | ||
| 458 | #define STORE_F_STORE_DELETE_ARBITRARY 158 | ||
| 459 | #define STORE_F_STORE_DELETE_CERTIFICATE 102 | ||
| 460 | #define STORE_F_STORE_DELETE_CRL 103 | ||
| 461 | #define STORE_F_STORE_DELETE_NUMBER 104 | ||
| 462 | #define STORE_F_STORE_DELETE_PRIVATE_KEY 105 | ||
| 463 | #define STORE_F_STORE_DELETE_PUBLIC_KEY 106 | ||
| 464 | #define STORE_F_STORE_GENERATE_CRL 107 | ||
| 465 | #define STORE_F_STORE_GENERATE_KEY 108 | ||
| 466 | #define STORE_F_STORE_GET_ARBITRARY 159 | ||
| 467 | #define STORE_F_STORE_GET_CERTIFICATE 109 | ||
| 468 | #define STORE_F_STORE_GET_CRL 110 | ||
| 469 | #define STORE_F_STORE_GET_NUMBER 111 | ||
| 470 | #define STORE_F_STORE_GET_PRIVATE_KEY 112 | ||
| 471 | #define STORE_F_STORE_GET_PUBLIC_KEY 113 | ||
| 472 | #define STORE_F_STORE_LIST_CERTIFICATE_END 114 | ||
| 473 | #define STORE_F_STORE_LIST_CERTIFICATE_ENDP 153 | ||
| 474 | #define STORE_F_STORE_LIST_CERTIFICATE_NEXT 115 | ||
| 475 | #define STORE_F_STORE_LIST_CERTIFICATE_START 116 | ||
| 476 | #define STORE_F_STORE_LIST_CRL_END 117 | ||
| 477 | #define STORE_F_STORE_LIST_CRL_ENDP 154 | ||
| 478 | #define STORE_F_STORE_LIST_CRL_NEXT 118 | ||
| 479 | #define STORE_F_STORE_LIST_CRL_START 119 | ||
| 480 | #define STORE_F_STORE_LIST_PRIVATE_KEY_END 120 | ||
| 481 | #define STORE_F_STORE_LIST_PRIVATE_KEY_ENDP 155 | ||
| 482 | #define STORE_F_STORE_LIST_PRIVATE_KEY_NEXT 121 | ||
| 483 | #define STORE_F_STORE_LIST_PRIVATE_KEY_START 122 | ||
| 484 | #define STORE_F_STORE_LIST_PUBLIC_KEY_END 123 | ||
| 485 | #define STORE_F_STORE_LIST_PUBLIC_KEY_ENDP 156 | ||
| 486 | #define STORE_F_STORE_LIST_PUBLIC_KEY_NEXT 124 | ||
| 487 | #define STORE_F_STORE_LIST_PUBLIC_KEY_START 125 | ||
| 488 | #define STORE_F_STORE_MODIFY_ARBITRARY 162 | ||
| 489 | #define STORE_F_STORE_MODIFY_CERTIFICATE 163 | ||
| 490 | #define STORE_F_STORE_MODIFY_CRL 164 | ||
| 491 | #define STORE_F_STORE_MODIFY_NUMBER 165 | ||
| 492 | #define STORE_F_STORE_MODIFY_PRIVATE_KEY 166 | ||
| 493 | #define STORE_F_STORE_MODIFY_PUBLIC_KEY 167 | ||
| 494 | #define STORE_F_STORE_NEW_ENGINE 133 | ||
| 495 | #define STORE_F_STORE_NEW_METHOD 132 | ||
| 496 | #define STORE_F_STORE_PARSE_ATTRS_END 151 | ||
| 497 | #define STORE_F_STORE_PARSE_ATTRS_ENDP 172 | ||
| 498 | #define STORE_F_STORE_PARSE_ATTRS_NEXT 152 | ||
| 499 | #define STORE_F_STORE_PARSE_ATTRS_START 171 | ||
| 500 | #define STORE_F_STORE_REVOKE_CERTIFICATE 129 | ||
| 501 | #define STORE_F_STORE_REVOKE_PRIVATE_KEY 130 | ||
| 502 | #define STORE_F_STORE_REVOKE_PUBLIC_KEY 131 | ||
| 503 | #define STORE_F_STORE_STORE_ARBITRARY 157 | ||
| 504 | #define STORE_F_STORE_STORE_CERTIFICATE 100 | ||
| 505 | #define STORE_F_STORE_STORE_CRL 101 | ||
| 506 | #define STORE_F_STORE_STORE_NUMBER 126 | ||
| 507 | #define STORE_F_STORE_STORE_PRIVATE_KEY 127 | ||
| 508 | #define STORE_F_STORE_STORE_PUBLIC_KEY 128 | ||
| 509 | |||
| 510 | /* Reason codes. */ | ||
| 511 | #define STORE_R_ALREADY_HAS_A_VALUE 127 | ||
| 512 | #define STORE_R_FAILED_DELETING_ARBITRARY 132 | ||
| 513 | #define STORE_R_FAILED_DELETING_CERTIFICATE 100 | ||
| 514 | #define STORE_R_FAILED_DELETING_KEY 101 | ||
| 515 | #define STORE_R_FAILED_DELETING_NUMBER 102 | ||
| 516 | #define STORE_R_FAILED_GENERATING_CRL 103 | ||
| 517 | #define STORE_R_FAILED_GENERATING_KEY 104 | ||
| 518 | #define STORE_R_FAILED_GETTING_ARBITRARY 133 | ||
| 519 | #define STORE_R_FAILED_GETTING_CERTIFICATE 105 | ||
| 520 | #define STORE_R_FAILED_GETTING_KEY 106 | ||
| 521 | #define STORE_R_FAILED_GETTING_NUMBER 107 | ||
| 522 | #define STORE_R_FAILED_LISTING_CERTIFICATES 108 | ||
| 523 | #define STORE_R_FAILED_LISTING_KEYS 109 | ||
| 524 | #define STORE_R_FAILED_MODIFYING_ARBITRARY 138 | ||
| 525 | #define STORE_R_FAILED_MODIFYING_CERTIFICATE 139 | ||
| 526 | #define STORE_R_FAILED_MODIFYING_CRL 140 | ||
| 527 | #define STORE_R_FAILED_MODIFYING_NUMBER 141 | ||
| 528 | #define STORE_R_FAILED_MODIFYING_PRIVATE_KEY 142 | ||
| 529 | #define STORE_R_FAILED_MODIFYING_PUBLIC_KEY 143 | ||
| 530 | #define STORE_R_FAILED_REVOKING_CERTIFICATE 110 | ||
| 531 | #define STORE_R_FAILED_REVOKING_KEY 111 | ||
| 532 | #define STORE_R_FAILED_STORING_ARBITRARY 134 | ||
| 533 | #define STORE_R_FAILED_STORING_CERTIFICATE 112 | ||
| 534 | #define STORE_R_FAILED_STORING_KEY 113 | ||
| 535 | #define STORE_R_FAILED_STORING_NUMBER 114 | ||
| 536 | #define STORE_R_NOT_IMPLEMENTED 128 | ||
| 537 | #define STORE_R_NO_CONTROL_FUNCTION 144 | ||
| 538 | #define STORE_R_NO_DELETE_ARBITRARY_FUNCTION 135 | ||
| 539 | #define STORE_R_NO_DELETE_NUMBER_FUNCTION 115 | ||
| 540 | #define STORE_R_NO_DELETE_OBJECT_FUNCTION 116 | ||
| 541 | #define STORE_R_NO_GENERATE_CRL_FUNCTION 117 | ||
| 542 | #define STORE_R_NO_GENERATE_OBJECT_FUNCTION 118 | ||
| 543 | #define STORE_R_NO_GET_OBJECT_ARBITRARY_FUNCTION 136 | ||
| 544 | #define STORE_R_NO_GET_OBJECT_FUNCTION 119 | ||
| 545 | #define STORE_R_NO_GET_OBJECT_NUMBER_FUNCTION 120 | ||
| 546 | #define STORE_R_NO_LIST_OBJECT_ENDP_FUNCTION 131 | ||
| 547 | #define STORE_R_NO_LIST_OBJECT_END_FUNCTION 121 | ||
| 548 | #define STORE_R_NO_LIST_OBJECT_NEXT_FUNCTION 122 | ||
| 549 | #define STORE_R_NO_LIST_OBJECT_START_FUNCTION 123 | ||
| 550 | #define STORE_R_NO_MODIFY_OBJECT_FUNCTION 145 | ||
| 551 | #define STORE_R_NO_REVOKE_OBJECT_FUNCTION 124 | ||
| 552 | #define STORE_R_NO_STORE 129 | ||
| 553 | #define STORE_R_NO_STORE_OBJECT_ARBITRARY_FUNCTION 137 | ||
| 554 | #define STORE_R_NO_STORE_OBJECT_FUNCTION 125 | ||
| 555 | #define STORE_R_NO_STORE_OBJECT_NUMBER_FUNCTION 126 | ||
| 556 | #define STORE_R_NO_VALUE 130 | ||
| 557 | |||
| 558 | #ifdef __cplusplus | ||
| 559 | } | ||
| 560 | #endif | ||
| 561 | #endif | ||
diff --git a/src/lib/libcrypto/store/str_err.c b/src/lib/libcrypto/store/str_err.c deleted file mode 100644 index 924edf0505..0000000000 --- a/src/lib/libcrypto/store/str_err.c +++ /dev/null | |||
| @@ -1,211 +0,0 @@ | |||
| 1 | /* crypto/store/str_err.c */ | ||
| 2 | /* ==================================================================== | ||
| 3 | * Copyright (c) 1999-2006 The OpenSSL Project. All rights reserved. | ||
| 4 | * | ||
| 5 | * Redistribution and use in source and binary forms, with or without | ||
| 6 | * modification, are permitted provided that the following conditions | ||
| 7 | * are met: | ||
| 8 | * | ||
| 9 | * 1. Redistributions of source code must retain the above copyright | ||
| 10 | * notice, this list of conditions and the following disclaimer. | ||
| 11 | * | ||
| 12 | * 2. Redistributions in binary form must reproduce the above copyright | ||
| 13 | * notice, this list of conditions and the following disclaimer in | ||
| 14 | * the documentation and/or other materials provided with the | ||
| 15 | * distribution. | ||
| 16 | * | ||
| 17 | * 3. All advertising materials mentioning features or use of this | ||
| 18 | * software must display the following acknowledgment: | ||
| 19 | * "This product includes software developed by the OpenSSL Project | ||
| 20 | * for use in the OpenSSL Toolkit. (http://www.OpenSSL.org/)" | ||
| 21 | * | ||
| 22 | * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to | ||
| 23 | * endorse or promote products derived from this software without | ||
| 24 | * prior written permission. For written permission, please contact | ||
| 25 | * openssl-core@OpenSSL.org. | ||
| 26 | * | ||
| 27 | * 5. Products derived from this software may not be called "OpenSSL" | ||
| 28 | * nor may "OpenSSL" appear in their names without prior written | ||
| 29 | * permission of the OpenSSL Project. | ||
| 30 | * | ||
| 31 | * 6. Redistributions of any form whatsoever must retain the following | ||
| 32 | * acknowledgment: | ||
| 33 | * "This product includes software developed by the OpenSSL Project | ||
| 34 | * for use in the OpenSSL Toolkit (http://www.OpenSSL.org/)" | ||
| 35 | * | ||
| 36 | * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY | ||
| 37 | * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
| 38 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | ||
| 39 | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR | ||
| 40 | * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
| 41 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | ||
| 42 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
| 43 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
| 44 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | ||
| 45 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
| 46 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | ||
| 47 | * OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| 48 | * ==================================================================== | ||
| 49 | * | ||
| 50 | * This product includes cryptographic software written by Eric Young | ||
| 51 | * (eay@cryptsoft.com). This product includes software written by Tim | ||
| 52 | * Hudson (tjh@cryptsoft.com). | ||
| 53 | * | ||
| 54 | */ | ||
| 55 | |||
| 56 | /* NOTE: this file was auto generated by the mkerr.pl script: any changes | ||
| 57 | * made to it will be overwritten when the script next updates this file, | ||
| 58 | * only reason strings will be preserved. | ||
| 59 | */ | ||
| 60 | |||
| 61 | #include <stdio.h> | ||
| 62 | #include <openssl/err.h> | ||
| 63 | #include <openssl/store.h> | ||
| 64 | |||
| 65 | /* BEGIN ERROR CODES */ | ||
| 66 | #ifndef OPENSSL_NO_ERR | ||
| 67 | |||
| 68 | #define ERR_FUNC(func) ERR_PACK(ERR_LIB_STORE,func,0) | ||
| 69 | #define ERR_REASON(reason) ERR_PACK(ERR_LIB_STORE,0,reason) | ||
| 70 | |||
| 71 | static ERR_STRING_DATA STORE_str_functs[]= | ||
| 72 | { | ||
| 73 | {ERR_FUNC(STORE_F_MEM_DELETE), "MEM_DELETE"}, | ||
| 74 | {ERR_FUNC(STORE_F_MEM_GENERATE), "MEM_GENERATE"}, | ||
| 75 | {ERR_FUNC(STORE_F_MEM_LIST_END), "MEM_LIST_END"}, | ||
| 76 | {ERR_FUNC(STORE_F_MEM_LIST_NEXT), "MEM_LIST_NEXT"}, | ||
| 77 | {ERR_FUNC(STORE_F_MEM_LIST_START), "MEM_LIST_START"}, | ||
| 78 | {ERR_FUNC(STORE_F_MEM_MODIFY), "MEM_MODIFY"}, | ||
| 79 | {ERR_FUNC(STORE_F_MEM_STORE), "MEM_STORE"}, | ||
| 80 | {ERR_FUNC(STORE_F_STORE_ATTR_INFO_GET0_CSTR), "STORE_ATTR_INFO_get0_cstr"}, | ||
| 81 | {ERR_FUNC(STORE_F_STORE_ATTR_INFO_GET0_DN), "STORE_ATTR_INFO_get0_dn"}, | ||
| 82 | {ERR_FUNC(STORE_F_STORE_ATTR_INFO_GET0_NUMBER), "STORE_ATTR_INFO_get0_number"}, | ||
| 83 | {ERR_FUNC(STORE_F_STORE_ATTR_INFO_GET0_SHA1STR), "STORE_ATTR_INFO_get0_sha1str"}, | ||
| 84 | {ERR_FUNC(STORE_F_STORE_ATTR_INFO_MODIFY_CSTR), "STORE_ATTR_INFO_modify_cstr"}, | ||
| 85 | {ERR_FUNC(STORE_F_STORE_ATTR_INFO_MODIFY_DN), "STORE_ATTR_INFO_modify_dn"}, | ||
| 86 | {ERR_FUNC(STORE_F_STORE_ATTR_INFO_MODIFY_NUMBER), "STORE_ATTR_INFO_modify_number"}, | ||
| 87 | {ERR_FUNC(STORE_F_STORE_ATTR_INFO_MODIFY_SHA1STR), "STORE_ATTR_INFO_modify_sha1str"}, | ||
| 88 | {ERR_FUNC(STORE_F_STORE_ATTR_INFO_SET_CSTR), "STORE_ATTR_INFO_set_cstr"}, | ||
| 89 | {ERR_FUNC(STORE_F_STORE_ATTR_INFO_SET_DN), "STORE_ATTR_INFO_set_dn"}, | ||
| 90 | {ERR_FUNC(STORE_F_STORE_ATTR_INFO_SET_NUMBER), "STORE_ATTR_INFO_set_number"}, | ||
| 91 | {ERR_FUNC(STORE_F_STORE_ATTR_INFO_SET_SHA1STR), "STORE_ATTR_INFO_set_sha1str"}, | ||
| 92 | {ERR_FUNC(STORE_F_STORE_CERTIFICATE), "STORE_CERTIFICATE"}, | ||
| 93 | {ERR_FUNC(STORE_F_STORE_CTRL), "STORE_ctrl"}, | ||
| 94 | {ERR_FUNC(STORE_F_STORE_DELETE_ARBITRARY), "STORE_delete_arbitrary"}, | ||
| 95 | {ERR_FUNC(STORE_F_STORE_DELETE_CERTIFICATE), "STORE_delete_certificate"}, | ||
| 96 | {ERR_FUNC(STORE_F_STORE_DELETE_CRL), "STORE_delete_crl"}, | ||
| 97 | {ERR_FUNC(STORE_F_STORE_DELETE_NUMBER), "STORE_delete_number"}, | ||
| 98 | {ERR_FUNC(STORE_F_STORE_DELETE_PRIVATE_KEY), "STORE_delete_private_key"}, | ||
| 99 | {ERR_FUNC(STORE_F_STORE_DELETE_PUBLIC_KEY), "STORE_delete_public_key"}, | ||
| 100 | {ERR_FUNC(STORE_F_STORE_GENERATE_CRL), "STORE_generate_crl"}, | ||
| 101 | {ERR_FUNC(STORE_F_STORE_GENERATE_KEY), "STORE_generate_key"}, | ||
| 102 | {ERR_FUNC(STORE_F_STORE_GET_ARBITRARY), "STORE_get_arbitrary"}, | ||
| 103 | {ERR_FUNC(STORE_F_STORE_GET_CERTIFICATE), "STORE_get_certificate"}, | ||
| 104 | {ERR_FUNC(STORE_F_STORE_GET_CRL), "STORE_get_crl"}, | ||
| 105 | {ERR_FUNC(STORE_F_STORE_GET_NUMBER), "STORE_get_number"}, | ||
| 106 | {ERR_FUNC(STORE_F_STORE_GET_PRIVATE_KEY), "STORE_get_private_key"}, | ||
| 107 | {ERR_FUNC(STORE_F_STORE_GET_PUBLIC_KEY), "STORE_get_public_key"}, | ||
| 108 | {ERR_FUNC(STORE_F_STORE_LIST_CERTIFICATE_END), "STORE_list_certificate_end"}, | ||
| 109 | {ERR_FUNC(STORE_F_STORE_LIST_CERTIFICATE_ENDP), "STORE_list_certificate_endp"}, | ||
| 110 | {ERR_FUNC(STORE_F_STORE_LIST_CERTIFICATE_NEXT), "STORE_list_certificate_next"}, | ||
| 111 | {ERR_FUNC(STORE_F_STORE_LIST_CERTIFICATE_START), "STORE_list_certificate_start"}, | ||
| 112 | {ERR_FUNC(STORE_F_STORE_LIST_CRL_END), "STORE_list_crl_end"}, | ||
| 113 | {ERR_FUNC(STORE_F_STORE_LIST_CRL_ENDP), "STORE_list_crl_endp"}, | ||
| 114 | {ERR_FUNC(STORE_F_STORE_LIST_CRL_NEXT), "STORE_list_crl_next"}, | ||
| 115 | {ERR_FUNC(STORE_F_STORE_LIST_CRL_START), "STORE_list_crl_start"}, | ||
| 116 | {ERR_FUNC(STORE_F_STORE_LIST_PRIVATE_KEY_END), "STORE_list_private_key_end"}, | ||
| 117 | {ERR_FUNC(STORE_F_STORE_LIST_PRIVATE_KEY_ENDP), "STORE_list_private_key_endp"}, | ||
| 118 | {ERR_FUNC(STORE_F_STORE_LIST_PRIVATE_KEY_NEXT), "STORE_list_private_key_next"}, | ||
| 119 | {ERR_FUNC(STORE_F_STORE_LIST_PRIVATE_KEY_START), "STORE_list_private_key_start"}, | ||
| 120 | {ERR_FUNC(STORE_F_STORE_LIST_PUBLIC_KEY_END), "STORE_list_public_key_end"}, | ||
| 121 | {ERR_FUNC(STORE_F_STORE_LIST_PUBLIC_KEY_ENDP), "STORE_list_public_key_endp"}, | ||
| 122 | {ERR_FUNC(STORE_F_STORE_LIST_PUBLIC_KEY_NEXT), "STORE_list_public_key_next"}, | ||
| 123 | {ERR_FUNC(STORE_F_STORE_LIST_PUBLIC_KEY_START), "STORE_list_public_key_start"}, | ||
| 124 | {ERR_FUNC(STORE_F_STORE_MODIFY_ARBITRARY), "STORE_modify_arbitrary"}, | ||
| 125 | {ERR_FUNC(STORE_F_STORE_MODIFY_CERTIFICATE), "STORE_modify_certificate"}, | ||
| 126 | {ERR_FUNC(STORE_F_STORE_MODIFY_CRL), "STORE_modify_crl"}, | ||
| 127 | {ERR_FUNC(STORE_F_STORE_MODIFY_NUMBER), "STORE_modify_number"}, | ||
| 128 | {ERR_FUNC(STORE_F_STORE_MODIFY_PRIVATE_KEY), "STORE_modify_private_key"}, | ||
| 129 | {ERR_FUNC(STORE_F_STORE_MODIFY_PUBLIC_KEY), "STORE_modify_public_key"}, | ||
| 130 | {ERR_FUNC(STORE_F_STORE_NEW_ENGINE), "STORE_new_engine"}, | ||
| 131 | {ERR_FUNC(STORE_F_STORE_NEW_METHOD), "STORE_new_method"}, | ||
| 132 | {ERR_FUNC(STORE_F_STORE_PARSE_ATTRS_END), "STORE_parse_attrs_end"}, | ||
| 133 | {ERR_FUNC(STORE_F_STORE_PARSE_ATTRS_ENDP), "STORE_parse_attrs_endp"}, | ||
| 134 | {ERR_FUNC(STORE_F_STORE_PARSE_ATTRS_NEXT), "STORE_parse_attrs_next"}, | ||
| 135 | {ERR_FUNC(STORE_F_STORE_PARSE_ATTRS_START), "STORE_parse_attrs_start"}, | ||
| 136 | {ERR_FUNC(STORE_F_STORE_REVOKE_CERTIFICATE), "STORE_revoke_certificate"}, | ||
| 137 | {ERR_FUNC(STORE_F_STORE_REVOKE_PRIVATE_KEY), "STORE_revoke_private_key"}, | ||
| 138 | {ERR_FUNC(STORE_F_STORE_REVOKE_PUBLIC_KEY), "STORE_revoke_public_key"}, | ||
| 139 | {ERR_FUNC(STORE_F_STORE_STORE_ARBITRARY), "STORE_store_arbitrary"}, | ||
| 140 | {ERR_FUNC(STORE_F_STORE_STORE_CERTIFICATE), "STORE_store_certificate"}, | ||
| 141 | {ERR_FUNC(STORE_F_STORE_STORE_CRL), "STORE_store_crl"}, | ||
| 142 | {ERR_FUNC(STORE_F_STORE_STORE_NUMBER), "STORE_store_number"}, | ||
| 143 | {ERR_FUNC(STORE_F_STORE_STORE_PRIVATE_KEY), "STORE_store_private_key"}, | ||
| 144 | {ERR_FUNC(STORE_F_STORE_STORE_PUBLIC_KEY), "STORE_store_public_key"}, | ||
| 145 | {0,NULL} | ||
| 146 | }; | ||
| 147 | |||
| 148 | static ERR_STRING_DATA STORE_str_reasons[]= | ||
| 149 | { | ||
| 150 | {ERR_REASON(STORE_R_ALREADY_HAS_A_VALUE) ,"already has a value"}, | ||
| 151 | {ERR_REASON(STORE_R_FAILED_DELETING_ARBITRARY),"failed deleting arbitrary"}, | ||
| 152 | {ERR_REASON(STORE_R_FAILED_DELETING_CERTIFICATE),"failed deleting certificate"}, | ||
| 153 | {ERR_REASON(STORE_R_FAILED_DELETING_KEY) ,"failed deleting key"}, | ||
| 154 | {ERR_REASON(STORE_R_FAILED_DELETING_NUMBER),"failed deleting number"}, | ||
| 155 | {ERR_REASON(STORE_R_FAILED_GENERATING_CRL),"failed generating crl"}, | ||
| 156 | {ERR_REASON(STORE_R_FAILED_GENERATING_KEY),"failed generating key"}, | ||
| 157 | {ERR_REASON(STORE_R_FAILED_GETTING_ARBITRARY),"failed getting arbitrary"}, | ||
| 158 | {ERR_REASON(STORE_R_FAILED_GETTING_CERTIFICATE),"failed getting certificate"}, | ||
| 159 | {ERR_REASON(STORE_R_FAILED_GETTING_KEY) ,"failed getting key"}, | ||
| 160 | {ERR_REASON(STORE_R_FAILED_GETTING_NUMBER),"failed getting number"}, | ||
| 161 | {ERR_REASON(STORE_R_FAILED_LISTING_CERTIFICATES),"failed listing certificates"}, | ||
| 162 | {ERR_REASON(STORE_R_FAILED_LISTING_KEYS) ,"failed listing keys"}, | ||
| 163 | {ERR_REASON(STORE_R_FAILED_MODIFYING_ARBITRARY),"failed modifying arbitrary"}, | ||
| 164 | {ERR_REASON(STORE_R_FAILED_MODIFYING_CERTIFICATE),"failed modifying certificate"}, | ||
| 165 | {ERR_REASON(STORE_R_FAILED_MODIFYING_CRL),"failed modifying crl"}, | ||
| 166 | {ERR_REASON(STORE_R_FAILED_MODIFYING_NUMBER),"failed modifying number"}, | ||
| 167 | {ERR_REASON(STORE_R_FAILED_MODIFYING_PRIVATE_KEY),"failed modifying private key"}, | ||
| 168 | {ERR_REASON(STORE_R_FAILED_MODIFYING_PUBLIC_KEY),"failed modifying public key"}, | ||
| 169 | {ERR_REASON(STORE_R_FAILED_REVOKING_CERTIFICATE),"failed revoking certificate"}, | ||
| 170 | {ERR_REASON(STORE_R_FAILED_REVOKING_KEY) ,"failed revoking key"}, | ||
| 171 | {ERR_REASON(STORE_R_FAILED_STORING_ARBITRARY),"failed storing arbitrary"}, | ||
| 172 | {ERR_REASON(STORE_R_FAILED_STORING_CERTIFICATE),"failed storing certificate"}, | ||
| 173 | {ERR_REASON(STORE_R_FAILED_STORING_KEY) ,"failed storing key"}, | ||
| 174 | {ERR_REASON(STORE_R_FAILED_STORING_NUMBER),"failed storing number"}, | ||
| 175 | {ERR_REASON(STORE_R_NOT_IMPLEMENTED) ,"not implemented"}, | ||
| 176 | {ERR_REASON(STORE_R_NO_CONTROL_FUNCTION) ,"no control function"}, | ||
| 177 | {ERR_REASON(STORE_R_NO_DELETE_ARBITRARY_FUNCTION),"no delete arbitrary function"}, | ||
| 178 | {ERR_REASON(STORE_R_NO_DELETE_NUMBER_FUNCTION),"no delete number function"}, | ||
| 179 | {ERR_REASON(STORE_R_NO_DELETE_OBJECT_FUNCTION),"no delete object function"}, | ||
| 180 | {ERR_REASON(STORE_R_NO_GENERATE_CRL_FUNCTION),"no generate crl function"}, | ||
| 181 | {ERR_REASON(STORE_R_NO_GENERATE_OBJECT_FUNCTION),"no generate object function"}, | ||
| 182 | {ERR_REASON(STORE_R_NO_GET_OBJECT_ARBITRARY_FUNCTION),"no get object arbitrary function"}, | ||
| 183 | {ERR_REASON(STORE_R_NO_GET_OBJECT_FUNCTION),"no get object function"}, | ||
| 184 | {ERR_REASON(STORE_R_NO_GET_OBJECT_NUMBER_FUNCTION),"no get object number function"}, | ||
| 185 | {ERR_REASON(STORE_R_NO_LIST_OBJECT_ENDP_FUNCTION),"no list object endp function"}, | ||
| 186 | {ERR_REASON(STORE_R_NO_LIST_OBJECT_END_FUNCTION),"no list object end function"}, | ||
| 187 | {ERR_REASON(STORE_R_NO_LIST_OBJECT_NEXT_FUNCTION),"no list object next function"}, | ||
| 188 | {ERR_REASON(STORE_R_NO_LIST_OBJECT_START_FUNCTION),"no list object start function"}, | ||
| 189 | {ERR_REASON(STORE_R_NO_MODIFY_OBJECT_FUNCTION),"no modify object function"}, | ||
| 190 | {ERR_REASON(STORE_R_NO_REVOKE_OBJECT_FUNCTION),"no revoke object function"}, | ||
| 191 | {ERR_REASON(STORE_R_NO_STORE) ,"no store"}, | ||
| 192 | {ERR_REASON(STORE_R_NO_STORE_OBJECT_ARBITRARY_FUNCTION),"no store object arbitrary function"}, | ||
| 193 | {ERR_REASON(STORE_R_NO_STORE_OBJECT_FUNCTION),"no store object function"}, | ||
| 194 | {ERR_REASON(STORE_R_NO_STORE_OBJECT_NUMBER_FUNCTION),"no store object number function"}, | ||
| 195 | {ERR_REASON(STORE_R_NO_VALUE) ,"no value"}, | ||
| 196 | {0,NULL} | ||
| 197 | }; | ||
| 198 | |||
| 199 | #endif | ||
| 200 | |||
| 201 | void ERR_load_STORE_strings(void) | ||
| 202 | { | ||
| 203 | #ifndef OPENSSL_NO_ERR | ||
| 204 | |||
| 205 | if (ERR_func_error_string(STORE_str_functs[0].error) == NULL) | ||
| 206 | { | ||
| 207 | ERR_load_strings(0,STORE_str_functs); | ||
| 208 | ERR_load_strings(0,STORE_str_reasons); | ||
| 209 | } | ||
| 210 | #endif | ||
| 211 | } | ||
diff --git a/src/lib/libcrypto/store/str_lib.c b/src/lib/libcrypto/store/str_lib.c deleted file mode 100644 index f1dbcbd0e0..0000000000 --- a/src/lib/libcrypto/store/str_lib.c +++ /dev/null | |||
| @@ -1,1828 +0,0 @@ | |||
| 1 | /* crypto/store/str_lib.c -*- mode:C; c-file-style: "eay" -*- */ | ||
| 2 | /* Written by Richard Levitte (richard@levitte.org) for the OpenSSL | ||
| 3 | * project 2003. | ||
| 4 | */ | ||
| 5 | /* ==================================================================== | ||
| 6 | * Copyright (c) 2003 The OpenSSL Project. All rights reserved. | ||
| 7 | * | ||
| 8 | * Redistribution and use in source and binary forms, with or without | ||
| 9 | * modification, are permitted provided that the following conditions | ||
| 10 | * are met: | ||
| 11 | * | ||
| 12 | * 1. Redistributions of source code must retain the above copyright | ||
| 13 | * notice, this list of conditions and the following disclaimer. | ||
| 14 | * | ||
| 15 | * 2. Redistributions in binary form must reproduce the above copyright | ||
| 16 | * notice, this list of conditions and the following disclaimer in | ||
| 17 | * the documentation and/or other materials provided with the | ||
| 18 | * distribution. | ||
| 19 | * | ||
| 20 | * 3. All advertising materials mentioning features or use of this | ||
| 21 | * software must display the following acknowledgment: | ||
| 22 | * "This product includes software developed by the OpenSSL Project | ||
| 23 | * for use in the OpenSSL Toolkit. (http://www.openssl.org/)" | ||
| 24 | * | ||
| 25 | * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to | ||
| 26 | * endorse or promote products derived from this software without | ||
| 27 | * prior written permission. For written permission, please contact | ||
| 28 | * openssl-core@openssl.org. | ||
| 29 | * | ||
| 30 | * 5. Products derived from this software may not be called "OpenSSL" | ||
| 31 | * nor may "OpenSSL" appear in their names without prior written | ||
| 32 | * permission of the OpenSSL Project. | ||
| 33 | * | ||
| 34 | * 6. Redistributions of any form whatsoever must retain the following | ||
| 35 | * acknowledgment: | ||
| 36 | * "This product includes software developed by the OpenSSL Project | ||
| 37 | * for use in the OpenSSL Toolkit (http://www.openssl.org/)" | ||
| 38 | * | ||
| 39 | * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY | ||
| 40 | * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
| 41 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | ||
| 42 | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR | ||
| 43 | * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
| 44 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | ||
| 45 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
| 46 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
| 47 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | ||
| 48 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
| 49 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | ||
| 50 | * OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| 51 | * ==================================================================== | ||
| 52 | * | ||
| 53 | * This product includes cryptographic software written by Eric Young | ||
| 54 | * (eay@cryptsoft.com). This product includes software written by Tim | ||
| 55 | * Hudson (tjh@cryptsoft.com). | ||
| 56 | * | ||
| 57 | */ | ||
| 58 | |||
| 59 | #include <string.h> | ||
| 60 | #include <openssl/bn.h> | ||
| 61 | #include <openssl/err.h> | ||
| 62 | #ifndef OPENSSL_NO_ENGINE | ||
| 63 | #include <openssl/engine.h> | ||
| 64 | #endif | ||
| 65 | #include <openssl/sha.h> | ||
| 66 | #include <openssl/x509.h> | ||
| 67 | #include "str_locl.h" | ||
| 68 | |||
| 69 | const char * const STORE_object_type_string[STORE_OBJECT_TYPE_NUM+1] = | ||
| 70 | { | ||
| 71 | 0, | ||
| 72 | "X.509 Certificate", | ||
| 73 | "X.509 CRL", | ||
| 74 | "Private Key", | ||
| 75 | "Public Key", | ||
| 76 | "Number", | ||
| 77 | "Arbitrary Data" | ||
| 78 | }; | ||
| 79 | |||
| 80 | const int STORE_param_sizes[STORE_PARAM_TYPE_NUM+1] = | ||
| 81 | { | ||
| 82 | 0, | ||
| 83 | sizeof(int), /* EVP_TYPE */ | ||
| 84 | sizeof(size_t), /* BITS */ | ||
| 85 | -1, /* KEY_PARAMETERS */ | ||
| 86 | 0 /* KEY_NO_PARAMETERS */ | ||
| 87 | }; | ||
| 88 | |||
| 89 | const int STORE_attr_sizes[STORE_ATTR_TYPE_NUM+1] = | ||
| 90 | { | ||
| 91 | 0, | ||
| 92 | -1, /* FRIENDLYNAME: C string */ | ||
| 93 | SHA_DIGEST_LENGTH, /* KEYID: SHA1 digest, 160 bits */ | ||
| 94 | SHA_DIGEST_LENGTH, /* ISSUERKEYID: SHA1 digest, 160 bits */ | ||
| 95 | SHA_DIGEST_LENGTH, /* SUBJECTKEYID: SHA1 digest, 160 bits */ | ||
| 96 | SHA_DIGEST_LENGTH, /* ISSUERSERIALHASH: SHA1 digest, 160 bits */ | ||
| 97 | sizeof(X509_NAME *), /* ISSUER: X509_NAME * */ | ||
| 98 | sizeof(BIGNUM *), /* SERIAL: BIGNUM * */ | ||
| 99 | sizeof(X509_NAME *), /* SUBJECT: X509_NAME * */ | ||
| 100 | SHA_DIGEST_LENGTH, /* CERTHASH: SHA1 digest, 160 bits */ | ||
| 101 | -1, /* EMAIL: C string */ | ||
| 102 | -1, /* FILENAME: C string */ | ||
| 103 | }; | ||
| 104 | |||
| 105 | STORE *STORE_new_method(const STORE_METHOD *method) | ||
| 106 | { | ||
| 107 | STORE *ret; | ||
| 108 | |||
| 109 | if (method == NULL) | ||
| 110 | { | ||
| 111 | STOREerr(STORE_F_STORE_NEW_METHOD,ERR_R_PASSED_NULL_PARAMETER); | ||
| 112 | return NULL; | ||
| 113 | } | ||
| 114 | |||
| 115 | ret=(STORE *)OPENSSL_malloc(sizeof(STORE)); | ||
| 116 | if (ret == NULL) | ||
| 117 | { | ||
| 118 | STOREerr(STORE_F_STORE_NEW_METHOD,ERR_R_MALLOC_FAILURE); | ||
| 119 | return NULL; | ||
| 120 | } | ||
| 121 | |||
| 122 | ret->meth=method; | ||
| 123 | |||
| 124 | CRYPTO_new_ex_data(CRYPTO_EX_INDEX_STORE, ret, &ret->ex_data); | ||
| 125 | if (ret->meth->init && !ret->meth->init(ret)) | ||
| 126 | { | ||
| 127 | STORE_free(ret); | ||
| 128 | ret = NULL; | ||
| 129 | } | ||
| 130 | return ret; | ||
| 131 | } | ||
| 132 | |||
| 133 | STORE *STORE_new_engine(ENGINE *engine) | ||
| 134 | { | ||
| 135 | STORE *ret = NULL; | ||
| 136 | ENGINE *e = engine; | ||
| 137 | const STORE_METHOD *meth = 0; | ||
| 138 | |||
| 139 | #ifdef OPENSSL_NO_ENGINE | ||
| 140 | e = NULL; | ||
| 141 | #else | ||
| 142 | if (engine) | ||
| 143 | { | ||
| 144 | if (!ENGINE_init(engine)) | ||
| 145 | { | ||
| 146 | STOREerr(STORE_F_STORE_NEW_ENGINE, ERR_R_ENGINE_LIB); | ||
| 147 | return NULL; | ||
| 148 | } | ||
| 149 | e = engine; | ||
| 150 | } | ||
| 151 | else | ||
| 152 | { | ||
| 153 | STOREerr(STORE_F_STORE_NEW_ENGINE,ERR_R_PASSED_NULL_PARAMETER); | ||
| 154 | return NULL; | ||
| 155 | } | ||
| 156 | if(e) | ||
| 157 | { | ||
| 158 | meth = ENGINE_get_STORE(e); | ||
| 159 | if(!meth) | ||
| 160 | { | ||
| 161 | STOREerr(STORE_F_STORE_NEW_ENGINE, | ||
| 162 | ERR_R_ENGINE_LIB); | ||
| 163 | ENGINE_finish(e); | ||
| 164 | return NULL; | ||
| 165 | } | ||
| 166 | } | ||
| 167 | #endif | ||
| 168 | |||
| 169 | ret = STORE_new_method(meth); | ||
| 170 | if (ret == NULL) | ||
| 171 | { | ||
| 172 | STOREerr(STORE_F_STORE_NEW_ENGINE,ERR_R_STORE_LIB); | ||
| 173 | return NULL; | ||
| 174 | } | ||
| 175 | |||
| 176 | ret->engine = e; | ||
| 177 | |||
| 178 | return(ret); | ||
| 179 | } | ||
| 180 | |||
| 181 | void STORE_free(STORE *store) | ||
| 182 | { | ||
| 183 | if (store == NULL) | ||
| 184 | return; | ||
| 185 | if (store->meth->clean) | ||
| 186 | store->meth->clean(store); | ||
| 187 | CRYPTO_free_ex_data(CRYPTO_EX_INDEX_STORE, store, &store->ex_data); | ||
| 188 | OPENSSL_free(store); | ||
| 189 | } | ||
| 190 | |||
| 191 | int STORE_ctrl(STORE *store, int cmd, long i, void *p, void (*f)(void)) | ||
| 192 | { | ||
| 193 | if (store == NULL) | ||
| 194 | { | ||
| 195 | STOREerr(STORE_F_STORE_CTRL,ERR_R_PASSED_NULL_PARAMETER); | ||
| 196 | return 0; | ||
| 197 | } | ||
| 198 | if (store->meth->ctrl) | ||
| 199 | return store->meth->ctrl(store, cmd, i, p, f); | ||
| 200 | STOREerr(STORE_F_STORE_CTRL,STORE_R_NO_CONTROL_FUNCTION); | ||
| 201 | return 0; | ||
| 202 | } | ||
| 203 | |||
| 204 | |||
| 205 | int STORE_get_ex_new_index(long argl, void *argp, CRYPTO_EX_new *new_func, | ||
| 206 | CRYPTO_EX_dup *dup_func, CRYPTO_EX_free *free_func) | ||
| 207 | { | ||
| 208 | return CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_STORE, argl, argp, | ||
| 209 | new_func, dup_func, free_func); | ||
| 210 | } | ||
| 211 | |||
| 212 | int STORE_set_ex_data(STORE *r, int idx, void *arg) | ||
| 213 | { | ||
| 214 | return(CRYPTO_set_ex_data(&r->ex_data,idx,arg)); | ||
| 215 | } | ||
| 216 | |||
| 217 | void *STORE_get_ex_data(STORE *r, int idx) | ||
| 218 | { | ||
| 219 | return(CRYPTO_get_ex_data(&r->ex_data,idx)); | ||
| 220 | } | ||
| 221 | |||
| 222 | const STORE_METHOD *STORE_get_method(STORE *store) | ||
| 223 | { | ||
| 224 | return store->meth; | ||
| 225 | } | ||
| 226 | |||
| 227 | const STORE_METHOD *STORE_set_method(STORE *store, const STORE_METHOD *meth) | ||
| 228 | { | ||
| 229 | store->meth=meth; | ||
| 230 | return store->meth; | ||
| 231 | } | ||
| 232 | |||
| 233 | |||
| 234 | /* API helpers */ | ||
| 235 | |||
| 236 | #define check_store(s,fncode,fnname,fnerrcode) \ | ||
| 237 | do \ | ||
| 238 | { \ | ||
| 239 | if ((s) == NULL || (s)->meth == NULL) \ | ||
| 240 | { \ | ||
| 241 | STOREerr((fncode), ERR_R_PASSED_NULL_PARAMETER); \ | ||
| 242 | return 0; \ | ||
| 243 | } \ | ||
| 244 | if ((s)->meth->fnname == NULL) \ | ||
| 245 | { \ | ||
| 246 | STOREerr((fncode), (fnerrcode)); \ | ||
| 247 | return 0; \ | ||
| 248 | } \ | ||
| 249 | } \ | ||
| 250 | while(0) | ||
| 251 | |||
| 252 | /* API functions */ | ||
| 253 | |||
| 254 | X509 *STORE_get_certificate(STORE *s, OPENSSL_ITEM attributes[], | ||
| 255 | OPENSSL_ITEM parameters[]) | ||
| 256 | { | ||
| 257 | STORE_OBJECT *object; | ||
| 258 | X509 *x; | ||
| 259 | |||
| 260 | check_store(s,STORE_F_STORE_GET_CERTIFICATE, | ||
| 261 | get_object,STORE_R_NO_GET_OBJECT_FUNCTION); | ||
| 262 | |||
| 263 | object = s->meth->get_object(s, STORE_OBJECT_TYPE_X509_CERTIFICATE, | ||
| 264 | attributes, parameters); | ||
| 265 | if (!object || !object->data.x509.certificate) | ||
| 266 | { | ||
| 267 | STOREerr(STORE_F_STORE_GET_CERTIFICATE, | ||
| 268 | STORE_R_FAILED_GETTING_CERTIFICATE); | ||
| 269 | return 0; | ||
| 270 | } | ||
| 271 | CRYPTO_add(&object->data.x509.certificate->references,1,CRYPTO_LOCK_X509); | ||
| 272 | #ifdef REF_PRINT | ||
| 273 | REF_PRINT("X509",data); | ||
| 274 | #endif | ||
| 275 | x = object->data.x509.certificate; | ||
| 276 | STORE_OBJECT_free(object); | ||
| 277 | return x; | ||
| 278 | } | ||
| 279 | |||
| 280 | int STORE_store_certificate(STORE *s, X509 *data, OPENSSL_ITEM attributes[], | ||
| 281 | OPENSSL_ITEM parameters[]) | ||
| 282 | { | ||
| 283 | STORE_OBJECT *object; | ||
| 284 | int i; | ||
| 285 | |||
| 286 | check_store(s,STORE_F_STORE_CERTIFICATE, | ||
| 287 | store_object,STORE_R_NO_STORE_OBJECT_FUNCTION); | ||
| 288 | |||
| 289 | object = STORE_OBJECT_new(); | ||
| 290 | if (!object) | ||
| 291 | { | ||
| 292 | STOREerr(STORE_F_STORE_STORE_CERTIFICATE, | ||
| 293 | ERR_R_MALLOC_FAILURE); | ||
| 294 | return 0; | ||
| 295 | } | ||
| 296 | |||
| 297 | CRYPTO_add(&data->references,1,CRYPTO_LOCK_X509); | ||
| 298 | #ifdef REF_PRINT | ||
| 299 | REF_PRINT("X509",data); | ||
| 300 | #endif | ||
| 301 | object->data.x509.certificate = data; | ||
| 302 | |||
| 303 | i = s->meth->store_object(s, STORE_OBJECT_TYPE_X509_CERTIFICATE, | ||
| 304 | object, attributes, parameters); | ||
| 305 | |||
| 306 | STORE_OBJECT_free(object); | ||
| 307 | |||
| 308 | if (!i) | ||
| 309 | { | ||
| 310 | STOREerr(STORE_F_STORE_STORE_CERTIFICATE, | ||
| 311 | STORE_R_FAILED_STORING_CERTIFICATE); | ||
| 312 | return 0; | ||
| 313 | } | ||
| 314 | return 1; | ||
| 315 | } | ||
| 316 | |||
| 317 | int STORE_modify_certificate(STORE *s, OPENSSL_ITEM search_attributes[], | ||
| 318 | OPENSSL_ITEM add_attributes[], OPENSSL_ITEM modify_attributes[], | ||
| 319 | OPENSSL_ITEM delete_attributes[], OPENSSL_ITEM parameters[]) | ||
| 320 | { | ||
| 321 | check_store(s,STORE_F_STORE_MODIFY_CERTIFICATE, | ||
| 322 | modify_object,STORE_R_NO_MODIFY_OBJECT_FUNCTION); | ||
| 323 | |||
| 324 | if (!s->meth->modify_object(s, STORE_OBJECT_TYPE_X509_CERTIFICATE, | ||
| 325 | search_attributes, add_attributes, modify_attributes, | ||
| 326 | delete_attributes, parameters)) | ||
| 327 | { | ||
| 328 | STOREerr(STORE_F_STORE_MODIFY_CERTIFICATE, | ||
| 329 | STORE_R_FAILED_MODIFYING_CERTIFICATE); | ||
| 330 | return 0; | ||
| 331 | } | ||
| 332 | return 1; | ||
| 333 | } | ||
| 334 | |||
| 335 | int STORE_revoke_certificate(STORE *s, OPENSSL_ITEM attributes[], | ||
| 336 | OPENSSL_ITEM parameters[]) | ||
| 337 | { | ||
| 338 | check_store(s,STORE_F_STORE_REVOKE_CERTIFICATE, | ||
| 339 | revoke_object,STORE_R_NO_REVOKE_OBJECT_FUNCTION); | ||
| 340 | |||
| 341 | if (!s->meth->revoke_object(s, STORE_OBJECT_TYPE_X509_CERTIFICATE, | ||
| 342 | attributes, parameters)) | ||
| 343 | { | ||
| 344 | STOREerr(STORE_F_STORE_REVOKE_CERTIFICATE, | ||
| 345 | STORE_R_FAILED_REVOKING_CERTIFICATE); | ||
| 346 | return 0; | ||
| 347 | } | ||
| 348 | return 1; | ||
| 349 | } | ||
| 350 | |||
| 351 | int STORE_delete_certificate(STORE *s, OPENSSL_ITEM attributes[], | ||
| 352 | OPENSSL_ITEM parameters[]) | ||
| 353 | { | ||
| 354 | check_store(s,STORE_F_STORE_DELETE_CERTIFICATE, | ||
| 355 | delete_object,STORE_R_NO_DELETE_OBJECT_FUNCTION); | ||
| 356 | |||
| 357 | if (!s->meth->delete_object(s, STORE_OBJECT_TYPE_X509_CERTIFICATE, | ||
| 358 | attributes, parameters)) | ||
| 359 | { | ||
| 360 | STOREerr(STORE_F_STORE_DELETE_CERTIFICATE, | ||
| 361 | STORE_R_FAILED_DELETING_CERTIFICATE); | ||
| 362 | return 0; | ||
| 363 | } | ||
| 364 | return 1; | ||
| 365 | } | ||
| 366 | |||
| 367 | void *STORE_list_certificate_start(STORE *s, OPENSSL_ITEM attributes[], | ||
| 368 | OPENSSL_ITEM parameters[]) | ||
| 369 | { | ||
| 370 | void *handle; | ||
| 371 | |||
| 372 | check_store(s,STORE_F_STORE_LIST_CERTIFICATE_START, | ||
| 373 | list_object_start,STORE_R_NO_LIST_OBJECT_START_FUNCTION); | ||
| 374 | |||
| 375 | handle = s->meth->list_object_start(s, | ||
| 376 | STORE_OBJECT_TYPE_X509_CERTIFICATE, attributes, parameters); | ||
| 377 | if (!handle) | ||
| 378 | { | ||
| 379 | STOREerr(STORE_F_STORE_LIST_CERTIFICATE_START, | ||
| 380 | STORE_R_FAILED_LISTING_CERTIFICATES); | ||
| 381 | return 0; | ||
| 382 | } | ||
| 383 | return handle; | ||
| 384 | } | ||
| 385 | |||
| 386 | X509 *STORE_list_certificate_next(STORE *s, void *handle) | ||
| 387 | { | ||
| 388 | STORE_OBJECT *object; | ||
| 389 | X509 *x; | ||
| 390 | |||
| 391 | check_store(s,STORE_F_STORE_LIST_CERTIFICATE_NEXT, | ||
| 392 | list_object_next,STORE_R_NO_LIST_OBJECT_NEXT_FUNCTION); | ||
| 393 | |||
| 394 | object = s->meth->list_object_next(s, handle); | ||
| 395 | if (!object || !object->data.x509.certificate) | ||
| 396 | { | ||
| 397 | STOREerr(STORE_F_STORE_LIST_CERTIFICATE_NEXT, | ||
| 398 | STORE_R_FAILED_LISTING_CERTIFICATES); | ||
| 399 | return 0; | ||
| 400 | } | ||
| 401 | CRYPTO_add(&object->data.x509.certificate->references,1,CRYPTO_LOCK_X509); | ||
| 402 | #ifdef REF_PRINT | ||
| 403 | REF_PRINT("X509",data); | ||
| 404 | #endif | ||
| 405 | x = object->data.x509.certificate; | ||
| 406 | STORE_OBJECT_free(object); | ||
| 407 | return x; | ||
| 408 | } | ||
| 409 | |||
| 410 | int STORE_list_certificate_end(STORE *s, void *handle) | ||
| 411 | { | ||
| 412 | check_store(s,STORE_F_STORE_LIST_CERTIFICATE_END, | ||
| 413 | list_object_end,STORE_R_NO_LIST_OBJECT_END_FUNCTION); | ||
| 414 | |||
| 415 | if (!s->meth->list_object_end(s, handle)) | ||
| 416 | { | ||
| 417 | STOREerr(STORE_F_STORE_LIST_CERTIFICATE_END, | ||
| 418 | STORE_R_FAILED_LISTING_CERTIFICATES); | ||
| 419 | return 0; | ||
| 420 | } | ||
| 421 | return 1; | ||
| 422 | } | ||
| 423 | |||
| 424 | int STORE_list_certificate_endp(STORE *s, void *handle) | ||
| 425 | { | ||
| 426 | check_store(s,STORE_F_STORE_LIST_CERTIFICATE_ENDP, | ||
| 427 | list_object_endp,STORE_R_NO_LIST_OBJECT_ENDP_FUNCTION); | ||
| 428 | |||
| 429 | if (!s->meth->list_object_endp(s, handle)) | ||
| 430 | { | ||
| 431 | STOREerr(STORE_F_STORE_LIST_CERTIFICATE_ENDP, | ||
| 432 | STORE_R_FAILED_LISTING_CERTIFICATES); | ||
| 433 | return 0; | ||
| 434 | } | ||
| 435 | return 1; | ||
| 436 | } | ||
| 437 | |||
| 438 | EVP_PKEY *STORE_generate_key(STORE *s, OPENSSL_ITEM attributes[], | ||
| 439 | OPENSSL_ITEM parameters[]) | ||
| 440 | { | ||
| 441 | STORE_OBJECT *object; | ||
| 442 | EVP_PKEY *pkey; | ||
| 443 | |||
| 444 | check_store(s,STORE_F_STORE_GENERATE_KEY, | ||
| 445 | generate_object,STORE_R_NO_GENERATE_OBJECT_FUNCTION); | ||
| 446 | |||
| 447 | object = s->meth->generate_object(s, STORE_OBJECT_TYPE_PRIVATE_KEY, | ||
| 448 | attributes, parameters); | ||
| 449 | if (!object || !object->data.key) | ||
| 450 | { | ||
| 451 | STOREerr(STORE_F_STORE_GENERATE_KEY, | ||
| 452 | STORE_R_FAILED_GENERATING_KEY); | ||
| 453 | return 0; | ||
| 454 | } | ||
| 455 | CRYPTO_add(&object->data.key->references,1,CRYPTO_LOCK_EVP_PKEY); | ||
| 456 | #ifdef REF_PRINT | ||
| 457 | REF_PRINT("EVP_PKEY",data); | ||
| 458 | #endif | ||
| 459 | pkey = object->data.key; | ||
| 460 | STORE_OBJECT_free(object); | ||
| 461 | return pkey; | ||
| 462 | } | ||
| 463 | |||
| 464 | EVP_PKEY *STORE_get_private_key(STORE *s, OPENSSL_ITEM attributes[], | ||
| 465 | OPENSSL_ITEM parameters[]) | ||
| 466 | { | ||
| 467 | STORE_OBJECT *object; | ||
| 468 | EVP_PKEY *pkey; | ||
| 469 | |||
| 470 | check_store(s,STORE_F_STORE_GET_PRIVATE_KEY, | ||
| 471 | get_object,STORE_R_NO_GET_OBJECT_FUNCTION); | ||
| 472 | |||
| 473 | object = s->meth->get_object(s, STORE_OBJECT_TYPE_PRIVATE_KEY, | ||
| 474 | attributes, parameters); | ||
| 475 | if (!object || !object->data.key || !object->data.key) | ||
| 476 | { | ||
| 477 | STOREerr(STORE_F_STORE_GET_PRIVATE_KEY, | ||
| 478 | STORE_R_FAILED_GETTING_KEY); | ||
| 479 | return 0; | ||
| 480 | } | ||
| 481 | CRYPTO_add(&object->data.key->references,1,CRYPTO_LOCK_EVP_PKEY); | ||
| 482 | #ifdef REF_PRINT | ||
| 483 | REF_PRINT("EVP_PKEY",data); | ||
| 484 | #endif | ||
| 485 | pkey = object->data.key; | ||
| 486 | STORE_OBJECT_free(object); | ||
| 487 | return pkey; | ||
| 488 | } | ||
| 489 | |||
| 490 | int STORE_store_private_key(STORE *s, EVP_PKEY *data, OPENSSL_ITEM attributes[], | ||
| 491 | OPENSSL_ITEM parameters[]) | ||
| 492 | { | ||
| 493 | STORE_OBJECT *object; | ||
| 494 | int i; | ||
| 495 | |||
| 496 | check_store(s,STORE_F_STORE_STORE_PRIVATE_KEY, | ||
| 497 | store_object,STORE_R_NO_STORE_OBJECT_FUNCTION); | ||
| 498 | |||
| 499 | object = STORE_OBJECT_new(); | ||
| 500 | if (!object) | ||
| 501 | { | ||
| 502 | STOREerr(STORE_F_STORE_STORE_PRIVATE_KEY, | ||
| 503 | ERR_R_MALLOC_FAILURE); | ||
| 504 | return 0; | ||
| 505 | } | ||
| 506 | object->data.key = EVP_PKEY_new(); | ||
| 507 | if (!object->data.key) | ||
| 508 | { | ||
| 509 | STOREerr(STORE_F_STORE_STORE_PRIVATE_KEY, | ||
| 510 | ERR_R_MALLOC_FAILURE); | ||
| 511 | return 0; | ||
| 512 | } | ||
| 513 | |||
| 514 | CRYPTO_add(&data->references,1,CRYPTO_LOCK_EVP_PKEY); | ||
| 515 | #ifdef REF_PRINT | ||
| 516 | REF_PRINT("EVP_PKEY",data); | ||
| 517 | #endif | ||
| 518 | object->data.key = data; | ||
| 519 | |||
| 520 | i = s->meth->store_object(s, STORE_OBJECT_TYPE_PRIVATE_KEY, object, | ||
| 521 | attributes, parameters); | ||
| 522 | |||
| 523 | STORE_OBJECT_free(object); | ||
| 524 | |||
| 525 | if (!i) | ||
| 526 | { | ||
| 527 | STOREerr(STORE_F_STORE_STORE_PRIVATE_KEY, | ||
| 528 | STORE_R_FAILED_STORING_KEY); | ||
| 529 | return 0; | ||
| 530 | } | ||
| 531 | return i; | ||
| 532 | } | ||
| 533 | |||
| 534 | int STORE_modify_private_key(STORE *s, OPENSSL_ITEM search_attributes[], | ||
| 535 | OPENSSL_ITEM add_attributes[], OPENSSL_ITEM modify_attributes[], | ||
| 536 | OPENSSL_ITEM delete_attributes[], OPENSSL_ITEM parameters[]) | ||
| 537 | { | ||
| 538 | check_store(s,STORE_F_STORE_MODIFY_PRIVATE_KEY, | ||
| 539 | modify_object,STORE_R_NO_MODIFY_OBJECT_FUNCTION); | ||
| 540 | |||
| 541 | if (!s->meth->modify_object(s, STORE_OBJECT_TYPE_PRIVATE_KEY, | ||
| 542 | search_attributes, add_attributes, modify_attributes, | ||
| 543 | delete_attributes, parameters)) | ||
| 544 | { | ||
| 545 | STOREerr(STORE_F_STORE_MODIFY_PRIVATE_KEY, | ||
| 546 | STORE_R_FAILED_MODIFYING_PRIVATE_KEY); | ||
| 547 | return 0; | ||
| 548 | } | ||
| 549 | return 1; | ||
| 550 | } | ||
| 551 | |||
| 552 | int STORE_revoke_private_key(STORE *s, OPENSSL_ITEM attributes[], | ||
| 553 | OPENSSL_ITEM parameters[]) | ||
| 554 | { | ||
| 555 | int i; | ||
| 556 | |||
| 557 | check_store(s,STORE_F_STORE_REVOKE_PRIVATE_KEY, | ||
| 558 | revoke_object,STORE_R_NO_REVOKE_OBJECT_FUNCTION); | ||
| 559 | |||
| 560 | i = s->meth->revoke_object(s, STORE_OBJECT_TYPE_PRIVATE_KEY, | ||
| 561 | attributes, parameters); | ||
| 562 | |||
| 563 | if (!i) | ||
| 564 | { | ||
| 565 | STOREerr(STORE_F_STORE_REVOKE_PRIVATE_KEY, | ||
| 566 | STORE_R_FAILED_REVOKING_KEY); | ||
| 567 | return 0; | ||
| 568 | } | ||
| 569 | return i; | ||
| 570 | } | ||
| 571 | |||
| 572 | int STORE_delete_private_key(STORE *s, OPENSSL_ITEM attributes[], | ||
| 573 | OPENSSL_ITEM parameters[]) | ||
| 574 | { | ||
| 575 | check_store(s,STORE_F_STORE_DELETE_PRIVATE_KEY, | ||
| 576 | delete_object,STORE_R_NO_DELETE_OBJECT_FUNCTION); | ||
| 577 | |||
| 578 | if (!s->meth->delete_object(s, STORE_OBJECT_TYPE_PRIVATE_KEY, | ||
| 579 | attributes, parameters)) | ||
| 580 | { | ||
| 581 | STOREerr(STORE_F_STORE_DELETE_PRIVATE_KEY, | ||
| 582 | STORE_R_FAILED_DELETING_KEY); | ||
| 583 | return 0; | ||
| 584 | } | ||
| 585 | return 1; | ||
| 586 | } | ||
| 587 | |||
| 588 | void *STORE_list_private_key_start(STORE *s, OPENSSL_ITEM attributes[], | ||
| 589 | OPENSSL_ITEM parameters[]) | ||
| 590 | { | ||
| 591 | void *handle; | ||
| 592 | |||
| 593 | check_store(s,STORE_F_STORE_LIST_PRIVATE_KEY_START, | ||
| 594 | list_object_start,STORE_R_NO_LIST_OBJECT_START_FUNCTION); | ||
| 595 | |||
| 596 | handle = s->meth->list_object_start(s, STORE_OBJECT_TYPE_PRIVATE_KEY, | ||
| 597 | attributes, parameters); | ||
| 598 | if (!handle) | ||
| 599 | { | ||
| 600 | STOREerr(STORE_F_STORE_LIST_PRIVATE_KEY_START, | ||
| 601 | STORE_R_FAILED_LISTING_KEYS); | ||
| 602 | return 0; | ||
| 603 | } | ||
| 604 | return handle; | ||
| 605 | } | ||
| 606 | |||
| 607 | EVP_PKEY *STORE_list_private_key_next(STORE *s, void *handle) | ||
| 608 | { | ||
| 609 | STORE_OBJECT *object; | ||
| 610 | EVP_PKEY *pkey; | ||
| 611 | |||
| 612 | check_store(s,STORE_F_STORE_LIST_PRIVATE_KEY_NEXT, | ||
| 613 | list_object_next,STORE_R_NO_LIST_OBJECT_NEXT_FUNCTION); | ||
| 614 | |||
| 615 | object = s->meth->list_object_next(s, handle); | ||
| 616 | if (!object || !object->data.key || !object->data.key) | ||
| 617 | { | ||
| 618 | STOREerr(STORE_F_STORE_LIST_PRIVATE_KEY_NEXT, | ||
| 619 | STORE_R_FAILED_LISTING_KEYS); | ||
| 620 | return 0; | ||
| 621 | } | ||
| 622 | CRYPTO_add(&object->data.key->references,1,CRYPTO_LOCK_EVP_PKEY); | ||
| 623 | #ifdef REF_PRINT | ||
| 624 | REF_PRINT("EVP_PKEY",data); | ||
| 625 | #endif | ||
| 626 | pkey = object->data.key; | ||
| 627 | STORE_OBJECT_free(object); | ||
| 628 | return pkey; | ||
| 629 | } | ||
| 630 | |||
| 631 | int STORE_list_private_key_end(STORE *s, void *handle) | ||
| 632 | { | ||
| 633 | check_store(s,STORE_F_STORE_LIST_PRIVATE_KEY_END, | ||
| 634 | list_object_end,STORE_R_NO_LIST_OBJECT_END_FUNCTION); | ||
| 635 | |||
| 636 | if (!s->meth->list_object_end(s, handle)) | ||
| 637 | { | ||
| 638 | STOREerr(STORE_F_STORE_LIST_PRIVATE_KEY_END, | ||
| 639 | STORE_R_FAILED_LISTING_KEYS); | ||
| 640 | return 0; | ||
| 641 | } | ||
| 642 | return 1; | ||
| 643 | } | ||
| 644 | |||
| 645 | int STORE_list_private_key_endp(STORE *s, void *handle) | ||
| 646 | { | ||
| 647 | check_store(s,STORE_F_STORE_LIST_PRIVATE_KEY_ENDP, | ||
| 648 | list_object_endp,STORE_R_NO_LIST_OBJECT_ENDP_FUNCTION); | ||
| 649 | |||
| 650 | if (!s->meth->list_object_endp(s, handle)) | ||
| 651 | { | ||
| 652 | STOREerr(STORE_F_STORE_LIST_PRIVATE_KEY_ENDP, | ||
| 653 | STORE_R_FAILED_LISTING_KEYS); | ||
| 654 | return 0; | ||
| 655 | } | ||
| 656 | return 1; | ||
| 657 | } | ||
| 658 | |||
| 659 | EVP_PKEY *STORE_get_public_key(STORE *s, OPENSSL_ITEM attributes[], | ||
| 660 | OPENSSL_ITEM parameters[]) | ||
| 661 | { | ||
| 662 | STORE_OBJECT *object; | ||
| 663 | EVP_PKEY *pkey; | ||
| 664 | |||
| 665 | check_store(s,STORE_F_STORE_GET_PUBLIC_KEY, | ||
| 666 | get_object,STORE_R_NO_GET_OBJECT_FUNCTION); | ||
| 667 | |||
| 668 | object = s->meth->get_object(s, STORE_OBJECT_TYPE_PUBLIC_KEY, | ||
| 669 | attributes, parameters); | ||
| 670 | if (!object || !object->data.key || !object->data.key) | ||
| 671 | { | ||
| 672 | STOREerr(STORE_F_STORE_GET_PUBLIC_KEY, | ||
| 673 | STORE_R_FAILED_GETTING_KEY); | ||
| 674 | return 0; | ||
| 675 | } | ||
| 676 | CRYPTO_add(&object->data.key->references,1,CRYPTO_LOCK_EVP_PKEY); | ||
| 677 | #ifdef REF_PRINT | ||
| 678 | REF_PRINT("EVP_PKEY",data); | ||
| 679 | #endif | ||
| 680 | pkey = object->data.key; | ||
| 681 | STORE_OBJECT_free(object); | ||
| 682 | return pkey; | ||
| 683 | } | ||
| 684 | |||
| 685 | int STORE_store_public_key(STORE *s, EVP_PKEY *data, OPENSSL_ITEM attributes[], | ||
| 686 | OPENSSL_ITEM parameters[]) | ||
| 687 | { | ||
| 688 | STORE_OBJECT *object; | ||
| 689 | int i; | ||
| 690 | |||
| 691 | check_store(s,STORE_F_STORE_STORE_PUBLIC_KEY, | ||
| 692 | store_object,STORE_R_NO_STORE_OBJECT_FUNCTION); | ||
| 693 | |||
| 694 | object = STORE_OBJECT_new(); | ||
| 695 | if (!object) | ||
| 696 | { | ||
| 697 | STOREerr(STORE_F_STORE_STORE_PUBLIC_KEY, | ||
| 698 | ERR_R_MALLOC_FAILURE); | ||
| 699 | return 0; | ||
| 700 | } | ||
| 701 | object->data.key = EVP_PKEY_new(); | ||
| 702 | if (!object->data.key) | ||
| 703 | { | ||
| 704 | STOREerr(STORE_F_STORE_STORE_PUBLIC_KEY, | ||
| 705 | ERR_R_MALLOC_FAILURE); | ||
| 706 | return 0; | ||
| 707 | } | ||
| 708 | |||
| 709 | CRYPTO_add(&data->references,1,CRYPTO_LOCK_EVP_PKEY); | ||
| 710 | #ifdef REF_PRINT | ||
| 711 | REF_PRINT("EVP_PKEY",data); | ||
| 712 | #endif | ||
| 713 | object->data.key = data; | ||
| 714 | |||
| 715 | i = s->meth->store_object(s, STORE_OBJECT_TYPE_PUBLIC_KEY, object, | ||
| 716 | attributes, parameters); | ||
| 717 | |||
| 718 | STORE_OBJECT_free(object); | ||
| 719 | |||
| 720 | if (!i) | ||
| 721 | { | ||
| 722 | STOREerr(STORE_F_STORE_STORE_PUBLIC_KEY, | ||
| 723 | STORE_R_FAILED_STORING_KEY); | ||
| 724 | return 0; | ||
| 725 | } | ||
| 726 | return i; | ||
| 727 | } | ||
| 728 | |||
| 729 | int STORE_modify_public_key(STORE *s, OPENSSL_ITEM search_attributes[], | ||
| 730 | OPENSSL_ITEM add_attributes[], OPENSSL_ITEM modify_attributes[], | ||
| 731 | OPENSSL_ITEM delete_attributes[], OPENSSL_ITEM parameters[]) | ||
| 732 | { | ||
| 733 | check_store(s,STORE_F_STORE_MODIFY_PUBLIC_KEY, | ||
| 734 | modify_object,STORE_R_NO_MODIFY_OBJECT_FUNCTION); | ||
| 735 | |||
| 736 | if (!s->meth->modify_object(s, STORE_OBJECT_TYPE_PUBLIC_KEY, | ||
| 737 | search_attributes, add_attributes, modify_attributes, | ||
| 738 | delete_attributes, parameters)) | ||
| 739 | { | ||
| 740 | STOREerr(STORE_F_STORE_MODIFY_PUBLIC_KEY, | ||
| 741 | STORE_R_FAILED_MODIFYING_PUBLIC_KEY); | ||
| 742 | return 0; | ||
| 743 | } | ||
| 744 | return 1; | ||
| 745 | } | ||
| 746 | |||
| 747 | int STORE_revoke_public_key(STORE *s, OPENSSL_ITEM attributes[], | ||
| 748 | OPENSSL_ITEM parameters[]) | ||
| 749 | { | ||
| 750 | int i; | ||
| 751 | |||
| 752 | check_store(s,STORE_F_STORE_REVOKE_PUBLIC_KEY, | ||
| 753 | revoke_object,STORE_R_NO_REVOKE_OBJECT_FUNCTION); | ||
| 754 | |||
| 755 | i = s->meth->revoke_object(s, STORE_OBJECT_TYPE_PUBLIC_KEY, | ||
| 756 | attributes, parameters); | ||
| 757 | |||
| 758 | if (!i) | ||
| 759 | { | ||
| 760 | STOREerr(STORE_F_STORE_REVOKE_PUBLIC_KEY, | ||
| 761 | STORE_R_FAILED_REVOKING_KEY); | ||
| 762 | return 0; | ||
| 763 | } | ||
| 764 | return i; | ||
| 765 | } | ||
| 766 | |||
| 767 | int STORE_delete_public_key(STORE *s, OPENSSL_ITEM attributes[], | ||
| 768 | OPENSSL_ITEM parameters[]) | ||
| 769 | { | ||
| 770 | check_store(s,STORE_F_STORE_DELETE_PUBLIC_KEY, | ||
| 771 | delete_object,STORE_R_NO_DELETE_OBJECT_FUNCTION); | ||
| 772 | |||
| 773 | if (!s->meth->delete_object(s, STORE_OBJECT_TYPE_PUBLIC_KEY, | ||
| 774 | attributes, parameters)) | ||
| 775 | { | ||
| 776 | STOREerr(STORE_F_STORE_DELETE_PUBLIC_KEY, | ||
| 777 | STORE_R_FAILED_DELETING_KEY); | ||
| 778 | return 0; | ||
| 779 | } | ||
| 780 | return 1; | ||
| 781 | } | ||
| 782 | |||
| 783 | void *STORE_list_public_key_start(STORE *s, OPENSSL_ITEM attributes[], | ||
| 784 | OPENSSL_ITEM parameters[]) | ||
| 785 | { | ||
| 786 | void *handle; | ||
| 787 | |||
| 788 | check_store(s,STORE_F_STORE_LIST_PUBLIC_KEY_START, | ||
| 789 | list_object_start,STORE_R_NO_LIST_OBJECT_START_FUNCTION); | ||
| 790 | |||
| 791 | handle = s->meth->list_object_start(s, STORE_OBJECT_TYPE_PUBLIC_KEY, | ||
| 792 | attributes, parameters); | ||
| 793 | if (!handle) | ||
| 794 | { | ||
| 795 | STOREerr(STORE_F_STORE_LIST_PUBLIC_KEY_START, | ||
| 796 | STORE_R_FAILED_LISTING_KEYS); | ||
| 797 | return 0; | ||
| 798 | } | ||
| 799 | return handle; | ||
| 800 | } | ||
| 801 | |||
| 802 | EVP_PKEY *STORE_list_public_key_next(STORE *s, void *handle) | ||
| 803 | { | ||
| 804 | STORE_OBJECT *object; | ||
| 805 | EVP_PKEY *pkey; | ||
| 806 | |||
| 807 | check_store(s,STORE_F_STORE_LIST_PUBLIC_KEY_NEXT, | ||
| 808 | list_object_next,STORE_R_NO_LIST_OBJECT_NEXT_FUNCTION); | ||
| 809 | |||
| 810 | object = s->meth->list_object_next(s, handle); | ||
| 811 | if (!object || !object->data.key || !object->data.key) | ||
| 812 | { | ||
| 813 | STOREerr(STORE_F_STORE_LIST_PUBLIC_KEY_NEXT, | ||
| 814 | STORE_R_FAILED_LISTING_KEYS); | ||
| 815 | return 0; | ||
| 816 | } | ||
| 817 | CRYPTO_add(&object->data.key->references,1,CRYPTO_LOCK_EVP_PKEY); | ||
| 818 | #ifdef REF_PRINT | ||
| 819 | REF_PRINT("EVP_PKEY",data); | ||
| 820 | #endif | ||
| 821 | pkey = object->data.key; | ||
| 822 | STORE_OBJECT_free(object); | ||
| 823 | return pkey; | ||
| 824 | } | ||
| 825 | |||
| 826 | int STORE_list_public_key_end(STORE *s, void *handle) | ||
| 827 | { | ||
| 828 | check_store(s,STORE_F_STORE_LIST_PUBLIC_KEY_END, | ||
| 829 | list_object_end,STORE_R_NO_LIST_OBJECT_END_FUNCTION); | ||
| 830 | |||
| 831 | if (!s->meth->list_object_end(s, handle)) | ||
| 832 | { | ||
| 833 | STOREerr(STORE_F_STORE_LIST_PUBLIC_KEY_END, | ||
| 834 | STORE_R_FAILED_LISTING_KEYS); | ||
| 835 | return 0; | ||
| 836 | } | ||
| 837 | return 1; | ||
| 838 | } | ||
| 839 | |||
| 840 | int STORE_list_public_key_endp(STORE *s, void *handle) | ||
| 841 | { | ||
| 842 | check_store(s,STORE_F_STORE_LIST_PUBLIC_KEY_ENDP, | ||
| 843 | list_object_endp,STORE_R_NO_LIST_OBJECT_ENDP_FUNCTION); | ||
| 844 | |||
| 845 | if (!s->meth->list_object_endp(s, handle)) | ||
| 846 | { | ||
| 847 | STOREerr(STORE_F_STORE_LIST_PUBLIC_KEY_ENDP, | ||
| 848 | STORE_R_FAILED_LISTING_KEYS); | ||
| 849 | return 0; | ||
| 850 | } | ||
| 851 | return 1; | ||
| 852 | } | ||
| 853 | |||
| 854 | X509_CRL *STORE_generate_crl(STORE *s, OPENSSL_ITEM attributes[], | ||
| 855 | OPENSSL_ITEM parameters[]) | ||
| 856 | { | ||
| 857 | STORE_OBJECT *object; | ||
| 858 | X509_CRL *crl; | ||
| 859 | |||
| 860 | check_store(s,STORE_F_STORE_GENERATE_CRL, | ||
| 861 | generate_object,STORE_R_NO_GENERATE_CRL_FUNCTION); | ||
| 862 | |||
| 863 | object = s->meth->generate_object(s, STORE_OBJECT_TYPE_X509_CRL, | ||
| 864 | attributes, parameters); | ||
| 865 | if (!object || !object->data.crl) | ||
| 866 | { | ||
| 867 | STOREerr(STORE_F_STORE_GENERATE_CRL, | ||
| 868 | STORE_R_FAILED_GENERATING_CRL); | ||
| 869 | return 0; | ||
| 870 | } | ||
| 871 | CRYPTO_add(&object->data.crl->references,1,CRYPTO_LOCK_X509_CRL); | ||
| 872 | #ifdef REF_PRINT | ||
| 873 | REF_PRINT("X509_CRL",data); | ||
| 874 | #endif | ||
| 875 | crl = object->data.crl; | ||
| 876 | STORE_OBJECT_free(object); | ||
| 877 | return crl; | ||
| 878 | } | ||
| 879 | |||
| 880 | X509_CRL *STORE_get_crl(STORE *s, OPENSSL_ITEM attributes[], | ||
| 881 | OPENSSL_ITEM parameters[]) | ||
| 882 | { | ||
| 883 | STORE_OBJECT *object; | ||
| 884 | X509_CRL *crl; | ||
| 885 | |||
| 886 | check_store(s,STORE_F_STORE_GET_CRL, | ||
| 887 | get_object,STORE_R_NO_GET_OBJECT_FUNCTION); | ||
| 888 | |||
| 889 | object = s->meth->get_object(s, STORE_OBJECT_TYPE_X509_CRL, | ||
| 890 | attributes, parameters); | ||
| 891 | if (!object || !object->data.crl) | ||
| 892 | { | ||
| 893 | STOREerr(STORE_F_STORE_GET_CRL, | ||
| 894 | STORE_R_FAILED_GETTING_KEY); | ||
| 895 | return 0; | ||
| 896 | } | ||
| 897 | CRYPTO_add(&object->data.crl->references,1,CRYPTO_LOCK_X509_CRL); | ||
| 898 | #ifdef REF_PRINT | ||
| 899 | REF_PRINT("X509_CRL",data); | ||
| 900 | #endif | ||
| 901 | crl = object->data.crl; | ||
| 902 | STORE_OBJECT_free(object); | ||
| 903 | return crl; | ||
| 904 | } | ||
| 905 | |||
| 906 | int STORE_store_crl(STORE *s, X509_CRL *data, OPENSSL_ITEM attributes[], | ||
| 907 | OPENSSL_ITEM parameters[]) | ||
| 908 | { | ||
| 909 | STORE_OBJECT *object; | ||
| 910 | int i; | ||
| 911 | |||
| 912 | check_store(s,STORE_F_STORE_STORE_CRL, | ||
| 913 | store_object,STORE_R_NO_STORE_OBJECT_FUNCTION); | ||
| 914 | |||
| 915 | object = STORE_OBJECT_new(); | ||
| 916 | if (!object) | ||
| 917 | { | ||
| 918 | STOREerr(STORE_F_STORE_STORE_CRL, | ||
| 919 | ERR_R_MALLOC_FAILURE); | ||
| 920 | return 0; | ||
| 921 | } | ||
| 922 | |||
| 923 | CRYPTO_add(&data->references,1,CRYPTO_LOCK_X509_CRL); | ||
| 924 | #ifdef REF_PRINT | ||
| 925 | REF_PRINT("X509_CRL",data); | ||
| 926 | #endif | ||
| 927 | object->data.crl = data; | ||
| 928 | |||
| 929 | i = s->meth->store_object(s, STORE_OBJECT_TYPE_X509_CRL, object, | ||
| 930 | attributes, parameters); | ||
| 931 | |||
| 932 | STORE_OBJECT_free(object); | ||
| 933 | |||
| 934 | if (!i) | ||
| 935 | { | ||
| 936 | STOREerr(STORE_F_STORE_STORE_CRL, | ||
| 937 | STORE_R_FAILED_STORING_KEY); | ||
| 938 | return 0; | ||
| 939 | } | ||
| 940 | return i; | ||
| 941 | } | ||
| 942 | |||
| 943 | int STORE_modify_crl(STORE *s, OPENSSL_ITEM search_attributes[], | ||
| 944 | OPENSSL_ITEM add_attributes[], OPENSSL_ITEM modify_attributes[], | ||
| 945 | OPENSSL_ITEM delete_attributes[], OPENSSL_ITEM parameters[]) | ||
| 946 | { | ||
| 947 | check_store(s,STORE_F_STORE_MODIFY_CRL, | ||
| 948 | modify_object,STORE_R_NO_MODIFY_OBJECT_FUNCTION); | ||
| 949 | |||
| 950 | if (!s->meth->modify_object(s, STORE_OBJECT_TYPE_X509_CRL, | ||
| 951 | search_attributes, add_attributes, modify_attributes, | ||
| 952 | delete_attributes, parameters)) | ||
| 953 | { | ||
| 954 | STOREerr(STORE_F_STORE_MODIFY_CRL, | ||
| 955 | STORE_R_FAILED_MODIFYING_CRL); | ||
| 956 | return 0; | ||
| 957 | } | ||
| 958 | return 1; | ||
| 959 | } | ||
| 960 | |||
| 961 | int STORE_delete_crl(STORE *s, OPENSSL_ITEM attributes[], | ||
| 962 | OPENSSL_ITEM parameters[]) | ||
| 963 | { | ||
| 964 | check_store(s,STORE_F_STORE_DELETE_CRL, | ||
| 965 | delete_object,STORE_R_NO_DELETE_OBJECT_FUNCTION); | ||
| 966 | |||
| 967 | if (!s->meth->delete_object(s, STORE_OBJECT_TYPE_X509_CRL, | ||
| 968 | attributes, parameters)) | ||
| 969 | { | ||
| 970 | STOREerr(STORE_F_STORE_DELETE_CRL, | ||
| 971 | STORE_R_FAILED_DELETING_KEY); | ||
| 972 | return 0; | ||
| 973 | } | ||
| 974 | return 1; | ||
| 975 | } | ||
| 976 | |||
| 977 | void *STORE_list_crl_start(STORE *s, OPENSSL_ITEM attributes[], | ||
| 978 | OPENSSL_ITEM parameters[]) | ||
| 979 | { | ||
| 980 | void *handle; | ||
| 981 | |||
| 982 | check_store(s,STORE_F_STORE_LIST_CRL_START, | ||
| 983 | list_object_start,STORE_R_NO_LIST_OBJECT_START_FUNCTION); | ||
| 984 | |||
| 985 | handle = s->meth->list_object_start(s, STORE_OBJECT_TYPE_X509_CRL, | ||
| 986 | attributes, parameters); | ||
| 987 | if (!handle) | ||
| 988 | { | ||
| 989 | STOREerr(STORE_F_STORE_LIST_CRL_START, | ||
| 990 | STORE_R_FAILED_LISTING_KEYS); | ||
| 991 | return 0; | ||
| 992 | } | ||
| 993 | return handle; | ||
| 994 | } | ||
| 995 | |||
| 996 | X509_CRL *STORE_list_crl_next(STORE *s, void *handle) | ||
| 997 | { | ||
| 998 | STORE_OBJECT *object; | ||
| 999 | X509_CRL *crl; | ||
| 1000 | |||
| 1001 | check_store(s,STORE_F_STORE_LIST_CRL_NEXT, | ||
| 1002 | list_object_next,STORE_R_NO_LIST_OBJECT_NEXT_FUNCTION); | ||
| 1003 | |||
| 1004 | object = s->meth->list_object_next(s, handle); | ||
| 1005 | if (!object || !object->data.crl) | ||
| 1006 | { | ||
| 1007 | STOREerr(STORE_F_STORE_LIST_CRL_NEXT, | ||
| 1008 | STORE_R_FAILED_LISTING_KEYS); | ||
| 1009 | return 0; | ||
| 1010 | } | ||
| 1011 | CRYPTO_add(&object->data.crl->references,1,CRYPTO_LOCK_X509_CRL); | ||
| 1012 | #ifdef REF_PRINT | ||
| 1013 | REF_PRINT("X509_CRL",data); | ||
| 1014 | #endif | ||
| 1015 | crl = object->data.crl; | ||
| 1016 | STORE_OBJECT_free(object); | ||
| 1017 | return crl; | ||
| 1018 | } | ||
| 1019 | |||
| 1020 | int STORE_list_crl_end(STORE *s, void *handle) | ||
| 1021 | { | ||
| 1022 | check_store(s,STORE_F_STORE_LIST_CRL_END, | ||
| 1023 | list_object_end,STORE_R_NO_LIST_OBJECT_END_FUNCTION); | ||
| 1024 | |||
| 1025 | if (!s->meth->list_object_end(s, handle)) | ||
| 1026 | { | ||
| 1027 | STOREerr(STORE_F_STORE_LIST_CRL_END, | ||
| 1028 | STORE_R_FAILED_LISTING_KEYS); | ||
| 1029 | return 0; | ||
| 1030 | } | ||
| 1031 | return 1; | ||
| 1032 | } | ||
| 1033 | |||
| 1034 | int STORE_list_crl_endp(STORE *s, void *handle) | ||
| 1035 | { | ||
| 1036 | check_store(s,STORE_F_STORE_LIST_CRL_ENDP, | ||
| 1037 | list_object_endp,STORE_R_NO_LIST_OBJECT_ENDP_FUNCTION); | ||
| 1038 | |||
| 1039 | if (!s->meth->list_object_endp(s, handle)) | ||
| 1040 | { | ||
| 1041 | STOREerr(STORE_F_STORE_LIST_CRL_ENDP, | ||
| 1042 | STORE_R_FAILED_LISTING_KEYS); | ||
| 1043 | return 0; | ||
| 1044 | } | ||
| 1045 | return 1; | ||
| 1046 | } | ||
| 1047 | |||
| 1048 | int STORE_store_number(STORE *s, BIGNUM *data, OPENSSL_ITEM attributes[], | ||
| 1049 | OPENSSL_ITEM parameters[]) | ||
| 1050 | { | ||
| 1051 | STORE_OBJECT *object; | ||
| 1052 | int i; | ||
| 1053 | |||
| 1054 | check_store(s,STORE_F_STORE_STORE_NUMBER, | ||
| 1055 | store_object,STORE_R_NO_STORE_OBJECT_NUMBER_FUNCTION); | ||
| 1056 | |||
| 1057 | object = STORE_OBJECT_new(); | ||
| 1058 | if (!object) | ||
| 1059 | { | ||
| 1060 | STOREerr(STORE_F_STORE_STORE_NUMBER, | ||
| 1061 | ERR_R_MALLOC_FAILURE); | ||
| 1062 | return 0; | ||
| 1063 | } | ||
| 1064 | |||
| 1065 | object->data.number = data; | ||
| 1066 | |||
| 1067 | i = s->meth->store_object(s, STORE_OBJECT_TYPE_NUMBER, object, | ||
| 1068 | attributes, parameters); | ||
| 1069 | |||
| 1070 | STORE_OBJECT_free(object); | ||
| 1071 | |||
| 1072 | if (!i) | ||
| 1073 | { | ||
| 1074 | STOREerr(STORE_F_STORE_STORE_NUMBER, | ||
| 1075 | STORE_R_FAILED_STORING_NUMBER); | ||
| 1076 | return 0; | ||
| 1077 | } | ||
| 1078 | return 1; | ||
| 1079 | } | ||
| 1080 | |||
| 1081 | int STORE_modify_number(STORE *s, OPENSSL_ITEM search_attributes[], | ||
| 1082 | OPENSSL_ITEM add_attributes[], OPENSSL_ITEM modify_attributes[], | ||
| 1083 | OPENSSL_ITEM delete_attributes[], OPENSSL_ITEM parameters[]) | ||
| 1084 | { | ||
| 1085 | check_store(s,STORE_F_STORE_MODIFY_NUMBER, | ||
| 1086 | modify_object,STORE_R_NO_MODIFY_OBJECT_FUNCTION); | ||
| 1087 | |||
| 1088 | if (!s->meth->modify_object(s, STORE_OBJECT_TYPE_NUMBER, | ||
| 1089 | search_attributes, add_attributes, modify_attributes, | ||
| 1090 | delete_attributes, parameters)) | ||
| 1091 | { | ||
| 1092 | STOREerr(STORE_F_STORE_MODIFY_NUMBER, | ||
| 1093 | STORE_R_FAILED_MODIFYING_NUMBER); | ||
| 1094 | return 0; | ||
| 1095 | } | ||
| 1096 | return 1; | ||
| 1097 | } | ||
| 1098 | |||
| 1099 | BIGNUM *STORE_get_number(STORE *s, OPENSSL_ITEM attributes[], | ||
| 1100 | OPENSSL_ITEM parameters[]) | ||
| 1101 | { | ||
| 1102 | STORE_OBJECT *object; | ||
| 1103 | BIGNUM *n; | ||
| 1104 | |||
| 1105 | check_store(s,STORE_F_STORE_GET_NUMBER, | ||
| 1106 | get_object,STORE_R_NO_GET_OBJECT_NUMBER_FUNCTION); | ||
| 1107 | |||
| 1108 | object = s->meth->get_object(s, STORE_OBJECT_TYPE_NUMBER, attributes, | ||
| 1109 | parameters); | ||
| 1110 | if (!object || !object->data.number) | ||
| 1111 | { | ||
| 1112 | STOREerr(STORE_F_STORE_GET_NUMBER, | ||
| 1113 | STORE_R_FAILED_GETTING_NUMBER); | ||
| 1114 | return 0; | ||
| 1115 | } | ||
| 1116 | n = object->data.number; | ||
| 1117 | object->data.number = NULL; | ||
| 1118 | STORE_OBJECT_free(object); | ||
| 1119 | return n; | ||
| 1120 | } | ||
| 1121 | |||
| 1122 | int STORE_delete_number(STORE *s, OPENSSL_ITEM attributes[], | ||
| 1123 | OPENSSL_ITEM parameters[]) | ||
| 1124 | { | ||
| 1125 | check_store(s,STORE_F_STORE_DELETE_NUMBER, | ||
| 1126 | delete_object,STORE_R_NO_DELETE_NUMBER_FUNCTION); | ||
| 1127 | |||
| 1128 | if (!s->meth->delete_object(s, STORE_OBJECT_TYPE_NUMBER, attributes, | ||
| 1129 | parameters)) | ||
| 1130 | { | ||
| 1131 | STOREerr(STORE_F_STORE_DELETE_NUMBER, | ||
| 1132 | STORE_R_FAILED_DELETING_NUMBER); | ||
| 1133 | return 0; | ||
| 1134 | } | ||
| 1135 | return 1; | ||
| 1136 | } | ||
| 1137 | |||
| 1138 | int STORE_store_arbitrary(STORE *s, BUF_MEM *data, OPENSSL_ITEM attributes[], | ||
| 1139 | OPENSSL_ITEM parameters[]) | ||
| 1140 | { | ||
| 1141 | STORE_OBJECT *object; | ||
| 1142 | int i; | ||
| 1143 | |||
| 1144 | check_store(s,STORE_F_STORE_STORE_ARBITRARY, | ||
| 1145 | store_object,STORE_R_NO_STORE_OBJECT_ARBITRARY_FUNCTION); | ||
| 1146 | |||
| 1147 | object = STORE_OBJECT_new(); | ||
| 1148 | if (!object) | ||
| 1149 | { | ||
| 1150 | STOREerr(STORE_F_STORE_STORE_ARBITRARY, | ||
| 1151 | ERR_R_MALLOC_FAILURE); | ||
| 1152 | return 0; | ||
| 1153 | } | ||
| 1154 | |||
| 1155 | object->data.arbitrary = data; | ||
| 1156 | |||
| 1157 | i = s->meth->store_object(s, STORE_OBJECT_TYPE_ARBITRARY, object, | ||
| 1158 | attributes, parameters); | ||
| 1159 | |||
| 1160 | STORE_OBJECT_free(object); | ||
| 1161 | |||
| 1162 | if (!i) | ||
| 1163 | { | ||
| 1164 | STOREerr(STORE_F_STORE_STORE_ARBITRARY, | ||
| 1165 | STORE_R_FAILED_STORING_ARBITRARY); | ||
| 1166 | return 0; | ||
| 1167 | } | ||
| 1168 | return 1; | ||
| 1169 | } | ||
| 1170 | |||
| 1171 | int STORE_modify_arbitrary(STORE *s, OPENSSL_ITEM search_attributes[], | ||
| 1172 | OPENSSL_ITEM add_attributes[], OPENSSL_ITEM modify_attributes[], | ||
| 1173 | OPENSSL_ITEM delete_attributes[], OPENSSL_ITEM parameters[]) | ||
| 1174 | { | ||
| 1175 | check_store(s,STORE_F_STORE_MODIFY_ARBITRARY, | ||
| 1176 | modify_object,STORE_R_NO_MODIFY_OBJECT_FUNCTION); | ||
| 1177 | |||
| 1178 | if (!s->meth->modify_object(s, STORE_OBJECT_TYPE_ARBITRARY, | ||
| 1179 | search_attributes, add_attributes, modify_attributes, | ||
| 1180 | delete_attributes, parameters)) | ||
| 1181 | { | ||
| 1182 | STOREerr(STORE_F_STORE_MODIFY_ARBITRARY, | ||
| 1183 | STORE_R_FAILED_MODIFYING_ARBITRARY); | ||
| 1184 | return 0; | ||
| 1185 | } | ||
| 1186 | return 1; | ||
| 1187 | } | ||
| 1188 | |||
| 1189 | BUF_MEM *STORE_get_arbitrary(STORE *s, OPENSSL_ITEM attributes[], | ||
| 1190 | OPENSSL_ITEM parameters[]) | ||
| 1191 | { | ||
| 1192 | STORE_OBJECT *object; | ||
| 1193 | BUF_MEM *b; | ||
| 1194 | |||
| 1195 | check_store(s,STORE_F_STORE_GET_ARBITRARY, | ||
| 1196 | get_object,STORE_R_NO_GET_OBJECT_ARBITRARY_FUNCTION); | ||
| 1197 | |||
| 1198 | object = s->meth->get_object(s, STORE_OBJECT_TYPE_ARBITRARY, | ||
| 1199 | attributes, parameters); | ||
| 1200 | if (!object || !object->data.arbitrary) | ||
| 1201 | { | ||
| 1202 | STOREerr(STORE_F_STORE_GET_ARBITRARY, | ||
| 1203 | STORE_R_FAILED_GETTING_ARBITRARY); | ||
| 1204 | return 0; | ||
| 1205 | } | ||
| 1206 | b = object->data.arbitrary; | ||
| 1207 | object->data.arbitrary = NULL; | ||
| 1208 | STORE_OBJECT_free(object); | ||
| 1209 | return b; | ||
| 1210 | } | ||
| 1211 | |||
| 1212 | int STORE_delete_arbitrary(STORE *s, OPENSSL_ITEM attributes[], | ||
| 1213 | OPENSSL_ITEM parameters[]) | ||
| 1214 | { | ||
| 1215 | check_store(s,STORE_F_STORE_DELETE_ARBITRARY, | ||
| 1216 | delete_object,STORE_R_NO_DELETE_ARBITRARY_FUNCTION); | ||
| 1217 | |||
| 1218 | if (!s->meth->delete_object(s, STORE_OBJECT_TYPE_ARBITRARY, attributes, | ||
| 1219 | parameters)) | ||
| 1220 | { | ||
| 1221 | STOREerr(STORE_F_STORE_DELETE_ARBITRARY, | ||
| 1222 | STORE_R_FAILED_DELETING_ARBITRARY); | ||
| 1223 | return 0; | ||
| 1224 | } | ||
| 1225 | return 1; | ||
| 1226 | } | ||
| 1227 | |||
| 1228 | STORE_OBJECT *STORE_OBJECT_new(void) | ||
| 1229 | { | ||
| 1230 | STORE_OBJECT *object = OPENSSL_malloc(sizeof(STORE_OBJECT)); | ||
| 1231 | if (object) memset(object, 0, sizeof(STORE_OBJECT)); | ||
| 1232 | return object; | ||
| 1233 | } | ||
| 1234 | void STORE_OBJECT_free(STORE_OBJECT *data) | ||
| 1235 | { | ||
| 1236 | if (!data) return; | ||
| 1237 | switch (data->type) | ||
| 1238 | { | ||
| 1239 | case STORE_OBJECT_TYPE_X509_CERTIFICATE: | ||
| 1240 | X509_free(data->data.x509.certificate); | ||
| 1241 | break; | ||
| 1242 | case STORE_OBJECT_TYPE_X509_CRL: | ||
| 1243 | X509_CRL_free(data->data.crl); | ||
| 1244 | break; | ||
| 1245 | case STORE_OBJECT_TYPE_PRIVATE_KEY: | ||
| 1246 | case STORE_OBJECT_TYPE_PUBLIC_KEY: | ||
| 1247 | EVP_PKEY_free(data->data.key); | ||
| 1248 | break; | ||
| 1249 | case STORE_OBJECT_TYPE_NUMBER: | ||
| 1250 | BN_free(data->data.number); | ||
| 1251 | break; | ||
| 1252 | case STORE_OBJECT_TYPE_ARBITRARY: | ||
| 1253 | BUF_MEM_free(data->data.arbitrary); | ||
| 1254 | break; | ||
| 1255 | } | ||
| 1256 | OPENSSL_free(data); | ||
| 1257 | } | ||
| 1258 | |||
| 1259 | IMPLEMENT_STACK_OF(STORE_OBJECT*) | ||
| 1260 | |||
| 1261 | |||
| 1262 | struct STORE_attr_info_st | ||
| 1263 | { | ||
| 1264 | unsigned char set[(STORE_ATTR_TYPE_NUM + 8) / 8]; | ||
| 1265 | union | ||
| 1266 | { | ||
| 1267 | char *cstring; | ||
| 1268 | unsigned char *sha1string; | ||
| 1269 | X509_NAME *dn; | ||
| 1270 | BIGNUM *number; | ||
| 1271 | void *any; | ||
| 1272 | } values[STORE_ATTR_TYPE_NUM+1]; | ||
| 1273 | size_t value_sizes[STORE_ATTR_TYPE_NUM+1]; | ||
| 1274 | }; | ||
| 1275 | |||
| 1276 | #define ATTR_IS_SET(a,i) ((i) > 0 && (i) < STORE_ATTR_TYPE_NUM \ | ||
| 1277 | && ((a)->set[(i) / 8] & (1 << ((i) % 8)))) | ||
| 1278 | #define SET_ATTRBIT(a,i) ((a)->set[(i) / 8] |= (1 << ((i) % 8))) | ||
| 1279 | #define CLEAR_ATTRBIT(a,i) ((a)->set[(i) / 8] &= ~(1 << ((i) % 8))) | ||
| 1280 | |||
| 1281 | STORE_ATTR_INFO *STORE_ATTR_INFO_new(void) | ||
| 1282 | { | ||
| 1283 | return (STORE_ATTR_INFO *)OPENSSL_malloc(sizeof(STORE_ATTR_INFO)); | ||
| 1284 | } | ||
| 1285 | static void STORE_ATTR_INFO_attr_free(STORE_ATTR_INFO *attrs, | ||
| 1286 | STORE_ATTR_TYPES code) | ||
| 1287 | { | ||
| 1288 | if (ATTR_IS_SET(attrs,code)) | ||
| 1289 | { | ||
| 1290 | switch(code) | ||
| 1291 | { | ||
| 1292 | case STORE_ATTR_FRIENDLYNAME: | ||
| 1293 | case STORE_ATTR_EMAIL: | ||
| 1294 | case STORE_ATTR_FILENAME: | ||
| 1295 | STORE_ATTR_INFO_modify_cstr(attrs, code, NULL, 0); | ||
| 1296 | break; | ||
| 1297 | case STORE_ATTR_KEYID: | ||
| 1298 | case STORE_ATTR_ISSUERKEYID: | ||
| 1299 | case STORE_ATTR_SUBJECTKEYID: | ||
| 1300 | case STORE_ATTR_ISSUERSERIALHASH: | ||
| 1301 | case STORE_ATTR_CERTHASH: | ||
| 1302 | STORE_ATTR_INFO_modify_sha1str(attrs, code, NULL, 0); | ||
| 1303 | break; | ||
| 1304 | case STORE_ATTR_ISSUER: | ||
| 1305 | case STORE_ATTR_SUBJECT: | ||
| 1306 | STORE_ATTR_INFO_modify_dn(attrs, code, NULL); | ||
| 1307 | break; | ||
| 1308 | case STORE_ATTR_SERIAL: | ||
| 1309 | STORE_ATTR_INFO_modify_number(attrs, code, NULL); | ||
| 1310 | break; | ||
| 1311 | default: | ||
| 1312 | break; | ||
| 1313 | } | ||
| 1314 | } | ||
| 1315 | } | ||
| 1316 | int STORE_ATTR_INFO_free(STORE_ATTR_INFO *attrs) | ||
| 1317 | { | ||
| 1318 | if (attrs) | ||
| 1319 | { | ||
| 1320 | STORE_ATTR_TYPES i; | ||
| 1321 | for(i = 0; i++ < STORE_ATTR_TYPE_NUM;) | ||
| 1322 | STORE_ATTR_INFO_attr_free(attrs, i); | ||
| 1323 | OPENSSL_free(attrs); | ||
| 1324 | } | ||
| 1325 | return 1; | ||
| 1326 | } | ||
| 1327 | char *STORE_ATTR_INFO_get0_cstr(STORE_ATTR_INFO *attrs, STORE_ATTR_TYPES code) | ||
| 1328 | { | ||
| 1329 | if (!attrs) | ||
| 1330 | { | ||
| 1331 | STOREerr(STORE_F_STORE_ATTR_INFO_GET0_CSTR, | ||
| 1332 | ERR_R_PASSED_NULL_PARAMETER); | ||
| 1333 | return NULL; | ||
| 1334 | } | ||
| 1335 | if (ATTR_IS_SET(attrs,code)) | ||
| 1336 | return attrs->values[code].cstring; | ||
| 1337 | STOREerr(STORE_F_STORE_ATTR_INFO_GET0_CSTR, | ||
| 1338 | STORE_R_NO_VALUE); | ||
| 1339 | return NULL; | ||
| 1340 | } | ||
| 1341 | unsigned char *STORE_ATTR_INFO_get0_sha1str(STORE_ATTR_INFO *attrs, | ||
| 1342 | STORE_ATTR_TYPES code) | ||
| 1343 | { | ||
| 1344 | if (!attrs) | ||
| 1345 | { | ||
| 1346 | STOREerr(STORE_F_STORE_ATTR_INFO_GET0_SHA1STR, | ||
| 1347 | ERR_R_PASSED_NULL_PARAMETER); | ||
| 1348 | return NULL; | ||
| 1349 | } | ||
| 1350 | if (ATTR_IS_SET(attrs,code)) | ||
| 1351 | return attrs->values[code].sha1string; | ||
| 1352 | STOREerr(STORE_F_STORE_ATTR_INFO_GET0_SHA1STR, | ||
| 1353 | STORE_R_NO_VALUE); | ||
| 1354 | return NULL; | ||
| 1355 | } | ||
| 1356 | X509_NAME *STORE_ATTR_INFO_get0_dn(STORE_ATTR_INFO *attrs, STORE_ATTR_TYPES code) | ||
| 1357 | { | ||
| 1358 | if (!attrs) | ||
| 1359 | { | ||
| 1360 | STOREerr(STORE_F_STORE_ATTR_INFO_GET0_DN, | ||
| 1361 | ERR_R_PASSED_NULL_PARAMETER); | ||
| 1362 | return NULL; | ||
| 1363 | } | ||
| 1364 | if (ATTR_IS_SET(attrs,code)) | ||
| 1365 | return attrs->values[code].dn; | ||
| 1366 | STOREerr(STORE_F_STORE_ATTR_INFO_GET0_DN, | ||
| 1367 | STORE_R_NO_VALUE); | ||
| 1368 | return NULL; | ||
| 1369 | } | ||
| 1370 | BIGNUM *STORE_ATTR_INFO_get0_number(STORE_ATTR_INFO *attrs, STORE_ATTR_TYPES code) | ||
| 1371 | { | ||
| 1372 | if (!attrs) | ||
| 1373 | { | ||
| 1374 | STOREerr(STORE_F_STORE_ATTR_INFO_GET0_NUMBER, | ||
| 1375 | ERR_R_PASSED_NULL_PARAMETER); | ||
| 1376 | return NULL; | ||
| 1377 | } | ||
| 1378 | if (ATTR_IS_SET(attrs,code)) | ||
| 1379 | return attrs->values[code].number; | ||
| 1380 | STOREerr(STORE_F_STORE_ATTR_INFO_GET0_NUMBER, | ||
| 1381 | STORE_R_NO_VALUE); | ||
| 1382 | return NULL; | ||
| 1383 | } | ||
| 1384 | int STORE_ATTR_INFO_set_cstr(STORE_ATTR_INFO *attrs, STORE_ATTR_TYPES code, | ||
| 1385 | char *cstr, size_t cstr_size) | ||
| 1386 | { | ||
| 1387 | if (!attrs) | ||
| 1388 | { | ||
| 1389 | STOREerr(STORE_F_STORE_ATTR_INFO_SET_CSTR, | ||
| 1390 | ERR_R_PASSED_NULL_PARAMETER); | ||
| 1391 | return 0; | ||
| 1392 | } | ||
| 1393 | if (!ATTR_IS_SET(attrs,code)) | ||
| 1394 | { | ||
| 1395 | if ((attrs->values[code].cstring = BUF_strndup(cstr, cstr_size))) | ||
| 1396 | return 1; | ||
| 1397 | STOREerr(STORE_F_STORE_ATTR_INFO_SET_CSTR, | ||
| 1398 | ERR_R_MALLOC_FAILURE); | ||
| 1399 | return 0; | ||
| 1400 | } | ||
| 1401 | STOREerr(STORE_F_STORE_ATTR_INFO_SET_CSTR, STORE_R_ALREADY_HAS_A_VALUE); | ||
| 1402 | return 0; | ||
| 1403 | } | ||
| 1404 | int STORE_ATTR_INFO_set_sha1str(STORE_ATTR_INFO *attrs, STORE_ATTR_TYPES code, | ||
| 1405 | unsigned char *sha1str, size_t sha1str_size) | ||
| 1406 | { | ||
| 1407 | if (!attrs) | ||
| 1408 | { | ||
| 1409 | STOREerr(STORE_F_STORE_ATTR_INFO_SET_SHA1STR, | ||
| 1410 | ERR_R_PASSED_NULL_PARAMETER); | ||
| 1411 | return 0; | ||
| 1412 | } | ||
| 1413 | if (!ATTR_IS_SET(attrs,code)) | ||
| 1414 | { | ||
| 1415 | if ((attrs->values[code].sha1string = | ||
| 1416 | (unsigned char *)BUF_memdup(sha1str, | ||
| 1417 | sha1str_size))) | ||
| 1418 | return 1; | ||
| 1419 | STOREerr(STORE_F_STORE_ATTR_INFO_SET_SHA1STR, | ||
| 1420 | ERR_R_MALLOC_FAILURE); | ||
| 1421 | return 0; | ||
| 1422 | } | ||
| 1423 | STOREerr(STORE_F_STORE_ATTR_INFO_SET_SHA1STR, STORE_R_ALREADY_HAS_A_VALUE); | ||
| 1424 | return 0; | ||
| 1425 | } | ||
| 1426 | int STORE_ATTR_INFO_set_dn(STORE_ATTR_INFO *attrs, STORE_ATTR_TYPES code, | ||
| 1427 | X509_NAME *dn) | ||
| 1428 | { | ||
| 1429 | if (!attrs) | ||
| 1430 | { | ||
| 1431 | STOREerr(STORE_F_STORE_ATTR_INFO_SET_DN, | ||
| 1432 | ERR_R_PASSED_NULL_PARAMETER); | ||
| 1433 | return 0; | ||
| 1434 | } | ||
| 1435 | if (!ATTR_IS_SET(attrs,code)) | ||
| 1436 | { | ||
| 1437 | if ((attrs->values[code].dn = X509_NAME_dup(dn))) | ||
| 1438 | return 1; | ||
| 1439 | STOREerr(STORE_F_STORE_ATTR_INFO_SET_DN, | ||
| 1440 | ERR_R_MALLOC_FAILURE); | ||
| 1441 | return 0; | ||
| 1442 | } | ||
| 1443 | STOREerr(STORE_F_STORE_ATTR_INFO_SET_DN, STORE_R_ALREADY_HAS_A_VALUE); | ||
| 1444 | return 0; | ||
| 1445 | } | ||
| 1446 | int STORE_ATTR_INFO_set_number(STORE_ATTR_INFO *attrs, STORE_ATTR_TYPES code, | ||
| 1447 | BIGNUM *number) | ||
| 1448 | { | ||
| 1449 | if (!attrs) | ||
| 1450 | { | ||
| 1451 | STOREerr(STORE_F_STORE_ATTR_INFO_SET_NUMBER, | ||
| 1452 | ERR_R_PASSED_NULL_PARAMETER); | ||
| 1453 | return 0; | ||
| 1454 | } | ||
| 1455 | if (!ATTR_IS_SET(attrs,code)) | ||
| 1456 | { | ||
| 1457 | if ((attrs->values[code].number = BN_dup(number))) | ||
| 1458 | return 1; | ||
| 1459 | STOREerr(STORE_F_STORE_ATTR_INFO_SET_NUMBER, | ||
| 1460 | ERR_R_MALLOC_FAILURE); | ||
| 1461 | return 0; | ||
| 1462 | } | ||
| 1463 | STOREerr(STORE_F_STORE_ATTR_INFO_SET_NUMBER, STORE_R_ALREADY_HAS_A_VALUE); | ||
| 1464 | return 0; | ||
| 1465 | } | ||
| 1466 | int STORE_ATTR_INFO_modify_cstr(STORE_ATTR_INFO *attrs, STORE_ATTR_TYPES code, | ||
| 1467 | char *cstr, size_t cstr_size) | ||
| 1468 | { | ||
| 1469 | if (!attrs) | ||
| 1470 | { | ||
| 1471 | STOREerr(STORE_F_STORE_ATTR_INFO_MODIFY_CSTR, | ||
| 1472 | ERR_R_PASSED_NULL_PARAMETER); | ||
| 1473 | return 0; | ||
| 1474 | } | ||
| 1475 | if (ATTR_IS_SET(attrs,code)) | ||
| 1476 | { | ||
| 1477 | OPENSSL_free(attrs->values[code].cstring); | ||
| 1478 | attrs->values[code].cstring = NULL; | ||
| 1479 | CLEAR_ATTRBIT(attrs, code); | ||
| 1480 | } | ||
| 1481 | return STORE_ATTR_INFO_set_cstr(attrs, code, cstr, cstr_size); | ||
| 1482 | } | ||
| 1483 | int STORE_ATTR_INFO_modify_sha1str(STORE_ATTR_INFO *attrs, STORE_ATTR_TYPES code, | ||
| 1484 | unsigned char *sha1str, size_t sha1str_size) | ||
| 1485 | { | ||
| 1486 | if (!attrs) | ||
| 1487 | { | ||
| 1488 | STOREerr(STORE_F_STORE_ATTR_INFO_MODIFY_SHA1STR, | ||
| 1489 | ERR_R_PASSED_NULL_PARAMETER); | ||
| 1490 | return 0; | ||
| 1491 | } | ||
| 1492 | if (ATTR_IS_SET(attrs,code)) | ||
| 1493 | { | ||
| 1494 | OPENSSL_free(attrs->values[code].sha1string); | ||
| 1495 | attrs->values[code].sha1string = NULL; | ||
| 1496 | CLEAR_ATTRBIT(attrs, code); | ||
| 1497 | } | ||
| 1498 | return STORE_ATTR_INFO_set_sha1str(attrs, code, sha1str, sha1str_size); | ||
| 1499 | } | ||
| 1500 | int STORE_ATTR_INFO_modify_dn(STORE_ATTR_INFO *attrs, STORE_ATTR_TYPES code, | ||
| 1501 | X509_NAME *dn) | ||
| 1502 | { | ||
| 1503 | if (!attrs) | ||
| 1504 | { | ||
| 1505 | STOREerr(STORE_F_STORE_ATTR_INFO_MODIFY_DN, | ||
| 1506 | ERR_R_PASSED_NULL_PARAMETER); | ||
| 1507 | return 0; | ||
| 1508 | } | ||
| 1509 | if (ATTR_IS_SET(attrs,code)) | ||
| 1510 | { | ||
| 1511 | OPENSSL_free(attrs->values[code].dn); | ||
| 1512 | attrs->values[code].dn = NULL; | ||
| 1513 | CLEAR_ATTRBIT(attrs, code); | ||
| 1514 | } | ||
| 1515 | return STORE_ATTR_INFO_set_dn(attrs, code, dn); | ||
| 1516 | } | ||
| 1517 | int STORE_ATTR_INFO_modify_number(STORE_ATTR_INFO *attrs, STORE_ATTR_TYPES code, | ||
| 1518 | BIGNUM *number) | ||
| 1519 | { | ||
| 1520 | if (!attrs) | ||
| 1521 | { | ||
| 1522 | STOREerr(STORE_F_STORE_ATTR_INFO_MODIFY_NUMBER, | ||
| 1523 | ERR_R_PASSED_NULL_PARAMETER); | ||
| 1524 | return 0; | ||
| 1525 | } | ||
| 1526 | if (ATTR_IS_SET(attrs,code)) | ||
| 1527 | { | ||
| 1528 | OPENSSL_free(attrs->values[code].number); | ||
| 1529 | attrs->values[code].number = NULL; | ||
| 1530 | CLEAR_ATTRBIT(attrs, code); | ||
| 1531 | } | ||
| 1532 | return STORE_ATTR_INFO_set_number(attrs, code, number); | ||
| 1533 | } | ||
| 1534 | |||
| 1535 | struct attr_list_ctx_st | ||
| 1536 | { | ||
| 1537 | OPENSSL_ITEM *attributes; | ||
| 1538 | }; | ||
| 1539 | void *STORE_parse_attrs_start(OPENSSL_ITEM *attributes) | ||
| 1540 | { | ||
| 1541 | if (attributes) | ||
| 1542 | { | ||
| 1543 | struct attr_list_ctx_st *context = | ||
| 1544 | (struct attr_list_ctx_st *)OPENSSL_malloc(sizeof(struct attr_list_ctx_st)); | ||
| 1545 | if (context) | ||
| 1546 | context->attributes = attributes; | ||
| 1547 | else | ||
| 1548 | STOREerr(STORE_F_STORE_PARSE_ATTRS_START, | ||
| 1549 | ERR_R_MALLOC_FAILURE); | ||
| 1550 | return context; | ||
| 1551 | } | ||
| 1552 | STOREerr(STORE_F_STORE_PARSE_ATTRS_START, ERR_R_PASSED_NULL_PARAMETER); | ||
| 1553 | return 0; | ||
| 1554 | } | ||
| 1555 | STORE_ATTR_INFO *STORE_parse_attrs_next(void *handle) | ||
| 1556 | { | ||
| 1557 | struct attr_list_ctx_st *context = (struct attr_list_ctx_st *)handle; | ||
| 1558 | |||
| 1559 | if (context && context->attributes) | ||
| 1560 | { | ||
| 1561 | STORE_ATTR_INFO *attrs = NULL; | ||
| 1562 | |||
| 1563 | while(context->attributes | ||
| 1564 | && context->attributes->code != STORE_ATTR_OR | ||
| 1565 | && context->attributes->code != STORE_ATTR_END) | ||
| 1566 | { | ||
| 1567 | switch(context->attributes->code) | ||
| 1568 | { | ||
| 1569 | case STORE_ATTR_FRIENDLYNAME: | ||
| 1570 | case STORE_ATTR_EMAIL: | ||
| 1571 | case STORE_ATTR_FILENAME: | ||
| 1572 | if (!attrs) attrs = STORE_ATTR_INFO_new(); | ||
| 1573 | if (attrs == NULL) | ||
| 1574 | { | ||
| 1575 | STOREerr(STORE_F_STORE_PARSE_ATTRS_NEXT, | ||
| 1576 | ERR_R_MALLOC_FAILURE); | ||
| 1577 | goto err; | ||
| 1578 | } | ||
| 1579 | STORE_ATTR_INFO_set_cstr(attrs, | ||
| 1580 | context->attributes->code, | ||
| 1581 | context->attributes->value, | ||
| 1582 | context->attributes->value_size); | ||
| 1583 | break; | ||
| 1584 | case STORE_ATTR_KEYID: | ||
| 1585 | case STORE_ATTR_ISSUERKEYID: | ||
| 1586 | case STORE_ATTR_SUBJECTKEYID: | ||
| 1587 | case STORE_ATTR_ISSUERSERIALHASH: | ||
| 1588 | case STORE_ATTR_CERTHASH: | ||
| 1589 | if (!attrs) attrs = STORE_ATTR_INFO_new(); | ||
| 1590 | if (attrs == NULL) | ||
| 1591 | { | ||
| 1592 | STOREerr(STORE_F_STORE_PARSE_ATTRS_NEXT, | ||
| 1593 | ERR_R_MALLOC_FAILURE); | ||
| 1594 | goto err; | ||
| 1595 | } | ||
| 1596 | STORE_ATTR_INFO_set_sha1str(attrs, | ||
| 1597 | context->attributes->code, | ||
| 1598 | context->attributes->value, | ||
| 1599 | context->attributes->value_size); | ||
| 1600 | break; | ||
| 1601 | case STORE_ATTR_ISSUER: | ||
| 1602 | case STORE_ATTR_SUBJECT: | ||
| 1603 | if (!attrs) attrs = STORE_ATTR_INFO_new(); | ||
| 1604 | if (attrs == NULL) | ||
| 1605 | { | ||
| 1606 | STOREerr(STORE_F_STORE_PARSE_ATTRS_NEXT, | ||
| 1607 | ERR_R_MALLOC_FAILURE); | ||
| 1608 | goto err; | ||
| 1609 | } | ||
| 1610 | STORE_ATTR_INFO_modify_dn(attrs, | ||
| 1611 | context->attributes->code, | ||
| 1612 | context->attributes->value); | ||
| 1613 | break; | ||
| 1614 | case STORE_ATTR_SERIAL: | ||
| 1615 | if (!attrs) attrs = STORE_ATTR_INFO_new(); | ||
| 1616 | if (attrs == NULL) | ||
| 1617 | { | ||
| 1618 | STOREerr(STORE_F_STORE_PARSE_ATTRS_NEXT, | ||
| 1619 | ERR_R_MALLOC_FAILURE); | ||
| 1620 | goto err; | ||
| 1621 | } | ||
| 1622 | STORE_ATTR_INFO_modify_number(attrs, | ||
| 1623 | context->attributes->code, | ||
| 1624 | context->attributes->value); | ||
| 1625 | break; | ||
| 1626 | } | ||
| 1627 | context->attributes++; | ||
| 1628 | } | ||
| 1629 | if (context->attributes->code == STORE_ATTR_OR) | ||
| 1630 | context->attributes++; | ||
| 1631 | return attrs; | ||
| 1632 | err: | ||
| 1633 | while(context->attributes | ||
| 1634 | && context->attributes->code != STORE_ATTR_OR | ||
| 1635 | && context->attributes->code != STORE_ATTR_END) | ||
| 1636 | context->attributes++; | ||
| 1637 | if (context->attributes->code == STORE_ATTR_OR) | ||
| 1638 | context->attributes++; | ||
| 1639 | return NULL; | ||
| 1640 | } | ||
| 1641 | STOREerr(STORE_F_STORE_PARSE_ATTRS_NEXT, ERR_R_PASSED_NULL_PARAMETER); | ||
| 1642 | return NULL; | ||
| 1643 | } | ||
| 1644 | int STORE_parse_attrs_end(void *handle) | ||
| 1645 | { | ||
| 1646 | struct attr_list_ctx_st *context = (struct attr_list_ctx_st *)handle; | ||
| 1647 | |||
| 1648 | if (context && context->attributes) | ||
| 1649 | { | ||
| 1650 | #if 0 | ||
| 1651 | OPENSSL_ITEM *attributes = context->attributes; | ||
| 1652 | #endif | ||
| 1653 | OPENSSL_free(context); | ||
| 1654 | return 1; | ||
| 1655 | } | ||
| 1656 | STOREerr(STORE_F_STORE_PARSE_ATTRS_END, ERR_R_PASSED_NULL_PARAMETER); | ||
| 1657 | return 0; | ||
| 1658 | } | ||
| 1659 | |||
| 1660 | int STORE_parse_attrs_endp(void *handle) | ||
| 1661 | { | ||
| 1662 | struct attr_list_ctx_st *context = (struct attr_list_ctx_st *)handle; | ||
| 1663 | |||
| 1664 | if (context && context->attributes) | ||
| 1665 | { | ||
| 1666 | return context->attributes->code == STORE_ATTR_END; | ||
| 1667 | } | ||
| 1668 | STOREerr(STORE_F_STORE_PARSE_ATTRS_ENDP, ERR_R_PASSED_NULL_PARAMETER); | ||
| 1669 | return 0; | ||
| 1670 | } | ||
| 1671 | |||
| 1672 | static int attr_info_compare_compute_range( | ||
| 1673 | const unsigned char *abits, const unsigned char *bbits, | ||
| 1674 | unsigned int *alowp, unsigned int *ahighp, | ||
| 1675 | unsigned int *blowp, unsigned int *bhighp) | ||
| 1676 | { | ||
| 1677 | unsigned int alow = (unsigned int)-1, ahigh = 0; | ||
| 1678 | unsigned int blow = (unsigned int)-1, bhigh = 0; | ||
| 1679 | int i, res = 0; | ||
| 1680 | |||
| 1681 | for (i = 0; i < (STORE_ATTR_TYPE_NUM + 8) / 8; i++, abits++, bbits++) | ||
| 1682 | { | ||
| 1683 | if (res == 0) | ||
| 1684 | { | ||
| 1685 | if (*abits < *bbits) res = -1; | ||
| 1686 | if (*abits > *bbits) res = 1; | ||
| 1687 | } | ||
| 1688 | if (*abits) | ||
| 1689 | { | ||
| 1690 | if (alow == (unsigned int)-1) | ||
| 1691 | { | ||
| 1692 | alow = i * 8; | ||
| 1693 | if (!(*abits & 0x01)) alow++; | ||
| 1694 | if (!(*abits & 0x02)) alow++; | ||
| 1695 | if (!(*abits & 0x04)) alow++; | ||
| 1696 | if (!(*abits & 0x08)) alow++; | ||
| 1697 | if (!(*abits & 0x10)) alow++; | ||
| 1698 | if (!(*abits & 0x20)) alow++; | ||
| 1699 | if (!(*abits & 0x40)) alow++; | ||
| 1700 | } | ||
| 1701 | ahigh = i * 8 + 7; | ||
| 1702 | if (!(*abits & 0x80)) ahigh++; | ||
| 1703 | if (!(*abits & 0x40)) ahigh++; | ||
| 1704 | if (!(*abits & 0x20)) ahigh++; | ||
| 1705 | if (!(*abits & 0x10)) ahigh++; | ||
| 1706 | if (!(*abits & 0x08)) ahigh++; | ||
| 1707 | if (!(*abits & 0x04)) ahigh++; | ||
| 1708 | if (!(*abits & 0x02)) ahigh++; | ||
| 1709 | } | ||
| 1710 | if (*bbits) | ||
| 1711 | { | ||
| 1712 | if (blow == (unsigned int)-1) | ||
| 1713 | { | ||
| 1714 | blow = i * 8; | ||
| 1715 | if (!(*bbits & 0x01)) blow++; | ||
| 1716 | if (!(*bbits & 0x02)) blow++; | ||
| 1717 | if (!(*bbits & 0x04)) blow++; | ||
| 1718 | if (!(*bbits & 0x08)) blow++; | ||
| 1719 | if (!(*bbits & 0x10)) blow++; | ||
| 1720 | if (!(*bbits & 0x20)) blow++; | ||
| 1721 | if (!(*bbits & 0x40)) blow++; | ||
| 1722 | } | ||
| 1723 | bhigh = i * 8 + 7; | ||
| 1724 | if (!(*bbits & 0x80)) bhigh++; | ||
| 1725 | if (!(*bbits & 0x40)) bhigh++; | ||
| 1726 | if (!(*bbits & 0x20)) bhigh++; | ||
| 1727 | if (!(*bbits & 0x10)) bhigh++; | ||
| 1728 | if (!(*bbits & 0x08)) bhigh++; | ||
| 1729 | if (!(*bbits & 0x04)) bhigh++; | ||
| 1730 | if (!(*bbits & 0x02)) bhigh++; | ||
| 1731 | } | ||
| 1732 | } | ||
| 1733 | if (ahigh + alow < bhigh + blow) res = -1; | ||
| 1734 | if (ahigh + alow > bhigh + blow) res = 1; | ||
| 1735 | if (alowp) *alowp = alow; | ||
| 1736 | if (ahighp) *ahighp = ahigh; | ||
| 1737 | if (blowp) *blowp = blow; | ||
| 1738 | if (bhighp) *bhighp = bhigh; | ||
| 1739 | return res; | ||
| 1740 | } | ||
| 1741 | |||
| 1742 | int STORE_ATTR_INFO_compare(const STORE_ATTR_INFO * const *a, | ||
| 1743 | const STORE_ATTR_INFO * const *b) | ||
| 1744 | { | ||
| 1745 | if (a == b) return 0; | ||
| 1746 | if (!a) return -1; | ||
| 1747 | if (!b) return 1; | ||
| 1748 | return attr_info_compare_compute_range((*a)->set, (*b)->set, 0, 0, 0, 0); | ||
| 1749 | } | ||
| 1750 | |||
| 1751 | int STORE_ATTR_INFO_in_range(STORE_ATTR_INFO *a, STORE_ATTR_INFO *b) | ||
| 1752 | { | ||
| 1753 | unsigned int alow, ahigh, blow, bhigh; | ||
| 1754 | |||
| 1755 | if (a == b) return 1; | ||
| 1756 | if (!a) return 0; | ||
| 1757 | if (!b) return 0; | ||
| 1758 | attr_info_compare_compute_range(a->set, b->set, | ||
| 1759 | &alow, &ahigh, &blow, &bhigh); | ||
| 1760 | if (alow >= blow && ahigh <= bhigh) | ||
| 1761 | return 1; | ||
| 1762 | return 0; | ||
| 1763 | } | ||
| 1764 | |||
| 1765 | int STORE_ATTR_INFO_in(STORE_ATTR_INFO *a, STORE_ATTR_INFO *b) | ||
| 1766 | { | ||
| 1767 | unsigned char *abits, *bbits; | ||
| 1768 | int i; | ||
| 1769 | |||
| 1770 | if (a == b) return 1; | ||
| 1771 | if (!a) return 0; | ||
| 1772 | if (!b) return 0; | ||
| 1773 | abits = a->set; | ||
| 1774 | bbits = b->set; | ||
| 1775 | for (i = 0; i < (STORE_ATTR_TYPE_NUM + 8) / 8; i++, abits++, bbits++) | ||
| 1776 | { | ||
| 1777 | if (*abits && (*bbits & *abits) != *abits) | ||
| 1778 | return 0; | ||
| 1779 | } | ||
| 1780 | return 1; | ||
| 1781 | } | ||
| 1782 | |||
| 1783 | int STORE_ATTR_INFO_in_ex(STORE_ATTR_INFO *a, STORE_ATTR_INFO *b) | ||
| 1784 | { | ||
| 1785 | STORE_ATTR_TYPES i; | ||
| 1786 | |||
| 1787 | if (a == b) return 1; | ||
| 1788 | if (!STORE_ATTR_INFO_in(a, b)) return 0; | ||
| 1789 | for (i = 1; i < STORE_ATTR_TYPE_NUM; i++) | ||
| 1790 | if (ATTR_IS_SET(a, i)) | ||
| 1791 | { | ||
| 1792 | switch(i) | ||
| 1793 | { | ||
| 1794 | case STORE_ATTR_FRIENDLYNAME: | ||
| 1795 | case STORE_ATTR_EMAIL: | ||
| 1796 | case STORE_ATTR_FILENAME: | ||
| 1797 | if (strcmp(a->values[i].cstring, | ||
| 1798 | b->values[i].cstring)) | ||
| 1799 | return 0; | ||
| 1800 | break; | ||
| 1801 | case STORE_ATTR_KEYID: | ||
| 1802 | case STORE_ATTR_ISSUERKEYID: | ||
| 1803 | case STORE_ATTR_SUBJECTKEYID: | ||
| 1804 | case STORE_ATTR_ISSUERSERIALHASH: | ||
| 1805 | case STORE_ATTR_CERTHASH: | ||
| 1806 | if (memcmp(a->values[i].sha1string, | ||
| 1807 | b->values[i].sha1string, | ||
| 1808 | a->value_sizes[i])) | ||
| 1809 | return 0; | ||
| 1810 | break; | ||
| 1811 | case STORE_ATTR_ISSUER: | ||
| 1812 | case STORE_ATTR_SUBJECT: | ||
| 1813 | if (X509_NAME_cmp(a->values[i].dn, | ||
| 1814 | b->values[i].dn)) | ||
| 1815 | return 0; | ||
| 1816 | break; | ||
| 1817 | case STORE_ATTR_SERIAL: | ||
| 1818 | if (BN_cmp(a->values[i].number, | ||
| 1819 | b->values[i].number)) | ||
| 1820 | return 0; | ||
| 1821 | break; | ||
| 1822 | default: | ||
| 1823 | break; | ||
| 1824 | } | ||
| 1825 | } | ||
| 1826 | |||
| 1827 | return 1; | ||
| 1828 | } | ||
diff --git a/src/lib/libcrypto/store/str_locl.h b/src/lib/libcrypto/store/str_locl.h deleted file mode 100644 index 3f8cb75619..0000000000 --- a/src/lib/libcrypto/store/str_locl.h +++ /dev/null | |||
| @@ -1,124 +0,0 @@ | |||
| 1 | /* crypto/store/str_locl.h -*- mode:C; c-file-style: "eay" -*- */ | ||
| 2 | /* Written by Richard Levitte (richard@levitte.org) for the OpenSSL | ||
| 3 | * project 2003. | ||
| 4 | */ | ||
| 5 | /* ==================================================================== | ||
| 6 | * Copyright (c) 2003 The OpenSSL Project. All rights reserved. | ||
| 7 | * | ||
| 8 | * Redistribution and use in source and binary forms, with or without | ||
| 9 | * modification, are permitted provided that the following conditions | ||
| 10 | * are met: | ||
| 11 | * | ||
| 12 | * 1. Redistributions of source code must retain the above copyright | ||
| 13 | * notice, this list of conditions and the following disclaimer. | ||
| 14 | * | ||
| 15 | * 2. Redistributions in binary form must reproduce the above copyright | ||
| 16 | * notice, this list of conditions and the following disclaimer in | ||
| 17 | * the documentation and/or other materials provided with the | ||
| 18 | * distribution. | ||
| 19 | * | ||
| 20 | * 3. All advertising materials mentioning features or use of this | ||
| 21 | * software must display the following acknowledgment: | ||
| 22 | * "This product includes software developed by the OpenSSL Project | ||
| 23 | * for use in the OpenSSL Toolkit. (http://www.openssl.org/)" | ||
| 24 | * | ||
| 25 | * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to | ||
| 26 | * endorse or promote products derived from this software without | ||
| 27 | * prior written permission. For written permission, please contact | ||
| 28 | * openssl-core@openssl.org. | ||
| 29 | * | ||
| 30 | * 5. Products derived from this software may not be called "OpenSSL" | ||
| 31 | * nor may "OpenSSL" appear in their names without prior written | ||
| 32 | * permission of the OpenSSL Project. | ||
| 33 | * | ||
| 34 | * 6. Redistributions of any form whatsoever must retain the following | ||
| 35 | * acknowledgment: | ||
| 36 | * "This product includes software developed by the OpenSSL Project | ||
| 37 | * for use in the OpenSSL Toolkit (http://www.openssl.org/)" | ||
| 38 | * | ||
| 39 | * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY | ||
| 40 | * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
| 41 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | ||
| 42 | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR | ||
| 43 | * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
| 44 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | ||
| 45 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
| 46 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
| 47 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | ||
| 48 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
| 49 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | ||
| 50 | * OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| 51 | * ==================================================================== | ||
| 52 | * | ||
| 53 | * This product includes cryptographic software written by Eric Young | ||
| 54 | * (eay@cryptsoft.com). This product includes software written by Tim | ||
| 55 | * Hudson (tjh@cryptsoft.com). | ||
| 56 | * | ||
| 57 | */ | ||
| 58 | |||
| 59 | #ifndef HEADER_STORE_LOCL_H | ||
| 60 | #define HEADER_STORE_LOCL_H | ||
| 61 | |||
| 62 | #include <openssl/crypto.h> | ||
| 63 | #include <openssl/store.h> | ||
| 64 | |||
| 65 | #ifdef __cplusplus | ||
| 66 | extern "C" { | ||
| 67 | #endif | ||
| 68 | |||
| 69 | struct store_method_st | ||
| 70 | { | ||
| 71 | char *name; | ||
| 72 | |||
| 73 | /* All the functions return a positive integer or non-NULL for success | ||
| 74 | and 0, a negative integer or NULL for failure */ | ||
| 75 | |||
| 76 | /* Initialise the STORE with private data */ | ||
| 77 | STORE_INITIALISE_FUNC_PTR init; | ||
| 78 | /* Initialise the STORE with private data */ | ||
| 79 | STORE_CLEANUP_FUNC_PTR clean; | ||
| 80 | /* Generate an object of a given type */ | ||
| 81 | STORE_GENERATE_OBJECT_FUNC_PTR generate_object; | ||
| 82 | /* Get an object of a given type. This function isn't really very | ||
| 83 | useful since the listing functions (below) can be used for the | ||
| 84 | same purpose and are much more general. */ | ||
| 85 | STORE_GET_OBJECT_FUNC_PTR get_object; | ||
| 86 | /* Store an object of a given type. */ | ||
| 87 | STORE_STORE_OBJECT_FUNC_PTR store_object; | ||
| 88 | /* Modify the attributes bound to an object of a given type. */ | ||
| 89 | STORE_MODIFY_OBJECT_FUNC_PTR modify_object; | ||
| 90 | /* Revoke an object of a given type. */ | ||
| 91 | STORE_HANDLE_OBJECT_FUNC_PTR revoke_object; | ||
| 92 | /* Delete an object of a given type. */ | ||
| 93 | STORE_HANDLE_OBJECT_FUNC_PTR delete_object; | ||
| 94 | /* List a bunch of objects of a given type and with the associated | ||
| 95 | attributes. */ | ||
| 96 | STORE_START_OBJECT_FUNC_PTR list_object_start; | ||
| 97 | STORE_NEXT_OBJECT_FUNC_PTR list_object_next; | ||
| 98 | STORE_END_OBJECT_FUNC_PTR list_object_end; | ||
| 99 | STORE_END_OBJECT_FUNC_PTR list_object_endp; | ||
| 100 | /* Store-level function to make any necessary update operations. */ | ||
| 101 | STORE_GENERIC_FUNC_PTR update_store; | ||
| 102 | /* Store-level function to get exclusive access to the store. */ | ||
| 103 | STORE_GENERIC_FUNC_PTR lock_store; | ||
| 104 | /* Store-level function to release exclusive access to the store. */ | ||
| 105 | STORE_GENERIC_FUNC_PTR unlock_store; | ||
| 106 | |||
| 107 | /* Generic control function */ | ||
| 108 | STORE_CTRL_FUNC_PTR ctrl; | ||
| 109 | }; | ||
| 110 | |||
| 111 | struct store_st | ||
| 112 | { | ||
| 113 | const STORE_METHOD *meth; | ||
| 114 | /* functional reference if 'meth' is ENGINE-provided */ | ||
| 115 | ENGINE *engine; | ||
| 116 | |||
| 117 | CRYPTO_EX_DATA ex_data; | ||
| 118 | int references; | ||
| 119 | }; | ||
| 120 | #ifdef __cplusplus | ||
| 121 | } | ||
| 122 | #endif | ||
| 123 | |||
| 124 | #endif | ||
diff --git a/src/lib/libcrypto/store/str_mem.c b/src/lib/libcrypto/store/str_mem.c deleted file mode 100644 index 8ac4f7e55c..0000000000 --- a/src/lib/libcrypto/store/str_mem.c +++ /dev/null | |||
| @@ -1,365 +0,0 @@ | |||
| 1 | /* crypto/store/str_mem.c -*- mode:C; c-file-style: "eay" -*- */ | ||
| 2 | /* Written by Richard Levitte (richard@levitte.org) for the OpenSSL | ||
| 3 | * project 2003. | ||
| 4 | */ | ||
| 5 | /* ==================================================================== | ||
| 6 | * Copyright (c) 2003 The OpenSSL Project. All rights reserved. | ||
| 7 | * | ||
| 8 | * Redistribution and use in source and binary forms, with or without | ||
| 9 | * modification, are permitted provided that the following conditions | ||
| 10 | * are met: | ||
| 11 | * | ||
| 12 | * 1. Redistributions of source code must retain the above copyright | ||
| 13 | * notice, this list of conditions and the following disclaimer. | ||
| 14 | * | ||
| 15 | * 2. Redistributions in binary form must reproduce the above copyright | ||
| 16 | * notice, this list of conditions and the following disclaimer in | ||
| 17 | * the documentation and/or other materials provided with the | ||
| 18 | * distribution. | ||
| 19 | * | ||
| 20 | * 3. All advertising materials mentioning features or use of this | ||
| 21 | * software must display the following acknowledgment: | ||
| 22 | * "This product includes software developed by the OpenSSL Project | ||
| 23 | * for use in the OpenSSL Toolkit. (http://www.openssl.org/)" | ||
| 24 | * | ||
| 25 | * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to | ||
| 26 | * endorse or promote products derived from this software without | ||
| 27 | * prior written permission. For written permission, please contact | ||
| 28 | * openssl-core@openssl.org. | ||
| 29 | * | ||
| 30 | * 5. Products derived from this software may not be called "OpenSSL" | ||
| 31 | * nor may "OpenSSL" appear in their names without prior written | ||
| 32 | * permission of the OpenSSL Project. | ||
| 33 | * | ||
| 34 | * 6. Redistributions of any form whatsoever must retain the following | ||
| 35 | * acknowledgment: | ||
| 36 | * "This product includes software developed by the OpenSSL Project | ||
| 37 | * for use in the OpenSSL Toolkit (http://www.openssl.org/)" | ||
| 38 | * | ||
| 39 | * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY | ||
| 40 | * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
| 41 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | ||
| 42 | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR | ||
| 43 | * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
| 44 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | ||
| 45 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
| 46 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
| 47 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | ||
| 48 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
| 49 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | ||
| 50 | * OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| 51 | * ==================================================================== | ||
| 52 | * | ||
| 53 | * This product includes cryptographic software written by Eric Young | ||
| 54 | * (eay@cryptsoft.com). This product includes software written by Tim | ||
| 55 | * Hudson (tjh@cryptsoft.com). | ||
| 56 | * | ||
| 57 | */ | ||
| 58 | |||
| 59 | #include <string.h> | ||
| 60 | #include <openssl/err.h> | ||
| 61 | #include "str_locl.h" | ||
| 62 | |||
| 63 | /* The memory store is currently highly experimental. It's meant to become | ||
| 64 | a base store used by other stores for internal caching (for full caching | ||
| 65 | support, aging needs to be added). | ||
| 66 | |||
| 67 | The database use is meant to support as much attribute association as | ||
| 68 | possible, while providing for as small search ranges as possible. | ||
| 69 | This is currently provided for by sorting the entries by numbers that | ||
| 70 | are composed of bits set at the positions indicated by attribute type | ||
| 71 | codes. This provides for ranges determined by the highest attribute | ||
| 72 | type code value. A better idea might be to sort by values computed | ||
| 73 | from the range of attributes associated with the object (basically, | ||
| 74 | the difference between the highest and lowest attribute type code) | ||
| 75 | and it's distance from a base (basically, the lowest associated | ||
| 76 | attribute type code). | ||
| 77 | */ | ||
| 78 | |||
| 79 | typedef struct mem_object_data_st | ||
| 80 | { | ||
| 81 | STORE_OBJECT *object; | ||
| 82 | STORE_ATTR_INFO *attr_info; | ||
| 83 | int references; | ||
| 84 | } MEM_OBJECT_DATA; | ||
| 85 | |||
| 86 | DECLARE_STACK_OF(MEM_OBJECT_DATA) | ||
| 87 | struct mem_data_st | ||
| 88 | { | ||
| 89 | STACK_OF(MEM_OBJECT_DATA) *data; /* sorted with | ||
| 90 | * STORE_ATTR_INFO_compare(). */ | ||
| 91 | unsigned int compute_components : 1; /* Currently unused, but can | ||
| 92 | be used to add attributes | ||
| 93 | from parts of the data. */ | ||
| 94 | }; | ||
| 95 | |||
| 96 | DECLARE_STACK_OF(STORE_ATTR_INFO) | ||
| 97 | struct mem_ctx_st | ||
| 98 | { | ||
| 99 | int type; /* The type we're searching for */ | ||
| 100 | STACK_OF(STORE_ATTR_INFO) *search_attributes; /* Sets of | ||
| 101 | attributes to search for. Each | ||
| 102 | element is a STORE_ATTR_INFO. */ | ||
| 103 | int search_index; /* which of the search attributes we | ||
| 104 | found a match for, -1 when we still | ||
| 105 | haven't found any */ | ||
| 106 | int index; /* -1 as long as we're searching for | ||
| 107 | the first */ | ||
| 108 | }; | ||
| 109 | |||
| 110 | static int mem_init(STORE *s); | ||
| 111 | static void mem_clean(STORE *s); | ||
| 112 | static STORE_OBJECT *mem_generate(STORE *s, STORE_OBJECT_TYPES type, | ||
| 113 | OPENSSL_ITEM attributes[], OPENSSL_ITEM parameters[]); | ||
| 114 | static STORE_OBJECT *mem_get(STORE *s, STORE_OBJECT_TYPES type, | ||
| 115 | OPENSSL_ITEM attributes[], OPENSSL_ITEM parameters[]); | ||
| 116 | static int mem_store(STORE *s, STORE_OBJECT_TYPES type, | ||
| 117 | STORE_OBJECT *data, OPENSSL_ITEM attributes[], | ||
| 118 | OPENSSL_ITEM parameters[]); | ||
| 119 | static int mem_modify(STORE *s, STORE_OBJECT_TYPES type, | ||
| 120 | OPENSSL_ITEM search_attributes[], OPENSSL_ITEM add_attributes[], | ||
| 121 | OPENSSL_ITEM modify_attributes[], OPENSSL_ITEM delete_attributes[], | ||
| 122 | OPENSSL_ITEM parameters[]); | ||
| 123 | static int mem_delete(STORE *s, STORE_OBJECT_TYPES type, | ||
| 124 | OPENSSL_ITEM attributes[], OPENSSL_ITEM parameters[]); | ||
| 125 | static void *mem_list_start(STORE *s, STORE_OBJECT_TYPES type, | ||
| 126 | OPENSSL_ITEM attributes[], OPENSSL_ITEM parameters[]); | ||
| 127 | static STORE_OBJECT *mem_list_next(STORE *s, void *handle); | ||
| 128 | static int mem_list_end(STORE *s, void *handle); | ||
| 129 | static int mem_list_endp(STORE *s, void *handle); | ||
| 130 | static int mem_lock(STORE *s, OPENSSL_ITEM attributes[], | ||
| 131 | OPENSSL_ITEM parameters[]); | ||
| 132 | static int mem_unlock(STORE *s, OPENSSL_ITEM attributes[], | ||
| 133 | OPENSSL_ITEM parameters[]); | ||
| 134 | static int mem_ctrl(STORE *s, int cmd, long l, void *p, void (*f)(void)); | ||
| 135 | |||
| 136 | static STORE_METHOD store_memory = | ||
| 137 | { | ||
| 138 | "OpenSSL memory store interface", | ||
| 139 | mem_init, | ||
| 140 | mem_clean, | ||
| 141 | mem_generate, | ||
| 142 | mem_get, | ||
| 143 | mem_store, | ||
| 144 | mem_modify, | ||
| 145 | NULL, /* revoke */ | ||
| 146 | mem_delete, | ||
| 147 | mem_list_start, | ||
| 148 | mem_list_next, | ||
| 149 | mem_list_end, | ||
| 150 | mem_list_endp, | ||
| 151 | NULL, /* update */ | ||
| 152 | mem_lock, | ||
| 153 | mem_unlock, | ||
| 154 | mem_ctrl | ||
| 155 | }; | ||
| 156 | |||
| 157 | const STORE_METHOD *STORE_Memory(void) | ||
| 158 | { | ||
| 159 | return &store_memory; | ||
| 160 | } | ||
| 161 | |||
| 162 | static int mem_init(STORE *s) | ||
| 163 | { | ||
| 164 | return 1; | ||
| 165 | } | ||
| 166 | |||
| 167 | static void mem_clean(STORE *s) | ||
| 168 | { | ||
| 169 | return; | ||
| 170 | } | ||
| 171 | |||
| 172 | static STORE_OBJECT *mem_generate(STORE *s, STORE_OBJECT_TYPES type, | ||
| 173 | OPENSSL_ITEM attributes[], OPENSSL_ITEM parameters[]) | ||
| 174 | { | ||
| 175 | STOREerr(STORE_F_MEM_GENERATE, STORE_R_NOT_IMPLEMENTED); | ||
| 176 | return 0; | ||
| 177 | } | ||
| 178 | static STORE_OBJECT *mem_get(STORE *s, STORE_OBJECT_TYPES type, | ||
| 179 | OPENSSL_ITEM attributes[], OPENSSL_ITEM parameters[]) | ||
| 180 | { | ||
| 181 | void *context = mem_list_start(s, type, attributes, parameters); | ||
| 182 | |||
| 183 | if (context) | ||
| 184 | { | ||
| 185 | STORE_OBJECT *object = mem_list_next(s, context); | ||
| 186 | |||
| 187 | if (mem_list_end(s, context)) | ||
| 188 | return object; | ||
| 189 | } | ||
| 190 | return NULL; | ||
| 191 | } | ||
| 192 | static int mem_store(STORE *s, STORE_OBJECT_TYPES type, | ||
| 193 | STORE_OBJECT *data, OPENSSL_ITEM attributes[], | ||
| 194 | OPENSSL_ITEM parameters[]) | ||
| 195 | { | ||
| 196 | STOREerr(STORE_F_MEM_STORE, STORE_R_NOT_IMPLEMENTED); | ||
| 197 | return 0; | ||
| 198 | } | ||
| 199 | static int mem_modify(STORE *s, STORE_OBJECT_TYPES type, | ||
| 200 | OPENSSL_ITEM search_attributes[], OPENSSL_ITEM add_attributes[], | ||
| 201 | OPENSSL_ITEM modify_attributes[], OPENSSL_ITEM delete_attributes[], | ||
| 202 | OPENSSL_ITEM parameters[]) | ||
| 203 | { | ||
| 204 | STOREerr(STORE_F_MEM_MODIFY, STORE_R_NOT_IMPLEMENTED); | ||
| 205 | return 0; | ||
| 206 | } | ||
| 207 | static int mem_delete(STORE *s, STORE_OBJECT_TYPES type, | ||
| 208 | OPENSSL_ITEM attributes[], OPENSSL_ITEM parameters[]) | ||
| 209 | { | ||
| 210 | STOREerr(STORE_F_MEM_DELETE, STORE_R_NOT_IMPLEMENTED); | ||
| 211 | return 0; | ||
| 212 | } | ||
| 213 | |||
| 214 | /* The list functions may be the hardest to understand. Basically, | ||
| 215 | mem_list_start compiles a stack of attribute info elements, and | ||
| 216 | puts that stack into the context to be returned. mem_list_next | ||
| 217 | will then find the first matching element in the store, and then | ||
| 218 | walk all the way to the end of the store (since any combination | ||
| 219 | of attribute bits above the starting point may match the searched | ||
| 220 | for bit pattern...). */ | ||
| 221 | static void *mem_list_start(STORE *s, STORE_OBJECT_TYPES type, | ||
| 222 | OPENSSL_ITEM attributes[], OPENSSL_ITEM parameters[]) | ||
| 223 | { | ||
| 224 | struct mem_ctx_st *context = | ||
| 225 | (struct mem_ctx_st *)OPENSSL_malloc(sizeof(struct mem_ctx_st)); | ||
| 226 | void *attribute_context = NULL; | ||
| 227 | STORE_ATTR_INFO *attrs = NULL; | ||
| 228 | |||
| 229 | if (!context) | ||
| 230 | { | ||
| 231 | STOREerr(STORE_F_MEM_LIST_START, ERR_R_MALLOC_FAILURE); | ||
| 232 | return 0; | ||
| 233 | } | ||
| 234 | memset(context, 0, sizeof(struct mem_ctx_st)); | ||
| 235 | |||
| 236 | attribute_context = STORE_parse_attrs_start(attributes); | ||
| 237 | if (!attribute_context) | ||
| 238 | { | ||
| 239 | STOREerr(STORE_F_MEM_LIST_START, ERR_R_STORE_LIB); | ||
| 240 | goto err; | ||
| 241 | } | ||
| 242 | |||
| 243 | while((attrs = STORE_parse_attrs_next(attribute_context))) | ||
| 244 | { | ||
| 245 | if (context->search_attributes == NULL) | ||
| 246 | { | ||
| 247 | context->search_attributes = | ||
| 248 | sk_STORE_ATTR_INFO_new(STORE_ATTR_INFO_compare); | ||
| 249 | if (!context->search_attributes) | ||
| 250 | { | ||
| 251 | STOREerr(STORE_F_MEM_LIST_START, | ||
| 252 | ERR_R_MALLOC_FAILURE); | ||
| 253 | goto err; | ||
| 254 | } | ||
| 255 | } | ||
| 256 | sk_STORE_ATTR_INFO_push(context->search_attributes,attrs); | ||
| 257 | } | ||
| 258 | if (!STORE_parse_attrs_endp(attribute_context)) | ||
| 259 | goto err; | ||
| 260 | STORE_parse_attrs_end(attribute_context); | ||
| 261 | context->search_index = -1; | ||
| 262 | context->index = -1; | ||
| 263 | return context; | ||
| 264 | err: | ||
| 265 | if (attribute_context) STORE_parse_attrs_end(attribute_context); | ||
| 266 | mem_list_end(s, context); | ||
| 267 | return NULL; | ||
| 268 | } | ||
| 269 | static STORE_OBJECT *mem_list_next(STORE *s, void *handle) | ||
| 270 | { | ||
| 271 | int i; | ||
| 272 | struct mem_ctx_st *context = (struct mem_ctx_st *)handle; | ||
| 273 | struct mem_object_data_st key = { 0, 0, 1 }; | ||
| 274 | struct mem_data_st *store = | ||
| 275 | (struct mem_data_st *)STORE_get_ex_data(s, 1); | ||
| 276 | int srch; | ||
| 277 | int cres = 0; | ||
| 278 | |||
| 279 | if (!context) | ||
| 280 | { | ||
| 281 | STOREerr(STORE_F_MEM_LIST_NEXT, ERR_R_PASSED_NULL_PARAMETER); | ||
| 282 | return NULL; | ||
| 283 | } | ||
| 284 | if (!store) | ||
| 285 | { | ||
| 286 | STOREerr(STORE_F_MEM_LIST_NEXT, STORE_R_NO_STORE); | ||
| 287 | return NULL; | ||
| 288 | } | ||
| 289 | |||
| 290 | if (context->search_index == -1) | ||
| 291 | { | ||
| 292 | for (i = 0; | ||
| 293 | i < sk_STORE_ATTR_INFO_num(context->search_attributes); | ||
| 294 | i++) | ||
| 295 | { | ||
| 296 | key.attr_info | ||
| 297 | = sk_STORE_ATTR_INFO_value(context->search_attributes, | ||
| 298 | i); | ||
| 299 | srch = sk_MEM_OBJECT_DATA_find_ex(store->data, &key); | ||
| 300 | |||
| 301 | if (srch >= 0) | ||
| 302 | { | ||
| 303 | context->search_index = srch; | ||
| 304 | break; | ||
| 305 | } | ||
| 306 | } | ||
| 307 | } | ||
| 308 | if (context->search_index < 0) | ||
| 309 | return NULL; | ||
| 310 | |||
| 311 | key.attr_info = | ||
| 312 | sk_STORE_ATTR_INFO_value(context->search_attributes, | ||
| 313 | context->search_index); | ||
| 314 | for(srch = context->search_index; | ||
| 315 | srch < sk_MEM_OBJECT_DATA_num(store->data) | ||
| 316 | && STORE_ATTR_INFO_in_range(key.attr_info, | ||
| 317 | sk_MEM_OBJECT_DATA_value(store->data, srch)->attr_info) | ||
| 318 | && !(cres = STORE_ATTR_INFO_in_ex(key.attr_info, | ||
| 319 | sk_MEM_OBJECT_DATA_value(store->data, srch)->attr_info)); | ||
| 320 | srch++) | ||
| 321 | ; | ||
| 322 | |||
| 323 | context->search_index = srch; | ||
| 324 | if (cres) | ||
| 325 | return (sk_MEM_OBJECT_DATA_value(store->data, srch))->object; | ||
| 326 | return NULL; | ||
| 327 | } | ||
| 328 | static int mem_list_end(STORE *s, void *handle) | ||
| 329 | { | ||
| 330 | struct mem_ctx_st *context = (struct mem_ctx_st *)handle; | ||
| 331 | |||
| 332 | if (!context) | ||
| 333 | { | ||
| 334 | STOREerr(STORE_F_MEM_LIST_END, ERR_R_PASSED_NULL_PARAMETER); | ||
| 335 | return 0; | ||
| 336 | } | ||
| 337 | if (context && context->search_attributes) | ||
| 338 | sk_STORE_ATTR_INFO_free(context->search_attributes); | ||
| 339 | if (context) OPENSSL_free(context); | ||
| 340 | return 1; | ||
| 341 | } | ||
| 342 | static int mem_list_endp(STORE *s, void *handle) | ||
| 343 | { | ||
| 344 | struct mem_ctx_st *context = (struct mem_ctx_st *)handle; | ||
| 345 | |||
| 346 | if (!context | ||
| 347 | || context->search_index | ||
| 348 | == sk_STORE_ATTR_INFO_num(context->search_attributes)) | ||
| 349 | return 1; | ||
| 350 | return 0; | ||
| 351 | } | ||
| 352 | static int mem_lock(STORE *s, OPENSSL_ITEM attributes[], | ||
| 353 | OPENSSL_ITEM parameters[]) | ||
| 354 | { | ||
| 355 | return 1; | ||
| 356 | } | ||
| 357 | static int mem_unlock(STORE *s, OPENSSL_ITEM attributes[], | ||
| 358 | OPENSSL_ITEM parameters[]) | ||
| 359 | { | ||
| 360 | return 1; | ||
| 361 | } | ||
| 362 | static int mem_ctrl(STORE *s, int cmd, long l, void *p, void (*f)(void)) | ||
| 363 | { | ||
| 364 | return 1; | ||
| 365 | } | ||
diff --git a/src/lib/libcrypto/store/str_meth.c b/src/lib/libcrypto/store/str_meth.c deleted file mode 100644 index a46de03a26..0000000000 --- a/src/lib/libcrypto/store/str_meth.c +++ /dev/null | |||
| @@ -1,250 +0,0 @@ | |||
| 1 | /* crypto/store/str_meth.c -*- mode:C; c-file-style: "eay" -*- */ | ||
| 2 | /* Written by Richard Levitte (richard@levitte.org) for the OpenSSL | ||
| 3 | * project 2003. | ||
| 4 | */ | ||
| 5 | /* ==================================================================== | ||
| 6 | * Copyright (c) 2003 The OpenSSL Project. All rights reserved. | ||
| 7 | * | ||
| 8 | * Redistribution and use in source and binary forms, with or without | ||
| 9 | * modification, are permitted provided that the following conditions | ||
| 10 | * are met: | ||
| 11 | * | ||
| 12 | * 1. Redistributions of source code must retain the above copyright | ||
| 13 | * notice, this list of conditions and the following disclaimer. | ||
| 14 | * | ||
| 15 | * 2. Redistributions in binary form must reproduce the above copyright | ||
| 16 | * notice, this list of conditions and the following disclaimer in | ||
| 17 | * the documentation and/or other materials provided with the | ||
| 18 | * distribution. | ||
| 19 | * | ||
| 20 | * 3. All advertising materials mentioning features or use of this | ||
| 21 | * software must display the following acknowledgment: | ||
| 22 | * "This product includes software developed by the OpenSSL Project | ||
| 23 | * for use in the OpenSSL Toolkit. (http://www.openssl.org/)" | ||
| 24 | * | ||
| 25 | * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to | ||
| 26 | * endorse or promote products derived from this software without | ||
| 27 | * prior written permission. For written permission, please contact | ||
| 28 | * openssl-core@openssl.org. | ||
| 29 | * | ||
| 30 | * 5. Products derived from this software may not be called "OpenSSL" | ||
| 31 | * nor may "OpenSSL" appear in their names without prior written | ||
| 32 | * permission of the OpenSSL Project. | ||
| 33 | * | ||
| 34 | * 6. Redistributions of any form whatsoever must retain the following | ||
| 35 | * acknowledgment: | ||
| 36 | * "This product includes software developed by the OpenSSL Project | ||
| 37 | * for use in the OpenSSL Toolkit (http://www.openssl.org/)" | ||
| 38 | * | ||
| 39 | * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY | ||
| 40 | * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
| 41 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | ||
| 42 | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR | ||
| 43 | * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
| 44 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | ||
| 45 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
| 46 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
| 47 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | ||
| 48 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
| 49 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | ||
| 50 | * OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| 51 | * ==================================================================== | ||
| 52 | * | ||
| 53 | * This product includes cryptographic software written by Eric Young | ||
| 54 | * (eay@cryptsoft.com). This product includes software written by Tim | ||
| 55 | * Hudson (tjh@cryptsoft.com). | ||
| 56 | * | ||
| 57 | */ | ||
| 58 | |||
| 59 | #include <string.h> | ||
| 60 | #include <openssl/buffer.h> | ||
| 61 | #include "str_locl.h" | ||
| 62 | |||
| 63 | STORE_METHOD *STORE_create_method(char *name) | ||
| 64 | { | ||
| 65 | STORE_METHOD *store_method = (STORE_METHOD *)OPENSSL_malloc(sizeof(STORE_METHOD)); | ||
| 66 | |||
| 67 | if (store_method) | ||
| 68 | { | ||
| 69 | memset(store_method, 0, sizeof(*store_method)); | ||
| 70 | store_method->name = BUF_strdup(name); | ||
| 71 | } | ||
| 72 | return store_method; | ||
| 73 | } | ||
| 74 | |||
| 75 | /* BIG FSCKING WARNING!!!! If you use this on a statically allocated method | ||
| 76 | (that is, it hasn't been allocated using STORE_create_method(), you deserve | ||
| 77 | anything Murphy can throw at you and more! You have been warned. */ | ||
| 78 | void STORE_destroy_method(STORE_METHOD *store_method) | ||
| 79 | { | ||
| 80 | if (!store_method) return; | ||
| 81 | OPENSSL_free(store_method->name); | ||
| 82 | store_method->name = NULL; | ||
| 83 | OPENSSL_free(store_method); | ||
| 84 | } | ||
| 85 | |||
| 86 | int STORE_method_set_initialise_function(STORE_METHOD *sm, STORE_INITIALISE_FUNC_PTR init_f) | ||
| 87 | { | ||
| 88 | sm->init = init_f; | ||
| 89 | return 1; | ||
| 90 | } | ||
| 91 | |||
| 92 | int STORE_method_set_cleanup_function(STORE_METHOD *sm, STORE_CLEANUP_FUNC_PTR clean_f) | ||
| 93 | { | ||
| 94 | sm->clean = clean_f; | ||
| 95 | return 1; | ||
| 96 | } | ||
| 97 | |||
| 98 | int STORE_method_set_generate_function(STORE_METHOD *sm, STORE_GENERATE_OBJECT_FUNC_PTR generate_f) | ||
| 99 | { | ||
| 100 | sm->generate_object = generate_f; | ||
| 101 | return 1; | ||
| 102 | } | ||
| 103 | |||
| 104 | int STORE_method_set_get_function(STORE_METHOD *sm, STORE_GET_OBJECT_FUNC_PTR get_f) | ||
| 105 | { | ||
| 106 | sm->get_object = get_f; | ||
| 107 | return 1; | ||
| 108 | } | ||
| 109 | |||
| 110 | int STORE_method_set_store_function(STORE_METHOD *sm, STORE_STORE_OBJECT_FUNC_PTR store_f) | ||
| 111 | { | ||
| 112 | sm->store_object = store_f; | ||
| 113 | return 1; | ||
| 114 | } | ||
| 115 | |||
| 116 | int STORE_method_set_modify_function(STORE_METHOD *sm, STORE_MODIFY_OBJECT_FUNC_PTR modify_f) | ||
| 117 | { | ||
| 118 | sm->modify_object = modify_f; | ||
| 119 | return 1; | ||
| 120 | } | ||
| 121 | |||
| 122 | int STORE_method_set_revoke_function(STORE_METHOD *sm, STORE_HANDLE_OBJECT_FUNC_PTR revoke_f) | ||
| 123 | { | ||
| 124 | sm->revoke_object = revoke_f; | ||
| 125 | return 1; | ||
| 126 | } | ||
| 127 | |||
| 128 | int STORE_method_set_delete_function(STORE_METHOD *sm, STORE_HANDLE_OBJECT_FUNC_PTR delete_f) | ||
| 129 | { | ||
| 130 | sm->delete_object = delete_f; | ||
| 131 | return 1; | ||
| 132 | } | ||
| 133 | |||
| 134 | int STORE_method_set_list_start_function(STORE_METHOD *sm, STORE_START_OBJECT_FUNC_PTR list_start_f) | ||
| 135 | { | ||
| 136 | sm->list_object_start = list_start_f; | ||
| 137 | return 1; | ||
| 138 | } | ||
| 139 | |||
| 140 | int STORE_method_set_list_next_function(STORE_METHOD *sm, STORE_NEXT_OBJECT_FUNC_PTR list_next_f) | ||
| 141 | { | ||
| 142 | sm->list_object_next = list_next_f; | ||
| 143 | return 1; | ||
| 144 | } | ||
| 145 | |||
| 146 | int STORE_method_set_list_end_function(STORE_METHOD *sm, STORE_END_OBJECT_FUNC_PTR list_end_f) | ||
| 147 | { | ||
| 148 | sm->list_object_end = list_end_f; | ||
| 149 | return 1; | ||
| 150 | } | ||
| 151 | |||
| 152 | int STORE_method_set_update_store_function(STORE_METHOD *sm, STORE_GENERIC_FUNC_PTR update_f) | ||
| 153 | { | ||
| 154 | sm->update_store = update_f; | ||
| 155 | return 1; | ||
| 156 | } | ||
| 157 | |||
| 158 | int STORE_method_set_lock_store_function(STORE_METHOD *sm, STORE_GENERIC_FUNC_PTR lock_f) | ||
| 159 | { | ||
| 160 | sm->lock_store = lock_f; | ||
| 161 | return 1; | ||
| 162 | } | ||
| 163 | |||
| 164 | int STORE_method_set_unlock_store_function(STORE_METHOD *sm, STORE_GENERIC_FUNC_PTR unlock_f) | ||
| 165 | { | ||
| 166 | sm->unlock_store = unlock_f; | ||
| 167 | return 1; | ||
| 168 | } | ||
| 169 | |||
| 170 | int STORE_method_set_ctrl_function(STORE_METHOD *sm, STORE_CTRL_FUNC_PTR ctrl_f) | ||
| 171 | { | ||
| 172 | sm->ctrl = ctrl_f; | ||
| 173 | return 1; | ||
| 174 | } | ||
| 175 | |||
| 176 | STORE_INITIALISE_FUNC_PTR STORE_method_get_initialise_function(STORE_METHOD *sm) | ||
| 177 | { | ||
| 178 | return sm->init; | ||
| 179 | } | ||
| 180 | |||
| 181 | STORE_CLEANUP_FUNC_PTR STORE_method_get_cleanup_function(STORE_METHOD *sm) | ||
| 182 | { | ||
| 183 | return sm->clean; | ||
| 184 | } | ||
| 185 | |||
| 186 | STORE_GENERATE_OBJECT_FUNC_PTR STORE_method_get_generate_function(STORE_METHOD *sm) | ||
| 187 | { | ||
| 188 | return sm->generate_object; | ||
| 189 | } | ||
| 190 | |||
| 191 | STORE_GET_OBJECT_FUNC_PTR STORE_method_get_get_function(STORE_METHOD *sm) | ||
| 192 | { | ||
| 193 | return sm->get_object; | ||
| 194 | } | ||
| 195 | |||
| 196 | STORE_STORE_OBJECT_FUNC_PTR STORE_method_get_store_function(STORE_METHOD *sm) | ||
| 197 | { | ||
| 198 | return sm->store_object; | ||
| 199 | } | ||
| 200 | |||
| 201 | STORE_MODIFY_OBJECT_FUNC_PTR STORE_method_get_modify_function(STORE_METHOD *sm) | ||
| 202 | { | ||
| 203 | return sm->modify_object; | ||
| 204 | } | ||
| 205 | |||
| 206 | STORE_HANDLE_OBJECT_FUNC_PTR STORE_method_get_revoke_function(STORE_METHOD *sm) | ||
| 207 | { | ||
| 208 | return sm->revoke_object; | ||
| 209 | } | ||
| 210 | |||
| 211 | STORE_HANDLE_OBJECT_FUNC_PTR STORE_method_get_delete_function(STORE_METHOD *sm) | ||
| 212 | { | ||
| 213 | return sm->delete_object; | ||
| 214 | } | ||
| 215 | |||
| 216 | STORE_START_OBJECT_FUNC_PTR STORE_method_get_list_start_function(STORE_METHOD *sm) | ||
| 217 | { | ||
| 218 | return sm->list_object_start; | ||
| 219 | } | ||
| 220 | |||
| 221 | STORE_NEXT_OBJECT_FUNC_PTR STORE_method_get_list_next_function(STORE_METHOD *sm) | ||
| 222 | { | ||
| 223 | return sm->list_object_next; | ||
| 224 | } | ||
| 225 | |||
| 226 | STORE_END_OBJECT_FUNC_PTR STORE_method_get_list_end_function(STORE_METHOD *sm) | ||
| 227 | { | ||
| 228 | return sm->list_object_end; | ||
| 229 | } | ||
| 230 | |||
| 231 | STORE_GENERIC_FUNC_PTR STORE_method_get_update_store_function(STORE_METHOD *sm) | ||
| 232 | { | ||
| 233 | return sm->update_store; | ||
| 234 | } | ||
| 235 | |||
| 236 | STORE_GENERIC_FUNC_PTR STORE_method_get_lock_store_function(STORE_METHOD *sm) | ||
| 237 | { | ||
| 238 | return sm->lock_store; | ||
| 239 | } | ||
| 240 | |||
| 241 | STORE_GENERIC_FUNC_PTR STORE_method_get_unlock_store_function(STORE_METHOD *sm) | ||
| 242 | { | ||
| 243 | return sm->unlock_store; | ||
| 244 | } | ||
| 245 | |||
| 246 | STORE_CTRL_FUNC_PTR STORE_method_get_ctrl_function(STORE_METHOD *sm) | ||
| 247 | { | ||
| 248 | return sm->ctrl; | ||
| 249 | } | ||
| 250 | |||
diff --git a/src/lib/libcrypto/threads/netware.bat b/src/lib/libcrypto/threads/netware.bat deleted file mode 100644 index 0b3eca3caf..0000000000 --- a/src/lib/libcrypto/threads/netware.bat +++ /dev/null | |||
| @@ -1,79 +0,0 @@ | |||
| 1 | @echo off | ||
| 2 | rem batch file to build multi-thread test ( mttest.nlm ) | ||
| 3 | |||
| 4 | rem command line arguments: | ||
| 5 | rem debug => build using debug settings | ||
| 6 | |||
| 7 | rem | ||
| 8 | rem After building, copy mttest.nlm to the server and run it, you'll probably | ||
| 9 | rem want to redirect stdout and stderr. An example command line would be | ||
| 10 | rem "mttest.nlm -thread 20 -loops 10 -CAfile \openssl\apps\server.pem >mttest.out 2>mttest.err" | ||
| 11 | rem | ||
| 12 | |||
| 13 | del mttest.nlm | ||
| 14 | |||
| 15 | set BLD_DEBUG= | ||
| 16 | set CFLAGS= | ||
| 17 | set LFLAGS= | ||
| 18 | set LIBS= | ||
| 19 | |||
| 20 | if "%1" == "DEBUG" set BLD_DEBUG=YES | ||
| 21 | if "%1" == "debug" set BLD_DEBUG=YES | ||
| 22 | |||
| 23 | if "%MWCIncludes%" == "" goto inc_error | ||
| 24 | if "%PRELUDE%" == "" goto prelude_error | ||
| 25 | if "%IMPORTS%" == "" goto imports_error | ||
| 26 | |||
| 27 | set CFLAGS=-c -I..\..\outinc_nw -nosyspath -DOPENSSL_SYS_NETWARE -opt off -g -sym internal -maxerrors 20 | ||
| 28 | |||
| 29 | if "%BLD_DEBUG%" == "YES" set LIBS=..\..\out_nw.dbg\ssl.lib ..\..\out_nw.dbg\crypto.lib | ||
| 30 | if "%BLD_DEBUG%" == "" set LIBS=..\..\out_nw\ssl.lib ..\..\out_nw\crypto.lib | ||
| 31 | |||
| 32 | set LFLAGS=-msgstyle gcc -zerobss -stacksize 32768 -nostdlib -sym internal | ||
| 33 | |||
| 34 | rem generate command file for metrowerks | ||
| 35 | echo. | ||
| 36 | echo Generating Metrowerks command file: mttest.def | ||
| 37 | echo # dynamically generated command file for metrowerks build > mttest.def | ||
| 38 | echo IMPORT @%IMPORTS%\clib.imp >> mttest.def | ||
| 39 | echo IMPORT @%IMPORTS%\threads.imp >> mttest.def | ||
| 40 | echo IMPORT @%IMPORTS%\ws2nlm.imp >> mttest.def | ||
| 41 | echo IMPORT GetProcessSwitchCount >> mttest.def | ||
| 42 | echo MODULE clib >> mttest.def | ||
| 43 | |||
| 44 | rem compile | ||
| 45 | echo. | ||
| 46 | echo Compiling mttest.c | ||
| 47 | mwccnlm.exe mttest.c %CFLAGS% | ||
| 48 | if errorlevel 1 goto end | ||
| 49 | |||
| 50 | rem link | ||
| 51 | echo. | ||
| 52 | echo Linking mttest.nlm | ||
| 53 | mwldnlm.exe %LFLAGS% -screenname mttest -commandfile mttest.def mttest.o "%PRELUDE%" %LIBS% -o mttest.nlm | ||
| 54 | if errorlevel 1 goto end | ||
| 55 | |||
| 56 | goto end | ||
| 57 | |||
| 58 | :inc_error | ||
| 59 | echo. | ||
| 60 | echo Environment variable MWCIncludes is not set - see install.nw | ||
| 61 | goto end | ||
| 62 | |||
| 63 | :prelude_error | ||
| 64 | echo. | ||
| 65 | echo Environment variable PRELUDE is not set - see install.nw | ||
| 66 | goto end | ||
| 67 | |||
| 68 | :imports_error | ||
| 69 | echo. | ||
| 70 | echo Environment variable IMPORTS is not set - see install.nw | ||
| 71 | goto end | ||
| 72 | |||
| 73 | |||
| 74 | :end | ||
| 75 | set BLD_DEBUG= | ||
| 76 | set CFLAGS= | ||
| 77 | set LFLAGS= | ||
| 78 | set LIBS= | ||
| 79 | |||
diff --git a/src/lib/libcrypto/ts/Makefile b/src/lib/libcrypto/ts/Makefile deleted file mode 100644 index c18234555b..0000000000 --- a/src/lib/libcrypto/ts/Makefile +++ /dev/null | |||
| @@ -1,269 +0,0 @@ | |||
| 1 | # | ||
| 2 | # SSLeay/crypto/ts/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= ts | ||
| 6 | TOP= ../.. | ||
| 7 | CC= cc | ||
| 8 | INCLUDES= -I.. -I../../include | ||
| 9 | CFLAG = -g | ||
| 10 | INSTALL_PREFIX= | ||
| 11 | OPENSSLDIR= /usr/local/ssl | ||
| 12 | INSTALLTOP=/usr/local/ssl | ||
| 13 | MAKEDEPPROG= makedepend | ||
| 14 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
| 15 | MAKEFILE= Makefile | ||
| 16 | AR= ar r | ||
| 17 | |||
| 18 | PEX_LIBS= | ||
| 19 | EX_LIBS= | ||
| 20 | |||
| 21 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 22 | |||
| 23 | GENERAL= Makefile | ||
| 24 | TEST= | ||
| 25 | APPS= | ||
| 26 | |||
| 27 | LIB=$(TOP)/libcrypto.a | ||
| 28 | LIBSRC= ts_err.c ts_req_utils.c ts_req_print.c ts_rsp_utils.c ts_rsp_print.c \ | ||
| 29 | ts_rsp_sign.c ts_rsp_verify.c ts_verify_ctx.c ts_lib.c ts_conf.c \ | ||
| 30 | ts_asn1.c | ||
| 31 | LIBOBJ= ts_err.o ts_req_utils.o ts_req_print.o ts_rsp_utils.o ts_rsp_print.o \ | ||
| 32 | ts_rsp_sign.o ts_rsp_verify.o ts_verify_ctx.o ts_lib.o ts_conf.o \ | ||
| 33 | ts_asn1.o | ||
| 34 | |||
| 35 | SRC= $(LIBSRC) | ||
| 36 | |||
| 37 | EXHEADER= ts.h | ||
| 38 | HEADER= $(EXHEADER) | ||
| 39 | |||
| 40 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
| 41 | |||
| 42 | top: | ||
| 43 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
| 44 | |||
| 45 | test: | ||
| 46 | |||
| 47 | all: lib | ||
| 48 | |||
| 49 | lib: $(LIBOBJ) | ||
| 50 | $(AR) $(LIB) $(LIBOBJ) | ||
| 51 | $(RANLIB) $(LIB) || echo Never mind. | ||
| 52 | @touch lib | ||
| 53 | |||
| 54 | files: | ||
| 55 | $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO | ||
| 56 | |||
| 57 | links: | ||
| 58 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | ||
| 59 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | ||
| 60 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | ||
| 61 | |||
| 62 | install: | ||
| 63 | @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile... | ||
| 64 | @headerlist="$(EXHEADER)"; for i in $$headerlist ; \ | ||
| 65 | do \ | ||
| 66 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 67 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
| 68 | done; | ||
| 69 | |||
| 70 | tags: | ||
| 71 | ctags $(SRC) | ||
| 72 | |||
| 73 | lint: | ||
| 74 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
| 75 | |||
| 76 | depend: | ||
| 77 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(LIBSRC) | ||
| 78 | |||
| 79 | dclean: | ||
| 80 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 81 | mv -f Makefile.new $(MAKEFILE) | ||
| 82 | |||
| 83 | clean: | ||
| 84 | rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff enc dec sign verify | ||
| 85 | |||
| 86 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 87 | |||
| 88 | ts_asn1.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h | ||
| 89 | ts_asn1.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h | ||
| 90 | ts_asn1.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h | ||
| 91 | ts_asn1.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 92 | ts_asn1.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h | ||
| 93 | ts_asn1.o: ../../include/openssl/ecdh.h ../../include/openssl/ecdsa.h | ||
| 94 | ts_asn1.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 95 | ts_asn1.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h | ||
| 96 | ts_asn1.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 97 | ts_asn1.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 98 | ts_asn1.o: ../../include/openssl/pkcs7.h ../../include/openssl/rsa.h | ||
| 99 | ts_asn1.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 100 | ts_asn1.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 101 | ts_asn1.o: ../../include/openssl/ts.h ../../include/openssl/x509.h | ||
| 102 | ts_asn1.o: ../../include/openssl/x509_vfy.h ../../include/openssl/x509v3.h | ||
| 103 | ts_asn1.o: ts_asn1.c | ||
| 104 | ts_conf.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 105 | ts_conf.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h | ||
| 106 | ts_conf.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h | ||
| 107 | ts_conf.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 108 | ts_conf.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h | ||
| 109 | ts_conf.o: ../../include/openssl/ecdh.h ../../include/openssl/ecdsa.h | ||
| 110 | ts_conf.o: ../../include/openssl/engine.h ../../include/openssl/err.h | ||
| 111 | ts_conf.o: ../../include/openssl/evp.h ../../include/openssl/lhash.h | ||
| 112 | ts_conf.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 113 | ts_conf.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 114 | ts_conf.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pem.h | ||
| 115 | ts_conf.o: ../../include/openssl/pem2.h ../../include/openssl/pkcs7.h | ||
| 116 | ts_conf.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 117 | ts_conf.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 118 | ts_conf.o: ../../include/openssl/symhacks.h ../../include/openssl/ts.h | ||
| 119 | ts_conf.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 120 | ts_conf.o: ../../include/openssl/x509v3.h ../cryptlib.h ts_conf.c | ||
| 121 | ts_err.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 122 | ts_err.o: ../../include/openssl/buffer.h ../../include/openssl/conf.h | ||
| 123 | ts_err.o: ../../include/openssl/crypto.h ../../include/openssl/dh.h | ||
| 124 | ts_err.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 125 | ts_err.o: ../../include/openssl/ec.h ../../include/openssl/ecdh.h | ||
| 126 | ts_err.o: ../../include/openssl/ecdsa.h ../../include/openssl/err.h | ||
| 127 | ts_err.o: ../../include/openssl/evp.h ../../include/openssl/lhash.h | ||
| 128 | ts_err.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 129 | ts_err.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 130 | ts_err.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs7.h | ||
| 131 | ts_err.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 132 | ts_err.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 133 | ts_err.o: ../../include/openssl/symhacks.h ../../include/openssl/ts.h | ||
| 134 | ts_err.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 135 | ts_err.o: ../../include/openssl/x509v3.h ts_err.c | ||
| 136 | ts_lib.o: ../../e_os.h ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 137 | ts_lib.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 138 | ts_lib.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h | ||
| 139 | ts_lib.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 140 | ts_lib.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h | ||
| 141 | ts_lib.o: ../../include/openssl/ecdh.h ../../include/openssl/ecdsa.h | ||
| 142 | ts_lib.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 143 | ts_lib.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h | ||
| 144 | ts_lib.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 145 | ts_lib.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 146 | ts_lib.o: ../../include/openssl/pkcs7.h ../../include/openssl/rsa.h | ||
| 147 | ts_lib.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 148 | ts_lib.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 149 | ts_lib.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 150 | ts_lib.o: ../../include/openssl/x509v3.h ../cryptlib.h ts.h ts_lib.c | ||
| 151 | ts_req_print.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 152 | ts_req_print.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 153 | ts_req_print.o: ../../include/openssl/buffer.h ../../include/openssl/conf.h | ||
| 154 | ts_req_print.o: ../../include/openssl/crypto.h ../../include/openssl/dh.h | ||
| 155 | ts_req_print.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 156 | ts_req_print.o: ../../include/openssl/ec.h ../../include/openssl/ecdh.h | ||
| 157 | ts_req_print.o: ../../include/openssl/ecdsa.h ../../include/openssl/err.h | ||
| 158 | ts_req_print.o: ../../include/openssl/evp.h ../../include/openssl/lhash.h | ||
| 159 | ts_req_print.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 160 | ts_req_print.o: ../../include/openssl/opensslconf.h | ||
| 161 | ts_req_print.o: ../../include/openssl/opensslv.h | ||
| 162 | ts_req_print.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs7.h | ||
| 163 | ts_req_print.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 164 | ts_req_print.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 165 | ts_req_print.o: ../../include/openssl/symhacks.h ../../include/openssl/ts.h | ||
| 166 | ts_req_print.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 167 | ts_req_print.o: ../../include/openssl/x509v3.h ../cryptlib.h ts_req_print.c | ||
| 168 | ts_req_utils.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 169 | ts_req_utils.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h | ||
| 170 | ts_req_utils.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h | ||
| 171 | ts_req_utils.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 172 | ts_req_utils.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h | ||
| 173 | ts_req_utils.o: ../../include/openssl/ecdh.h ../../include/openssl/ecdsa.h | ||
| 174 | ts_req_utils.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 175 | ts_req_utils.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h | ||
| 176 | ts_req_utils.o: ../../include/openssl/objects.h | ||
| 177 | ts_req_utils.o: ../../include/openssl/opensslconf.h | ||
| 178 | ts_req_utils.o: ../../include/openssl/opensslv.h | ||
| 179 | ts_req_utils.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs7.h | ||
| 180 | ts_req_utils.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 181 | ts_req_utils.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 182 | ts_req_utils.o: ../../include/openssl/symhacks.h ../../include/openssl/ts.h | ||
| 183 | ts_req_utils.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 184 | ts_req_utils.o: ../../include/openssl/x509v3.h ../cryptlib.h ts_req_utils.c | ||
| 185 | ts_rsp_print.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 186 | ts_rsp_print.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 187 | ts_rsp_print.o: ../../include/openssl/buffer.h ../../include/openssl/conf.h | ||
| 188 | ts_rsp_print.o: ../../include/openssl/crypto.h ../../include/openssl/dh.h | ||
| 189 | ts_rsp_print.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 190 | ts_rsp_print.o: ../../include/openssl/ec.h ../../include/openssl/ecdh.h | ||
| 191 | ts_rsp_print.o: ../../include/openssl/ecdsa.h ../../include/openssl/err.h | ||
| 192 | ts_rsp_print.o: ../../include/openssl/evp.h ../../include/openssl/lhash.h | ||
| 193 | ts_rsp_print.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 194 | ts_rsp_print.o: ../../include/openssl/opensslconf.h | ||
| 195 | ts_rsp_print.o: ../../include/openssl/opensslv.h | ||
| 196 | ts_rsp_print.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs7.h | ||
| 197 | ts_rsp_print.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 198 | ts_rsp_print.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 199 | ts_rsp_print.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h | ||
| 200 | ts_rsp_print.o: ../../include/openssl/x509_vfy.h ../../include/openssl/x509v3.h | ||
| 201 | ts_rsp_print.o: ../cryptlib.h ts.h ts_rsp_print.c | ||
| 202 | ts_rsp_sign.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 203 | ts_rsp_sign.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h | ||
| 204 | ts_rsp_sign.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h | ||
| 205 | ts_rsp_sign.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 206 | ts_rsp_sign.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h | ||
| 207 | ts_rsp_sign.o: ../../include/openssl/ecdh.h ../../include/openssl/ecdsa.h | ||
| 208 | ts_rsp_sign.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 209 | ts_rsp_sign.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h | ||
| 210 | ts_rsp_sign.o: ../../include/openssl/objects.h | ||
| 211 | ts_rsp_sign.o: ../../include/openssl/opensslconf.h | ||
| 212 | ts_rsp_sign.o: ../../include/openssl/opensslv.h | ||
| 213 | ts_rsp_sign.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs7.h | ||
| 214 | ts_rsp_sign.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 215 | ts_rsp_sign.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 216 | ts_rsp_sign.o: ../../include/openssl/symhacks.h ../../include/openssl/ts.h | ||
| 217 | ts_rsp_sign.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 218 | ts_rsp_sign.o: ../../include/openssl/x509v3.h ../cryptlib.h ts_rsp_sign.c | ||
| 219 | ts_rsp_utils.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 220 | ts_rsp_utils.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h | ||
| 221 | ts_rsp_utils.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h | ||
| 222 | ts_rsp_utils.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 223 | ts_rsp_utils.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h | ||
| 224 | ts_rsp_utils.o: ../../include/openssl/ecdh.h ../../include/openssl/ecdsa.h | ||
| 225 | ts_rsp_utils.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 226 | ts_rsp_utils.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h | ||
| 227 | ts_rsp_utils.o: ../../include/openssl/objects.h | ||
| 228 | ts_rsp_utils.o: ../../include/openssl/opensslconf.h | ||
| 229 | ts_rsp_utils.o: ../../include/openssl/opensslv.h | ||
| 230 | ts_rsp_utils.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs7.h | ||
| 231 | ts_rsp_utils.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 232 | ts_rsp_utils.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 233 | ts_rsp_utils.o: ../../include/openssl/symhacks.h ../../include/openssl/ts.h | ||
| 234 | ts_rsp_utils.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 235 | ts_rsp_utils.o: ../../include/openssl/x509v3.h ../cryptlib.h ts_rsp_utils.c | ||
| 236 | ts_rsp_verify.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 237 | ts_rsp_verify.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h | ||
| 238 | ts_rsp_verify.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h | ||
| 239 | ts_rsp_verify.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 240 | ts_rsp_verify.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h | ||
| 241 | ts_rsp_verify.o: ../../include/openssl/ecdh.h ../../include/openssl/ecdsa.h | ||
| 242 | ts_rsp_verify.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 243 | ts_rsp_verify.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h | ||
| 244 | ts_rsp_verify.o: ../../include/openssl/objects.h | ||
| 245 | ts_rsp_verify.o: ../../include/openssl/opensslconf.h | ||
| 246 | ts_rsp_verify.o: ../../include/openssl/opensslv.h | ||
| 247 | ts_rsp_verify.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs7.h | ||
| 248 | ts_rsp_verify.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 249 | ts_rsp_verify.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 250 | ts_rsp_verify.o: ../../include/openssl/symhacks.h ../../include/openssl/ts.h | ||
| 251 | ts_rsp_verify.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 252 | ts_rsp_verify.o: ../../include/openssl/x509v3.h ../cryptlib.h ts_rsp_verify.c | ||
| 253 | ts_verify_ctx.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 254 | ts_verify_ctx.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h | ||
| 255 | ts_verify_ctx.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h | ||
| 256 | ts_verify_ctx.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 257 | ts_verify_ctx.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h | ||
| 258 | ts_verify_ctx.o: ../../include/openssl/ecdh.h ../../include/openssl/ecdsa.h | ||
| 259 | ts_verify_ctx.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 260 | ts_verify_ctx.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h | ||
| 261 | ts_verify_ctx.o: ../../include/openssl/objects.h | ||
| 262 | ts_verify_ctx.o: ../../include/openssl/opensslconf.h | ||
| 263 | ts_verify_ctx.o: ../../include/openssl/opensslv.h | ||
| 264 | ts_verify_ctx.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs7.h | ||
| 265 | ts_verify_ctx.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 266 | ts_verify_ctx.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 267 | ts_verify_ctx.o: ../../include/openssl/symhacks.h ../../include/openssl/ts.h | ||
| 268 | ts_verify_ctx.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 269 | ts_verify_ctx.o: ../../include/openssl/x509v3.h ../cryptlib.h ts_verify_ctx.c | ||
diff --git a/src/lib/libcrypto/txt_db/Makefile.ssl b/src/lib/libcrypto/txt_db/Makefile.ssl deleted file mode 100644 index 6221dfae4d..0000000000 --- a/src/lib/libcrypto/txt_db/Makefile.ssl +++ /dev/null | |||
| @@ -1,88 +0,0 @@ | |||
| 1 | # | ||
| 2 | # SSLeay/crypto/txt_db/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= txt_db | ||
| 6 | TOP= ../.. | ||
| 7 | CC= cc | ||
| 8 | INCLUDES= | ||
| 9 | CFLAG=-g | ||
| 10 | INSTALL_PREFIX= | ||
| 11 | OPENSSLDIR= /usr/local/ssl | ||
| 12 | INSTALLTOP=/usr/local/ssl | ||
| 13 | MAKE= make -f Makefile.ssl | ||
| 14 | MAKEDEPPROG= makedepend | ||
| 15 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
| 16 | MAKEFILE= Makefile.ssl | ||
| 17 | AR= ar r | ||
| 18 | |||
| 19 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 20 | |||
| 21 | GENERAL=Makefile | ||
| 22 | TEST= | ||
| 23 | APPS= | ||
| 24 | |||
| 25 | LIB=$(TOP)/libcrypto.a | ||
| 26 | LIBSRC=txt_db.c | ||
| 27 | LIBOBJ=txt_db.o | ||
| 28 | |||
| 29 | SRC= $(LIBSRC) | ||
| 30 | |||
| 31 | EXHEADER= txt_db.h | ||
| 32 | HEADER= $(EXHEADER) | ||
| 33 | |||
| 34 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
| 35 | |||
| 36 | top: | ||
| 37 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
| 38 | |||
| 39 | all: lib | ||
| 40 | |||
| 41 | lib: $(LIBOBJ) | ||
| 42 | $(AR) $(LIB) $(LIBOBJ) | ||
| 43 | $(RANLIB) $(LIB) || echo Never mind. | ||
| 44 | @touch lib | ||
| 45 | |||
| 46 | files: | ||
| 47 | $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
| 48 | |||
| 49 | links: | ||
| 50 | @sh $(TOP)/util/point.sh Makefile.ssl Makefile | ||
| 51 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | ||
| 52 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | ||
| 53 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | ||
| 54 | |||
| 55 | install: | ||
| 56 | @for i in $(EXHEADER) ; \ | ||
| 57 | do \ | ||
| 58 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 59 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
| 60 | done; | ||
| 61 | |||
| 62 | tags: | ||
| 63 | ctags $(SRC) | ||
| 64 | |||
| 65 | tests: | ||
| 66 | |||
| 67 | lint: | ||
| 68 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
| 69 | |||
| 70 | depend: | ||
| 71 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) | ||
| 72 | |||
| 73 | dclean: | ||
| 74 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 75 | mv -f Makefile.new $(MAKEFILE) | ||
| 76 | |||
| 77 | clean: | ||
| 78 | rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
| 79 | |||
| 80 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 81 | |||
| 82 | txt_db.o: ../../e_os.h ../../include/openssl/bio.h | ||
| 83 | txt_db.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 84 | txt_db.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 85 | txt_db.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 86 | txt_db.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 87 | txt_db.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 88 | txt_db.o: ../../include/openssl/txt_db.h ../cryptlib.h txt_db.c | ||
diff --git a/src/lib/libcrypto/ui/Makefile.ssl b/src/lib/libcrypto/ui/Makefile.ssl deleted file mode 100644 index ba46951d1c..0000000000 --- a/src/lib/libcrypto/ui/Makefile.ssl +++ /dev/null | |||
| @@ -1,117 +0,0 @@ | |||
| 1 | # | ||
| 2 | # OpenSSL/crypto/ui/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= ui | ||
| 6 | TOP= ../.. | ||
| 7 | CC= cc | ||
| 8 | INCLUDES= -I.. -I$(TOP) -I../../include | ||
| 9 | CFLAG=-g | ||
| 10 | INSTALL_PREFIX= | ||
| 11 | OPENSSLDIR= /usr/local/ssl | ||
| 12 | INSTALLTOP=/usr/local/ssl | ||
| 13 | MAKE= make -f Makefile.ssl | ||
| 14 | MAKEDEPPROG= makedepend | ||
| 15 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
| 16 | MAKEFILE= Makefile.ssl | ||
| 17 | AR= ar r | ||
| 18 | |||
| 19 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 20 | |||
| 21 | GENERAL=Makefile | ||
| 22 | #TEST= uitest.c | ||
| 23 | TEST= | ||
| 24 | APPS= | ||
| 25 | |||
| 26 | COMPATSRC= ui_compat.c | ||
| 27 | COMPATOBJ= ui_compat.o | ||
| 28 | |||
| 29 | LIB=$(TOP)/libcrypto.a | ||
| 30 | LIBSRC= ui_err.c ui_lib.c ui_openssl.c ui_util.c $(COMPATSRC) | ||
| 31 | LIBOBJ= ui_err.o ui_lib.o ui_openssl.o ui_util.o $(COMPATOBJ) | ||
| 32 | |||
| 33 | SRC= $(LIBSRC) | ||
| 34 | |||
| 35 | EXHEADER= ui.h ui_compat.h | ||
| 36 | HEADER= $(EXHEADER) ui_locl.h | ||
| 37 | |||
| 38 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
| 39 | |||
| 40 | top: | ||
| 41 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
| 42 | |||
| 43 | all: lib | ||
| 44 | |||
| 45 | lib: $(LIBOBJ) | ||
| 46 | $(AR) $(LIB) $(LIBOBJ) | ||
| 47 | $(RANLIB) $(LIB) || echo Never mind. | ||
| 48 | @touch lib | ||
| 49 | |||
| 50 | files: | ||
| 51 | $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
| 52 | |||
| 53 | links: | ||
| 54 | @sh $(TOP)/util/point.sh Makefile.ssl Makefile | ||
| 55 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | ||
| 56 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | ||
| 57 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | ||
| 58 | |||
| 59 | install: | ||
| 60 | @for i in $(EXHEADER) ; \ | ||
| 61 | do \ | ||
| 62 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 63 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
| 64 | done; | ||
| 65 | |||
| 66 | tags: | ||
| 67 | ctags $(SRC) | ||
| 68 | |||
| 69 | tests: | ||
| 70 | |||
| 71 | lint: | ||
| 72 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
| 73 | |||
| 74 | depend: | ||
| 75 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) | ||
| 76 | |||
| 77 | dclean: | ||
| 78 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 79 | mv -f Makefile.new $(MAKEFILE) | ||
| 80 | |||
| 81 | clean: | ||
| 82 | rm -f *.o */*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
| 83 | |||
| 84 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 85 | |||
| 86 | ui_compat.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 87 | ui_compat.o: ../../include/openssl/opensslconf.h | ||
| 88 | ui_compat.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 89 | ui_compat.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 90 | ui_compat.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 91 | ui_compat.o: ui_compat.c | ||
| 92 | ui_err.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h | ||
| 93 | ui_err.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 94 | ui_err.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 95 | ui_err.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 96 | ui_err.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 97 | ui_err.o: ../../include/openssl/ui.h ui_err.c | ||
| 98 | ui_lib.o: ../../e_os.h ../../include/openssl/bio.h | ||
| 99 | ui_lib.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 100 | ui_lib.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 101 | ui_lib.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 102 | ui_lib.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 103 | ui_lib.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 104 | ui_lib.o: ../../include/openssl/ui.h ../cryptlib.h ui_lib.c ui_locl.h | ||
| 105 | ui_openssl.o: ../../e_os.h ../../include/openssl/bio.h | ||
| 106 | ui_openssl.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 107 | ui_openssl.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 108 | ui_openssl.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 109 | ui_openssl.o: ../../include/openssl/opensslv.h | ||
| 110 | ui_openssl.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 111 | ui_openssl.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 112 | ui_openssl.o: ../cryptlib.h ui_locl.h ui_openssl.c | ||
| 113 | ui_util.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 114 | ui_util.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 115 | ui_util.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 116 | ui_util.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 117 | ui_util.o: ui_util.c | ||
diff --git a/src/lib/libcrypto/util/copy.pl b/src/lib/libcrypto/util/copy.pl deleted file mode 100644 index eba6d5815e..0000000000 --- a/src/lib/libcrypto/util/copy.pl +++ /dev/null | |||
| @@ -1,70 +0,0 @@ | |||
| 1 | #!/usr/local/bin/perl | ||
| 2 | |||
| 3 | use Fcntl; | ||
| 4 | |||
| 5 | |||
| 6 | # copy.pl | ||
| 7 | |||
| 8 | # Perl script 'copy' comment. On Windows the built in "copy" command also | ||
| 9 | # copies timestamps: this messes up Makefile dependencies. | ||
| 10 | |||
| 11 | my $stripcr = 0; | ||
| 12 | |||
| 13 | my $arg; | ||
| 14 | |||
| 15 | foreach $arg (@ARGV) { | ||
| 16 | if ($arg eq "-stripcr") | ||
| 17 | { | ||
| 18 | $stripcr = 1; | ||
| 19 | next; | ||
| 20 | } | ||
| 21 | $arg =~ s|\\|/|g; # compensate for bug/feature in cygwin glob... | ||
| 22 | foreach (glob $arg) | ||
| 23 | { | ||
| 24 | push @filelist, $_; | ||
| 25 | } | ||
| 26 | } | ||
| 27 | |||
| 28 | $fnum = @filelist; | ||
| 29 | |||
| 30 | if ($fnum <= 1) | ||
| 31 | { | ||
| 32 | die "Need at least two filenames"; | ||
| 33 | } | ||
| 34 | |||
| 35 | $dest = pop @filelist; | ||
| 36 | |||
| 37 | if ($fnum > 2 && ! -d $dest) | ||
| 38 | { | ||
| 39 | die "Destination must be a directory"; | ||
| 40 | } | ||
| 41 | |||
| 42 | foreach (@filelist) | ||
| 43 | { | ||
| 44 | if (-d $dest) | ||
| 45 | { | ||
| 46 | $dfile = $_; | ||
| 47 | $dfile =~ s|^.*[/\\]([^/\\]*)$|$1|; | ||
| 48 | $dfile = "$dest/$dfile"; | ||
| 49 | } | ||
| 50 | else | ||
| 51 | { | ||
| 52 | $dfile = $dest; | ||
| 53 | } | ||
| 54 | sysopen(IN, $_, O_RDONLY|O_BINARY) || die "Can't Open $_"; | ||
| 55 | sysopen(OUT, $dfile, O_WRONLY|O_CREAT|O_TRUNC|O_BINARY) | ||
| 56 | || die "Can't Open $dfile"; | ||
| 57 | while (sysread IN, $buf, 10240) | ||
| 58 | { | ||
| 59 | if ($stripcr) | ||
| 60 | { | ||
| 61 | $buf =~ tr/\015//d; | ||
| 62 | } | ||
| 63 | syswrite(OUT, $buf, length($buf)); | ||
| 64 | } | ||
| 65 | close(IN); | ||
| 66 | close(OUT); | ||
| 67 | print "Copying: $_ to $dfile\n"; | ||
| 68 | } | ||
| 69 | |||
| 70 | |||
diff --git a/src/lib/libcrypto/util/extract-section.pl b/src/lib/libcrypto/util/extract-section.pl deleted file mode 100644 index 7a0ba4f69a..0000000000 --- a/src/lib/libcrypto/util/extract-section.pl +++ /dev/null | |||
| @@ -1,12 +0,0 @@ | |||
| 1 | #!/usr/bin/perl | ||
| 2 | |||
| 3 | while(<STDIN>) { | ||
| 4 | if (/=for\s+comment\s+openssl_manual_section:(\S+)/) | ||
| 5 | { | ||
| 6 | print "$1\n"; | ||
| 7 | exit 0; | ||
| 8 | } | ||
| 9 | } | ||
| 10 | |||
| 11 | print "$ARGV[0]\n"; | ||
| 12 | |||
diff --git a/src/lib/libcrypto/util/mkrc.pl b/src/lib/libcrypto/util/mkrc.pl deleted file mode 100755 index 0ceadcf8d1..0000000000 --- a/src/lib/libcrypto/util/mkrc.pl +++ /dev/null | |||
| @@ -1,71 +0,0 @@ | |||
| 1 | #!/bin/env perl | ||
| 2 | # | ||
| 3 | open FD,"crypto/opensslv.h"; | ||
| 4 | while(<FD>) { | ||
| 5 | if (/OPENSSL_VERSION_NUMBER\s+(0x[0-9a-f]+)/i) { | ||
| 6 | $ver = hex($1); | ||
| 7 | $v1 = ($ver>>28); | ||
| 8 | $v2 = ($ver>>20)&0xff; | ||
| 9 | $v3 = ($ver>>12)&0xff; | ||
| 10 | $v4 = ($ver>> 4)&0xff; | ||
| 11 | $beta = $ver&0xf; | ||
| 12 | $version = "$v1.$v2.$v3"; | ||
| 13 | if ($beta==0xf) { $version .= chr(ord('a')+$v4-1) if ($v4); } | ||
| 14 | elsif ($beta==0){ $version .= "-dev"; } | ||
| 15 | else { $version .= "-beta$beta"; } | ||
| 16 | last; | ||
| 17 | } | ||
| 18 | } | ||
| 19 | close(FD); | ||
| 20 | |||
| 21 | $filename = $ARGV[0]; $filename =~ /(.*)\.([^.]+)$/; | ||
| 22 | $basename = $1; | ||
| 23 | $extname = $2; | ||
| 24 | |||
| 25 | if ($extname =~ /dll/i) { $description = "OpenSSL shared library"; } | ||
| 26 | else { $description = "OpenSSL application"; } | ||
| 27 | |||
| 28 | print <<___; | ||
| 29 | #include <winver.h> | ||
| 30 | |||
| 31 | LANGUAGE 0x09,0x01 | ||
| 32 | |||
| 33 | 1 VERSIONINFO | ||
| 34 | FILEVERSION $v1,$v2,$v3,$v4 | ||
| 35 | PRODUCTVERSION $v1,$v2,$v3,$v4 | ||
| 36 | FILEFLAGSMASK 0x3fL | ||
| 37 | #ifdef _DEBUG | ||
| 38 | FILEFLAGS 0x01L | ||
| 39 | #else | ||
| 40 | FILEFLAGS 0x00L | ||
| 41 | #endif | ||
| 42 | FILEOS VOS__WINDOWS32 | ||
| 43 | FILETYPE VFT_DLL | ||
| 44 | FILESUBTYPE 0x0L | ||
| 45 | BEGIN | ||
| 46 | BLOCK "StringFileInfo" | ||
| 47 | BEGIN | ||
| 48 | BLOCK "040904b0" | ||
| 49 | BEGIN | ||
| 50 | // Required: | ||
| 51 | VALUE "CompanyName", "The OpenSSL Project, http://www.openssl.org/\\0" | ||
| 52 | VALUE "FileDescription", "$description\\0" | ||
| 53 | VALUE "FileVersion", "$version\\0" | ||
| 54 | VALUE "InternalName", "$basename\\0" | ||
| 55 | VALUE "OriginalFilename", "$filename\\0" | ||
| 56 | VALUE "ProductName", "The OpenSSL Toolkit\\0" | ||
| 57 | VALUE "ProductVersion", "$version\\0" | ||
| 58 | // Optional: | ||
| 59 | //VALUE "Comments", "\\0" | ||
| 60 | VALUE "LegalCopyright", "Copyright © 1998-2006 The OpenSSL Project. Copyright © 1995-1998 Eric A. Young, Tim J. Hudson. All rights reserved.\\0" | ||
| 61 | //VALUE "LegalTrademarks", "\\0" | ||
| 62 | //VALUE "PrivateBuild", "\\0" | ||
| 63 | //VALUE "SpecialBuild", "\\0" | ||
| 64 | END | ||
| 65 | END | ||
| 66 | BLOCK "VarFileInfo" | ||
| 67 | BEGIN | ||
| 68 | VALUE "Translation", 0x409, 0x4b0 | ||
| 69 | END | ||
| 70 | END | ||
| 71 | ___ | ||
diff --git a/src/lib/libcrypto/util/pl/Mingw32f.pl b/src/lib/libcrypto/util/pl/Mingw32f.pl deleted file mode 100644 index 44f5673d7a..0000000000 --- a/src/lib/libcrypto/util/pl/Mingw32f.pl +++ /dev/null | |||
| @@ -1,73 +0,0 @@ | |||
| 1 | #!/usr/local/bin/perl | ||
| 2 | # | ||
| 3 | # Mingw32f.pl -- copy files; Mingw32.pl is needed to do the compiling. | ||
| 4 | # | ||
| 5 | |||
| 6 | $o='\\'; | ||
| 7 | $cp='copy'; | ||
| 8 | $rm='del'; | ||
| 9 | |||
| 10 | # C compiler stuff | ||
| 11 | |||
| 12 | $cc='gcc'; | ||
| 13 | if ($debug) | ||
| 14 | { $cflags="-g2 -ggdb -DDSO_WIN32"; } | ||
| 15 | else | ||
| 16 | { $cflags="-O3 -fomit-frame-pointer -DDSO_WIN32"; } | ||
| 17 | |||
| 18 | $obj='.o'; | ||
| 19 | $ofile='-o '; | ||
| 20 | |||
| 21 | # EXE linking stuff | ||
| 22 | $link='${CC}'; | ||
| 23 | $lflags='${CFLAGS}'; | ||
| 24 | $efile='-o '; | ||
| 25 | $exep=''; | ||
| 26 | $ex_libs="-lwsock32 -lgdi32"; | ||
| 27 | |||
| 28 | # static library stuff | ||
| 29 | $mklib='ar r'; | ||
| 30 | $mlflags=''; | ||
| 31 | $ranlib='ranlib'; | ||
| 32 | $plib='lib'; | ||
| 33 | $libp=".a"; | ||
| 34 | $shlibp=".a"; | ||
| 35 | $lfile=''; | ||
| 36 | |||
| 37 | $asm='as'; | ||
| 38 | $afile='-o '; | ||
| 39 | $bn_asm_obj=""; | ||
| 40 | $bn_asm_src=""; | ||
| 41 | $des_enc_obj=""; | ||
| 42 | $des_enc_src=""; | ||
| 43 | $bf_enc_obj=""; | ||
| 44 | $bf_enc_src=""; | ||
| 45 | |||
| 46 | sub do_lib_rule | ||
| 47 | { | ||
| 48 | local($obj,$target,$name,$shlib)=@_; | ||
| 49 | local($ret,$_,$Name); | ||
| 50 | |||
| 51 | $target =~ s/\//$o/g if $o ne '/'; | ||
| 52 | $target="$target"; | ||
| 53 | ($Name=$name) =~ tr/a-z/A-Z/; | ||
| 54 | |||
| 55 | $ret.="$target: \$(${Name}OBJ)\n"; | ||
| 56 | $ret.="\t\$(RM) $target\n"; | ||
| 57 | $ret.="\t\$(MKLIB) $target \$(${Name}OBJ)\n"; | ||
| 58 | $ret.="\t\$(RANLIB) $target\n\n"; | ||
| 59 | } | ||
| 60 | |||
| 61 | sub do_link_rule | ||
| 62 | { | ||
| 63 | local($target,$files,$dep_libs,$libs)=@_; | ||
| 64 | local($ret,$_); | ||
| 65 | |||
| 66 | $file =~ s/\//$o/g if $o ne '/'; | ||
| 67 | $n=&bname($target); | ||
| 68 | $ret.="$target: $files $dep_libs\n"; | ||
| 69 | $ret.="\t\$(LINK) ${efile}$target \$(LFLAGS) $files $libs\n\n"; | ||
| 70 | return($ret); | ||
| 71 | } | ||
| 72 | 1; | ||
| 73 | |||
diff --git a/src/lib/libcrypto/util/pl/netware.pl b/src/lib/libcrypto/util/pl/netware.pl deleted file mode 100644 index c78bcfc874..0000000000 --- a/src/lib/libcrypto/util/pl/netware.pl +++ /dev/null | |||
| @@ -1,532 +0,0 @@ | |||
| 1 | # Metrowerks Codewarrior or gcc / nlmconv for NetWare | ||
| 2 | # | ||
| 3 | |||
| 4 | $version_header = "crypto/opensslv.h"; | ||
| 5 | open(IN, "$version_header") or die "Couldn't open $version_header: $!"; | ||
| 6 | while (<IN>) { | ||
| 7 | if (/^#define[\s\t]+OPENSSL_VERSION_NUMBER[\s\t]+0x(\d)(\d{2})(\d{2})(\d{2})/) | ||
| 8 | { | ||
| 9 | # die "OpenSSL version detected: $1.$2.$3.$4\n"; | ||
| 10 | #$nlmvernum = "$1,$2,$3"; | ||
| 11 | $nlmvernum = "$1,".($2*10+$3).",".($4*1); | ||
| 12 | #$nlmverstr = "$1.".($2*1).".".($3*1).($4?(chr(96+$4)):""); | ||
| 13 | break; | ||
| 14 | } | ||
| 15 | } | ||
| 16 | close(IN) or die "Couldn't close $version_header: $!"; | ||
| 17 | |||
| 18 | $readme_file = "README"; | ||
| 19 | open(IN, $readme_file) or die "Couldn't open $readme_file: $!"; | ||
| 20 | while (<IN>) { | ||
| 21 | if (/^[\s\t]+OpenSSL[\s\t]+(\d)\.(\d{1,2})\.(\d{1,2})([a-z])(.*)/) | ||
| 22 | { | ||
| 23 | #$nlmvernum = "$1,$2,$3"; | ||
| 24 | #$nlmvernum = "$1,".($2*10+$3).",".($4*1); | ||
| 25 | $nlmverstr = "$1.$2.$3$4$5"; | ||
| 26 | } | ||
| 27 | elsif (/^[\s\t]+(Copyright \(c\) \d{4}\-\d{4} The OpenSSL Project)$/) | ||
| 28 | { | ||
| 29 | $nlmcpystr = $1; | ||
| 30 | } | ||
| 31 | break if ($nlmvernum && $nlmcpystr); | ||
| 32 | } | ||
| 33 | close(IN) or die "Couldn't close $readme_file: $!"; | ||
| 34 | |||
| 35 | # Define stacksize here | ||
| 36 | $nlmstack = "32768"; | ||
| 37 | |||
| 38 | # some default settings here in case we failed to find them in README | ||
| 39 | $nlmvernum = "1,0,0" if (!$nlmvernum); | ||
| 40 | $nlmverstr = "OpenSSL" if (!$nlmverstr); | ||
| 41 | $nlmcpystr = "Copyright (c) 1998-now The OpenSSL Project" if (!$nlmcpystr); | ||
| 42 | |||
| 43 | # die "OpenSSL copyright: $nlmcpystr\nOpenSSL verstring: $nlmverstr\nOpenSSL vernumber: $nlmvernum\n"; | ||
| 44 | |||
| 45 | # The import files and other misc imports needed to link | ||
| 46 | @misc_imports = ("GetProcessSwitchCount", "RunningProcess", | ||
| 47 | "GetSuperHighResolutionTimer"); | ||
| 48 | if ($LIBC) | ||
| 49 | { | ||
| 50 | @import_files = ("libc.imp"); | ||
| 51 | @module_files = ("libc"); | ||
| 52 | $libarch = "LIBC"; | ||
| 53 | } | ||
| 54 | else | ||
| 55 | { | ||
| 56 | # clib build | ||
| 57 | @import_files = ("clib.imp"); | ||
| 58 | push(@import_files, "socklib.imp") if ($BSDSOCK); | ||
| 59 | @module_files = ("clib"); | ||
| 60 | # push(@misc_imports, "_rt_modu64%16", "_rt_divu64%16"); | ||
| 61 | $libarch = "CLIB"; | ||
| 62 | } | ||
| 63 | if ($BSDSOCK) | ||
| 64 | { | ||
| 65 | $libarch .= "-BSD"; | ||
| 66 | } | ||
| 67 | else | ||
| 68 | { | ||
| 69 | $libarch .= "-WS2"; | ||
| 70 | push(@import_files, "ws2nlm.imp"); | ||
| 71 | } | ||
| 72 | |||
| 73 | # The "IMPORTS" environment variable must be set and point to the location | ||
| 74 | # where import files (*.imp) can be found. | ||
| 75 | # Example: set IMPORTS=c:\ndk\nwsdk\imports | ||
| 76 | $import_path = $ENV{"IMPORTS"} || die ("IMPORTS environment variable not set\n"); | ||
| 77 | |||
| 78 | |||
| 79 | # The "PRELUDE" environment variable must be set and point to the location | ||
| 80 | # and name of the prelude source to link with ( nwpre.obj is recommended ). | ||
| 81 | # Example: set PRELUDE=c:\codewar\novell support\metrowerks support\libraries\runtime\nwpre.obj | ||
| 82 | $prelude = $ENV{"PRELUDE"} || die ("PRELUDE environment variable not set\n"); | ||
| 83 | |||
| 84 | # The "INCLUDES" environment variable must be set and point to the location | ||
| 85 | # where import files (*.imp) can be found. | ||
| 86 | $include_path = $ENV{"INCLUDE"} || die ("INCLUDES environment variable not set\n"); | ||
| 87 | $include_path =~ s/\\/\//g; | ||
| 88 | $include_path = join(" -I", split(/;/, $include_path)); | ||
| 89 | |||
| 90 | # check for gcc compiler | ||
| 91 | $gnuc = $ENV{"GNUC"}; | ||
| 92 | |||
| 93 | #$ssl= "ssleay32"; | ||
| 94 | #$crypto="libeay32"; | ||
| 95 | |||
| 96 | if ($gnuc) | ||
| 97 | { | ||
| 98 | # C compiler | ||
| 99 | $cc='gcc'; | ||
| 100 | # Linker | ||
| 101 | $link='nlmconv'; | ||
| 102 | # librarian | ||
| 103 | $mklib='ar'; | ||
| 104 | $o='/'; | ||
| 105 | # cp command | ||
| 106 | $cp='cp -af'; | ||
| 107 | # rm command | ||
| 108 | $rm='rm -f'; | ||
| 109 | # mv command | ||
| 110 | $mv='mv -f'; | ||
| 111 | # mkdir command | ||
| 112 | $mkdir='gmkdir'; | ||
| 113 | #$ranlib='ranlib'; | ||
| 114 | } | ||
| 115 | else | ||
| 116 | { | ||
| 117 | # C compiler | ||
| 118 | $cc='mwccnlm'; | ||
| 119 | # Linker | ||
| 120 | $link='mwldnlm'; | ||
| 121 | # librarian | ||
| 122 | $mklib='mwldnlm'; | ||
| 123 | # Path separator | ||
| 124 | $o='\\'; | ||
| 125 | # cp command | ||
| 126 | $cp='copy >nul:'; | ||
| 127 | # rm command | ||
| 128 | $rm='del /f /q'; | ||
| 129 | } | ||
| 130 | |||
| 131 | # assembler | ||
| 132 | if ($nw_nasm) | ||
| 133 | { | ||
| 134 | $asm=(`nasm -v 2>NUL` gt `nasmw -v 2>NUL`?"nasm":"nasmw"); | ||
| 135 | if ($gnuc) | ||
| 136 | { | ||
| 137 | $asm.=" -s -f elf"; | ||
| 138 | } | ||
| 139 | else | ||
| 140 | { | ||
| 141 | $asm.=" -s -f coff -d __coff__"; | ||
| 142 | } | ||
| 143 | $afile="-o "; | ||
| 144 | $asm.=" -g" if $debug; | ||
| 145 | } | ||
| 146 | elsif ($nw_mwasm) | ||
| 147 | { | ||
| 148 | $asm="mwasmnlm -maxerrors 20"; | ||
| 149 | $afile="-o "; | ||
| 150 | $asm.=" -g" if $debug; | ||
| 151 | } | ||
| 152 | elsif ($nw_masm) | ||
| 153 | { | ||
| 154 | # masm assembly settings - it should be possible to use masm but haven't | ||
| 155 | # got it working. | ||
| 156 | # $asm='ml /Cp /coff /c /Cx'; | ||
| 157 | # $asm.=" /Zi" if $debug; | ||
| 158 | # $afile='/Fo'; | ||
| 159 | die("Support for masm assembler not yet functional\n"); | ||
| 160 | } | ||
| 161 | else | ||
| 162 | { | ||
| 163 | $asm=""; | ||
| 164 | $afile=""; | ||
| 165 | } | ||
| 166 | |||
| 167 | |||
| 168 | |||
| 169 | if ($gnuc) | ||
| 170 | { | ||
| 171 | # compile flags for GNUC | ||
| 172 | # additional flags based upon debug | non-debug | ||
| 173 | if ($debug) | ||
| 174 | { | ||
| 175 | $cflags="-g -DDEBUG"; | ||
| 176 | } | ||
| 177 | else | ||
| 178 | { | ||
| 179 | $cflags="-O2"; | ||
| 180 | } | ||
| 181 | $cflags.=" -nostdinc -I$include_path \\ | ||
| 182 | -fno-builtin -fpcc-struct-return -fno-strict-aliasing \\ | ||
| 183 | -funsigned-char -Wall -Wno-unused -Wno-uninitialized"; | ||
| 184 | |||
| 185 | # link flags | ||
| 186 | $lflags="-T"; | ||
| 187 | } | ||
| 188 | else | ||
| 189 | { | ||
| 190 | # compile flags for CodeWarrior | ||
| 191 | # additional flags based upon debug | non-debug | ||
| 192 | if ($debug) | ||
| 193 | { | ||
| 194 | $cflags="-opt off -g -sym internal -DDEBUG"; | ||
| 195 | } | ||
| 196 | else | ||
| 197 | { | ||
| 198 | # CodeWarrior compiler has a problem with optimizations for floating | ||
| 199 | # points - no optimizations until further investigation | ||
| 200 | # $cflags="-opt all"; | ||
| 201 | } | ||
| 202 | |||
| 203 | # NOTES: Several c files in the crypto subdirectory include headers from | ||
| 204 | # their local directories. Metrowerks wouldn't find these h files | ||
| 205 | # without adding individual include directives as compile flags | ||
| 206 | # or modifying the c files. Instead of adding individual include | ||
| 207 | # paths for each subdirectory a recursive include directive | ||
| 208 | # is used ( -ir crypto ). | ||
| 209 | # | ||
| 210 | # A similar issue exists for the engines and apps subdirectories. | ||
| 211 | # | ||
| 212 | # Turned off the "possible" warnings ( -w nopossible ). Metrowerks | ||
| 213 | # complained a lot about various stuff. May want to turn back | ||
| 214 | # on for further development. | ||
| 215 | $cflags.=" -nostdinc -ir crypto -ir engines -ir apps -I$include_path \\ | ||
| 216 | -msgstyle gcc -align 4 -processor pentium -char unsigned \\ | ||
| 217 | -w on -w nolargeargs -w nopossible -w nounusedarg -w nounusedexpr \\ | ||
| 218 | -w noimplicitconv -relax_pointers -nosyspath -maxerrors 20"; | ||
| 219 | |||
| 220 | # link flags | ||
| 221 | $lflags="-msgstyle gcc -zerobss -nostdlib -sym internal -commandfile"; | ||
| 222 | } | ||
| 223 | |||
| 224 | # common defines | ||
| 225 | $cflags.=" -DL_ENDIAN -DOPENSSL_SYSNAME_NETWARE -U_WIN32"; | ||
| 226 | |||
| 227 | # If LibC build add in NKS_LIBC define and set the entry/exit | ||
| 228 | # routines - The default entry/exit routines are for CLib and don't exist | ||
| 229 | # in LibC | ||
| 230 | if ($LIBC) | ||
| 231 | { | ||
| 232 | $cflags.=" -DNETWARE_LIBC"; | ||
| 233 | $nlmstart = "_LibCPrelude"; | ||
| 234 | $nlmexit = "_LibCPostlude"; | ||
| 235 | @nlm_flags = ("pseudopreemption", "flag_on 64"); | ||
| 236 | } | ||
| 237 | else | ||
| 238 | { | ||
| 239 | $cflags.=" -DNETWARE_CLIB"; | ||
| 240 | $nlmstart = "_Prelude"; | ||
| 241 | $nlmexit = "_Stop"; | ||
| 242 | } | ||
| 243 | |||
| 244 | # If BSD Socket support is requested, set a define for the compiler | ||
| 245 | if ($BSDSOCK) | ||
| 246 | { | ||
| 247 | $cflags.=" -DNETWARE_BSDSOCK"; | ||
| 248 | if (!$LIBC) | ||
| 249 | { | ||
| 250 | $cflags.=" -DNETDB_USE_INTERNET"; | ||
| 251 | } | ||
| 252 | } | ||
| 253 | |||
| 254 | |||
| 255 | # linking stuff | ||
| 256 | # for the output directories use the mk1mf.pl values with "_nw" appended | ||
| 257 | if ($shlib) | ||
| 258 | { | ||
| 259 | if ($LIBC) | ||
| 260 | { | ||
| 261 | $out_def.="_nw_libc_nlm"; | ||
| 262 | $tmp_def.="_nw_libc_nlm"; | ||
| 263 | $inc_def.="_nw_libc_nlm"; | ||
| 264 | } | ||
| 265 | else # NETWARE_CLIB | ||
| 266 | { | ||
| 267 | $out_def.="_nw_clib_nlm"; | ||
| 268 | $tmp_def.="_nw_clib_nlm"; | ||
| 269 | $inc_def.="_nw_clib_nlm"; | ||
| 270 | } | ||
| 271 | } | ||
| 272 | else | ||
| 273 | { | ||
| 274 | if ($gnuc) # GNUC Tools | ||
| 275 | { | ||
| 276 | $libp=".a"; | ||
| 277 | $shlibp=".a"; | ||
| 278 | $lib_flags="-cr"; | ||
| 279 | } | ||
| 280 | else # CodeWarrior | ||
| 281 | { | ||
| 282 | $libp=".lib"; | ||
| 283 | $shlibp=".lib"; | ||
| 284 | $lib_flags="-nodefaults -type library -o"; | ||
| 285 | } | ||
| 286 | if ($LIBC) | ||
| 287 | { | ||
| 288 | $out_def.="_nw_libc"; | ||
| 289 | $tmp_def.="_nw_libc"; | ||
| 290 | $inc_def.="_nw_libc"; | ||
| 291 | } | ||
| 292 | else # NETWARE_CLIB | ||
| 293 | { | ||
| 294 | $out_def.="_nw_clib"; | ||
| 295 | $tmp_def.="_nw_clib"; | ||
| 296 | $inc_def.="_nw_clib"; | ||
| 297 | } | ||
| 298 | } | ||
| 299 | |||
| 300 | # used by mk1mf.pl | ||
| 301 | $obj='.o'; | ||
| 302 | $ofile='-o '; | ||
| 303 | $efile=''; | ||
| 304 | $exep='.nlm'; | ||
| 305 | $ex_libs=''; | ||
| 306 | |||
| 307 | if (!$no_asm) | ||
| 308 | { | ||
| 309 | $bn_asm_obj="\$(OBJ_D)${o}bn-nw${obj}"; | ||
| 310 | $bn_asm_src="crypto${o}bn${o}asm${o}bn-nw.asm"; | ||
| 311 | $bnco_asm_obj="\$(OBJ_D)${o}co-nw${obj}"; | ||
| 312 | $bnco_asm_src="crypto${o}bn${o}asm${o}co-nw.asm"; | ||
| 313 | $aes_asm_obj="\$(OBJ_D)${o}a-nw${obj}"; | ||
| 314 | $aes_asm_src="crypto${o}aes${o}asm${o}a-nw.asm"; | ||
| 315 | $des_enc_obj="\$(OBJ_D)${o}d-nw${obj} \$(OBJ_D)${o}y-nw${obj}"; | ||
| 316 | $des_enc_src="crypto${o}des${o}asm${o}d-nw.asm crypto${o}des${o}asm${o}y-nw.asm"; | ||
| 317 | $bf_enc_obj="\$(OBJ_D)${o}b-nw${obj}"; | ||
| 318 | $bf_enc_src="crypto${o}bf${o}asm${o}b-nw.asm"; | ||
| 319 | $cast_enc_obj="\$(OBJ_D)${o}c-nw${obj}"; | ||
| 320 | $cast_enc_src="crypto${o}cast${o}asm${o}c-nw.asm"; | ||
| 321 | $rc4_enc_obj="\$(OBJ_D)${o}r4-nw${obj}"; | ||
| 322 | $rc4_enc_src="crypto${o}rc4${o}asm${o}r4-nw.asm"; | ||
| 323 | $rc5_enc_obj="\$(OBJ_D)${o}r5-nw${obj}"; | ||
| 324 | $rc5_enc_src="crypto${o}rc5${o}asm${o}r5-nw.asm"; | ||
| 325 | $md5_asm_obj="\$(OBJ_D)${o}m5-nw${obj}"; | ||
| 326 | $md5_asm_src="crypto${o}md5${o}asm${o}m5-nw.asm"; | ||
| 327 | $sha1_asm_obj="\$(OBJ_D)${o}s1-nw${obj} \$(OBJ_D)${o}sha256-nw${obj} \$(OBJ_D)${o}sha512-nw${obj}"; | ||
| 328 | $sha1_asm_src="crypto${o}sha${o}asm${o}s1-nw.asm crypto${o}sha${o}asm${o}sha256-nw.asm crypto${o}sha${o}asm${o}sha512-nw.asm"; | ||
| 329 | $rmd160_asm_obj="\$(OBJ_D)${o}rm-nw${obj}"; | ||
| 330 | $rmd160_asm_src="crypto${o}ripemd${o}asm${o}rm-nw.asm"; | ||
| 331 | $whirlpool_asm_obj="\$(OBJ_D)${o}wp-nw${obj}"; | ||
| 332 | $whirlpool_asm_src="crypto${o}whrlpool${o}asm${o}wp-nw.asm"; | ||
| 333 | $cpuid_asm_obj="\$(OBJ_D)${o}x86cpuid-nw${obj}"; | ||
| 334 | $cpuid_asm_src="crypto${o}x86cpuid-nw.asm"; | ||
| 335 | $cflags.=" -DOPENSSL_CPUID_OBJ -DBN_ASM -DOPENSSL_BN_ASM_PART_WORDS -DMD5_ASM -DWHIRLPOOL_ASM"; | ||
| 336 | $cflags.=" -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM"; | ||
| 337 | $cflags.=" -DAES_ASM -DRMD160_ASM"; | ||
| 338 | } | ||
| 339 | else | ||
| 340 | { | ||
| 341 | $bn_asm_obj=''; | ||
| 342 | $bn_asm_src=''; | ||
| 343 | $bnco_asm_obj=''; | ||
| 344 | $bnco_asm_src=''; | ||
| 345 | $aes_asm_obj=''; | ||
| 346 | $aes_asm_src=''; | ||
| 347 | $des_enc_obj=''; | ||
| 348 | $des_enc_src=''; | ||
| 349 | $bf_enc_obj=''; | ||
| 350 | $bf_enc_src=''; | ||
| 351 | $cast_enc_obj=''; | ||
| 352 | $cast_enc_src=''; | ||
| 353 | $rc4_enc_obj=''; | ||
| 354 | $rc4_enc_src=''; | ||
| 355 | $rc5_enc_obj=''; | ||
| 356 | $rc5_enc_src=''; | ||
| 357 | $md5_asm_obj=''; | ||
| 358 | $md5_asm_src=''; | ||
| 359 | $sha1_asm_obj=''; | ||
| 360 | $sha1_asm_src=''; | ||
| 361 | $rmd160_asm_obj=''; | ||
| 362 | $rmd160_asm_src=''; | ||
| 363 | $whirlpool_asm_obj=''; | ||
| 364 | $whirlpool_asm_src=''; | ||
| 365 | $cpuid_asm_obj=''; | ||
| 366 | $cpuid_asm_src=''; | ||
| 367 | } | ||
| 368 | |||
| 369 | # create the *.def linker command files in \openssl\netware\ directory | ||
| 370 | sub do_def_file | ||
| 371 | { | ||
| 372 | # strip off the leading path | ||
| 373 | my($target) = bname(shift); | ||
| 374 | my($i); | ||
| 375 | |||
| 376 | if ($target =~ /(.*).nlm/) | ||
| 377 | { | ||
| 378 | $target = $1; | ||
| 379 | } | ||
| 380 | |||
| 381 | # special case for openssl - the mk1mf.pl defines E_EXE = openssl | ||
| 382 | if ($target =~ /E_EXE/) | ||
| 383 | { | ||
| 384 | $target =~ s/\$\(E_EXE\)/openssl/; | ||
| 385 | } | ||
| 386 | |||
| 387 | # Note: originally tried to use full path ( \openssl\netware\$target.def ) | ||
| 388 | # Metrowerks linker choked on this with an assertion failure. bug??? | ||
| 389 | # | ||
| 390 | my($def_file) = "netware${o}$target.def"; | ||
| 391 | |||
| 392 | open(DEF_OUT, ">$def_file") || die("unable to open file $def_file\n"); | ||
| 393 | |||
| 394 | print( DEF_OUT "# command file generated by netware.pl for NLM target.\n" ); | ||
| 395 | print( DEF_OUT "# do not edit this file - all your changes will be lost!!\n" ); | ||
| 396 | print( DEF_OUT "#\n"); | ||
| 397 | print( DEF_OUT "DESCRIPTION \"$target ($libarch) - OpenSSL $nlmverstr\"\n"); | ||
| 398 | print( DEF_OUT "COPYRIGHT \"$nlmcpystr\"\n"); | ||
| 399 | print( DEF_OUT "VERSION $nlmvernum\n"); | ||
| 400 | print( DEF_OUT "STACK $nlmstack\n"); | ||
| 401 | print( DEF_OUT "START $nlmstart\n"); | ||
| 402 | print( DEF_OUT "EXIT $nlmexit\n"); | ||
| 403 | |||
| 404 | # special case for openssl | ||
| 405 | if ($target eq "openssl") | ||
| 406 | { | ||
| 407 | print( DEF_OUT "SCREENNAME \"OpenSSL $nlmverstr\"\n"); | ||
| 408 | } | ||
| 409 | else | ||
| 410 | { | ||
| 411 | print( DEF_OUT "SCREENNAME \"DEFAULT\"\n"); | ||
| 412 | } | ||
| 413 | |||
| 414 | foreach $i (@misc_imports) | ||
| 415 | { | ||
| 416 | print( DEF_OUT "IMPORT $i\n"); | ||
| 417 | } | ||
| 418 | |||
| 419 | foreach $i (@import_files) | ||
| 420 | { | ||
| 421 | print( DEF_OUT "IMPORT \@$import_path${o}$i\n"); | ||
| 422 | } | ||
| 423 | |||
| 424 | foreach $i (@module_files) | ||
| 425 | { | ||
| 426 | print( DEF_OUT "MODULE $i\n"); | ||
| 427 | } | ||
| 428 | |||
| 429 | foreach $i (@nlm_flags) | ||
| 430 | { | ||
| 431 | print( DEF_OUT "$i\n"); | ||
| 432 | } | ||
| 433 | |||
| 434 | if ($gnuc) | ||
| 435 | { | ||
| 436 | if ($target =~ /openssl/) | ||
| 437 | { | ||
| 438 | print( DEF_OUT "INPUT ${tmp_def}${o}openssl${obj}\n"); | ||
| 439 | print( DEF_OUT "INPUT ${tmp_def}${o}openssl${libp}\n"); | ||
| 440 | } | ||
| 441 | else | ||
| 442 | { | ||
| 443 | print( DEF_OUT "INPUT ${tmp_def}${o}${target}${obj}\n"); | ||
| 444 | } | ||
| 445 | print( DEF_OUT "INPUT $prelude\n"); | ||
| 446 | print( DEF_OUT "INPUT ${out_def}${o}${ssl}${libp} ${out_def}${o}${crypto}${libp}\n"); | ||
| 447 | print( DEF_OUT "OUTPUT $target.nlm\n"); | ||
| 448 | } | ||
| 449 | |||
| 450 | close(DEF_OUT); | ||
| 451 | return($def_file); | ||
| 452 | } | ||
| 453 | |||
| 454 | sub do_lib_rule | ||
| 455 | { | ||
| 456 | my($objs,$target,$name,$shlib)=@_; | ||
| 457 | my($ret); | ||
| 458 | |||
| 459 | $ret.="$target: $objs\n"; | ||
| 460 | if (!$shlib) | ||
| 461 | { | ||
| 462 | $ret.="\t\@echo Building Lib: $name\n"; | ||
| 463 | $ret.="\t\$(MKLIB) $lib_flags $target $objs\n"; | ||
| 464 | $ret.="\t\@echo .\n" | ||
| 465 | } | ||
| 466 | else | ||
| 467 | { | ||
| 468 | die( "Building as NLM not currently supported!" ); | ||
| 469 | } | ||
| 470 | |||
| 471 | $ret.="\n"; | ||
| 472 | return($ret); | ||
| 473 | } | ||
| 474 | |||
| 475 | sub do_link_rule | ||
| 476 | { | ||
| 477 | my($target,$files,$dep_libs,$libs)=@_; | ||
| 478 | my($ret); | ||
| 479 | my($def_file) = do_def_file($target); | ||
| 480 | |||
| 481 | $ret.="$target: $files $dep_libs\n"; | ||
| 482 | |||
| 483 | # NOTE: When building the test nlms no screen name is given | ||
| 484 | # which causes the console screen to be used. By using the console | ||
| 485 | # screen there is no "<press any key to continue>" message which | ||
| 486 | # requires user interaction. The test script ( do_tests.pl ) needs | ||
| 487 | # to be able to run the tests without requiring user interaction. | ||
| 488 | # | ||
| 489 | # However, the sample program "openssl.nlm" is used by the tests and is | ||
| 490 | # a interactive sample so a screen is desired when not be run by the | ||
| 491 | # tests. To solve the problem, two versions of the program are built: | ||
| 492 | # openssl2 - no screen used by tests | ||
| 493 | # openssl - default screen - use for normal interactive modes | ||
| 494 | # | ||
| 495 | |||
| 496 | # special case for openssl - the mk1mf.pl defines E_EXE = openssl | ||
| 497 | if ($target =~ /E_EXE/) | ||
| 498 | { | ||
| 499 | my($target2) = $target; | ||
| 500 | |||
| 501 | $target2 =~ s/\(E_EXE\)/\(E_EXE\)2/; | ||
| 502 | |||
| 503 | # openssl2 | ||
| 504 | my($def_file2) = do_def_file($target2); | ||
| 505 | |||
| 506 | if ($gnuc) | ||
| 507 | { | ||
| 508 | $ret.="\t\$(MKLIB) $lib_flags \$(TMP_D)${o}\$(E_EXE).a \$(filter-out \$(TMP_D)${o}\$(E_EXE)${obj},$files)\n"; | ||
| 509 | $ret.="\t\$(LINK) \$(LFLAGS) $def_file2\n"; | ||
| 510 | $ret.="\t\@$mv \$(E_EXE)2.nlm \$(TEST_D)\n"; | ||
| 511 | } | ||
| 512 | else | ||
| 513 | { | ||
| 514 | $ret.="\t\$(LINK) \$(LFLAGS) $def_file2 $files \"$prelude\" $libs -o $target2\n"; | ||
| 515 | } | ||
| 516 | } | ||
| 517 | if ($gnuc) | ||
| 518 | { | ||
| 519 | $ret.="\t\$(LINK) \$(LFLAGS) $def_file\n"; | ||
| 520 | $ret.="\t\@$mv \$(\@F) \$(TEST_D)\n"; | ||
| 521 | } | ||
| 522 | else | ||
| 523 | { | ||
| 524 | $ret.="\t\$(LINK) \$(LFLAGS) $def_file $files \"$prelude\" $libs -o $target\n"; | ||
| 525 | } | ||
| 526 | |||
| 527 | $ret.="\n"; | ||
| 528 | return($ret); | ||
| 529 | |||
| 530 | } | ||
| 531 | |||
| 532 | 1; | ||
diff --git a/src/lib/libcrypto/vms_rms.h b/src/lib/libcrypto/vms_rms.h deleted file mode 100755 index 00a00d993f..0000000000 --- a/src/lib/libcrypto/vms_rms.h +++ /dev/null | |||
| @@ -1,51 +0,0 @@ | |||
| 1 | |||
| 2 | #ifdef NAML$C_MAXRSS | ||
| 3 | |||
| 4 | # define CC_RMS_NAMX cc$rms_naml | ||
| 5 | # define FAB_NAMX fab$l_naml | ||
| 6 | # define FAB_OR_NAML( fab, naml) naml | ||
| 7 | # define FAB_OR_NAML_DNA naml$l_long_defname | ||
| 8 | # define FAB_OR_NAML_DNS naml$l_long_defname_size | ||
| 9 | # define FAB_OR_NAML_FNA naml$l_long_filename | ||
| 10 | # define FAB_OR_NAML_FNS naml$l_long_filename_size | ||
| 11 | # define NAMX_ESA naml$l_long_expand | ||
| 12 | # define NAMX_ESL naml$l_long_expand_size | ||
| 13 | # define NAMX_ESS naml$l_long_expand_alloc | ||
| 14 | # define NAMX_NOP naml$b_nop | ||
| 15 | # define SET_NAMX_NO_SHORT_UPCASE( nam) nam.naml$v_no_short_upcase = 1 | ||
| 16 | |||
| 17 | # if __INITIAL_POINTER_SIZE == 64 | ||
| 18 | # define NAMX_DNA_FNA_SET(fab) fab.fab$l_dna = (__char_ptr32) -1; \ | ||
| 19 | fab.fab$l_fna = (__char_ptr32) -1; | ||
| 20 | # else /* __INITIAL_POINTER_SIZE == 64 */ | ||
| 21 | # define NAMX_DNA_FNA_SET(fab) fab.fab$l_dna = (char *) -1; \ | ||
| 22 | fab.fab$l_fna = (char *) -1; | ||
| 23 | # endif /* __INITIAL_POINTER_SIZE == 64 [else] */ | ||
| 24 | |||
| 25 | # define NAMX_MAXRSS NAML$C_MAXRSS | ||
| 26 | # define NAMX_STRUCT NAML | ||
| 27 | |||
| 28 | #else /* def NAML$C_MAXRSS */ | ||
| 29 | |||
| 30 | # define CC_RMS_NAMX cc$rms_nam | ||
| 31 | # define FAB_NAMX fab$l_nam | ||
| 32 | # define FAB_OR_NAML( fab, naml) fab | ||
| 33 | # define FAB_OR_NAML_DNA fab$l_dna | ||
| 34 | # define FAB_OR_NAML_DNS fab$b_dns | ||
| 35 | # define FAB_OR_NAML_FNA fab$l_fna | ||
| 36 | # define FAB_OR_NAML_FNS fab$b_fns | ||
| 37 | # define NAMX_ESA nam$l_esa | ||
| 38 | # define NAMX_ESL nam$b_esl | ||
| 39 | # define NAMX_ESS nam$b_ess | ||
| 40 | # define NAMX_NOP nam$b_nop | ||
| 41 | # define NAMX_DNA_FNA_SET(fab) | ||
| 42 | # define NAMX_MAXRSS NAM$C_MAXRSS | ||
| 43 | # define NAMX_STRUCT NAM | ||
| 44 | # ifdef NAM$M_NO_SHORT_UPCASE | ||
| 45 | # define SET_NAMX_NO_SHORT_UPCASE( nam) naml.naml$v_no_short_upcase = 1 | ||
| 46 | # else /* def NAM$M_NO_SHORT_UPCASE */ | ||
| 47 | # define SET_NAMX_NO_SHORT_UPCASE( nam) | ||
| 48 | # endif /* def NAM$M_NO_SHORT_UPCASE [else] */ | ||
| 49 | |||
| 50 | #endif /* def NAML$C_MAXRSS [else] */ | ||
| 51 | |||
diff --git a/src/lib/libcrypto/whrlpool/Makefile b/src/lib/libcrypto/whrlpool/Makefile deleted file mode 100644 index f4d46e4d17..0000000000 --- a/src/lib/libcrypto/whrlpool/Makefile +++ /dev/null | |||
| @@ -1,96 +0,0 @@ | |||
| 1 | # | ||
| 2 | # crypto/whrlpool/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= whrlpool | ||
| 6 | TOP= ../.. | ||
| 7 | CC= cc | ||
| 8 | CPP= $(CC) -E | ||
| 9 | INCLUDES= | ||
| 10 | CFLAG=-g | ||
| 11 | MAKEFILE= Makefile | ||
| 12 | AR= ar r | ||
| 13 | |||
| 14 | WP_ASM_OBJ=wp_block.o | ||
| 15 | |||
| 16 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 17 | ASFLAGS= $(INCLUDES) $(ASFLAG) | ||
| 18 | AFLAGS= $(ASFLAGS) | ||
| 19 | |||
| 20 | GENERAL=Makefile | ||
| 21 | TEST=wp_test.c | ||
| 22 | APPS= | ||
| 23 | |||
| 24 | LIB=$(TOP)/libcrypto.a | ||
| 25 | LIBSRC=wp_dgst.c wp_block.c | ||
| 26 | LIBOBJ=wp_dgst.o $(WP_ASM_OBJ) | ||
| 27 | |||
| 28 | SRC= $(LIBSRC) | ||
| 29 | |||
| 30 | EXHEADER= whrlpool.h | ||
| 31 | HEADER= wp_locl.h $(EXHEADER) | ||
| 32 | |||
| 33 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
| 34 | |||
| 35 | top: | ||
| 36 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
| 37 | |||
| 38 | all: lib | ||
| 39 | |||
| 40 | lib: $(LIBOBJ) | ||
| 41 | $(AR) $(LIB) $(LIBOBJ) | ||
| 42 | $(RANLIB) $(LIB) || echo Never mind. | ||
| 43 | @touch lib | ||
| 44 | |||
| 45 | wp-mmx.s: asm/wp-mmx.pl ../perlasm/x86asm.pl | ||
| 46 | $(PERL) asm/wp-mmx.pl $(PERLASM_SCHEME) $(CFLAGS) $(PROCESSOR) > $@ | ||
| 47 | |||
| 48 | wp-x86_64.s: asm/wp-x86_64.pl | ||
| 49 | $(PERL) asm/wp-x86_64.pl $(PERLASM_SCHEME) > $@ | ||
| 50 | |||
| 51 | $(LIBOBJ): $(LIBSRC) | ||
| 52 | |||
| 53 | files: | ||
| 54 | $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO | ||
| 55 | |||
| 56 | links: | ||
| 57 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | ||
| 58 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | ||
| 59 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | ||
| 60 | |||
| 61 | install: | ||
| 62 | @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile... | ||
| 63 | @headerlist="$(EXHEADER)"; for i in $$headerlist ; \ | ||
| 64 | do \ | ||
| 65 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 66 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
| 67 | done; | ||
| 68 | |||
| 69 | tags: | ||
| 70 | ctags $(SRC) | ||
| 71 | |||
| 72 | tests: | ||
| 73 | |||
| 74 | lint: | ||
| 75 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
| 76 | |||
| 77 | depend: | ||
| 78 | @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile... | ||
| 79 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) | ||
| 80 | |||
| 81 | dclean: | ||
| 82 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 83 | mv -f Makefile.new $(MAKEFILE) | ||
| 84 | |||
| 85 | clean: | ||
| 86 | rm -f *.s *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
| 87 | |||
| 88 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 89 | |||
| 90 | wp_block.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h | ||
| 91 | wp_block.o: ../../include/openssl/whrlpool.h wp_block.c wp_locl.h | ||
| 92 | wp_dgst.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 93 | wp_dgst.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 94 | wp_dgst.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h | ||
| 95 | wp_dgst.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 96 | wp_dgst.o: ../../include/openssl/whrlpool.h wp_dgst.c wp_locl.h | ||
diff --git a/src/lib/libcrypto/whrlpool/wp_test.c b/src/lib/libcrypto/whrlpool/wp_test.c deleted file mode 100644 index c68c2c62ca..0000000000 --- a/src/lib/libcrypto/whrlpool/wp_test.c +++ /dev/null | |||
| @@ -1,228 +0,0 @@ | |||
| 1 | /* ==================================================================== | ||
| 2 | * Copyright (c) 2005 The OpenSSL Project. All rights reserved. | ||
| 3 | * ==================================================================== | ||
| 4 | */ | ||
| 5 | #include <stdio.h> | ||
| 6 | #include <string.h> | ||
| 7 | #include <stdlib.h> | ||
| 8 | |||
| 9 | #include <openssl/whrlpool.h> | ||
| 10 | #include <openssl/crypto.h> | ||
| 11 | |||
| 12 | #if defined(OPENSSL_NO_WHIRLPOOL) | ||
| 13 | int main(int argc, char *argv[]) | ||
| 14 | { | ||
| 15 | printf("No Whirlpool support\n"); | ||
| 16 | return(0); | ||
| 17 | } | ||
| 18 | #else | ||
| 19 | |||
| 20 | /* ISO/IEC 10118-3 test vector set */ | ||
| 21 | unsigned char iso_test_1[WHIRLPOOL_DIGEST_LENGTH] = { | ||
| 22 | 0x19,0xFA,0x61,0xD7,0x55,0x22,0xA4,0x66, | ||
| 23 | 0x9B,0x44,0xE3,0x9C,0x1D,0x2E,0x17,0x26, | ||
| 24 | 0xC5,0x30,0x23,0x21,0x30,0xD4,0x07,0xF8, | ||
| 25 | 0x9A,0xFE,0xE0,0x96,0x49,0x97,0xF7,0xA7, | ||
| 26 | 0x3E,0x83,0xBE,0x69,0x8B,0x28,0x8F,0xEB, | ||
| 27 | 0xCF,0x88,0xE3,0xE0,0x3C,0x4F,0x07,0x57, | ||
| 28 | 0xEA,0x89,0x64,0xE5,0x9B,0x63,0xD9,0x37, | ||
| 29 | 0x08,0xB1,0x38,0xCC,0x42,0xA6,0x6E,0xB3 }; | ||
| 30 | |||
| 31 | unsigned char iso_test_2[WHIRLPOOL_DIGEST_LENGTH] = { | ||
| 32 | 0x8A,0xCA,0x26,0x02,0x79,0x2A,0xEC,0x6F, | ||
| 33 | 0x11,0xA6,0x72,0x06,0x53,0x1F,0xB7,0xD7, | ||
| 34 | 0xF0,0xDF,0xF5,0x94,0x13,0x14,0x5E,0x69, | ||
| 35 | 0x73,0xC4,0x50,0x01,0xD0,0x08,0x7B,0x42, | ||
| 36 | 0xD1,0x1B,0xC6,0x45,0x41,0x3A,0xEF,0xF6, | ||
| 37 | 0x3A,0x42,0x39,0x1A,0x39,0x14,0x5A,0x59, | ||
| 38 | 0x1A,0x92,0x20,0x0D,0x56,0x01,0x95,0xE5, | ||
| 39 | 0x3B,0x47,0x85,0x84,0xFD,0xAE,0x23,0x1A }; | ||
| 40 | |||
| 41 | unsigned char iso_test_3[WHIRLPOOL_DIGEST_LENGTH] = { | ||
| 42 | 0x4E,0x24,0x48,0xA4,0xC6,0xF4,0x86,0xBB, | ||
| 43 | 0x16,0xB6,0x56,0x2C,0x73,0xB4,0x02,0x0B, | ||
| 44 | 0xF3,0x04,0x3E,0x3A,0x73,0x1B,0xCE,0x72, | ||
| 45 | 0x1A,0xE1,0xB3,0x03,0xD9,0x7E,0x6D,0x4C, | ||
| 46 | 0x71,0x81,0xEE,0xBD,0xB6,0xC5,0x7E,0x27, | ||
| 47 | 0x7D,0x0E,0x34,0x95,0x71,0x14,0xCB,0xD6, | ||
| 48 | 0xC7,0x97,0xFC,0x9D,0x95,0xD8,0xB5,0x82, | ||
| 49 | 0xD2,0x25,0x29,0x20,0x76,0xD4,0xEE,0xF5 }; | ||
| 50 | |||
| 51 | unsigned char iso_test_4[WHIRLPOOL_DIGEST_LENGTH] = { | ||
| 52 | 0x37,0x8C,0x84,0xA4,0x12,0x6E,0x2D,0xC6, | ||
| 53 | 0xE5,0x6D,0xCC,0x74,0x58,0x37,0x7A,0xAC, | ||
| 54 | 0x83,0x8D,0x00,0x03,0x22,0x30,0xF5,0x3C, | ||
| 55 | 0xE1,0xF5,0x70,0x0C,0x0F,0xFB,0x4D,0x3B, | ||
| 56 | 0x84,0x21,0x55,0x76,0x59,0xEF,0x55,0xC1, | ||
| 57 | 0x06,0xB4,0xB5,0x2A,0xC5,0xA4,0xAA,0xA6, | ||
| 58 | 0x92,0xED,0x92,0x00,0x52,0x83,0x8F,0x33, | ||
| 59 | 0x62,0xE8,0x6D,0xBD,0x37,0xA8,0x90,0x3E }; | ||
| 60 | |||
| 61 | unsigned char iso_test_5[WHIRLPOOL_DIGEST_LENGTH] = { | ||
| 62 | 0xF1,0xD7,0x54,0x66,0x26,0x36,0xFF,0xE9, | ||
| 63 | 0x2C,0x82,0xEB,0xB9,0x21,0x2A,0x48,0x4A, | ||
| 64 | 0x8D,0x38,0x63,0x1E,0xAD,0x42,0x38,0xF5, | ||
| 65 | 0x44,0x2E,0xE1,0x3B,0x80,0x54,0xE4,0x1B, | ||
| 66 | 0x08,0xBF,0x2A,0x92,0x51,0xC3,0x0B,0x6A, | ||
| 67 | 0x0B,0x8A,0xAE,0x86,0x17,0x7A,0xB4,0xA6, | ||
| 68 | 0xF6,0x8F,0x67,0x3E,0x72,0x07,0x86,0x5D, | ||
| 69 | 0x5D,0x98,0x19,0xA3,0xDB,0xA4,0xEB,0x3B }; | ||
| 70 | |||
| 71 | unsigned char iso_test_6[WHIRLPOOL_DIGEST_LENGTH] = { | ||
| 72 | 0xDC,0x37,0xE0,0x08,0xCF,0x9E,0xE6,0x9B, | ||
| 73 | 0xF1,0x1F,0x00,0xED,0x9A,0xBA,0x26,0x90, | ||
| 74 | 0x1D,0xD7,0xC2,0x8C,0xDE,0xC0,0x66,0xCC, | ||
| 75 | 0x6A,0xF4,0x2E,0x40,0xF8,0x2F,0x3A,0x1E, | ||
| 76 | 0x08,0xEB,0xA2,0x66,0x29,0x12,0x9D,0x8F, | ||
| 77 | 0xB7,0xCB,0x57,0x21,0x1B,0x92,0x81,0xA6, | ||
| 78 | 0x55,0x17,0xCC,0x87,0x9D,0x7B,0x96,0x21, | ||
| 79 | 0x42,0xC6,0x5F,0x5A,0x7A,0xF0,0x14,0x67 }; | ||
| 80 | |||
| 81 | unsigned char iso_test_7[WHIRLPOOL_DIGEST_LENGTH] = { | ||
| 82 | 0x46,0x6E,0xF1,0x8B,0xAB,0xB0,0x15,0x4D, | ||
| 83 | 0x25,0xB9,0xD3,0x8A,0x64,0x14,0xF5,0xC0, | ||
| 84 | 0x87,0x84,0x37,0x2B,0xCC,0xB2,0x04,0xD6, | ||
| 85 | 0x54,0x9C,0x4A,0xFA,0xDB,0x60,0x14,0x29, | ||
| 86 | 0x4D,0x5B,0xD8,0xDF,0x2A,0x6C,0x44,0xE5, | ||
| 87 | 0x38,0xCD,0x04,0x7B,0x26,0x81,0xA5,0x1A, | ||
| 88 | 0x2C,0x60,0x48,0x1E,0x88,0xC5,0xA2,0x0B, | ||
| 89 | 0x2C,0x2A,0x80,0xCF,0x3A,0x9A,0x08,0x3B }; | ||
| 90 | |||
| 91 | unsigned char iso_test_8[WHIRLPOOL_DIGEST_LENGTH] = { | ||
| 92 | 0x2A,0x98,0x7E,0xA4,0x0F,0x91,0x70,0x61, | ||
| 93 | 0xF5,0xD6,0xF0,0xA0,0xE4,0x64,0x4F,0x48, | ||
| 94 | 0x8A,0x7A,0x5A,0x52,0xDE,0xEE,0x65,0x62, | ||
| 95 | 0x07,0xC5,0x62,0xF9,0x88,0xE9,0x5C,0x69, | ||
| 96 | 0x16,0xBD,0xC8,0x03,0x1B,0xC5,0xBE,0x1B, | ||
| 97 | 0x7B,0x94,0x76,0x39,0xFE,0x05,0x0B,0x56, | ||
| 98 | 0x93,0x9B,0xAA,0xA0,0xAD,0xFF,0x9A,0xE6, | ||
| 99 | 0x74,0x5B,0x7B,0x18,0x1C,0x3B,0xE3,0xFD }; | ||
| 100 | |||
| 101 | unsigned char iso_test_9[WHIRLPOOL_DIGEST_LENGTH] = { | ||
| 102 | 0x0C,0x99,0x00,0x5B,0xEB,0x57,0xEF,0xF5, | ||
| 103 | 0x0A,0x7C,0xF0,0x05,0x56,0x0D,0xDF,0x5D, | ||
| 104 | 0x29,0x05,0x7F,0xD8,0x6B,0x20,0xBF,0xD6, | ||
| 105 | 0x2D,0xEC,0xA0,0xF1,0xCC,0xEA,0x4A,0xF5, | ||
| 106 | 0x1F,0xC1,0x54,0x90,0xED,0xDC,0x47,0xAF, | ||
| 107 | 0x32,0xBB,0x2B,0x66,0xC3,0x4F,0xF9,0xAD, | ||
| 108 | 0x8C,0x60,0x08,0xAD,0x67,0x7F,0x77,0x12, | ||
| 109 | 0x69,0x53,0xB2,0x26,0xE4,0xED,0x8B,0x01 }; | ||
| 110 | |||
| 111 | int main (int argc,char *argv[]) | ||
| 112 | { unsigned char md[WHIRLPOOL_DIGEST_LENGTH]; | ||
| 113 | int i; | ||
| 114 | WHIRLPOOL_CTX ctx; | ||
| 115 | |||
| 116 | #ifdef OPENSSL_IA32_SSE2 | ||
| 117 | /* Alternative to this is to call OpenSSL_add_all_algorithms... | ||
| 118 | * The below code is retained exclusively for debugging purposes. */ | ||
| 119 | { char *env; | ||
| 120 | |||
| 121 | if ((env=getenv("OPENSSL_ia32cap"))) | ||
| 122 | OPENSSL_ia32cap = strtoul (env,NULL,0); | ||
| 123 | } | ||
| 124 | #endif | ||
| 125 | |||
| 126 | fprintf(stdout,"Testing Whirlpool "); | ||
| 127 | |||
| 128 | WHIRLPOOL("",0,md); | ||
| 129 | if (memcmp(md,iso_test_1,sizeof(iso_test_1))) | ||
| 130 | { fflush(stdout); | ||
| 131 | fprintf(stderr,"\nTEST 1 of 9 failed.\n"); | ||
| 132 | return 1; | ||
| 133 | } | ||
| 134 | else | ||
| 135 | fprintf(stdout,"."); fflush(stdout); | ||
| 136 | |||
| 137 | WHIRLPOOL("a",1,md); | ||
| 138 | if (memcmp(md,iso_test_2,sizeof(iso_test_2))) | ||
| 139 | { fflush(stdout); | ||
| 140 | fprintf(stderr,"\nTEST 2 of 9 failed.\n"); | ||
| 141 | return 1; | ||
| 142 | } | ||
| 143 | else | ||
| 144 | fprintf(stdout,"."); fflush(stdout); | ||
| 145 | |||
| 146 | WHIRLPOOL("abc",3,md); | ||
| 147 | if (memcmp(md,iso_test_3,sizeof(iso_test_3))) | ||
| 148 | { fflush(stdout); | ||
| 149 | fprintf(stderr,"\nTEST 3 of 9 failed.\n"); | ||
| 150 | return 1; | ||
| 151 | } | ||
| 152 | else | ||
| 153 | fprintf(stdout,"."); fflush(stdout); | ||
| 154 | |||
| 155 | WHIRLPOOL("message digest",14,md); | ||
| 156 | if (memcmp(md,iso_test_4,sizeof(iso_test_4))) | ||
| 157 | { fflush(stdout); | ||
| 158 | fprintf(stderr,"\nTEST 4 of 9 failed.\n"); | ||
| 159 | return 1; | ||
| 160 | } | ||
| 161 | else | ||
| 162 | fprintf(stdout,"."); fflush(stdout); | ||
| 163 | |||
| 164 | WHIRLPOOL("abcdefghijklmnopqrstuvwxyz",26,md); | ||
| 165 | if (memcmp(md,iso_test_5,sizeof(iso_test_5))) | ||
| 166 | { fflush(stdout); | ||
| 167 | fprintf(stderr,"\nTEST 5 of 9 failed.\n"); | ||
| 168 | return 1; | ||
| 169 | } | ||
| 170 | else | ||
| 171 | fprintf(stdout,"."); fflush(stdout); | ||
| 172 | |||
| 173 | WHIRLPOOL( "ABCDEFGHIJKLMNOPQRSTUVWXYZ" | ||
| 174 | "abcdefghijklmnopqrstuvwxyz" | ||
| 175 | "0123456789",62,md); | ||
| 176 | if (memcmp(md,iso_test_6,sizeof(iso_test_6))) | ||
| 177 | { fflush(stdout); | ||
| 178 | fprintf(stderr,"\nTEST 6 of 9 failed.\n"); | ||
| 179 | return 1; | ||
| 180 | } | ||
| 181 | else | ||
| 182 | fprintf(stdout,"."); fflush(stdout); | ||
| 183 | |||
| 184 | WHIRLPOOL( "1234567890""1234567890""1234567890""1234567890" | ||
| 185 | "1234567890""1234567890""1234567890""1234567890",80,md); | ||
| 186 | if (memcmp(md,iso_test_7,sizeof(iso_test_7))) | ||
| 187 | { fflush(stdout); | ||
| 188 | fprintf(stderr,"\nTEST 7 of 9 failed.\n"); | ||
| 189 | return 1; | ||
| 190 | } | ||
| 191 | else | ||
| 192 | fprintf(stdout,"."); fflush(stdout); | ||
| 193 | |||
| 194 | WHIRLPOOL("abcdbcdecdefdefgefghfghighijhijk",32,md); | ||
| 195 | if (memcmp(md,iso_test_8,sizeof(iso_test_8))) | ||
| 196 | { fflush(stdout); | ||
| 197 | fprintf(stderr,"\nTEST 8 of 9 failed.\n"); | ||
| 198 | return 1; | ||
| 199 | } | ||
| 200 | else | ||
| 201 | fprintf(stdout,"."); fflush(stdout); | ||
| 202 | |||
| 203 | WHIRLPOOL_Init (&ctx); | ||
| 204 | for (i=0;i<1000000;i+=288) | ||
| 205 | WHIRLPOOL_Update (&ctx, "aaaaaaaa""aaaaaaaa""aaaaaaaa""aaaaaaaa" | ||
| 206 | "aaaaaaaa""aaaaaaaa""aaaaaaaa""aaaaaaaa" | ||
| 207 | "aaaaaaaa""aaaaaaaa""aaaaaaaa""aaaaaaaa" | ||
| 208 | "aaaaaaaa""aaaaaaaa""aaaaaaaa""aaaaaaaa" | ||
| 209 | "aaaaaaaa""aaaaaaaa""aaaaaaaa""aaaaaaaa" | ||
| 210 | "aaaaaaaa""aaaaaaaa""aaaaaaaa""aaaaaaaa" | ||
| 211 | "aaaaaaaa""aaaaaaaa""aaaaaaaa""aaaaaaaa" | ||
| 212 | "aaaaaaaa""aaaaaaaa""aaaaaaaa""aaaaaaaa" | ||
| 213 | "aaaaaaaa""aaaaaaaa""aaaaaaaa""aaaaaaaa", | ||
| 214 | (1000000-i)<288?1000000-i:288); | ||
| 215 | WHIRLPOOL_Final (md,&ctx); | ||
| 216 | if (memcmp(md,iso_test_9,sizeof(iso_test_9))) | ||
| 217 | { fflush(stdout); | ||
| 218 | fprintf(stderr,"\nTEST 9 of 9 failed.\n"); | ||
| 219 | return 1; | ||
| 220 | } | ||
| 221 | else | ||
| 222 | fprintf(stdout,"."); fflush(stdout); | ||
| 223 | |||
| 224 | fprintf(stdout," passed.\n"); fflush(stdout); | ||
| 225 | |||
| 226 | return 0; | ||
| 227 | } | ||
| 228 | #endif | ||
diff --git a/src/lib/libcrypto/x509/Makefile.ssl b/src/lib/libcrypto/x509/Makefile.ssl deleted file mode 100644 index 3a3452536c..0000000000 --- a/src/lib/libcrypto/x509/Makefile.ssl +++ /dev/null | |||
| @@ -1,594 +0,0 @@ | |||
| 1 | # | ||
| 2 | # SSLeay/crypto/x509/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= x509 | ||
| 6 | TOP= ../.. | ||
| 7 | CC= cc | ||
| 8 | INCLUDES= -I.. -I$(TOP) -I../../include | ||
| 9 | CFLAG=-g | ||
| 10 | INSTALL_PREFIX= | ||
| 11 | OPENSSLDIR= /usr/local/ssl | ||
| 12 | INSTALLTOP=/usr/local/ssl | ||
| 13 | MAKE= make -f Makefile.ssl | ||
| 14 | MAKEDEPPROG= makedepend | ||
| 15 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
| 16 | MAKEFILE= Makefile.ssl | ||
| 17 | AR= ar r | ||
| 18 | |||
| 19 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 20 | |||
| 21 | GENERAL=Makefile README | ||
| 22 | TEST= | ||
| 23 | APPS= | ||
| 24 | |||
| 25 | LIB=$(TOP)/libcrypto.a | ||
| 26 | LIBSRC= x509_def.c x509_d2.c x509_r2x.c x509_cmp.c \ | ||
| 27 | x509_obj.c x509_req.c x509spki.c x509_vfy.c \ | ||
| 28 | x509_set.c x509cset.c x509rset.c x509_err.c \ | ||
| 29 | x509name.c x509_v3.c x509_ext.c x509_att.c \ | ||
| 30 | x509type.c x509_lu.c x_all.c x509_txt.c \ | ||
| 31 | x509_trs.c by_file.c by_dir.c | ||
| 32 | LIBOBJ= x509_def.o x509_d2.o x509_r2x.o x509_cmp.o \ | ||
| 33 | x509_obj.o x509_req.o x509spki.o x509_vfy.o \ | ||
| 34 | x509_set.o x509cset.o x509rset.o x509_err.o \ | ||
| 35 | x509name.o x509_v3.o x509_ext.o x509_att.o \ | ||
| 36 | x509type.o x509_lu.o x_all.o x509_txt.o \ | ||
| 37 | x509_trs.o by_file.o by_dir.o | ||
| 38 | |||
| 39 | SRC= $(LIBSRC) | ||
| 40 | |||
| 41 | EXHEADER= x509.h x509_vfy.h | ||
| 42 | HEADER= $(EXHEADER) | ||
| 43 | |||
| 44 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
| 45 | |||
| 46 | top: | ||
| 47 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
| 48 | |||
| 49 | all: lib | ||
| 50 | |||
| 51 | lib: $(LIBOBJ) | ||
| 52 | $(AR) $(LIB) $(LIBOBJ) | ||
| 53 | $(RANLIB) $(LIB) || echo Never mind. | ||
| 54 | @touch lib | ||
| 55 | |||
| 56 | files: | ||
| 57 | $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
| 58 | |||
| 59 | links: | ||
| 60 | @sh $(TOP)/util/point.sh Makefile.ssl Makefile | ||
| 61 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | ||
| 62 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | ||
| 63 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | ||
| 64 | |||
| 65 | install: | ||
| 66 | @for i in $(EXHEADER) ; \ | ||
| 67 | do \ | ||
| 68 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 69 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
| 70 | done; | ||
| 71 | |||
| 72 | tags: | ||
| 73 | ctags $(SRC) | ||
| 74 | |||
| 75 | tests: | ||
| 76 | |||
| 77 | lint: | ||
| 78 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
| 79 | |||
| 80 | depend: | ||
| 81 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) | ||
| 82 | |||
| 83 | dclean: | ||
| 84 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 85 | mv -f Makefile.new $(MAKEFILE) | ||
| 86 | |||
| 87 | clean: | ||
| 88 | rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
| 89 | |||
| 90 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 91 | |||
| 92 | by_dir.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 93 | by_dir.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 94 | by_dir.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 95 | by_dir.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 96 | by_dir.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 97 | by_dir.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 98 | by_dir.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 99 | by_dir.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 100 | by_dir.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 101 | by_dir.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 102 | by_dir.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 103 | by_dir.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 104 | by_dir.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 105 | by_dir.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 106 | by_dir.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 107 | by_dir.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 108 | by_dir.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 109 | by_dir.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 110 | by_dir.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 111 | by_dir.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 112 | by_dir.o: ../cryptlib.h by_dir.c | ||
| 113 | by_file.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 114 | by_file.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 115 | by_file.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 116 | by_file.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 117 | by_file.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 118 | by_file.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 119 | by_file.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 120 | by_file.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 121 | by_file.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 122 | by_file.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 123 | by_file.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 124 | by_file.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 125 | by_file.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 126 | by_file.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pem.h | ||
| 127 | by_file.o: ../../include/openssl/pem2.h ../../include/openssl/pkcs7.h | ||
| 128 | by_file.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 129 | by_file.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 130 | by_file.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 131 | by_file.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 132 | by_file.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 133 | by_file.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 134 | by_file.o: ../../include/openssl/x509_vfy.h ../cryptlib.h by_file.c | ||
| 135 | x509_att.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 136 | x509_att.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 137 | x509_att.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 138 | x509_att.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 139 | x509_att.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h | ||
| 140 | x509_att.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 141 | x509_att.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 142 | x509_att.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 143 | x509_att.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 144 | x509_att.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 145 | x509_att.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 146 | x509_att.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 147 | x509_att.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 148 | x509_att.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 149 | x509_att.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 150 | x509_att.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 151 | x509_att.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 152 | x509_att.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 153 | x509_att.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 154 | x509_att.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 155 | x509_att.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 156 | x509_att.o: ../../include/openssl/x509v3.h ../cryptlib.h x509_att.c | ||
| 157 | x509_cmp.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 158 | x509_cmp.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 159 | x509_cmp.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 160 | x509_cmp.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 161 | x509_cmp.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h | ||
| 162 | x509_cmp.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 163 | x509_cmp.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 164 | x509_cmp.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 165 | x509_cmp.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 166 | x509_cmp.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 167 | x509_cmp.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 168 | x509_cmp.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 169 | x509_cmp.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 170 | x509_cmp.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 171 | x509_cmp.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 172 | x509_cmp.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 173 | x509_cmp.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 174 | x509_cmp.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 175 | x509_cmp.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 176 | x509_cmp.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 177 | x509_cmp.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 178 | x509_cmp.o: ../../include/openssl/x509v3.h ../cryptlib.h x509_cmp.c | ||
| 179 | x509_d2.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 180 | x509_d2.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 181 | x509_d2.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 182 | x509_d2.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 183 | x509_d2.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 184 | x509_d2.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 185 | x509_d2.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 186 | x509_d2.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 187 | x509_d2.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 188 | x509_d2.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 189 | x509_d2.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 190 | x509_d2.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 191 | x509_d2.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 192 | x509_d2.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs7.h | ||
| 193 | x509_d2.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 194 | x509_d2.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 195 | x509_d2.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 196 | x509_d2.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 197 | x509_d2.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 198 | x509_d2.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 199 | x509_d2.o: ../../include/openssl/x509_vfy.h ../cryptlib.h x509_d2.c | ||
| 200 | x509_def.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 201 | x509_def.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 202 | x509_def.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 203 | x509_def.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 204 | x509_def.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 205 | x509_def.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 206 | x509_def.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 207 | x509_def.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 208 | x509_def.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 209 | x509_def.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 210 | x509_def.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 211 | x509_def.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 212 | x509_def.o: ../../include/openssl/opensslconf.h | ||
| 213 | x509_def.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 214 | x509_def.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 215 | x509_def.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 216 | x509_def.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 217 | x509_def.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 218 | x509_def.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 219 | x509_def.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 220 | x509_def.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 221 | x509_def.o: ../cryptlib.h x509_def.c | ||
| 222 | x509_err.o: ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 223 | x509_err.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 224 | x509_err.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 225 | x509_err.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 226 | x509_err.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 227 | x509_err.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 228 | x509_err.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 229 | x509_err.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 230 | x509_err.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 231 | x509_err.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 232 | x509_err.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 233 | x509_err.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 234 | x509_err.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 235 | x509_err.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 236 | x509_err.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 237 | x509_err.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 238 | x509_err.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 239 | x509_err.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 240 | x509_err.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 241 | x509_err.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 242 | x509_err.o: x509_err.c | ||
| 243 | x509_ext.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 244 | x509_ext.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 245 | x509_ext.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 246 | x509_ext.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 247 | x509_ext.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h | ||
| 248 | x509_ext.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 249 | x509_ext.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 250 | x509_ext.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 251 | x509_ext.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 252 | x509_ext.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 253 | x509_ext.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 254 | x509_ext.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 255 | x509_ext.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 256 | x509_ext.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 257 | x509_ext.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 258 | x509_ext.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 259 | x509_ext.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 260 | x509_ext.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 261 | x509_ext.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 262 | x509_ext.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 263 | x509_ext.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 264 | x509_ext.o: ../../include/openssl/x509v3.h ../cryptlib.h x509_ext.c | ||
| 265 | x509_lu.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 266 | x509_lu.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 267 | x509_lu.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 268 | x509_lu.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 269 | x509_lu.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h | ||
| 270 | x509_lu.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 271 | x509_lu.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 272 | x509_lu.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 273 | x509_lu.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 274 | x509_lu.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 275 | x509_lu.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 276 | x509_lu.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 277 | x509_lu.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 278 | x509_lu.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 279 | x509_lu.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 280 | x509_lu.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 281 | x509_lu.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 282 | x509_lu.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 283 | x509_lu.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 284 | x509_lu.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 285 | x509_lu.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 286 | x509_lu.o: ../../include/openssl/x509v3.h ../cryptlib.h x509_lu.c | ||
| 287 | x509_obj.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 288 | x509_obj.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 289 | x509_obj.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 290 | x509_obj.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 291 | x509_obj.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 292 | x509_obj.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 293 | x509_obj.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 294 | x509_obj.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 295 | x509_obj.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 296 | x509_obj.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 297 | x509_obj.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 298 | x509_obj.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 299 | x509_obj.o: ../../include/openssl/opensslconf.h | ||
| 300 | x509_obj.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 301 | x509_obj.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 302 | x509_obj.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 303 | x509_obj.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 304 | x509_obj.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 305 | x509_obj.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 306 | x509_obj.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 307 | x509_obj.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 308 | x509_obj.o: ../cryptlib.h x509_obj.c | ||
| 309 | x509_r2x.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 310 | x509_r2x.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 311 | x509_r2x.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 312 | x509_r2x.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 313 | x509_r2x.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 314 | x509_r2x.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 315 | x509_r2x.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 316 | x509_r2x.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 317 | x509_r2x.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 318 | x509_r2x.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 319 | x509_r2x.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 320 | x509_r2x.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 321 | x509_r2x.o: ../../include/openssl/opensslconf.h | ||
| 322 | x509_r2x.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 323 | x509_r2x.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 324 | x509_r2x.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 325 | x509_r2x.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 326 | x509_r2x.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 327 | x509_r2x.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 328 | x509_r2x.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 329 | x509_r2x.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 330 | x509_r2x.o: ../cryptlib.h x509_r2x.c | ||
| 331 | x509_req.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 332 | x509_req.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 333 | x509_req.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 334 | x509_req.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 335 | x509_req.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 336 | x509_req.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 337 | x509_req.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 338 | x509_req.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 339 | x509_req.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 340 | x509_req.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 341 | x509_req.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 342 | x509_req.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 343 | x509_req.o: ../../include/openssl/opensslconf.h | ||
| 344 | x509_req.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 345 | x509_req.o: ../../include/openssl/pem.h ../../include/openssl/pem2.h | ||
| 346 | x509_req.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 347 | x509_req.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 348 | x509_req.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 349 | x509_req.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 350 | x509_req.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 351 | x509_req.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 352 | x509_req.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 353 | x509_req.o: ../cryptlib.h x509_req.c | ||
| 354 | x509_set.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 355 | x509_set.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 356 | x509_set.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 357 | x509_set.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 358 | x509_set.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 359 | x509_set.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 360 | x509_set.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 361 | x509_set.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 362 | x509_set.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 363 | x509_set.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 364 | x509_set.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 365 | x509_set.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 366 | x509_set.o: ../../include/openssl/opensslconf.h | ||
| 367 | x509_set.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 368 | x509_set.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 369 | x509_set.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 370 | x509_set.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 371 | x509_set.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 372 | x509_set.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 373 | x509_set.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 374 | x509_set.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 375 | x509_set.o: ../cryptlib.h x509_set.c | ||
| 376 | x509_trs.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 377 | x509_trs.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 378 | x509_trs.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 379 | x509_trs.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 380 | x509_trs.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h | ||
| 381 | x509_trs.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 382 | x509_trs.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 383 | x509_trs.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 384 | x509_trs.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 385 | x509_trs.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 386 | x509_trs.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 387 | x509_trs.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 388 | x509_trs.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 389 | x509_trs.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 390 | x509_trs.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 391 | x509_trs.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 392 | x509_trs.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 393 | x509_trs.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 394 | x509_trs.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 395 | x509_trs.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 396 | x509_trs.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 397 | x509_trs.o: ../../include/openssl/x509v3.h ../cryptlib.h x509_trs.c | ||
| 398 | x509_txt.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 399 | x509_txt.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 400 | x509_txt.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 401 | x509_txt.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 402 | x509_txt.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 403 | x509_txt.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 404 | x509_txt.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 405 | x509_txt.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 406 | x509_txt.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 407 | x509_txt.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 408 | x509_txt.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 409 | x509_txt.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 410 | x509_txt.o: ../../include/openssl/opensslconf.h | ||
| 411 | x509_txt.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 412 | x509_txt.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 413 | x509_txt.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 414 | x509_txt.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 415 | x509_txt.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 416 | x509_txt.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 417 | x509_txt.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 418 | x509_txt.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 419 | x509_txt.o: ../cryptlib.h x509_txt.c | ||
| 420 | x509_v3.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 421 | x509_v3.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 422 | x509_v3.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 423 | x509_v3.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 424 | x509_v3.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h | ||
| 425 | x509_v3.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 426 | x509_v3.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 427 | x509_v3.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 428 | x509_v3.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 429 | x509_v3.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 430 | x509_v3.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 431 | x509_v3.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 432 | x509_v3.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 433 | x509_v3.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 434 | x509_v3.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 435 | x509_v3.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 436 | x509_v3.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 437 | x509_v3.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 438 | x509_v3.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 439 | x509_v3.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 440 | x509_v3.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 441 | x509_v3.o: ../../include/openssl/x509v3.h ../cryptlib.h x509_v3.c | ||
| 442 | x509_vfy.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 443 | x509_vfy.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 444 | x509_vfy.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 445 | x509_vfy.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 446 | x509_vfy.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h | ||
| 447 | x509_vfy.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 448 | x509_vfy.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 449 | x509_vfy.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 450 | x509_vfy.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 451 | x509_vfy.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 452 | x509_vfy.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 453 | x509_vfy.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 454 | x509_vfy.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 455 | x509_vfy.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 456 | x509_vfy.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 457 | x509_vfy.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 458 | x509_vfy.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 459 | x509_vfy.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 460 | x509_vfy.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 461 | x509_vfy.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 462 | x509_vfy.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 463 | x509_vfy.o: ../../include/openssl/x509v3.h ../cryptlib.h x509_vfy.c | ||
| 464 | x509cset.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 465 | x509cset.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 466 | x509cset.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 467 | x509cset.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 468 | x509cset.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 469 | x509cset.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 470 | x509cset.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 471 | x509cset.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 472 | x509cset.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 473 | x509cset.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 474 | x509cset.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 475 | x509cset.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 476 | x509cset.o: ../../include/openssl/opensslconf.h | ||
| 477 | x509cset.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 478 | x509cset.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 479 | x509cset.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 480 | x509cset.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 481 | x509cset.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 482 | x509cset.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 483 | x509cset.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 484 | x509cset.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 485 | x509cset.o: ../cryptlib.h x509cset.c | ||
| 486 | x509name.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 487 | x509name.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 488 | x509name.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 489 | x509name.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 490 | x509name.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 491 | x509name.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 492 | x509name.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 493 | x509name.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 494 | x509name.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 495 | x509name.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 496 | x509name.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 497 | x509name.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 498 | x509name.o: ../../include/openssl/opensslconf.h | ||
| 499 | x509name.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 500 | x509name.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 501 | x509name.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 502 | x509name.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 503 | x509name.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 504 | x509name.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 505 | x509name.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 506 | x509name.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 507 | x509name.o: ../cryptlib.h x509name.c | ||
| 508 | x509rset.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 509 | x509rset.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 510 | x509rset.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 511 | x509rset.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 512 | x509rset.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 513 | x509rset.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 514 | x509rset.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 515 | x509rset.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 516 | x509rset.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 517 | x509rset.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 518 | x509rset.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 519 | x509rset.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 520 | x509rset.o: ../../include/openssl/opensslconf.h | ||
| 521 | x509rset.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 522 | x509rset.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 523 | x509rset.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 524 | x509rset.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 525 | x509rset.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 526 | x509rset.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 527 | x509rset.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 528 | x509rset.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 529 | x509rset.o: ../cryptlib.h x509rset.c | ||
| 530 | x509spki.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 531 | x509spki.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 532 | x509spki.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 533 | x509spki.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 534 | x509spki.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 535 | x509spki.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 536 | x509spki.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 537 | x509spki.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 538 | x509spki.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 539 | x509spki.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 540 | x509spki.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 541 | x509spki.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 542 | x509spki.o: ../../include/openssl/opensslconf.h | ||
| 543 | x509spki.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 544 | x509spki.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 545 | x509spki.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 546 | x509spki.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 547 | x509spki.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 548 | x509spki.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 549 | x509spki.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 550 | x509spki.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 551 | x509spki.o: ../cryptlib.h x509spki.c | ||
| 552 | x509type.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 553 | x509type.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 554 | x509type.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 555 | x509type.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 556 | x509type.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 557 | x509type.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 558 | x509type.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 559 | x509type.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 560 | x509type.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 561 | x509type.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 562 | x509type.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 563 | x509type.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 564 | x509type.o: ../../include/openssl/opensslconf.h | ||
| 565 | x509type.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 566 | x509type.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 567 | x509type.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 568 | x509type.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 569 | x509type.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 570 | x509type.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 571 | x509type.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 572 | x509type.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 573 | x509type.o: ../cryptlib.h x509type.c | ||
| 574 | x_all.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 575 | x_all.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 576 | x_all.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 577 | x_all.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
| 578 | x_all.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 579 | x_all.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 580 | x_all.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 581 | x_all.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 582 | x_all.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 583 | x_all.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 584 | x_all.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 585 | x_all.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 586 | x_all.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 587 | x_all.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 588 | x_all.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 589 | x_all.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 590 | x_all.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 591 | x_all.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 592 | x_all.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 593 | x_all.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 594 | x_all.o: ../cryptlib.h x_all.c | ||
diff --git a/src/lib/libcrypto/x509v3/Makefile.ssl b/src/lib/libcrypto/x509v3/Makefile.ssl deleted file mode 100644 index 66df90c346..0000000000 --- a/src/lib/libcrypto/x509v3/Makefile.ssl +++ /dev/null | |||
| @@ -1,603 +0,0 @@ | |||
| 1 | # | ||
| 2 | # SSLeay/crypto/x509v3/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= x509v3 | ||
| 6 | TOP= ../.. | ||
| 7 | CC= cc | ||
| 8 | INCLUDES= -I.. -I$(TOP) -I../../include | ||
| 9 | CFLAG=-g | ||
| 10 | INSTALL_PREFIX= | ||
| 11 | OPENSSLDIR= /usr/local/ssl | ||
| 12 | INSTALLTOP=/usr/local/ssl | ||
| 13 | MAKE= make -f Makefile.ssl | ||
| 14 | MAKEDEPPROG= makedepend | ||
| 15 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
| 16 | MAKEFILE= Makefile.ssl | ||
| 17 | AR= ar r | ||
| 18 | |||
| 19 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 20 | |||
| 21 | GENERAL=Makefile README | ||
| 22 | TEST= | ||
| 23 | APPS= | ||
| 24 | |||
| 25 | LIB=$(TOP)/libcrypto.a | ||
| 26 | LIBSRC= v3_bcons.c v3_bitst.c v3_conf.c v3_extku.c v3_ia5.c v3_lib.c \ | ||
| 27 | v3_prn.c v3_utl.c v3err.c v3_genn.c v3_alt.c v3_skey.c v3_akey.c v3_pku.c \ | ||
| 28 | v3_int.c v3_enum.c v3_sxnet.c v3_cpols.c v3_crld.c v3_purp.c v3_info.c \ | ||
| 29 | v3_ocsp.c v3_akeya.c | ||
| 30 | LIBOBJ= v3_bcons.o v3_bitst.o v3_conf.o v3_extku.o v3_ia5.o v3_lib.o \ | ||
| 31 | v3_prn.o v3_utl.o v3err.o v3_genn.o v3_alt.o v3_skey.o v3_akey.o v3_pku.o \ | ||
| 32 | v3_int.o v3_enum.o v3_sxnet.o v3_cpols.o v3_crld.o v3_purp.o v3_info.o \ | ||
| 33 | v3_ocsp.o v3_akeya.o | ||
| 34 | |||
| 35 | SRC= $(LIBSRC) | ||
| 36 | |||
| 37 | EXHEADER= x509v3.h | ||
| 38 | HEADER= $(EXHEADER) | ||
| 39 | |||
| 40 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
| 41 | |||
| 42 | top: | ||
| 43 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
| 44 | |||
| 45 | all: lib | ||
| 46 | |||
| 47 | lib: $(LIBOBJ) | ||
| 48 | $(AR) $(LIB) $(LIBOBJ) | ||
| 49 | $(RANLIB) $(LIB) || echo Never mind. | ||
| 50 | @touch lib | ||
| 51 | |||
| 52 | files: | ||
| 53 | $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
| 54 | |||
| 55 | links: | ||
| 56 | @sh $(TOP)/util/point.sh Makefile.ssl Makefile | ||
| 57 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | ||
| 58 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | ||
| 59 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | ||
| 60 | |||
| 61 | install: | ||
| 62 | @for i in $(EXHEADER) ; \ | ||
| 63 | do \ | ||
| 64 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 65 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
| 66 | done; | ||
| 67 | |||
| 68 | tags: | ||
| 69 | ctags $(SRC) | ||
| 70 | |||
| 71 | tests: | ||
| 72 | |||
| 73 | lint: | ||
| 74 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
| 75 | |||
| 76 | depend: | ||
| 77 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) | ||
| 78 | |||
| 79 | dclean: | ||
| 80 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 81 | mv -f Makefile.new $(MAKEFILE) | ||
| 82 | |||
| 83 | clean: | ||
| 84 | rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
| 85 | |||
| 86 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 87 | |||
| 88 | v3_akey.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 89 | v3_akey.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h | ||
| 90 | v3_akey.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 91 | v3_akey.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 92 | v3_akey.o: ../../include/openssl/cast.h ../../include/openssl/conf.h | ||
| 93 | v3_akey.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 94 | v3_akey.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 95 | v3_akey.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 96 | v3_akey.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 97 | v3_akey.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 98 | v3_akey.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 99 | v3_akey.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 100 | v3_akey.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 101 | v3_akey.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 102 | v3_akey.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs7.h | ||
| 103 | v3_akey.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 104 | v3_akey.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 105 | v3_akey.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 106 | v3_akey.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 107 | v3_akey.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 108 | v3_akey.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 109 | v3_akey.o: ../../include/openssl/x509_vfy.h ../../include/openssl/x509v3.h | ||
| 110 | v3_akey.o: ../cryptlib.h v3_akey.c | ||
| 111 | v3_akeya.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 112 | v3_akeya.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h | ||
| 113 | v3_akeya.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 114 | v3_akeya.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 115 | v3_akeya.o: ../../include/openssl/cast.h ../../include/openssl/conf.h | ||
| 116 | v3_akeya.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 117 | v3_akeya.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 118 | v3_akeya.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 119 | v3_akeya.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 120 | v3_akeya.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 121 | v3_akeya.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 122 | v3_akeya.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 123 | v3_akeya.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 124 | v3_akeya.o: ../../include/openssl/opensslconf.h | ||
| 125 | v3_akeya.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 126 | v3_akeya.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 127 | v3_akeya.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 128 | v3_akeya.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 129 | v3_akeya.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 130 | v3_akeya.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 131 | v3_akeya.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 132 | v3_akeya.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 133 | v3_akeya.o: ../../include/openssl/x509v3.h ../cryptlib.h v3_akeya.c | ||
| 134 | v3_alt.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 135 | v3_alt.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 136 | v3_alt.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 137 | v3_alt.o: ../../include/openssl/cast.h ../../include/openssl/conf.h | ||
| 138 | v3_alt.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 139 | v3_alt.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 140 | v3_alt.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 141 | v3_alt.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 142 | v3_alt.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 143 | v3_alt.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 144 | v3_alt.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 145 | v3_alt.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 146 | v3_alt.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 147 | v3_alt.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs7.h | ||
| 148 | v3_alt.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 149 | v3_alt.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 150 | v3_alt.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 151 | v3_alt.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 152 | v3_alt.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 153 | v3_alt.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 154 | v3_alt.o: ../../include/openssl/x509_vfy.h ../../include/openssl/x509v3.h | ||
| 155 | v3_alt.o: ../cryptlib.h v3_alt.c | ||
| 156 | v3_bcons.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 157 | v3_bcons.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h | ||
| 158 | v3_bcons.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 159 | v3_bcons.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 160 | v3_bcons.o: ../../include/openssl/cast.h ../../include/openssl/conf.h | ||
| 161 | v3_bcons.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 162 | v3_bcons.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 163 | v3_bcons.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 164 | v3_bcons.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 165 | v3_bcons.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 166 | v3_bcons.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 167 | v3_bcons.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 168 | v3_bcons.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 169 | v3_bcons.o: ../../include/openssl/opensslconf.h | ||
| 170 | v3_bcons.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 171 | v3_bcons.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 172 | v3_bcons.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 173 | v3_bcons.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 174 | v3_bcons.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 175 | v3_bcons.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 176 | v3_bcons.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 177 | v3_bcons.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 178 | v3_bcons.o: ../../include/openssl/x509v3.h ../cryptlib.h v3_bcons.c | ||
| 179 | v3_bitst.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 180 | v3_bitst.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 181 | v3_bitst.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 182 | v3_bitst.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 183 | v3_bitst.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h | ||
| 184 | v3_bitst.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 185 | v3_bitst.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 186 | v3_bitst.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 187 | v3_bitst.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 188 | v3_bitst.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 189 | v3_bitst.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 190 | v3_bitst.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 191 | v3_bitst.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 192 | v3_bitst.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 193 | v3_bitst.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 194 | v3_bitst.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 195 | v3_bitst.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 196 | v3_bitst.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 197 | v3_bitst.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 198 | v3_bitst.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 199 | v3_bitst.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 200 | v3_bitst.o: ../../include/openssl/x509v3.h ../cryptlib.h v3_bitst.c | ||
| 201 | v3_conf.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 202 | v3_conf.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 203 | v3_conf.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 204 | v3_conf.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 205 | v3_conf.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h | ||
| 206 | v3_conf.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 207 | v3_conf.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 208 | v3_conf.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 209 | v3_conf.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 210 | v3_conf.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 211 | v3_conf.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 212 | v3_conf.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 213 | v3_conf.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 214 | v3_conf.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 215 | v3_conf.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 216 | v3_conf.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 217 | v3_conf.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 218 | v3_conf.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 219 | v3_conf.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 220 | v3_conf.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 221 | v3_conf.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 222 | v3_conf.o: ../../include/openssl/x509v3.h ../cryptlib.h v3_conf.c | ||
| 223 | v3_cpols.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 224 | v3_cpols.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h | ||
| 225 | v3_cpols.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 226 | v3_cpols.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 227 | v3_cpols.o: ../../include/openssl/cast.h ../../include/openssl/conf.h | ||
| 228 | v3_cpols.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 229 | v3_cpols.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 230 | v3_cpols.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 231 | v3_cpols.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 232 | v3_cpols.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 233 | v3_cpols.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 234 | v3_cpols.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 235 | v3_cpols.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 236 | v3_cpols.o: ../../include/openssl/opensslconf.h | ||
| 237 | v3_cpols.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 238 | v3_cpols.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 239 | v3_cpols.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 240 | v3_cpols.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 241 | v3_cpols.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 242 | v3_cpols.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 243 | v3_cpols.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 244 | v3_cpols.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 245 | v3_cpols.o: ../../include/openssl/x509v3.h ../cryptlib.h v3_cpols.c | ||
| 246 | v3_crld.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 247 | v3_crld.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h | ||
| 248 | v3_crld.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 249 | v3_crld.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 250 | v3_crld.o: ../../include/openssl/cast.h ../../include/openssl/conf.h | ||
| 251 | v3_crld.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 252 | v3_crld.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 253 | v3_crld.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 254 | v3_crld.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 255 | v3_crld.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 256 | v3_crld.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 257 | v3_crld.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 258 | v3_crld.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 259 | v3_crld.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 260 | v3_crld.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs7.h | ||
| 261 | v3_crld.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 262 | v3_crld.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 263 | v3_crld.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 264 | v3_crld.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 265 | v3_crld.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 266 | v3_crld.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 267 | v3_crld.o: ../../include/openssl/x509_vfy.h ../../include/openssl/x509v3.h | ||
| 268 | v3_crld.o: ../cryptlib.h v3_crld.c | ||
| 269 | v3_enum.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 270 | v3_enum.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 271 | v3_enum.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 272 | v3_enum.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 273 | v3_enum.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h | ||
| 274 | v3_enum.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 275 | v3_enum.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 276 | v3_enum.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 277 | v3_enum.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 278 | v3_enum.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 279 | v3_enum.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 280 | v3_enum.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 281 | v3_enum.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 282 | v3_enum.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 283 | v3_enum.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 284 | v3_enum.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 285 | v3_enum.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 286 | v3_enum.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 287 | v3_enum.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 288 | v3_enum.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 289 | v3_enum.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 290 | v3_enum.o: ../../include/openssl/x509v3.h ../cryptlib.h v3_enum.c | ||
| 291 | v3_extku.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 292 | v3_extku.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h | ||
| 293 | v3_extku.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 294 | v3_extku.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 295 | v3_extku.o: ../../include/openssl/cast.h ../../include/openssl/conf.h | ||
| 296 | v3_extku.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 297 | v3_extku.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 298 | v3_extku.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 299 | v3_extku.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 300 | v3_extku.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 301 | v3_extku.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 302 | v3_extku.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 303 | v3_extku.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 304 | v3_extku.o: ../../include/openssl/opensslconf.h | ||
| 305 | v3_extku.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 306 | v3_extku.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 307 | v3_extku.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 308 | v3_extku.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 309 | v3_extku.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 310 | v3_extku.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 311 | v3_extku.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 312 | v3_extku.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 313 | v3_extku.o: ../../include/openssl/x509v3.h ../cryptlib.h v3_extku.c | ||
| 314 | v3_genn.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 315 | v3_genn.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h | ||
| 316 | v3_genn.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 317 | v3_genn.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 318 | v3_genn.o: ../../include/openssl/cast.h ../../include/openssl/conf.h | ||
| 319 | v3_genn.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 320 | v3_genn.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 321 | v3_genn.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 322 | v3_genn.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 323 | v3_genn.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 324 | v3_genn.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 325 | v3_genn.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 326 | v3_genn.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 327 | v3_genn.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 328 | v3_genn.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs7.h | ||
| 329 | v3_genn.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 330 | v3_genn.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 331 | v3_genn.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 332 | v3_genn.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 333 | v3_genn.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 334 | v3_genn.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 335 | v3_genn.o: ../../include/openssl/x509_vfy.h ../../include/openssl/x509v3.h | ||
| 336 | v3_genn.o: ../cryptlib.h v3_genn.c | ||
| 337 | v3_ia5.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 338 | v3_ia5.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 339 | v3_ia5.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 340 | v3_ia5.o: ../../include/openssl/cast.h ../../include/openssl/conf.h | ||
| 341 | v3_ia5.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 342 | v3_ia5.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 343 | v3_ia5.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 344 | v3_ia5.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 345 | v3_ia5.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 346 | v3_ia5.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 347 | v3_ia5.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 348 | v3_ia5.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 349 | v3_ia5.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 350 | v3_ia5.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs7.h | ||
| 351 | v3_ia5.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 352 | v3_ia5.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 353 | v3_ia5.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 354 | v3_ia5.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 355 | v3_ia5.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 356 | v3_ia5.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 357 | v3_ia5.o: ../../include/openssl/x509_vfy.h ../../include/openssl/x509v3.h | ||
| 358 | v3_ia5.o: ../cryptlib.h v3_ia5.c | ||
| 359 | v3_info.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 360 | v3_info.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h | ||
| 361 | v3_info.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 362 | v3_info.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 363 | v3_info.o: ../../include/openssl/cast.h ../../include/openssl/conf.h | ||
| 364 | v3_info.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 365 | v3_info.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 366 | v3_info.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 367 | v3_info.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 368 | v3_info.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 369 | v3_info.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 370 | v3_info.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 371 | v3_info.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 372 | v3_info.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 373 | v3_info.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs7.h | ||
| 374 | v3_info.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 375 | v3_info.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 376 | v3_info.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 377 | v3_info.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 378 | v3_info.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 379 | v3_info.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 380 | v3_info.o: ../../include/openssl/x509_vfy.h ../../include/openssl/x509v3.h | ||
| 381 | v3_info.o: ../cryptlib.h v3_info.c | ||
| 382 | v3_int.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 383 | v3_int.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 384 | v3_int.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 385 | v3_int.o: ../../include/openssl/cast.h ../../include/openssl/conf.h | ||
| 386 | v3_int.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 387 | v3_int.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 388 | v3_int.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 389 | v3_int.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 390 | v3_int.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 391 | v3_int.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 392 | v3_int.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 393 | v3_int.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 394 | v3_int.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 395 | v3_int.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs7.h | ||
| 396 | v3_int.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 397 | v3_int.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 398 | v3_int.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 399 | v3_int.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 400 | v3_int.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 401 | v3_int.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 402 | v3_int.o: ../../include/openssl/x509_vfy.h ../../include/openssl/x509v3.h | ||
| 403 | v3_int.o: ../cryptlib.h v3_int.c | ||
| 404 | v3_lib.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 405 | v3_lib.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 406 | v3_lib.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 407 | v3_lib.o: ../../include/openssl/cast.h ../../include/openssl/conf.h | ||
| 408 | v3_lib.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 409 | v3_lib.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 410 | v3_lib.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 411 | v3_lib.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 412 | v3_lib.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 413 | v3_lib.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 414 | v3_lib.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 415 | v3_lib.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 416 | v3_lib.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 417 | v3_lib.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs7.h | ||
| 418 | v3_lib.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 419 | v3_lib.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 420 | v3_lib.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 421 | v3_lib.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 422 | v3_lib.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 423 | v3_lib.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 424 | v3_lib.o: ../../include/openssl/x509_vfy.h ../../include/openssl/x509v3.h | ||
| 425 | v3_lib.o: ../cryptlib.h ext_dat.h v3_lib.c | ||
| 426 | v3_ocsp.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 427 | v3_ocsp.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 428 | v3_ocsp.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 429 | v3_ocsp.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 430 | v3_ocsp.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h | ||
| 431 | v3_ocsp.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 432 | v3_ocsp.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 433 | v3_ocsp.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 434 | v3_ocsp.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 435 | v3_ocsp.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 436 | v3_ocsp.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 437 | v3_ocsp.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 438 | v3_ocsp.o: ../../include/openssl/objects.h ../../include/openssl/ocsp.h | ||
| 439 | v3_ocsp.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 440 | v3_ocsp.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs7.h | ||
| 441 | v3_ocsp.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 442 | v3_ocsp.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 443 | v3_ocsp.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 444 | v3_ocsp.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 445 | v3_ocsp.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 446 | v3_ocsp.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 447 | v3_ocsp.o: ../../include/openssl/x509_vfy.h ../../include/openssl/x509v3.h | ||
| 448 | v3_ocsp.o: ../cryptlib.h v3_ocsp.c | ||
| 449 | v3_pku.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 450 | v3_pku.o: ../../include/openssl/asn1t.h ../../include/openssl/bio.h | ||
| 451 | v3_pku.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 452 | v3_pku.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 453 | v3_pku.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h | ||
| 454 | v3_pku.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 455 | v3_pku.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 456 | v3_pku.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 457 | v3_pku.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 458 | v3_pku.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 459 | v3_pku.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 460 | v3_pku.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 461 | v3_pku.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 462 | v3_pku.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 463 | v3_pku.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 464 | v3_pku.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 465 | v3_pku.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 466 | v3_pku.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 467 | v3_pku.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 468 | v3_pku.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 469 | v3_pku.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 470 | v3_pku.o: ../../include/openssl/x509v3.h ../cryptlib.h v3_pku.c | ||
| 471 | v3_prn.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 472 | v3_prn.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 473 | v3_prn.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 474 | v3_prn.o: ../../include/openssl/cast.h ../../include/openssl/conf.h | ||
| 475 | v3_prn.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 476 | v3_prn.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 477 | v3_prn.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 478 | v3_prn.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 479 | v3_prn.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 480 | v3_prn.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 481 | v3_prn.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 482 | v3_prn.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 483 | v3_prn.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 484 | v3_prn.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs7.h | ||
| 485 | v3_prn.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 486 | v3_prn.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 487 | v3_prn.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 488 | v3_prn.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 489 | v3_prn.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 490 | v3_prn.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 491 | v3_prn.o: ../../include/openssl/x509_vfy.h ../../include/openssl/x509v3.h | ||
| 492 | v3_prn.o: ../cryptlib.h v3_prn.c | ||
| 493 | v3_purp.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 494 | v3_purp.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 495 | v3_purp.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 496 | v3_purp.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 497 | v3_purp.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h | ||
| 498 | v3_purp.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 499 | v3_purp.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 500 | v3_purp.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 501 | v3_purp.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 502 | v3_purp.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 503 | v3_purp.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 504 | v3_purp.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 505 | v3_purp.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 506 | v3_purp.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 507 | v3_purp.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 508 | v3_purp.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 509 | v3_purp.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 510 | v3_purp.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 511 | v3_purp.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 512 | v3_purp.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 513 | v3_purp.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 514 | v3_purp.o: ../../include/openssl/x509v3.h ../cryptlib.h v3_purp.c | ||
| 515 | v3_skey.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 516 | v3_skey.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 517 | v3_skey.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
| 518 | v3_skey.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
| 519 | v3_skey.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h | ||
| 520 | v3_skey.o: ../../include/openssl/des.h ../../include/openssl/des_old.h | ||
| 521 | v3_skey.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
| 522 | v3_skey.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 523 | v3_skey.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | ||
| 524 | v3_skey.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | ||
| 525 | v3_skey.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 526 | v3_skey.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 527 | v3_skey.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 528 | v3_skey.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 529 | v3_skey.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 530 | v3_skey.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 531 | v3_skey.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 532 | v3_skey.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 533 | v3_skey.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 534 | v3_skey.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 535 | v3_skey.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 536 | v3_skey.o: ../../include/openssl/x509v3.h ../cryptlib.h v3_skey.c | ||
| 537 | v3_sxnet.o: ../../e_os.h ../../include/openssl/aes.h | ||
| 538 | v3_sxnet.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h | ||
| 539 | v3_sxnet.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 540 | v3_sxnet.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 541 | v3_sxnet.o: ../../include/openssl/cast.h ../../include/openssl/conf.h | ||
| 542 | v3_sxnet.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 543 | v3_sxnet.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 544 | v3_sxnet.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 545 | v3_sxnet.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 546 | v3_sxnet.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 547 | v3_sxnet.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 548 | v3_sxnet.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 549 | v3_sxnet.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 550 | v3_sxnet.o: ../../include/openssl/opensslconf.h | ||
| 551 | v3_sxnet.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 552 | v3_sxnet.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | ||
| 553 | v3_sxnet.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
| 554 | v3_sxnet.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
| 555 | v3_sxnet.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
| 556 | v3_sxnet.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 557 | v3_sxnet.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
| 558 | v3_sxnet.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
| 559 | v3_sxnet.o: ../../include/openssl/x509v3.h ../cryptlib.h v3_sxnet.c | ||
| 560 | v3_utl.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 561 | v3_utl.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 562 | v3_utl.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 563 | v3_utl.o: ../../include/openssl/cast.h ../../include/openssl/conf.h | ||
| 564 | v3_utl.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 565 | v3_utl.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 566 | v3_utl.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 567 | v3_utl.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 568 | v3_utl.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 569 | v3_utl.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 570 | v3_utl.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 571 | v3_utl.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 572 | v3_utl.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 573 | v3_utl.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs7.h | ||
| 574 | v3_utl.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 575 | v3_utl.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 576 | v3_utl.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 577 | v3_utl.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 578 | v3_utl.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 579 | v3_utl.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 580 | v3_utl.o: ../../include/openssl/x509_vfy.h ../../include/openssl/x509v3.h | ||
| 581 | v3_utl.o: ../cryptlib.h v3_utl.c | ||
| 582 | v3err.o: ../../include/openssl/aes.h ../../include/openssl/asn1.h | ||
| 583 | v3err.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | ||
| 584 | v3err.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
| 585 | v3err.o: ../../include/openssl/cast.h ../../include/openssl/conf.h | ||
| 586 | v3err.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
| 587 | v3err.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h | ||
| 588 | v3err.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
| 589 | v3err.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
| 590 | v3err.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | ||
| 591 | v3err.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 592 | v3err.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
| 593 | v3err.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 594 | v3err.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 595 | v3err.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs7.h | ||
| 596 | v3err.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
| 597 | v3err.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
| 598 | v3err.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
| 599 | v3err.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 600 | v3err.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
| 601 | v3err.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h | ||
| 602 | v3err.o: ../../include/openssl/x509_vfy.h ../../include/openssl/x509v3.h | ||
| 603 | v3err.o: v3err.c | ||
diff --git a/src/lib/libcrypto/x509v3/v3_addr.c b/src/lib/libcrypto/x509v3/v3_addr.c deleted file mode 100644 index df46a4983b..0000000000 --- a/src/lib/libcrypto/x509v3/v3_addr.c +++ /dev/null | |||
| @@ -1,1338 +0,0 @@ | |||
| 1 | /* | ||
| 2 | * Contributed to the OpenSSL Project by the American Registry for | ||
| 3 | * Internet Numbers ("ARIN"). | ||
| 4 | */ | ||
| 5 | /* ==================================================================== | ||
| 6 | * Copyright (c) 2006 The OpenSSL Project. All rights reserved. | ||
| 7 | * | ||
| 8 | * Redistribution and use in source and binary forms, with or without | ||
| 9 | * modification, are permitted provided that the following conditions | ||
| 10 | * are met: | ||
| 11 | * | ||
| 12 | * 1. Redistributions of source code must retain the above copyright | ||
| 13 | * notice, this list of conditions and the following disclaimer. | ||
| 14 | * | ||
| 15 | * 2. Redistributions in binary form must reproduce the above copyright | ||
| 16 | * notice, this list of conditions and the following disclaimer in | ||
| 17 | * the documentation and/or other materials provided with the | ||
| 18 | * distribution. | ||
| 19 | * | ||
| 20 | * 3. All advertising materials mentioning features or use of this | ||
| 21 | * software must display the following acknowledgment: | ||
| 22 | * "This product includes software developed by the OpenSSL Project | ||
| 23 | * for use in the OpenSSL Toolkit. (http://www.OpenSSL.org/)" | ||
| 24 | * | ||
| 25 | * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to | ||
| 26 | * endorse or promote products derived from this software without | ||
| 27 | * prior written permission. For written permission, please contact | ||
| 28 | * licensing@OpenSSL.org. | ||
| 29 | * | ||
| 30 | * 5. Products derived from this software may not be called "OpenSSL" | ||
| 31 | * nor may "OpenSSL" appear in their names without prior written | ||
| 32 | * permission of the OpenSSL Project. | ||
| 33 | * | ||
| 34 | * 6. Redistributions of any form whatsoever must retain the following | ||
| 35 | * acknowledgment: | ||
| 36 | * "This product includes software developed by the OpenSSL Project | ||
| 37 | * for use in the OpenSSL Toolkit (http://www.OpenSSL.org/)" | ||
| 38 | * | ||
| 39 | * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY | ||
| 40 | * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
| 41 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | ||
| 42 | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR | ||
| 43 | * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
| 44 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | ||
| 45 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
| 46 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
| 47 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | ||
| 48 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
| 49 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | ||
| 50 | * OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| 51 | * ==================================================================== | ||
| 52 | * | ||
| 53 | * This product includes cryptographic software written by Eric Young | ||
| 54 | * (eay@cryptsoft.com). This product includes software written by Tim | ||
| 55 | * Hudson (tjh@cryptsoft.com). | ||
| 56 | */ | ||
| 57 | |||
| 58 | /* | ||
| 59 | * Implementation of RFC 3779 section 2.2. | ||
| 60 | */ | ||
| 61 | |||
| 62 | #include <stdio.h> | ||
| 63 | #include <stdlib.h> | ||
| 64 | |||
| 65 | #include "cryptlib.h" | ||
| 66 | #include <openssl/conf.h> | ||
| 67 | #include <openssl/asn1.h> | ||
| 68 | #include <openssl/asn1t.h> | ||
| 69 | #include <openssl/buffer.h> | ||
| 70 | #include <openssl/x509v3.h> | ||
| 71 | |||
| 72 | #ifndef OPENSSL_NO_RFC3779 | ||
| 73 | |||
| 74 | /* | ||
| 75 | * OpenSSL ASN.1 template translation of RFC 3779 2.2.3. | ||
| 76 | */ | ||
| 77 | |||
| 78 | ASN1_SEQUENCE(IPAddressRange) = { | ||
| 79 | ASN1_SIMPLE(IPAddressRange, min, ASN1_BIT_STRING), | ||
| 80 | ASN1_SIMPLE(IPAddressRange, max, ASN1_BIT_STRING) | ||
| 81 | } ASN1_SEQUENCE_END(IPAddressRange) | ||
| 82 | |||
| 83 | ASN1_CHOICE(IPAddressOrRange) = { | ||
| 84 | ASN1_SIMPLE(IPAddressOrRange, u.addressPrefix, ASN1_BIT_STRING), | ||
| 85 | ASN1_SIMPLE(IPAddressOrRange, u.addressRange, IPAddressRange) | ||
| 86 | } ASN1_CHOICE_END(IPAddressOrRange) | ||
| 87 | |||
| 88 | ASN1_CHOICE(IPAddressChoice) = { | ||
| 89 | ASN1_SIMPLE(IPAddressChoice, u.inherit, ASN1_NULL), | ||
| 90 | ASN1_SEQUENCE_OF(IPAddressChoice, u.addressesOrRanges, IPAddressOrRange) | ||
| 91 | } ASN1_CHOICE_END(IPAddressChoice) | ||
| 92 | |||
| 93 | ASN1_SEQUENCE(IPAddressFamily) = { | ||
| 94 | ASN1_SIMPLE(IPAddressFamily, addressFamily, ASN1_OCTET_STRING), | ||
| 95 | ASN1_SIMPLE(IPAddressFamily, ipAddressChoice, IPAddressChoice) | ||
| 96 | } ASN1_SEQUENCE_END(IPAddressFamily) | ||
| 97 | |||
| 98 | ASN1_ITEM_TEMPLATE(IPAddrBlocks) = | ||
| 99 | ASN1_EX_TEMPLATE_TYPE(ASN1_TFLG_SEQUENCE_OF, 0, | ||
| 100 | IPAddrBlocks, IPAddressFamily) | ||
| 101 | ASN1_ITEM_TEMPLATE_END(IPAddrBlocks) | ||
| 102 | |||
| 103 | IMPLEMENT_ASN1_FUNCTIONS(IPAddressRange) | ||
| 104 | IMPLEMENT_ASN1_FUNCTIONS(IPAddressOrRange) | ||
| 105 | IMPLEMENT_ASN1_FUNCTIONS(IPAddressChoice) | ||
| 106 | IMPLEMENT_ASN1_FUNCTIONS(IPAddressFamily) | ||
| 107 | |||
| 108 | /* | ||
| 109 | * How much buffer space do we need for a raw address? | ||
| 110 | */ | ||
| 111 | #define ADDR_RAW_BUF_LEN 16 | ||
| 112 | |||
| 113 | /* | ||
| 114 | * What's the address length associated with this AFI? | ||
| 115 | */ | ||
| 116 | static int length_from_afi(const unsigned afi) | ||
| 117 | { | ||
| 118 | switch (afi) { | ||
| 119 | case IANA_AFI_IPV4: | ||
| 120 | return 4; | ||
| 121 | case IANA_AFI_IPV6: | ||
| 122 | return 16; | ||
| 123 | default: | ||
| 124 | return 0; | ||
| 125 | } | ||
| 126 | } | ||
| 127 | |||
| 128 | /* | ||
| 129 | * Extract the AFI from an IPAddressFamily. | ||
| 130 | */ | ||
| 131 | unsigned int v3_addr_get_afi(const IPAddressFamily *f) | ||
| 132 | { | ||
| 133 | return ((f != NULL && | ||
| 134 | f->addressFamily != NULL && | ||
| 135 | f->addressFamily->data != NULL) | ||
| 136 | ? ((f->addressFamily->data[0] << 8) | | ||
| 137 | (f->addressFamily->data[1])) | ||
| 138 | : 0); | ||
| 139 | } | ||
| 140 | |||
| 141 | /* | ||
| 142 | * Expand the bitstring form of an address into a raw byte array. | ||
| 143 | * At the moment this is coded for simplicity, not speed. | ||
| 144 | */ | ||
| 145 | static int addr_expand(unsigned char *addr, | ||
| 146 | const ASN1_BIT_STRING *bs, | ||
| 147 | const int length, | ||
| 148 | const unsigned char fill) | ||
| 149 | { | ||
| 150 | if (bs->length < 0 || bs->length > length) | ||
| 151 | return 0; | ||
| 152 | if (bs->length > 0) { | ||
| 153 | memcpy(addr, bs->data, bs->length); | ||
| 154 | if ((bs->flags & 7) != 0) { | ||
| 155 | unsigned char mask = 0xFF >> (8 - (bs->flags & 7)); | ||
| 156 | if (fill == 0) | ||
| 157 | addr[bs->length - 1] &= ~mask; | ||
| 158 | else | ||
| 159 | addr[bs->length - 1] |= mask; | ||
| 160 | } | ||
| 161 | } | ||
| 162 | memset(addr + bs->length, fill, length - bs->length); | ||
| 163 | return 1; | ||
| 164 | } | ||
| 165 | |||
| 166 | /* | ||
| 167 | * Extract the prefix length from a bitstring. | ||
| 168 | */ | ||
| 169 | #define addr_prefixlen(bs) ((int) ((bs)->length * 8 - ((bs)->flags & 7))) | ||
| 170 | |||
| 171 | /* | ||
| 172 | * i2r handler for one address bitstring. | ||
| 173 | */ | ||
| 174 | static int i2r_address(BIO *out, | ||
| 175 | const unsigned afi, | ||
| 176 | const unsigned char fill, | ||
| 177 | const ASN1_BIT_STRING *bs) | ||
| 178 | { | ||
| 179 | unsigned char addr[ADDR_RAW_BUF_LEN]; | ||
| 180 | int i, n; | ||
| 181 | |||
| 182 | if (bs->length < 0) | ||
| 183 | return 0; | ||
| 184 | switch (afi) { | ||
| 185 | case IANA_AFI_IPV4: | ||
| 186 | if (!addr_expand(addr, bs, 4, fill)) | ||
| 187 | return 0; | ||
| 188 | BIO_printf(out, "%d.%d.%d.%d", addr[0], addr[1], addr[2], addr[3]); | ||
| 189 | break; | ||
| 190 | case IANA_AFI_IPV6: | ||
| 191 | if (!addr_expand(addr, bs, 16, fill)) | ||
| 192 | return 0; | ||
| 193 | for (n = 16; n > 1 && addr[n-1] == 0x00 && addr[n-2] == 0x00; n -= 2) | ||
| 194 | ; | ||
| 195 | for (i = 0; i < n; i += 2) | ||
| 196 | BIO_printf(out, "%x%s", (addr[i] << 8) | addr[i+1], (i < 14 ? ":" : "")); | ||
| 197 | if (i < 16) | ||
| 198 | BIO_puts(out, ":"); | ||
| 199 | if (i == 0) | ||
| 200 | BIO_puts(out, ":"); | ||
| 201 | break; | ||
| 202 | default: | ||
| 203 | for (i = 0; i < bs->length; i++) | ||
| 204 | BIO_printf(out, "%s%02x", (i > 0 ? ":" : ""), bs->data[i]); | ||
| 205 | BIO_printf(out, "[%d]", (int) (bs->flags & 7)); | ||
| 206 | break; | ||
| 207 | } | ||
| 208 | return 1; | ||
| 209 | } | ||
| 210 | |||
| 211 | /* | ||
| 212 | * i2r handler for a sequence of addresses and ranges. | ||
| 213 | */ | ||
| 214 | static int i2r_IPAddressOrRanges(BIO *out, | ||
| 215 | const int indent, | ||
| 216 | const IPAddressOrRanges *aors, | ||
| 217 | const unsigned afi) | ||
| 218 | { | ||
| 219 | int i; | ||
| 220 | for (i = 0; i < sk_IPAddressOrRange_num(aors); i++) { | ||
| 221 | const IPAddressOrRange *aor = sk_IPAddressOrRange_value(aors, i); | ||
| 222 | BIO_printf(out, "%*s", indent, ""); | ||
| 223 | switch (aor->type) { | ||
| 224 | case IPAddressOrRange_addressPrefix: | ||
| 225 | if (!i2r_address(out, afi, 0x00, aor->u.addressPrefix)) | ||
| 226 | return 0; | ||
| 227 | BIO_printf(out, "/%d\n", addr_prefixlen(aor->u.addressPrefix)); | ||
| 228 | continue; | ||
| 229 | case IPAddressOrRange_addressRange: | ||
| 230 | if (!i2r_address(out, afi, 0x00, aor->u.addressRange->min)) | ||
| 231 | return 0; | ||
| 232 | BIO_puts(out, "-"); | ||
| 233 | if (!i2r_address(out, afi, 0xFF, aor->u.addressRange->max)) | ||
| 234 | return 0; | ||
| 235 | BIO_puts(out, "\n"); | ||
| 236 | continue; | ||
| 237 | } | ||
| 238 | } | ||
| 239 | return 1; | ||
| 240 | } | ||
| 241 | |||
| 242 | /* | ||
| 243 | * i2r handler for an IPAddrBlocks extension. | ||
| 244 | */ | ||
| 245 | static int i2r_IPAddrBlocks(const X509V3_EXT_METHOD *method, | ||
| 246 | void *ext, | ||
| 247 | BIO *out, | ||
| 248 | int indent) | ||
| 249 | { | ||
| 250 | const IPAddrBlocks *addr = ext; | ||
| 251 | int i; | ||
| 252 | for (i = 0; i < sk_IPAddressFamily_num(addr); i++) { | ||
| 253 | IPAddressFamily *f = sk_IPAddressFamily_value(addr, i); | ||
| 254 | const unsigned int afi = v3_addr_get_afi(f); | ||
| 255 | switch (afi) { | ||
| 256 | case IANA_AFI_IPV4: | ||
| 257 | BIO_printf(out, "%*sIPv4", indent, ""); | ||
| 258 | break; | ||
| 259 | case IANA_AFI_IPV6: | ||
| 260 | BIO_printf(out, "%*sIPv6", indent, ""); | ||
| 261 | break; | ||
| 262 | default: | ||
| 263 | BIO_printf(out, "%*sUnknown AFI %u", indent, "", afi); | ||
| 264 | break; | ||
| 265 | } | ||
| 266 | if (f->addressFamily->length > 2) { | ||
| 267 | switch (f->addressFamily->data[2]) { | ||
| 268 | case 1: | ||
| 269 | BIO_puts(out, " (Unicast)"); | ||
| 270 | break; | ||
| 271 | case 2: | ||
| 272 | BIO_puts(out, " (Multicast)"); | ||
| 273 | break; | ||
| 274 | case 3: | ||
| 275 | BIO_puts(out, " (Unicast/Multicast)"); | ||
| 276 | break; | ||
| 277 | case 4: | ||
| 278 | BIO_puts(out, " (MPLS)"); | ||
| 279 | break; | ||
| 280 | case 64: | ||
| 281 | BIO_puts(out, " (Tunnel)"); | ||
| 282 | break; | ||
| 283 | case 65: | ||
| 284 | BIO_puts(out, " (VPLS)"); | ||
| 285 | break; | ||
| 286 | case 66: | ||
| 287 | BIO_puts(out, " (BGP MDT)"); | ||
| 288 | break; | ||
| 289 | case 128: | ||
| 290 | BIO_puts(out, " (MPLS-labeled VPN)"); | ||
| 291 | break; | ||
| 292 | default: | ||
| 293 | BIO_printf(out, " (Unknown SAFI %u)", | ||
| 294 | (unsigned) f->addressFamily->data[2]); | ||
| 295 | break; | ||
| 296 | } | ||
| 297 | } | ||
| 298 | switch (f->ipAddressChoice->type) { | ||
| 299 | case IPAddressChoice_inherit: | ||
| 300 | BIO_puts(out, ": inherit\n"); | ||
| 301 | break; | ||
| 302 | case IPAddressChoice_addressesOrRanges: | ||
| 303 | BIO_puts(out, ":\n"); | ||
| 304 | if (!i2r_IPAddressOrRanges(out, | ||
| 305 | indent + 2, | ||
| 306 | f->ipAddressChoice->u.addressesOrRanges, | ||
| 307 | afi)) | ||
| 308 | return 0; | ||
| 309 | break; | ||
| 310 | } | ||
| 311 | } | ||
| 312 | return 1; | ||
| 313 | } | ||
| 314 | |||
| 315 | /* | ||
| 316 | * Sort comparison function for a sequence of IPAddressOrRange | ||
| 317 | * elements. | ||
| 318 | * | ||
| 319 | * There's no sane answer we can give if addr_expand() fails, and an | ||
| 320 | * assertion failure on externally supplied data is seriously uncool, | ||
| 321 | * so we just arbitrarily declare that if given invalid inputs this | ||
| 322 | * function returns -1. If this messes up your preferred sort order | ||
| 323 | * for garbage input, tough noogies. | ||
| 324 | */ | ||
| 325 | static int IPAddressOrRange_cmp(const IPAddressOrRange *a, | ||
| 326 | const IPAddressOrRange *b, | ||
| 327 | const int length) | ||
| 328 | { | ||
| 329 | unsigned char addr_a[ADDR_RAW_BUF_LEN], addr_b[ADDR_RAW_BUF_LEN]; | ||
| 330 | int prefixlen_a = 0, prefixlen_b = 0; | ||
| 331 | int r; | ||
| 332 | |||
| 333 | switch (a->type) { | ||
| 334 | case IPAddressOrRange_addressPrefix: | ||
| 335 | if (!addr_expand(addr_a, a->u.addressPrefix, length, 0x00)) | ||
| 336 | return -1; | ||
| 337 | prefixlen_a = addr_prefixlen(a->u.addressPrefix); | ||
| 338 | break; | ||
| 339 | case IPAddressOrRange_addressRange: | ||
| 340 | if (!addr_expand(addr_a, a->u.addressRange->min, length, 0x00)) | ||
| 341 | return -1; | ||
| 342 | prefixlen_a = length * 8; | ||
| 343 | break; | ||
| 344 | } | ||
| 345 | |||
| 346 | switch (b->type) { | ||
| 347 | case IPAddressOrRange_addressPrefix: | ||
| 348 | if (!addr_expand(addr_b, b->u.addressPrefix, length, 0x00)) | ||
| 349 | return -1; | ||
| 350 | prefixlen_b = addr_prefixlen(b->u.addressPrefix); | ||
| 351 | break; | ||
| 352 | case IPAddressOrRange_addressRange: | ||
| 353 | if (!addr_expand(addr_b, b->u.addressRange->min, length, 0x00)) | ||
| 354 | return -1; | ||
| 355 | prefixlen_b = length * 8; | ||
| 356 | break; | ||
| 357 | } | ||
| 358 | |||
| 359 | if ((r = memcmp(addr_a, addr_b, length)) != 0) | ||
| 360 | return r; | ||
| 361 | else | ||
| 362 | return prefixlen_a - prefixlen_b; | ||
| 363 | } | ||
| 364 | |||
| 365 | /* | ||
| 366 | * IPv4-specific closure over IPAddressOrRange_cmp, since sk_sort() | ||
| 367 | * comparision routines are only allowed two arguments. | ||
| 368 | */ | ||
| 369 | static int v4IPAddressOrRange_cmp(const IPAddressOrRange * const *a, | ||
| 370 | const IPAddressOrRange * const *b) | ||
| 371 | { | ||
| 372 | return IPAddressOrRange_cmp(*a, *b, 4); | ||
| 373 | } | ||
| 374 | |||
| 375 | /* | ||
| 376 | * IPv6-specific closure over IPAddressOrRange_cmp, since sk_sort() | ||
| 377 | * comparision routines are only allowed two arguments. | ||
| 378 | */ | ||
| 379 | static int v6IPAddressOrRange_cmp(const IPAddressOrRange * const *a, | ||
| 380 | const IPAddressOrRange * const *b) | ||
| 381 | { | ||
| 382 | return IPAddressOrRange_cmp(*a, *b, 16); | ||
| 383 | } | ||
| 384 | |||
| 385 | /* | ||
| 386 | * Calculate whether a range collapses to a prefix. | ||
| 387 | * See last paragraph of RFC 3779 2.2.3.7. | ||
| 388 | */ | ||
| 389 | static int range_should_be_prefix(const unsigned char *min, | ||
| 390 | const unsigned char *max, | ||
| 391 | const int length) | ||
| 392 | { | ||
| 393 | unsigned char mask; | ||
| 394 | int i, j; | ||
| 395 | |||
| 396 | OPENSSL_assert(memcmp(min, max, length) <= 0); | ||
| 397 | for (i = 0; i < length && min[i] == max[i]; i++) | ||
| 398 | ; | ||
| 399 | for (j = length - 1; j >= 0 && min[j] == 0x00 && max[j] == 0xFF; j--) | ||
| 400 | ; | ||
| 401 | if (i < j) | ||
| 402 | return -1; | ||
| 403 | if (i > j) | ||
| 404 | return i * 8; | ||
| 405 | mask = min[i] ^ max[i]; | ||
| 406 | switch (mask) { | ||
| 407 | case 0x01: j = 7; break; | ||
| 408 | case 0x03: j = 6; break; | ||
| 409 | case 0x07: j = 5; break; | ||
| 410 | case 0x0F: j = 4; break; | ||
| 411 | case 0x1F: j = 3; break; | ||
| 412 | case 0x3F: j = 2; break; | ||
| 413 | case 0x7F: j = 1; break; | ||
| 414 | default: return -1; | ||
| 415 | } | ||
| 416 | if ((min[i] & mask) != 0 || (max[i] & mask) != mask) | ||
| 417 | return -1; | ||
| 418 | else | ||
| 419 | return i * 8 + j; | ||
| 420 | } | ||
| 421 | |||
| 422 | /* | ||
| 423 | * Construct a prefix. | ||
| 424 | */ | ||
| 425 | static int make_addressPrefix(IPAddressOrRange **result, | ||
| 426 | unsigned char *addr, | ||
| 427 | const int prefixlen) | ||
| 428 | { | ||
| 429 | int bytelen = (prefixlen + 7) / 8, bitlen = prefixlen % 8; | ||
| 430 | IPAddressOrRange *aor = IPAddressOrRange_new(); | ||
| 431 | |||
| 432 | if (aor == NULL) | ||
| 433 | return 0; | ||
| 434 | aor->type = IPAddressOrRange_addressPrefix; | ||
| 435 | if (aor->u.addressPrefix == NULL && | ||
| 436 | (aor->u.addressPrefix = ASN1_BIT_STRING_new()) == NULL) | ||
| 437 | goto err; | ||
| 438 | if (!ASN1_BIT_STRING_set(aor->u.addressPrefix, addr, bytelen)) | ||
| 439 | goto err; | ||
| 440 | aor->u.addressPrefix->flags &= ~7; | ||
| 441 | aor->u.addressPrefix->flags |= ASN1_STRING_FLAG_BITS_LEFT; | ||
| 442 | if (bitlen > 0) { | ||
| 443 | aor->u.addressPrefix->data[bytelen - 1] &= ~(0xFF >> bitlen); | ||
| 444 | aor->u.addressPrefix->flags |= 8 - bitlen; | ||
| 445 | } | ||
| 446 | |||
| 447 | *result = aor; | ||
| 448 | return 1; | ||
| 449 | |||
| 450 | err: | ||
| 451 | IPAddressOrRange_free(aor); | ||
| 452 | return 0; | ||
| 453 | } | ||
| 454 | |||
| 455 | /* | ||
| 456 | * Construct a range. If it can be expressed as a prefix, | ||
| 457 | * return a prefix instead. Doing this here simplifies | ||
| 458 | * the rest of the code considerably. | ||
| 459 | */ | ||
| 460 | static int make_addressRange(IPAddressOrRange **result, | ||
| 461 | unsigned char *min, | ||
| 462 | unsigned char *max, | ||
| 463 | const int length) | ||
| 464 | { | ||
| 465 | IPAddressOrRange *aor; | ||
| 466 | int i, prefixlen; | ||
| 467 | |||
| 468 | if ((prefixlen = range_should_be_prefix(min, max, length)) >= 0) | ||
| 469 | return make_addressPrefix(result, min, prefixlen); | ||
| 470 | |||
| 471 | if ((aor = IPAddressOrRange_new()) == NULL) | ||
| 472 | return 0; | ||
| 473 | aor->type = IPAddressOrRange_addressRange; | ||
| 474 | OPENSSL_assert(aor->u.addressRange == NULL); | ||
| 475 | if ((aor->u.addressRange = IPAddressRange_new()) == NULL) | ||
| 476 | goto err; | ||
| 477 | if (aor->u.addressRange->min == NULL && | ||
| 478 | (aor->u.addressRange->min = ASN1_BIT_STRING_new()) == NULL) | ||
| 479 | goto err; | ||
| 480 | if (aor->u.addressRange->max == NULL && | ||
| 481 | (aor->u.addressRange->max = ASN1_BIT_STRING_new()) == NULL) | ||
| 482 | goto err; | ||
| 483 | |||
| 484 | for (i = length; i > 0 && min[i - 1] == 0x00; --i) | ||
| 485 | ; | ||
| 486 | if (!ASN1_BIT_STRING_set(aor->u.addressRange->min, min, i)) | ||
| 487 | goto err; | ||
| 488 | aor->u.addressRange->min->flags &= ~7; | ||
| 489 | aor->u.addressRange->min->flags |= ASN1_STRING_FLAG_BITS_LEFT; | ||
| 490 | if (i > 0) { | ||
| 491 | unsigned char b = min[i - 1]; | ||
| 492 | int j = 1; | ||
| 493 | while ((b & (0xFFU >> j)) != 0) | ||
| 494 | ++j; | ||
| 495 | aor->u.addressRange->min->flags |= 8 - j; | ||
| 496 | } | ||
| 497 | |||
| 498 | for (i = length; i > 0 && max[i - 1] == 0xFF; --i) | ||
| 499 | ; | ||
| 500 | if (!ASN1_BIT_STRING_set(aor->u.addressRange->max, max, i)) | ||
| 501 | goto err; | ||
| 502 | aor->u.addressRange->max->flags &= ~7; | ||
| 503 | aor->u.addressRange->max->flags |= ASN1_STRING_FLAG_BITS_LEFT; | ||
| 504 | if (i > 0) { | ||
| 505 | unsigned char b = max[i - 1]; | ||
| 506 | int j = 1; | ||
| 507 | while ((b & (0xFFU >> j)) != (0xFFU >> j)) | ||
| 508 | ++j; | ||
| 509 | aor->u.addressRange->max->flags |= 8 - j; | ||
| 510 | } | ||
| 511 | |||
| 512 | *result = aor; | ||
| 513 | return 1; | ||
| 514 | |||
| 515 | err: | ||
| 516 | IPAddressOrRange_free(aor); | ||
| 517 | return 0; | ||
| 518 | } | ||
| 519 | |||
| 520 | /* | ||
| 521 | * Construct a new address family or find an existing one. | ||
| 522 | */ | ||
| 523 | static IPAddressFamily *make_IPAddressFamily(IPAddrBlocks *addr, | ||
| 524 | const unsigned afi, | ||
| 525 | const unsigned *safi) | ||
| 526 | { | ||
| 527 | IPAddressFamily *f; | ||
| 528 | unsigned char key[3]; | ||
| 529 | unsigned keylen; | ||
| 530 | int i; | ||
| 531 | |||
| 532 | key[0] = (afi >> 8) & 0xFF; | ||
| 533 | key[1] = afi & 0xFF; | ||
| 534 | if (safi != NULL) { | ||
| 535 | key[2] = *safi & 0xFF; | ||
| 536 | keylen = 3; | ||
| 537 | } else { | ||
| 538 | keylen = 2; | ||
| 539 | } | ||
| 540 | |||
| 541 | for (i = 0; i < sk_IPAddressFamily_num(addr); i++) { | ||
| 542 | f = sk_IPAddressFamily_value(addr, i); | ||
| 543 | OPENSSL_assert(f->addressFamily->data != NULL); | ||
| 544 | if (f->addressFamily->length == keylen && | ||
| 545 | !memcmp(f->addressFamily->data, key, keylen)) | ||
| 546 | return f; | ||
| 547 | } | ||
| 548 | |||
| 549 | if ((f = IPAddressFamily_new()) == NULL) | ||
| 550 | goto err; | ||
| 551 | if (f->ipAddressChoice == NULL && | ||
| 552 | (f->ipAddressChoice = IPAddressChoice_new()) == NULL) | ||
| 553 | goto err; | ||
| 554 | if (f->addressFamily == NULL && | ||
| 555 | (f->addressFamily = ASN1_OCTET_STRING_new()) == NULL) | ||
| 556 | goto err; | ||
| 557 | if (!ASN1_OCTET_STRING_set(f->addressFamily, key, keylen)) | ||
| 558 | goto err; | ||
| 559 | if (!sk_IPAddressFamily_push(addr, f)) | ||
| 560 | goto err; | ||
| 561 | |||
| 562 | return f; | ||
| 563 | |||
| 564 | err: | ||
| 565 | IPAddressFamily_free(f); | ||
| 566 | return NULL; | ||
| 567 | } | ||
| 568 | |||
| 569 | /* | ||
| 570 | * Add an inheritance element. | ||
| 571 | */ | ||
| 572 | int v3_addr_add_inherit(IPAddrBlocks *addr, | ||
| 573 | const unsigned afi, | ||
| 574 | const unsigned *safi) | ||
| 575 | { | ||
| 576 | IPAddressFamily *f = make_IPAddressFamily(addr, afi, safi); | ||
| 577 | if (f == NULL || | ||
| 578 | f->ipAddressChoice == NULL || | ||
| 579 | (f->ipAddressChoice->type == IPAddressChoice_addressesOrRanges && | ||
| 580 | f->ipAddressChoice->u.addressesOrRanges != NULL)) | ||
| 581 | return 0; | ||
| 582 | if (f->ipAddressChoice->type == IPAddressChoice_inherit && | ||
| 583 | f->ipAddressChoice->u.inherit != NULL) | ||
| 584 | return 1; | ||
| 585 | if (f->ipAddressChoice->u.inherit == NULL && | ||
| 586 | (f->ipAddressChoice->u.inherit = ASN1_NULL_new()) == NULL) | ||
| 587 | return 0; | ||
| 588 | f->ipAddressChoice->type = IPAddressChoice_inherit; | ||
| 589 | return 1; | ||
| 590 | } | ||
| 591 | |||
| 592 | /* | ||
| 593 | * Construct an IPAddressOrRange sequence, or return an existing one. | ||
| 594 | */ | ||
| 595 | static IPAddressOrRanges *make_prefix_or_range(IPAddrBlocks *addr, | ||
| 596 | const unsigned afi, | ||
| 597 | const unsigned *safi) | ||
| 598 | { | ||
| 599 | IPAddressFamily *f = make_IPAddressFamily(addr, afi, safi); | ||
| 600 | IPAddressOrRanges *aors = NULL; | ||
| 601 | |||
| 602 | if (f == NULL || | ||
| 603 | f->ipAddressChoice == NULL || | ||
| 604 | (f->ipAddressChoice->type == IPAddressChoice_inherit && | ||
| 605 | f->ipAddressChoice->u.inherit != NULL)) | ||
| 606 | return NULL; | ||
| 607 | if (f->ipAddressChoice->type == IPAddressChoice_addressesOrRanges) | ||
| 608 | aors = f->ipAddressChoice->u.addressesOrRanges; | ||
| 609 | if (aors != NULL) | ||
| 610 | return aors; | ||
| 611 | if ((aors = sk_IPAddressOrRange_new_null()) == NULL) | ||
| 612 | return NULL; | ||
| 613 | switch (afi) { | ||
| 614 | case IANA_AFI_IPV4: | ||
| 615 | (void) sk_IPAddressOrRange_set_cmp_func(aors, v4IPAddressOrRange_cmp); | ||
| 616 | break; | ||
| 617 | case IANA_AFI_IPV6: | ||
| 618 | (void) sk_IPAddressOrRange_set_cmp_func(aors, v6IPAddressOrRange_cmp); | ||
| 619 | break; | ||
| 620 | } | ||
| 621 | f->ipAddressChoice->type = IPAddressChoice_addressesOrRanges; | ||
| 622 | f->ipAddressChoice->u.addressesOrRanges = aors; | ||
| 623 | return aors; | ||
| 624 | } | ||
| 625 | |||
| 626 | /* | ||
| 627 | * Add a prefix. | ||
| 628 | */ | ||
| 629 | int v3_addr_add_prefix(IPAddrBlocks *addr, | ||
| 630 | const unsigned afi, | ||
| 631 | const unsigned *safi, | ||
| 632 | unsigned char *a, | ||
| 633 | const int prefixlen) | ||
| 634 | { | ||
| 635 | IPAddressOrRanges *aors = make_prefix_or_range(addr, afi, safi); | ||
| 636 | IPAddressOrRange *aor; | ||
| 637 | if (aors == NULL || !make_addressPrefix(&aor, a, prefixlen)) | ||
| 638 | return 0; | ||
| 639 | if (sk_IPAddressOrRange_push(aors, aor)) | ||
| 640 | return 1; | ||
| 641 | IPAddressOrRange_free(aor); | ||
| 642 | return 0; | ||
| 643 | } | ||
| 644 | |||
| 645 | /* | ||
| 646 | * Add a range. | ||
| 647 | */ | ||
| 648 | int v3_addr_add_range(IPAddrBlocks *addr, | ||
| 649 | const unsigned afi, | ||
| 650 | const unsigned *safi, | ||
| 651 | unsigned char *min, | ||
| 652 | unsigned char *max) | ||
| 653 | { | ||
| 654 | IPAddressOrRanges *aors = make_prefix_or_range(addr, afi, safi); | ||
| 655 | IPAddressOrRange *aor; | ||
| 656 | int length = length_from_afi(afi); | ||
| 657 | if (aors == NULL) | ||
| 658 | return 0; | ||
| 659 | if (!make_addressRange(&aor, min, max, length)) | ||
| 660 | return 0; | ||
| 661 | if (sk_IPAddressOrRange_push(aors, aor)) | ||
| 662 | return 1; | ||
| 663 | IPAddressOrRange_free(aor); | ||
| 664 | return 0; | ||
| 665 | } | ||
| 666 | |||
| 667 | /* | ||
| 668 | * Extract min and max values from an IPAddressOrRange. | ||
| 669 | */ | ||
| 670 | static int extract_min_max(IPAddressOrRange *aor, | ||
| 671 | unsigned char *min, | ||
| 672 | unsigned char *max, | ||
| 673 | int length) | ||
| 674 | { | ||
| 675 | if (aor == NULL || min == NULL || max == NULL) | ||
| 676 | return 0; | ||
| 677 | switch (aor->type) { | ||
| 678 | case IPAddressOrRange_addressPrefix: | ||
| 679 | return (addr_expand(min, aor->u.addressPrefix, length, 0x00) && | ||
| 680 | addr_expand(max, aor->u.addressPrefix, length, 0xFF)); | ||
| 681 | case IPAddressOrRange_addressRange: | ||
| 682 | return (addr_expand(min, aor->u.addressRange->min, length, 0x00) && | ||
| 683 | addr_expand(max, aor->u.addressRange->max, length, 0xFF)); | ||
| 684 | } | ||
| 685 | return 0; | ||
| 686 | } | ||
| 687 | |||
| 688 | /* | ||
| 689 | * Public wrapper for extract_min_max(). | ||
| 690 | */ | ||
| 691 | int v3_addr_get_range(IPAddressOrRange *aor, | ||
| 692 | const unsigned afi, | ||
| 693 | unsigned char *min, | ||
| 694 | unsigned char *max, | ||
| 695 | const int length) | ||
| 696 | { | ||
| 697 | int afi_length = length_from_afi(afi); | ||
| 698 | if (aor == NULL || min == NULL || max == NULL || | ||
| 699 | afi_length == 0 || length < afi_length || | ||
| 700 | (aor->type != IPAddressOrRange_addressPrefix && | ||
| 701 | aor->type != IPAddressOrRange_addressRange) || | ||
| 702 | !extract_min_max(aor, min, max, afi_length)) | ||
| 703 | return 0; | ||
| 704 | |||
| 705 | return afi_length; | ||
| 706 | } | ||
| 707 | |||
| 708 | /* | ||
| 709 | * Sort comparision function for a sequence of IPAddressFamily. | ||
| 710 | * | ||
| 711 | * The last paragraph of RFC 3779 2.2.3.3 is slightly ambiguous about | ||
| 712 | * the ordering: I can read it as meaning that IPv6 without a SAFI | ||
| 713 | * comes before IPv4 with a SAFI, which seems pretty weird. The | ||
| 714 | * examples in appendix B suggest that the author intended the | ||
| 715 | * null-SAFI rule to apply only within a single AFI, which is what I | ||
| 716 | * would have expected and is what the following code implements. | ||
| 717 | */ | ||
| 718 | static int IPAddressFamily_cmp(const IPAddressFamily * const *a_, | ||
| 719 | const IPAddressFamily * const *b_) | ||
| 720 | { | ||
| 721 | const ASN1_OCTET_STRING *a = (*a_)->addressFamily; | ||
| 722 | const ASN1_OCTET_STRING *b = (*b_)->addressFamily; | ||
| 723 | int len = ((a->length <= b->length) ? a->length : b->length); | ||
| 724 | int cmp = memcmp(a->data, b->data, len); | ||
| 725 | return cmp ? cmp : a->length - b->length; | ||
| 726 | } | ||
| 727 | |||
| 728 | /* | ||
| 729 | * Check whether an IPAddrBLocks is in canonical form. | ||
| 730 | */ | ||
| 731 | int v3_addr_is_canonical(IPAddrBlocks *addr) | ||
| 732 | { | ||
| 733 | unsigned char a_min[ADDR_RAW_BUF_LEN], a_max[ADDR_RAW_BUF_LEN]; | ||
| 734 | unsigned char b_min[ADDR_RAW_BUF_LEN], b_max[ADDR_RAW_BUF_LEN]; | ||
| 735 | IPAddressOrRanges *aors; | ||
| 736 | int i, j, k; | ||
| 737 | |||
| 738 | /* | ||
| 739 | * Empty extension is cannonical. | ||
| 740 | */ | ||
| 741 | if (addr == NULL) | ||
| 742 | return 1; | ||
| 743 | |||
| 744 | /* | ||
| 745 | * Check whether the top-level list is in order. | ||
| 746 | */ | ||
| 747 | for (i = 0; i < sk_IPAddressFamily_num(addr) - 1; i++) { | ||
| 748 | const IPAddressFamily *a = sk_IPAddressFamily_value(addr, i); | ||
| 749 | const IPAddressFamily *b = sk_IPAddressFamily_value(addr, i + 1); | ||
| 750 | if (IPAddressFamily_cmp(&a, &b) >= 0) | ||
| 751 | return 0; | ||
| 752 | } | ||
| 753 | |||
| 754 | /* | ||
| 755 | * Top level's ok, now check each address family. | ||
| 756 | */ | ||
| 757 | for (i = 0; i < sk_IPAddressFamily_num(addr); i++) { | ||
| 758 | IPAddressFamily *f = sk_IPAddressFamily_value(addr, i); | ||
| 759 | int length = length_from_afi(v3_addr_get_afi(f)); | ||
| 760 | |||
| 761 | /* | ||
| 762 | * Inheritance is canonical. Anything other than inheritance or | ||
| 763 | * a SEQUENCE OF IPAddressOrRange is an ASN.1 error or something. | ||
| 764 | */ | ||
| 765 | if (f == NULL || f->ipAddressChoice == NULL) | ||
| 766 | return 0; | ||
| 767 | switch (f->ipAddressChoice->type) { | ||
| 768 | case IPAddressChoice_inherit: | ||
| 769 | continue; | ||
| 770 | case IPAddressChoice_addressesOrRanges: | ||
| 771 | break; | ||
| 772 | default: | ||
| 773 | return 0; | ||
| 774 | } | ||
| 775 | |||
| 776 | /* | ||
| 777 | * It's an IPAddressOrRanges sequence, check it. | ||
| 778 | */ | ||
| 779 | aors = f->ipAddressChoice->u.addressesOrRanges; | ||
| 780 | if (sk_IPAddressOrRange_num(aors) == 0) | ||
| 781 | return 0; | ||
| 782 | for (j = 0; j < sk_IPAddressOrRange_num(aors) - 1; j++) { | ||
| 783 | IPAddressOrRange *a = sk_IPAddressOrRange_value(aors, j); | ||
| 784 | IPAddressOrRange *b = sk_IPAddressOrRange_value(aors, j + 1); | ||
| 785 | |||
| 786 | if (!extract_min_max(a, a_min, a_max, length) || | ||
| 787 | !extract_min_max(b, b_min, b_max, length)) | ||
| 788 | return 0; | ||
| 789 | |||
| 790 | /* | ||
| 791 | * Punt misordered list, overlapping start, or inverted range. | ||
| 792 | */ | ||
| 793 | if (memcmp(a_min, b_min, length) >= 0 || | ||
| 794 | memcmp(a_min, a_max, length) > 0 || | ||
| 795 | memcmp(b_min, b_max, length) > 0) | ||
| 796 | return 0; | ||
| 797 | |||
| 798 | /* | ||
| 799 | * Punt if adjacent or overlapping. Check for adjacency by | ||
| 800 | * subtracting one from b_min first. | ||
| 801 | */ | ||
| 802 | for (k = length - 1; k >= 0 && b_min[k]-- == 0x00; k--) | ||
| 803 | ; | ||
| 804 | if (memcmp(a_max, b_min, length) >= 0) | ||
| 805 | return 0; | ||
| 806 | |||
| 807 | /* | ||
| 808 | * Check for range that should be expressed as a prefix. | ||
| 809 | */ | ||
| 810 | if (a->type == IPAddressOrRange_addressRange && | ||
| 811 | range_should_be_prefix(a_min, a_max, length) >= 0) | ||
| 812 | return 0; | ||
| 813 | } | ||
| 814 | |||
| 815 | /* | ||
| 816 | * Check range to see if it's inverted or should be a | ||
| 817 | * prefix. | ||
| 818 | */ | ||
| 819 | j = sk_IPAddressOrRange_num(aors) - 1; | ||
| 820 | { | ||
| 821 | IPAddressOrRange *a = sk_IPAddressOrRange_value(aors, j); | ||
| 822 | if (a != NULL && a->type == IPAddressOrRange_addressRange) { | ||
| 823 | if (!extract_min_max(a, a_min, a_max, length)) | ||
| 824 | return 0; | ||
| 825 | if (memcmp(a_min, a_max, length) > 0 || | ||
| 826 | range_should_be_prefix(a_min, a_max, length) >= 0) | ||
| 827 | return 0; | ||
| 828 | } | ||
| 829 | } | ||
| 830 | } | ||
| 831 | |||
| 832 | /* | ||
| 833 | * If we made it through all that, we're happy. | ||
| 834 | */ | ||
| 835 | return 1; | ||
| 836 | } | ||
| 837 | |||
| 838 | /* | ||
| 839 | * Whack an IPAddressOrRanges into canonical form. | ||
| 840 | */ | ||
| 841 | static int IPAddressOrRanges_canonize(IPAddressOrRanges *aors, | ||
| 842 | const unsigned afi) | ||
| 843 | { | ||
| 844 | int i, j, length = length_from_afi(afi); | ||
| 845 | |||
| 846 | /* | ||
| 847 | * Sort the IPAddressOrRanges sequence. | ||
| 848 | */ | ||
| 849 | sk_IPAddressOrRange_sort(aors); | ||
| 850 | |||
| 851 | /* | ||
| 852 | * Clean up representation issues, punt on duplicates or overlaps. | ||
| 853 | */ | ||
| 854 | for (i = 0; i < sk_IPAddressOrRange_num(aors) - 1; i++) { | ||
| 855 | IPAddressOrRange *a = sk_IPAddressOrRange_value(aors, i); | ||
| 856 | IPAddressOrRange *b = sk_IPAddressOrRange_value(aors, i + 1); | ||
| 857 | unsigned char a_min[ADDR_RAW_BUF_LEN], a_max[ADDR_RAW_BUF_LEN]; | ||
| 858 | unsigned char b_min[ADDR_RAW_BUF_LEN], b_max[ADDR_RAW_BUF_LEN]; | ||
| 859 | |||
| 860 | if (!extract_min_max(a, a_min, a_max, length) || | ||
| 861 | !extract_min_max(b, b_min, b_max, length)) | ||
| 862 | return 0; | ||
| 863 | |||
| 864 | /* | ||
| 865 | * Punt inverted ranges. | ||
| 866 | */ | ||
| 867 | if (memcmp(a_min, a_max, length) > 0 || | ||
| 868 | memcmp(b_min, b_max, length) > 0) | ||
| 869 | return 0; | ||
| 870 | |||
| 871 | /* | ||
| 872 | * Punt overlaps. | ||
| 873 | */ | ||
| 874 | if (memcmp(a_max, b_min, length) >= 0) | ||
| 875 | return 0; | ||
| 876 | |||
| 877 | /* | ||
| 878 | * Merge if a and b are adjacent. We check for | ||
| 879 | * adjacency by subtracting one from b_min first. | ||
| 880 | */ | ||
| 881 | for (j = length - 1; j >= 0 && b_min[j]-- == 0x00; j--) | ||
| 882 | ; | ||
| 883 | if (memcmp(a_max, b_min, length) == 0) { | ||
| 884 | IPAddressOrRange *merged; | ||
| 885 | if (!make_addressRange(&merged, a_min, b_max, length)) | ||
| 886 | return 0; | ||
| 887 | (void) sk_IPAddressOrRange_set(aors, i, merged); | ||
| 888 | (void) sk_IPAddressOrRange_delete(aors, i + 1); | ||
| 889 | IPAddressOrRange_free(a); | ||
| 890 | IPAddressOrRange_free(b); | ||
| 891 | --i; | ||
| 892 | continue; | ||
| 893 | } | ||
| 894 | } | ||
| 895 | |||
| 896 | /* | ||
| 897 | * Check for inverted final range. | ||
| 898 | */ | ||
| 899 | j = sk_IPAddressOrRange_num(aors) - 1; | ||
| 900 | { | ||
| 901 | IPAddressOrRange *a = sk_IPAddressOrRange_value(aors, j); | ||
| 902 | if (a != NULL && a->type == IPAddressOrRange_addressRange) { | ||
| 903 | unsigned char a_min[ADDR_RAW_BUF_LEN], a_max[ADDR_RAW_BUF_LEN]; | ||
| 904 | extract_min_max(a, a_min, a_max, length); | ||
| 905 | if (memcmp(a_min, a_max, length) > 0) | ||
| 906 | return 0; | ||
| 907 | } | ||
| 908 | } | ||
| 909 | |||
| 910 | return 1; | ||
| 911 | } | ||
| 912 | |||
| 913 | /* | ||
| 914 | * Whack an IPAddrBlocks extension into canonical form. | ||
| 915 | */ | ||
| 916 | int v3_addr_canonize(IPAddrBlocks *addr) | ||
| 917 | { | ||
| 918 | int i; | ||
| 919 | for (i = 0; i < sk_IPAddressFamily_num(addr); i++) { | ||
| 920 | IPAddressFamily *f = sk_IPAddressFamily_value(addr, i); | ||
| 921 | if (f->ipAddressChoice->type == IPAddressChoice_addressesOrRanges && | ||
| 922 | !IPAddressOrRanges_canonize(f->ipAddressChoice->u.addressesOrRanges, | ||
| 923 | v3_addr_get_afi(f))) | ||
| 924 | return 0; | ||
| 925 | } | ||
| 926 | (void) sk_IPAddressFamily_set_cmp_func(addr, IPAddressFamily_cmp); | ||
| 927 | sk_IPAddressFamily_sort(addr); | ||
| 928 | OPENSSL_assert(v3_addr_is_canonical(addr)); | ||
| 929 | return 1; | ||
| 930 | } | ||
| 931 | |||
| 932 | /* | ||
| 933 | * v2i handler for the IPAddrBlocks extension. | ||
| 934 | */ | ||
| 935 | static void *v2i_IPAddrBlocks(const struct v3_ext_method *method, | ||
| 936 | struct v3_ext_ctx *ctx, | ||
| 937 | STACK_OF(CONF_VALUE) *values) | ||
| 938 | { | ||
| 939 | static const char v4addr_chars[] = "0123456789."; | ||
| 940 | static const char v6addr_chars[] = "0123456789.:abcdefABCDEF"; | ||
| 941 | IPAddrBlocks *addr = NULL; | ||
| 942 | char *s = NULL, *t; | ||
| 943 | int i; | ||
| 944 | |||
| 945 | if ((addr = sk_IPAddressFamily_new(IPAddressFamily_cmp)) == NULL) { | ||
| 946 | X509V3err(X509V3_F_V2I_IPADDRBLOCKS, ERR_R_MALLOC_FAILURE); | ||
| 947 | return NULL; | ||
| 948 | } | ||
| 949 | |||
| 950 | for (i = 0; i < sk_CONF_VALUE_num(values); i++) { | ||
| 951 | CONF_VALUE *val = sk_CONF_VALUE_value(values, i); | ||
| 952 | unsigned char min[ADDR_RAW_BUF_LEN], max[ADDR_RAW_BUF_LEN]; | ||
| 953 | unsigned afi, *safi = NULL, safi_; | ||
| 954 | const char *addr_chars; | ||
| 955 | int prefixlen, i1, i2, delim, length; | ||
| 956 | |||
| 957 | if ( !name_cmp(val->name, "IPv4")) { | ||
| 958 | afi = IANA_AFI_IPV4; | ||
| 959 | } else if (!name_cmp(val->name, "IPv6")) { | ||
| 960 | afi = IANA_AFI_IPV6; | ||
| 961 | } else if (!name_cmp(val->name, "IPv4-SAFI")) { | ||
| 962 | afi = IANA_AFI_IPV4; | ||
| 963 | safi = &safi_; | ||
| 964 | } else if (!name_cmp(val->name, "IPv6-SAFI")) { | ||
| 965 | afi = IANA_AFI_IPV6; | ||
| 966 | safi = &safi_; | ||
| 967 | } else { | ||
| 968 | X509V3err(X509V3_F_V2I_IPADDRBLOCKS, X509V3_R_EXTENSION_NAME_ERROR); | ||
| 969 | X509V3_conf_err(val); | ||
| 970 | goto err; | ||
| 971 | } | ||
| 972 | |||
| 973 | switch (afi) { | ||
| 974 | case IANA_AFI_IPV4: | ||
| 975 | addr_chars = v4addr_chars; | ||
| 976 | break; | ||
| 977 | case IANA_AFI_IPV6: | ||
| 978 | addr_chars = v6addr_chars; | ||
| 979 | break; | ||
| 980 | } | ||
| 981 | |||
| 982 | length = length_from_afi(afi); | ||
| 983 | |||
| 984 | /* | ||
| 985 | * Handle SAFI, if any, and BUF_strdup() so we can null-terminate | ||
| 986 | * the other input values. | ||
| 987 | */ | ||
| 988 | if (safi != NULL) { | ||
| 989 | *safi = strtoul(val->value, &t, 0); | ||
| 990 | t += strspn(t, " \t"); | ||
| 991 | if (*safi > 0xFF || *t++ != ':') { | ||
| 992 | X509V3err(X509V3_F_V2I_IPADDRBLOCKS, X509V3_R_INVALID_SAFI); | ||
| 993 | X509V3_conf_err(val); | ||
| 994 | goto err; | ||
| 995 | } | ||
| 996 | t += strspn(t, " \t"); | ||
| 997 | s = BUF_strdup(t); | ||
| 998 | } else { | ||
| 999 | s = BUF_strdup(val->value); | ||
| 1000 | } | ||
| 1001 | if (s == NULL) { | ||
| 1002 | X509V3err(X509V3_F_V2I_IPADDRBLOCKS, ERR_R_MALLOC_FAILURE); | ||
| 1003 | goto err; | ||
| 1004 | } | ||
| 1005 | |||
| 1006 | /* | ||
| 1007 | * Check for inheritance. Not worth additional complexity to | ||
| 1008 | * optimize this (seldom-used) case. | ||
| 1009 | */ | ||
| 1010 | if (!strcmp(s, "inherit")) { | ||
| 1011 | if (!v3_addr_add_inherit(addr, afi, safi)) { | ||
| 1012 | X509V3err(X509V3_F_V2I_IPADDRBLOCKS, X509V3_R_INVALID_INHERITANCE); | ||
| 1013 | X509V3_conf_err(val); | ||
| 1014 | goto err; | ||
| 1015 | } | ||
| 1016 | OPENSSL_free(s); | ||
| 1017 | s = NULL; | ||
| 1018 | continue; | ||
| 1019 | } | ||
| 1020 | |||
| 1021 | i1 = strspn(s, addr_chars); | ||
| 1022 | i2 = i1 + strspn(s + i1, " \t"); | ||
| 1023 | delim = s[i2++]; | ||
| 1024 | s[i1] = '\0'; | ||
| 1025 | |||
| 1026 | if (a2i_ipadd(min, s) != length) { | ||
| 1027 | X509V3err(X509V3_F_V2I_IPADDRBLOCKS, X509V3_R_INVALID_IPADDRESS); | ||
| 1028 | X509V3_conf_err(val); | ||
| 1029 | goto err; | ||
| 1030 | } | ||
| 1031 | |||
| 1032 | switch (delim) { | ||
| 1033 | case '/': | ||
| 1034 | prefixlen = (int) strtoul(s + i2, &t, 10); | ||
| 1035 | if (t == s + i2 || *t != '\0') { | ||
| 1036 | X509V3err(X509V3_F_V2I_IPADDRBLOCKS, X509V3_R_EXTENSION_VALUE_ERROR); | ||
| 1037 | X509V3_conf_err(val); | ||
| 1038 | goto err; | ||
| 1039 | } | ||
| 1040 | if (!v3_addr_add_prefix(addr, afi, safi, min, prefixlen)) { | ||
| 1041 | X509V3err(X509V3_F_V2I_IPADDRBLOCKS, ERR_R_MALLOC_FAILURE); | ||
| 1042 | goto err; | ||
| 1043 | } | ||
| 1044 | break; | ||
| 1045 | case '-': | ||
| 1046 | i1 = i2 + strspn(s + i2, " \t"); | ||
| 1047 | i2 = i1 + strspn(s + i1, addr_chars); | ||
| 1048 | if (i1 == i2 || s[i2] != '\0') { | ||
| 1049 | X509V3err(X509V3_F_V2I_IPADDRBLOCKS, X509V3_R_EXTENSION_VALUE_ERROR); | ||
| 1050 | X509V3_conf_err(val); | ||
| 1051 | goto err; | ||
| 1052 | } | ||
| 1053 | if (a2i_ipadd(max, s + i1) != length) { | ||
| 1054 | X509V3err(X509V3_F_V2I_IPADDRBLOCKS, X509V3_R_INVALID_IPADDRESS); | ||
| 1055 | X509V3_conf_err(val); | ||
| 1056 | goto err; | ||
| 1057 | } | ||
| 1058 | if (memcmp(min, max, length_from_afi(afi)) > 0) { | ||
| 1059 | X509V3err(X509V3_F_V2I_IPADDRBLOCKS, X509V3_R_EXTENSION_VALUE_ERROR); | ||
| 1060 | X509V3_conf_err(val); | ||
| 1061 | goto err; | ||
| 1062 | } | ||
| 1063 | if (!v3_addr_add_range(addr, afi, safi, min, max)) { | ||
| 1064 | X509V3err(X509V3_F_V2I_IPADDRBLOCKS, ERR_R_MALLOC_FAILURE); | ||
| 1065 | goto err; | ||
| 1066 | } | ||
| 1067 | break; | ||
| 1068 | case '\0': | ||
| 1069 | if (!v3_addr_add_prefix(addr, afi, safi, min, length * 8)) { | ||
| 1070 | X509V3err(X509V3_F_V2I_IPADDRBLOCKS, ERR_R_MALLOC_FAILURE); | ||
| 1071 | goto err; | ||
| 1072 | } | ||
| 1073 | break; | ||
| 1074 | default: | ||
| 1075 | X509V3err(X509V3_F_V2I_IPADDRBLOCKS, X509V3_R_EXTENSION_VALUE_ERROR); | ||
| 1076 | X509V3_conf_err(val); | ||
| 1077 | goto err; | ||
| 1078 | } | ||
| 1079 | |||
| 1080 | OPENSSL_free(s); | ||
| 1081 | s = NULL; | ||
| 1082 | } | ||
| 1083 | |||
| 1084 | /* | ||
| 1085 | * Canonize the result, then we're done. | ||
| 1086 | */ | ||
| 1087 | if (!v3_addr_canonize(addr)) | ||
| 1088 | goto err; | ||
| 1089 | return addr; | ||
| 1090 | |||
| 1091 | err: | ||
| 1092 | OPENSSL_free(s); | ||
| 1093 | sk_IPAddressFamily_pop_free(addr, IPAddressFamily_free); | ||
| 1094 | return NULL; | ||
| 1095 | } | ||
| 1096 | |||
| 1097 | /* | ||
| 1098 | * OpenSSL dispatch | ||
| 1099 | */ | ||
| 1100 | const X509V3_EXT_METHOD v3_addr = { | ||
| 1101 | NID_sbgp_ipAddrBlock, /* nid */ | ||
| 1102 | 0, /* flags */ | ||
| 1103 | ASN1_ITEM_ref(IPAddrBlocks), /* template */ | ||
| 1104 | 0, 0, 0, 0, /* old functions, ignored */ | ||
| 1105 | 0, /* i2s */ | ||
| 1106 | 0, /* s2i */ | ||
| 1107 | 0, /* i2v */ | ||
| 1108 | v2i_IPAddrBlocks, /* v2i */ | ||
| 1109 | i2r_IPAddrBlocks, /* i2r */ | ||
| 1110 | 0, /* r2i */ | ||
| 1111 | NULL /* extension-specific data */ | ||
| 1112 | }; | ||
| 1113 | |||
| 1114 | /* | ||
| 1115 | * Figure out whether extension sues inheritance. | ||
| 1116 | */ | ||
| 1117 | int v3_addr_inherits(IPAddrBlocks *addr) | ||
| 1118 | { | ||
| 1119 | int i; | ||
| 1120 | if (addr == NULL) | ||
| 1121 | return 0; | ||
| 1122 | for (i = 0; i < sk_IPAddressFamily_num(addr); i++) { | ||
| 1123 | IPAddressFamily *f = sk_IPAddressFamily_value(addr, i); | ||
| 1124 | if (f->ipAddressChoice->type == IPAddressChoice_inherit) | ||
| 1125 | return 1; | ||
| 1126 | } | ||
| 1127 | return 0; | ||
| 1128 | } | ||
| 1129 | |||
| 1130 | /* | ||
| 1131 | * Figure out whether parent contains child. | ||
| 1132 | */ | ||
| 1133 | static int addr_contains(IPAddressOrRanges *parent, | ||
| 1134 | IPAddressOrRanges *child, | ||
| 1135 | int length) | ||
| 1136 | { | ||
| 1137 | unsigned char p_min[ADDR_RAW_BUF_LEN], p_max[ADDR_RAW_BUF_LEN]; | ||
| 1138 | unsigned char c_min[ADDR_RAW_BUF_LEN], c_max[ADDR_RAW_BUF_LEN]; | ||
| 1139 | int p, c; | ||
| 1140 | |||
| 1141 | if (child == NULL || parent == child) | ||
| 1142 | return 1; | ||
| 1143 | if (parent == NULL) | ||
| 1144 | return 0; | ||
| 1145 | |||
| 1146 | p = 0; | ||
| 1147 | for (c = 0; c < sk_IPAddressOrRange_num(child); c++) { | ||
| 1148 | if (!extract_min_max(sk_IPAddressOrRange_value(child, c), | ||
| 1149 | c_min, c_max, length)) | ||
| 1150 | return -1; | ||
| 1151 | for (;; p++) { | ||
| 1152 | if (p >= sk_IPAddressOrRange_num(parent)) | ||
| 1153 | return 0; | ||
| 1154 | if (!extract_min_max(sk_IPAddressOrRange_value(parent, p), | ||
| 1155 | p_min, p_max, length)) | ||
| 1156 | return 0; | ||
| 1157 | if (memcmp(p_max, c_max, length) < 0) | ||
| 1158 | continue; | ||
| 1159 | if (memcmp(p_min, c_min, length) > 0) | ||
| 1160 | return 0; | ||
| 1161 | break; | ||
| 1162 | } | ||
| 1163 | } | ||
| 1164 | |||
| 1165 | return 1; | ||
| 1166 | } | ||
| 1167 | |||
| 1168 | /* | ||
| 1169 | * Test whether a is a subset of b. | ||
| 1170 | */ | ||
| 1171 | int v3_addr_subset(IPAddrBlocks *a, IPAddrBlocks *b) | ||
| 1172 | { | ||
| 1173 | int i; | ||
| 1174 | if (a == NULL || a == b) | ||
| 1175 | return 1; | ||
| 1176 | if (b == NULL || v3_addr_inherits(a) || v3_addr_inherits(b)) | ||
| 1177 | return 0; | ||
| 1178 | (void) sk_IPAddressFamily_set_cmp_func(b, IPAddressFamily_cmp); | ||
| 1179 | for (i = 0; i < sk_IPAddressFamily_num(a); i++) { | ||
| 1180 | IPAddressFamily *fa = sk_IPAddressFamily_value(a, i); | ||
| 1181 | int j = sk_IPAddressFamily_find(b, fa); | ||
| 1182 | IPAddressFamily *fb; | ||
| 1183 | fb = sk_IPAddressFamily_value(b, j); | ||
| 1184 | if (fb == NULL) | ||
| 1185 | return 0; | ||
| 1186 | if (!addr_contains(fb->ipAddressChoice->u.addressesOrRanges, | ||
| 1187 | fa->ipAddressChoice->u.addressesOrRanges, | ||
| 1188 | length_from_afi(v3_addr_get_afi(fb)))) | ||
| 1189 | return 0; | ||
| 1190 | } | ||
| 1191 | return 1; | ||
| 1192 | } | ||
| 1193 | |||
| 1194 | /* | ||
| 1195 | * Validation error handling via callback. | ||
| 1196 | */ | ||
| 1197 | #define validation_err(_err_) \ | ||
| 1198 | do { \ | ||
| 1199 | if (ctx != NULL) { \ | ||
| 1200 | ctx->error = _err_; \ | ||
| 1201 | ctx->error_depth = i; \ | ||
| 1202 | ctx->current_cert = x; \ | ||
| 1203 | ret = ctx->verify_cb(0, ctx); \ | ||
| 1204 | } else { \ | ||
| 1205 | ret = 0; \ | ||
| 1206 | } \ | ||
| 1207 | if (!ret) \ | ||
| 1208 | goto done; \ | ||
| 1209 | } while (0) | ||
| 1210 | |||
| 1211 | /* | ||
| 1212 | * Core code for RFC 3779 2.3 path validation. | ||
| 1213 | */ | ||
| 1214 | static int v3_addr_validate_path_internal(X509_STORE_CTX *ctx, | ||
| 1215 | STACK_OF(X509) *chain, | ||
| 1216 | IPAddrBlocks *ext) | ||
| 1217 | { | ||
| 1218 | IPAddrBlocks *child = NULL; | ||
| 1219 | int i, j, ret = 1; | ||
| 1220 | X509 *x; | ||
| 1221 | |||
| 1222 | OPENSSL_assert(chain != NULL && sk_X509_num(chain) > 0); | ||
| 1223 | OPENSSL_assert(ctx != NULL || ext != NULL); | ||
| 1224 | OPENSSL_assert(ctx == NULL || ctx->verify_cb != NULL); | ||
| 1225 | |||
| 1226 | /* | ||
| 1227 | * Figure out where to start. If we don't have an extension to | ||
| 1228 | * check, we're done. Otherwise, check canonical form and | ||
| 1229 | * set up for walking up the chain. | ||
| 1230 | */ | ||
| 1231 | if (ext != NULL) { | ||
| 1232 | i = -1; | ||
| 1233 | x = NULL; | ||
| 1234 | } else { | ||
| 1235 | i = 0; | ||
| 1236 | x = sk_X509_value(chain, i); | ||
| 1237 | OPENSSL_assert(x != NULL); | ||
| 1238 | if ((ext = x->rfc3779_addr) == NULL) | ||
| 1239 | goto done; | ||
| 1240 | } | ||
| 1241 | if (!v3_addr_is_canonical(ext)) | ||
| 1242 | validation_err(X509_V_ERR_INVALID_EXTENSION); | ||
| 1243 | (void) sk_IPAddressFamily_set_cmp_func(ext, IPAddressFamily_cmp); | ||
| 1244 | if ((child = sk_IPAddressFamily_dup(ext)) == NULL) { | ||
| 1245 | X509V3err(X509V3_F_V3_ADDR_VALIDATE_PATH_INTERNAL, ERR_R_MALLOC_FAILURE); | ||
| 1246 | ret = 0; | ||
| 1247 | goto done; | ||
| 1248 | } | ||
| 1249 | |||
| 1250 | /* | ||
| 1251 | * Now walk up the chain. No cert may list resources that its | ||
| 1252 | * parent doesn't list. | ||
| 1253 | */ | ||
| 1254 | for (i++; i < sk_X509_num(chain); i++) { | ||
| 1255 | x = sk_X509_value(chain, i); | ||
| 1256 | OPENSSL_assert(x != NULL); | ||
| 1257 | if (!v3_addr_is_canonical(x->rfc3779_addr)) | ||
| 1258 | validation_err(X509_V_ERR_INVALID_EXTENSION); | ||
| 1259 | if (x->rfc3779_addr == NULL) { | ||
| 1260 | for (j = 0; j < sk_IPAddressFamily_num(child); j++) { | ||
| 1261 | IPAddressFamily *fc = sk_IPAddressFamily_value(child, j); | ||
| 1262 | if (fc->ipAddressChoice->type != IPAddressChoice_inherit) { | ||
| 1263 | validation_err(X509_V_ERR_UNNESTED_RESOURCE); | ||
| 1264 | break; | ||
| 1265 | } | ||
| 1266 | } | ||
| 1267 | continue; | ||
| 1268 | } | ||
| 1269 | (void) sk_IPAddressFamily_set_cmp_func(x->rfc3779_addr, IPAddressFamily_cmp); | ||
| 1270 | for (j = 0; j < sk_IPAddressFamily_num(child); j++) { | ||
| 1271 | IPAddressFamily *fc = sk_IPAddressFamily_value(child, j); | ||
| 1272 | int k = sk_IPAddressFamily_find(x->rfc3779_addr, fc); | ||
| 1273 | IPAddressFamily *fp = sk_IPAddressFamily_value(x->rfc3779_addr, k); | ||
| 1274 | if (fp == NULL) { | ||
| 1275 | if (fc->ipAddressChoice->type == IPAddressChoice_addressesOrRanges) { | ||
| 1276 | validation_err(X509_V_ERR_UNNESTED_RESOURCE); | ||
| 1277 | break; | ||
| 1278 | } | ||
| 1279 | continue; | ||
| 1280 | } | ||
| 1281 | if (fp->ipAddressChoice->type == IPAddressChoice_addressesOrRanges) { | ||
| 1282 | if (fc->ipAddressChoice->type == IPAddressChoice_inherit || | ||
| 1283 | addr_contains(fp->ipAddressChoice->u.addressesOrRanges, | ||
| 1284 | fc->ipAddressChoice->u.addressesOrRanges, | ||
| 1285 | length_from_afi(v3_addr_get_afi(fc)))) | ||
| 1286 | sk_IPAddressFamily_set(child, j, fp); | ||
| 1287 | else | ||
| 1288 | validation_err(X509_V_ERR_UNNESTED_RESOURCE); | ||
| 1289 | } | ||
| 1290 | } | ||
| 1291 | } | ||
| 1292 | |||
| 1293 | /* | ||
| 1294 | * Trust anchor can't inherit. | ||
| 1295 | */ | ||
| 1296 | OPENSSL_assert(x != NULL); | ||
| 1297 | if (x->rfc3779_addr != NULL) { | ||
| 1298 | for (j = 0; j < sk_IPAddressFamily_num(x->rfc3779_addr); j++) { | ||
| 1299 | IPAddressFamily *fp = sk_IPAddressFamily_value(x->rfc3779_addr, j); | ||
| 1300 | if (fp->ipAddressChoice->type == IPAddressChoice_inherit && | ||
| 1301 | sk_IPAddressFamily_find(child, fp) >= 0) | ||
| 1302 | validation_err(X509_V_ERR_UNNESTED_RESOURCE); | ||
| 1303 | } | ||
| 1304 | } | ||
| 1305 | |||
| 1306 | done: | ||
| 1307 | sk_IPAddressFamily_free(child); | ||
| 1308 | return ret; | ||
| 1309 | } | ||
| 1310 | |||
| 1311 | #undef validation_err | ||
| 1312 | |||
| 1313 | /* | ||
| 1314 | * RFC 3779 2.3 path validation -- called from X509_verify_cert(). | ||
| 1315 | */ | ||
| 1316 | int v3_addr_validate_path(X509_STORE_CTX *ctx) | ||
| 1317 | { | ||
| 1318 | return v3_addr_validate_path_internal(ctx, ctx->chain, NULL); | ||
| 1319 | } | ||
| 1320 | |||
| 1321 | /* | ||
| 1322 | * RFC 3779 2.3 path validation of an extension. | ||
| 1323 | * Test whether chain covers extension. | ||
| 1324 | */ | ||
| 1325 | int v3_addr_validate_resource_set(STACK_OF(X509) *chain, | ||
| 1326 | IPAddrBlocks *ext, | ||
| 1327 | int allow_inheritance) | ||
| 1328 | { | ||
| 1329 | if (ext == NULL) | ||
| 1330 | return 1; | ||
| 1331 | if (chain == NULL || sk_X509_num(chain) == 0) | ||
| 1332 | return 0; | ||
| 1333 | if (!allow_inheritance && v3_addr_inherits(ext)) | ||
| 1334 | return 0; | ||
| 1335 | return v3_addr_validate_path_internal(NULL, chain, ext); | ||
| 1336 | } | ||
| 1337 | |||
| 1338 | #endif /* OPENSSL_NO_RFC3779 */ | ||
diff --git a/src/lib/libcrypto/x509v3/v3_asid.c b/src/lib/libcrypto/x509v3/v3_asid.c deleted file mode 100644 index 1587e8ed72..0000000000 --- a/src/lib/libcrypto/x509v3/v3_asid.c +++ /dev/null | |||
| @@ -1,890 +0,0 @@ | |||
| 1 | /* | ||
| 2 | * Contributed to the OpenSSL Project by the American Registry for | ||
| 3 | * Internet Numbers ("ARIN"). | ||
| 4 | */ | ||
| 5 | /* ==================================================================== | ||
| 6 | * Copyright (c) 2006 The OpenSSL Project. All rights reserved. | ||
| 7 | * | ||
| 8 | * Redistribution and use in source and binary forms, with or without | ||
| 9 | * modification, are permitted provided that the following conditions | ||
| 10 | * are met: | ||
| 11 | * | ||
| 12 | * 1. Redistributions of source code must retain the above copyright | ||
| 13 | * notice, this list of conditions and the following disclaimer. | ||
| 14 | * | ||
| 15 | * 2. Redistributions in binary form must reproduce the above copyright | ||
| 16 | * notice, this list of conditions and the following disclaimer in | ||
| 17 | * the documentation and/or other materials provided with the | ||
| 18 | * distribution. | ||
| 19 | * | ||
| 20 | * 3. All advertising materials mentioning features or use of this | ||
| 21 | * software must display the following acknowledgment: | ||
| 22 | * "This product includes software developed by the OpenSSL Project | ||
| 23 | * for use in the OpenSSL Toolkit. (http://www.OpenSSL.org/)" | ||
| 24 | * | ||
| 25 | * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to | ||
| 26 | * endorse or promote products derived from this software without | ||
| 27 | * prior written permission. For written permission, please contact | ||
| 28 | * licensing@OpenSSL.org. | ||
| 29 | * | ||
| 30 | * 5. Products derived from this software may not be called "OpenSSL" | ||
| 31 | * nor may "OpenSSL" appear in their names without prior written | ||
| 32 | * permission of the OpenSSL Project. | ||
| 33 | * | ||
| 34 | * 6. Redistributions of any form whatsoever must retain the following | ||
| 35 | * acknowledgment: | ||
| 36 | * "This product includes software developed by the OpenSSL Project | ||
| 37 | * for use in the OpenSSL Toolkit (http://www.OpenSSL.org/)" | ||
| 38 | * | ||
| 39 | * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY | ||
| 40 | * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
| 41 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | ||
| 42 | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR | ||
| 43 | * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
| 44 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | ||
| 45 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
| 46 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
| 47 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | ||
| 48 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
| 49 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | ||
| 50 | * OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| 51 | * ==================================================================== | ||
| 52 | * | ||
| 53 | * This product includes cryptographic software written by Eric Young | ||
| 54 | * (eay@cryptsoft.com). This product includes software written by Tim | ||
| 55 | * Hudson (tjh@cryptsoft.com). | ||
| 56 | */ | ||
| 57 | |||
| 58 | /* | ||
| 59 | * Implementation of RFC 3779 section 3.2. | ||
| 60 | */ | ||
| 61 | |||
| 62 | #include <stdio.h> | ||
| 63 | #include <string.h> | ||
| 64 | #include "cryptlib.h" | ||
| 65 | #include <openssl/conf.h> | ||
| 66 | #include <openssl/asn1.h> | ||
| 67 | #include <openssl/asn1t.h> | ||
| 68 | #include <openssl/x509v3.h> | ||
| 69 | #include <openssl/x509.h> | ||
| 70 | #include <openssl/bn.h> | ||
| 71 | |||
| 72 | #ifndef OPENSSL_NO_RFC3779 | ||
| 73 | |||
| 74 | /* | ||
| 75 | * OpenSSL ASN.1 template translation of RFC 3779 3.2.3. | ||
| 76 | */ | ||
| 77 | |||
| 78 | ASN1_SEQUENCE(ASRange) = { | ||
| 79 | ASN1_SIMPLE(ASRange, min, ASN1_INTEGER), | ||
| 80 | ASN1_SIMPLE(ASRange, max, ASN1_INTEGER) | ||
| 81 | } ASN1_SEQUENCE_END(ASRange) | ||
| 82 | |||
| 83 | ASN1_CHOICE(ASIdOrRange) = { | ||
| 84 | ASN1_SIMPLE(ASIdOrRange, u.id, ASN1_INTEGER), | ||
| 85 | ASN1_SIMPLE(ASIdOrRange, u.range, ASRange) | ||
| 86 | } ASN1_CHOICE_END(ASIdOrRange) | ||
| 87 | |||
| 88 | ASN1_CHOICE(ASIdentifierChoice) = { | ||
| 89 | ASN1_SIMPLE(ASIdentifierChoice, u.inherit, ASN1_NULL), | ||
| 90 | ASN1_SEQUENCE_OF(ASIdentifierChoice, u.asIdsOrRanges, ASIdOrRange) | ||
| 91 | } ASN1_CHOICE_END(ASIdentifierChoice) | ||
| 92 | |||
| 93 | ASN1_SEQUENCE(ASIdentifiers) = { | ||
| 94 | ASN1_EXP_OPT(ASIdentifiers, asnum, ASIdentifierChoice, 0), | ||
| 95 | ASN1_EXP_OPT(ASIdentifiers, rdi, ASIdentifierChoice, 1) | ||
| 96 | } ASN1_SEQUENCE_END(ASIdentifiers) | ||
| 97 | |||
| 98 | IMPLEMENT_ASN1_FUNCTIONS(ASRange) | ||
| 99 | IMPLEMENT_ASN1_FUNCTIONS(ASIdOrRange) | ||
| 100 | IMPLEMENT_ASN1_FUNCTIONS(ASIdentifierChoice) | ||
| 101 | IMPLEMENT_ASN1_FUNCTIONS(ASIdentifiers) | ||
| 102 | |||
| 103 | /* | ||
| 104 | * i2r method for an ASIdentifierChoice. | ||
| 105 | */ | ||
| 106 | static int i2r_ASIdentifierChoice(BIO *out, | ||
| 107 | ASIdentifierChoice *choice, | ||
| 108 | int indent, | ||
| 109 | const char *msg) | ||
| 110 | { | ||
| 111 | int i; | ||
| 112 | char *s; | ||
| 113 | if (choice == NULL) | ||
| 114 | return 1; | ||
| 115 | BIO_printf(out, "%*s%s:\n", indent, "", msg); | ||
| 116 | switch (choice->type) { | ||
| 117 | case ASIdentifierChoice_inherit: | ||
| 118 | BIO_printf(out, "%*sinherit\n", indent + 2, ""); | ||
| 119 | break; | ||
| 120 | case ASIdentifierChoice_asIdsOrRanges: | ||
| 121 | for (i = 0; i < sk_ASIdOrRange_num(choice->u.asIdsOrRanges); i++) { | ||
| 122 | ASIdOrRange *aor = sk_ASIdOrRange_value(choice->u.asIdsOrRanges, i); | ||
| 123 | switch (aor->type) { | ||
| 124 | case ASIdOrRange_id: | ||
| 125 | if ((s = i2s_ASN1_INTEGER(NULL, aor->u.id)) == NULL) | ||
| 126 | return 0; | ||
| 127 | BIO_printf(out, "%*s%s\n", indent + 2, "", s); | ||
| 128 | OPENSSL_free(s); | ||
| 129 | break; | ||
| 130 | case ASIdOrRange_range: | ||
| 131 | if ((s = i2s_ASN1_INTEGER(NULL, aor->u.range->min)) == NULL) | ||
| 132 | return 0; | ||
| 133 | BIO_printf(out, "%*s%s-", indent + 2, "", s); | ||
| 134 | OPENSSL_free(s); | ||
| 135 | if ((s = i2s_ASN1_INTEGER(NULL, aor->u.range->max)) == NULL) | ||
| 136 | return 0; | ||
| 137 | BIO_printf(out, "%s\n", s); | ||
| 138 | OPENSSL_free(s); | ||
| 139 | break; | ||
| 140 | default: | ||
| 141 | return 0; | ||
| 142 | } | ||
| 143 | } | ||
| 144 | break; | ||
| 145 | default: | ||
| 146 | return 0; | ||
| 147 | } | ||
| 148 | return 1; | ||
| 149 | } | ||
| 150 | |||
| 151 | /* | ||
| 152 | * i2r method for an ASIdentifier extension. | ||
| 153 | */ | ||
| 154 | static int i2r_ASIdentifiers(const X509V3_EXT_METHOD *method, | ||
| 155 | void *ext, | ||
| 156 | BIO *out, | ||
| 157 | int indent) | ||
| 158 | { | ||
| 159 | ASIdentifiers *asid = ext; | ||
| 160 | return (i2r_ASIdentifierChoice(out, asid->asnum, indent, | ||
| 161 | "Autonomous System Numbers") && | ||
| 162 | i2r_ASIdentifierChoice(out, asid->rdi, indent, | ||
| 163 | "Routing Domain Identifiers")); | ||
| 164 | } | ||
| 165 | |||
| 166 | /* | ||
| 167 | * Sort comparision function for a sequence of ASIdOrRange elements. | ||
| 168 | */ | ||
| 169 | static int ASIdOrRange_cmp(const ASIdOrRange * const *a_, | ||
| 170 | const ASIdOrRange * const *b_) | ||
| 171 | { | ||
| 172 | const ASIdOrRange *a = *a_, *b = *b_; | ||
| 173 | |||
| 174 | OPENSSL_assert((a->type == ASIdOrRange_id && a->u.id != NULL) || | ||
| 175 | (a->type == ASIdOrRange_range && a->u.range != NULL && | ||
| 176 | a->u.range->min != NULL && a->u.range->max != NULL)); | ||
| 177 | |||
| 178 | OPENSSL_assert((b->type == ASIdOrRange_id && b->u.id != NULL) || | ||
| 179 | (b->type == ASIdOrRange_range && b->u.range != NULL && | ||
| 180 | b->u.range->min != NULL && b->u.range->max != NULL)); | ||
| 181 | |||
| 182 | if (a->type == ASIdOrRange_id && b->type == ASIdOrRange_id) | ||
| 183 | return ASN1_INTEGER_cmp(a->u.id, b->u.id); | ||
| 184 | |||
| 185 | if (a->type == ASIdOrRange_range && b->type == ASIdOrRange_range) { | ||
| 186 | int r = ASN1_INTEGER_cmp(a->u.range->min, b->u.range->min); | ||
| 187 | return r != 0 ? r : ASN1_INTEGER_cmp(a->u.range->max, b->u.range->max); | ||
| 188 | } | ||
| 189 | |||
| 190 | if (a->type == ASIdOrRange_id) | ||
| 191 | return ASN1_INTEGER_cmp(a->u.id, b->u.range->min); | ||
| 192 | else | ||
| 193 | return ASN1_INTEGER_cmp(a->u.range->min, b->u.id); | ||
| 194 | } | ||
| 195 | |||
| 196 | /* | ||
| 197 | * Add an inherit element. | ||
| 198 | */ | ||
| 199 | int v3_asid_add_inherit(ASIdentifiers *asid, int which) | ||
| 200 | { | ||
| 201 | ASIdentifierChoice **choice; | ||
| 202 | if (asid == NULL) | ||
| 203 | return 0; | ||
| 204 | switch (which) { | ||
| 205 | case V3_ASID_ASNUM: | ||
| 206 | choice = &asid->asnum; | ||
| 207 | break; | ||
| 208 | case V3_ASID_RDI: | ||
| 209 | choice = &asid->rdi; | ||
| 210 | break; | ||
| 211 | default: | ||
| 212 | return 0; | ||
| 213 | } | ||
| 214 | if (*choice == NULL) { | ||
| 215 | if ((*choice = ASIdentifierChoice_new()) == NULL) | ||
| 216 | return 0; | ||
| 217 | OPENSSL_assert((*choice)->u.inherit == NULL); | ||
| 218 | if (((*choice)->u.inherit = ASN1_NULL_new()) == NULL) | ||
| 219 | return 0; | ||
| 220 | (*choice)->type = ASIdentifierChoice_inherit; | ||
| 221 | } | ||
| 222 | return (*choice)->type == ASIdentifierChoice_inherit; | ||
| 223 | } | ||
| 224 | |||
| 225 | /* | ||
| 226 | * Add an ID or range to an ASIdentifierChoice. | ||
| 227 | */ | ||
| 228 | int v3_asid_add_id_or_range(ASIdentifiers *asid, | ||
| 229 | int which, | ||
| 230 | ASN1_INTEGER *min, | ||
| 231 | ASN1_INTEGER *max) | ||
| 232 | { | ||
| 233 | ASIdentifierChoice **choice; | ||
| 234 | ASIdOrRange *aor; | ||
| 235 | if (asid == NULL) | ||
| 236 | return 0; | ||
| 237 | switch (which) { | ||
| 238 | case V3_ASID_ASNUM: | ||
| 239 | choice = &asid->asnum; | ||
| 240 | break; | ||
| 241 | case V3_ASID_RDI: | ||
| 242 | choice = &asid->rdi; | ||
| 243 | break; | ||
| 244 | default: | ||
| 245 | return 0; | ||
| 246 | } | ||
| 247 | if (*choice != NULL && (*choice)->type == ASIdentifierChoice_inherit) | ||
| 248 | return 0; | ||
| 249 | if (*choice == NULL) { | ||
| 250 | if ((*choice = ASIdentifierChoice_new()) == NULL) | ||
| 251 | return 0; | ||
| 252 | OPENSSL_assert((*choice)->u.asIdsOrRanges == NULL); | ||
| 253 | (*choice)->u.asIdsOrRanges = sk_ASIdOrRange_new(ASIdOrRange_cmp); | ||
| 254 | if ((*choice)->u.asIdsOrRanges == NULL) | ||
| 255 | return 0; | ||
| 256 | (*choice)->type = ASIdentifierChoice_asIdsOrRanges; | ||
| 257 | } | ||
| 258 | if ((aor = ASIdOrRange_new()) == NULL) | ||
| 259 | return 0; | ||
| 260 | if (max == NULL) { | ||
| 261 | aor->type = ASIdOrRange_id; | ||
| 262 | aor->u.id = min; | ||
| 263 | } else { | ||
| 264 | aor->type = ASIdOrRange_range; | ||
| 265 | if ((aor->u.range = ASRange_new()) == NULL) | ||
| 266 | goto err; | ||
| 267 | ASN1_INTEGER_free(aor->u.range->min); | ||
| 268 | aor->u.range->min = min; | ||
| 269 | ASN1_INTEGER_free(aor->u.range->max); | ||
| 270 | aor->u.range->max = max; | ||
| 271 | } | ||
| 272 | if (!(sk_ASIdOrRange_push((*choice)->u.asIdsOrRanges, aor))) | ||
| 273 | goto err; | ||
| 274 | return 1; | ||
| 275 | |||
| 276 | err: | ||
| 277 | ASIdOrRange_free(aor); | ||
| 278 | return 0; | ||
| 279 | } | ||
| 280 | |||
| 281 | /* | ||
| 282 | * Extract min and max values from an ASIdOrRange. | ||
| 283 | */ | ||
| 284 | static void extract_min_max(ASIdOrRange *aor, | ||
| 285 | ASN1_INTEGER **min, | ||
| 286 | ASN1_INTEGER **max) | ||
| 287 | { | ||
| 288 | OPENSSL_assert(aor != NULL && min != NULL && max != NULL); | ||
| 289 | switch (aor->type) { | ||
| 290 | case ASIdOrRange_id: | ||
| 291 | *min = aor->u.id; | ||
| 292 | *max = aor->u.id; | ||
| 293 | return; | ||
| 294 | case ASIdOrRange_range: | ||
| 295 | *min = aor->u.range->min; | ||
| 296 | *max = aor->u.range->max; | ||
| 297 | return; | ||
| 298 | } | ||
| 299 | } | ||
| 300 | |||
| 301 | /* | ||
| 302 | * Check whether an ASIdentifierChoice is in canonical form. | ||
| 303 | */ | ||
| 304 | static int ASIdentifierChoice_is_canonical(ASIdentifierChoice *choice) | ||
| 305 | { | ||
| 306 | ASN1_INTEGER *a_max_plus_one = NULL; | ||
| 307 | BIGNUM *bn = NULL; | ||
| 308 | int i, ret = 0; | ||
| 309 | |||
| 310 | /* | ||
| 311 | * Empty element or inheritance is canonical. | ||
| 312 | */ | ||
| 313 | if (choice == NULL || choice->type == ASIdentifierChoice_inherit) | ||
| 314 | return 1; | ||
| 315 | |||
| 316 | /* | ||
| 317 | * If not a list, or if empty list, it's broken. | ||
| 318 | */ | ||
| 319 | if (choice->type != ASIdentifierChoice_asIdsOrRanges || | ||
| 320 | sk_ASIdOrRange_num(choice->u.asIdsOrRanges) == 0) | ||
| 321 | return 0; | ||
| 322 | |||
| 323 | /* | ||
| 324 | * It's a list, check it. | ||
| 325 | */ | ||
| 326 | for (i = 0; i < sk_ASIdOrRange_num(choice->u.asIdsOrRanges) - 1; i++) { | ||
| 327 | ASIdOrRange *a = sk_ASIdOrRange_value(choice->u.asIdsOrRanges, i); | ||
| 328 | ASIdOrRange *b = sk_ASIdOrRange_value(choice->u.asIdsOrRanges, i + 1); | ||
| 329 | ASN1_INTEGER *a_min, *a_max, *b_min, *b_max; | ||
| 330 | |||
| 331 | extract_min_max(a, &a_min, &a_max); | ||
| 332 | extract_min_max(b, &b_min, &b_max); | ||
| 333 | |||
| 334 | /* | ||
| 335 | * Punt misordered list, overlapping start, or inverted range. | ||
| 336 | */ | ||
| 337 | if (ASN1_INTEGER_cmp(a_min, b_min) >= 0 || | ||
| 338 | ASN1_INTEGER_cmp(a_min, a_max) > 0 || | ||
| 339 | ASN1_INTEGER_cmp(b_min, b_max) > 0) | ||
| 340 | goto done; | ||
| 341 | |||
| 342 | /* | ||
| 343 | * Calculate a_max + 1 to check for adjacency. | ||
| 344 | */ | ||
| 345 | if ((bn == NULL && (bn = BN_new()) == NULL) || | ||
| 346 | ASN1_INTEGER_to_BN(a_max, bn) == NULL || | ||
| 347 | !BN_add_word(bn, 1) || | ||
| 348 | (a_max_plus_one = BN_to_ASN1_INTEGER(bn, a_max_plus_one)) == NULL) { | ||
| 349 | X509V3err(X509V3_F_ASIDENTIFIERCHOICE_IS_CANONICAL, | ||
| 350 | ERR_R_MALLOC_FAILURE); | ||
| 351 | goto done; | ||
| 352 | } | ||
| 353 | |||
| 354 | /* | ||
| 355 | * Punt if adjacent or overlapping. | ||
| 356 | */ | ||
| 357 | if (ASN1_INTEGER_cmp(a_max_plus_one, b_min) >= 0) | ||
| 358 | goto done; | ||
| 359 | } | ||
| 360 | |||
| 361 | /* | ||
| 362 | * Check for inverted range. | ||
| 363 | */ | ||
| 364 | i = sk_ASIdOrRange_num(choice->u.asIdsOrRanges) - 1; | ||
| 365 | { | ||
| 366 | ASIdOrRange *a = sk_ASIdOrRange_value(choice->u.asIdsOrRanges, i); | ||
| 367 | ASN1_INTEGER *a_min, *a_max; | ||
| 368 | if (a != NULL && a->type == ASIdOrRange_range) { | ||
| 369 | extract_min_max(a, &a_min, &a_max); | ||
| 370 | if (ASN1_INTEGER_cmp(a_min, a_max) > 0) | ||
| 371 | goto done; | ||
| 372 | } | ||
| 373 | } | ||
| 374 | |||
| 375 | ret = 1; | ||
| 376 | |||
| 377 | done: | ||
| 378 | ASN1_INTEGER_free(a_max_plus_one); | ||
| 379 | BN_free(bn); | ||
| 380 | return ret; | ||
| 381 | } | ||
| 382 | |||
| 383 | /* | ||
| 384 | * Check whether an ASIdentifier extension is in canonical form. | ||
| 385 | */ | ||
| 386 | int v3_asid_is_canonical(ASIdentifiers *asid) | ||
| 387 | { | ||
| 388 | return (asid == NULL || | ||
| 389 | (ASIdentifierChoice_is_canonical(asid->asnum) && | ||
| 390 | ASIdentifierChoice_is_canonical(asid->rdi))); | ||
| 391 | } | ||
| 392 | |||
| 393 | /* | ||
| 394 | * Whack an ASIdentifierChoice into canonical form. | ||
| 395 | */ | ||
| 396 | static int ASIdentifierChoice_canonize(ASIdentifierChoice *choice) | ||
| 397 | { | ||
| 398 | ASN1_INTEGER *a_max_plus_one = NULL; | ||
| 399 | BIGNUM *bn = NULL; | ||
| 400 | int i, ret = 0; | ||
| 401 | |||
| 402 | /* | ||
| 403 | * Nothing to do for empty element or inheritance. | ||
| 404 | */ | ||
| 405 | if (choice == NULL || choice->type == ASIdentifierChoice_inherit) | ||
| 406 | return 1; | ||
| 407 | |||
| 408 | /* | ||
| 409 | * If not a list, or if empty list, it's broken. | ||
| 410 | */ | ||
| 411 | if (choice->type != ASIdentifierChoice_asIdsOrRanges || | ||
| 412 | sk_ASIdOrRange_num(choice->u.asIdsOrRanges) == 0) { | ||
| 413 | X509V3err(X509V3_F_ASIDENTIFIERCHOICE_CANONIZE, | ||
| 414 | X509V3_R_EXTENSION_VALUE_ERROR); | ||
| 415 | return 0; | ||
| 416 | } | ||
| 417 | |||
| 418 | /* | ||
| 419 | * We have a non-empty list. Sort it. | ||
| 420 | */ | ||
| 421 | sk_ASIdOrRange_sort(choice->u.asIdsOrRanges); | ||
| 422 | |||
| 423 | /* | ||
| 424 | * Now check for errors and suboptimal encoding, rejecting the | ||
| 425 | * former and fixing the latter. | ||
| 426 | */ | ||
| 427 | for (i = 0; i < sk_ASIdOrRange_num(choice->u.asIdsOrRanges) - 1; i++) { | ||
| 428 | ASIdOrRange *a = sk_ASIdOrRange_value(choice->u.asIdsOrRanges, i); | ||
| 429 | ASIdOrRange *b = sk_ASIdOrRange_value(choice->u.asIdsOrRanges, i + 1); | ||
| 430 | ASN1_INTEGER *a_min, *a_max, *b_min, *b_max; | ||
| 431 | |||
| 432 | extract_min_max(a, &a_min, &a_max); | ||
| 433 | extract_min_max(b, &b_min, &b_max); | ||
| 434 | |||
| 435 | /* | ||
| 436 | * Make sure we're properly sorted (paranoia). | ||
| 437 | */ | ||
| 438 | OPENSSL_assert(ASN1_INTEGER_cmp(a_min, b_min) <= 0); | ||
| 439 | |||
| 440 | /* | ||
| 441 | * Punt inverted ranges. | ||
| 442 | */ | ||
| 443 | if (ASN1_INTEGER_cmp(a_min, a_max) > 0 || | ||
| 444 | ASN1_INTEGER_cmp(b_min, b_max) > 0) | ||
| 445 | goto done; | ||
| 446 | |||
| 447 | /* | ||
| 448 | * Check for overlaps. | ||
| 449 | */ | ||
| 450 | if (ASN1_INTEGER_cmp(a_max, b_min) >= 0) { | ||
| 451 | X509V3err(X509V3_F_ASIDENTIFIERCHOICE_CANONIZE, | ||
| 452 | X509V3_R_EXTENSION_VALUE_ERROR); | ||
| 453 | goto done; | ||
| 454 | } | ||
| 455 | |||
| 456 | /* | ||
| 457 | * Calculate a_max + 1 to check for adjacency. | ||
| 458 | */ | ||
| 459 | if ((bn == NULL && (bn = BN_new()) == NULL) || | ||
| 460 | ASN1_INTEGER_to_BN(a_max, bn) == NULL || | ||
| 461 | !BN_add_word(bn, 1) || | ||
| 462 | (a_max_plus_one = BN_to_ASN1_INTEGER(bn, a_max_plus_one)) == NULL) { | ||
| 463 | X509V3err(X509V3_F_ASIDENTIFIERCHOICE_CANONIZE, ERR_R_MALLOC_FAILURE); | ||
| 464 | goto done; | ||
| 465 | } | ||
| 466 | |||
| 467 | /* | ||
| 468 | * If a and b are adjacent, merge them. | ||
| 469 | */ | ||
| 470 | if (ASN1_INTEGER_cmp(a_max_plus_one, b_min) == 0) { | ||
| 471 | ASRange *r; | ||
| 472 | switch (a->type) { | ||
| 473 | case ASIdOrRange_id: | ||
| 474 | if ((r = OPENSSL_malloc(sizeof(ASRange))) == NULL) { | ||
| 475 | X509V3err(X509V3_F_ASIDENTIFIERCHOICE_CANONIZE, | ||
| 476 | ERR_R_MALLOC_FAILURE); | ||
| 477 | goto done; | ||
| 478 | } | ||
| 479 | r->min = a_min; | ||
| 480 | r->max = b_max; | ||
| 481 | a->type = ASIdOrRange_range; | ||
| 482 | a->u.range = r; | ||
| 483 | break; | ||
| 484 | case ASIdOrRange_range: | ||
| 485 | ASN1_INTEGER_free(a->u.range->max); | ||
| 486 | a->u.range->max = b_max; | ||
| 487 | break; | ||
| 488 | } | ||
| 489 | switch (b->type) { | ||
| 490 | case ASIdOrRange_id: | ||
| 491 | b->u.id = NULL; | ||
| 492 | break; | ||
| 493 | case ASIdOrRange_range: | ||
| 494 | b->u.range->max = NULL; | ||
| 495 | break; | ||
| 496 | } | ||
| 497 | ASIdOrRange_free(b); | ||
| 498 | (void) sk_ASIdOrRange_delete(choice->u.asIdsOrRanges, i + 1); | ||
| 499 | i--; | ||
| 500 | continue; | ||
| 501 | } | ||
| 502 | } | ||
| 503 | |||
| 504 | /* | ||
| 505 | * Check for final inverted range. | ||
| 506 | */ | ||
| 507 | i = sk_ASIdOrRange_num(choice->u.asIdsOrRanges) - 1; | ||
| 508 | { | ||
| 509 | ASIdOrRange *a = sk_ASIdOrRange_value(choice->u.asIdsOrRanges, i); | ||
| 510 | ASN1_INTEGER *a_min, *a_max; | ||
| 511 | if (a != NULL && a->type == ASIdOrRange_range) { | ||
| 512 | extract_min_max(a, &a_min, &a_max); | ||
| 513 | if (ASN1_INTEGER_cmp(a_min, a_max) > 0) | ||
| 514 | goto done; | ||
| 515 | } | ||
| 516 | } | ||
| 517 | |||
| 518 | OPENSSL_assert(ASIdentifierChoice_is_canonical(choice)); /* Paranoia */ | ||
| 519 | |||
| 520 | ret = 1; | ||
| 521 | |||
| 522 | done: | ||
| 523 | ASN1_INTEGER_free(a_max_plus_one); | ||
| 524 | BN_free(bn); | ||
| 525 | return ret; | ||
| 526 | } | ||
| 527 | |||
| 528 | /* | ||
| 529 | * Whack an ASIdentifier extension into canonical form. | ||
| 530 | */ | ||
| 531 | int v3_asid_canonize(ASIdentifiers *asid) | ||
| 532 | { | ||
| 533 | return (asid == NULL || | ||
| 534 | (ASIdentifierChoice_canonize(asid->asnum) && | ||
| 535 | ASIdentifierChoice_canonize(asid->rdi))); | ||
| 536 | } | ||
| 537 | |||
| 538 | /* | ||
| 539 | * v2i method for an ASIdentifier extension. | ||
| 540 | */ | ||
| 541 | static void *v2i_ASIdentifiers(const struct v3_ext_method *method, | ||
| 542 | struct v3_ext_ctx *ctx, | ||
| 543 | STACK_OF(CONF_VALUE) *values) | ||
| 544 | { | ||
| 545 | ASN1_INTEGER *min = NULL, *max = NULL; | ||
| 546 | ASIdentifiers *asid = NULL; | ||
| 547 | int i; | ||
| 548 | |||
| 549 | if ((asid = ASIdentifiers_new()) == NULL) { | ||
| 550 | X509V3err(X509V3_F_V2I_ASIDENTIFIERS, ERR_R_MALLOC_FAILURE); | ||
| 551 | return NULL; | ||
| 552 | } | ||
| 553 | |||
| 554 | for (i = 0; i < sk_CONF_VALUE_num(values); i++) { | ||
| 555 | CONF_VALUE *val = sk_CONF_VALUE_value(values, i); | ||
| 556 | int i1, i2, i3, is_range, which; | ||
| 557 | |||
| 558 | /* | ||
| 559 | * Figure out whether this is an AS or an RDI. | ||
| 560 | */ | ||
| 561 | if ( !name_cmp(val->name, "AS")) { | ||
| 562 | which = V3_ASID_ASNUM; | ||
| 563 | } else if (!name_cmp(val->name, "RDI")) { | ||
| 564 | which = V3_ASID_RDI; | ||
| 565 | } else { | ||
| 566 | X509V3err(X509V3_F_V2I_ASIDENTIFIERS, X509V3_R_EXTENSION_NAME_ERROR); | ||
| 567 | X509V3_conf_err(val); | ||
| 568 | goto err; | ||
| 569 | } | ||
| 570 | |||
| 571 | /* | ||
| 572 | * Handle inheritance. | ||
| 573 | */ | ||
| 574 | if (!strcmp(val->value, "inherit")) { | ||
| 575 | if (v3_asid_add_inherit(asid, which)) | ||
| 576 | continue; | ||
| 577 | X509V3err(X509V3_F_V2I_ASIDENTIFIERS, X509V3_R_INVALID_INHERITANCE); | ||
| 578 | X509V3_conf_err(val); | ||
| 579 | goto err; | ||
| 580 | } | ||
| 581 | |||
| 582 | /* | ||
| 583 | * Number, range, or mistake, pick it apart and figure out which. | ||
| 584 | */ | ||
| 585 | i1 = strspn(val->value, "0123456789"); | ||
| 586 | if (val->value[i1] == '\0') { | ||
| 587 | is_range = 0; | ||
| 588 | } else { | ||
| 589 | is_range = 1; | ||
| 590 | i2 = i1 + strspn(val->value + i1, " \t"); | ||
| 591 | if (val->value[i2] != '-') { | ||
| 592 | X509V3err(X509V3_F_V2I_ASIDENTIFIERS, X509V3_R_INVALID_ASNUMBER); | ||
| 593 | X509V3_conf_err(val); | ||
| 594 | goto err; | ||
| 595 | } | ||
| 596 | i2++; | ||
| 597 | i2 = i2 + strspn(val->value + i2, " \t"); | ||
| 598 | i3 = i2 + strspn(val->value + i2, "0123456789"); | ||
| 599 | if (val->value[i3] != '\0') { | ||
| 600 | X509V3err(X509V3_F_V2I_ASIDENTIFIERS, X509V3_R_INVALID_ASRANGE); | ||
| 601 | X509V3_conf_err(val); | ||
| 602 | goto err; | ||
| 603 | } | ||
| 604 | } | ||
| 605 | |||
| 606 | /* | ||
| 607 | * Syntax is ok, read and add it. | ||
| 608 | */ | ||
| 609 | if (!is_range) { | ||
| 610 | if (!X509V3_get_value_int(val, &min)) { | ||
| 611 | X509V3err(X509V3_F_V2I_ASIDENTIFIERS, ERR_R_MALLOC_FAILURE); | ||
| 612 | goto err; | ||
| 613 | } | ||
| 614 | } else { | ||
| 615 | char *s = BUF_strdup(val->value); | ||
| 616 | if (s == NULL) { | ||
| 617 | X509V3err(X509V3_F_V2I_ASIDENTIFIERS, ERR_R_MALLOC_FAILURE); | ||
| 618 | goto err; | ||
| 619 | } | ||
| 620 | s[i1] = '\0'; | ||
| 621 | min = s2i_ASN1_INTEGER(NULL, s); | ||
| 622 | max = s2i_ASN1_INTEGER(NULL, s + i2); | ||
| 623 | OPENSSL_free(s); | ||
| 624 | if (min == NULL || max == NULL) { | ||
| 625 | X509V3err(X509V3_F_V2I_ASIDENTIFIERS, ERR_R_MALLOC_FAILURE); | ||
| 626 | goto err; | ||
| 627 | } | ||
| 628 | if (ASN1_INTEGER_cmp(min, max) > 0) { | ||
| 629 | X509V3err(X509V3_F_V2I_ASIDENTIFIERS, X509V3_R_EXTENSION_VALUE_ERROR); | ||
| 630 | goto err; | ||
| 631 | } | ||
| 632 | } | ||
| 633 | if (!v3_asid_add_id_or_range(asid, which, min, max)) { | ||
| 634 | X509V3err(X509V3_F_V2I_ASIDENTIFIERS, ERR_R_MALLOC_FAILURE); | ||
| 635 | goto err; | ||
| 636 | } | ||
| 637 | min = max = NULL; | ||
| 638 | } | ||
| 639 | |||
| 640 | /* | ||
| 641 | * Canonize the result, then we're done. | ||
| 642 | */ | ||
| 643 | if (!v3_asid_canonize(asid)) | ||
| 644 | goto err; | ||
| 645 | return asid; | ||
| 646 | |||
| 647 | err: | ||
| 648 | ASIdentifiers_free(asid); | ||
| 649 | ASN1_INTEGER_free(min); | ||
| 650 | ASN1_INTEGER_free(max); | ||
| 651 | return NULL; | ||
| 652 | } | ||
| 653 | |||
| 654 | /* | ||
| 655 | * OpenSSL dispatch. | ||
| 656 | */ | ||
| 657 | const X509V3_EXT_METHOD v3_asid = { | ||
| 658 | NID_sbgp_autonomousSysNum, /* nid */ | ||
| 659 | 0, /* flags */ | ||
| 660 | ASN1_ITEM_ref(ASIdentifiers), /* template */ | ||
| 661 | 0, 0, 0, 0, /* old functions, ignored */ | ||
| 662 | 0, /* i2s */ | ||
| 663 | 0, /* s2i */ | ||
| 664 | 0, /* i2v */ | ||
| 665 | v2i_ASIdentifiers, /* v2i */ | ||
| 666 | i2r_ASIdentifiers, /* i2r */ | ||
| 667 | 0, /* r2i */ | ||
| 668 | NULL /* extension-specific data */ | ||
| 669 | }; | ||
| 670 | |||
| 671 | /* | ||
| 672 | * Figure out whether extension uses inheritance. | ||
| 673 | */ | ||
| 674 | int v3_asid_inherits(ASIdentifiers *asid) | ||
| 675 | { | ||
| 676 | return (asid != NULL && | ||
| 677 | ((asid->asnum != NULL && | ||
| 678 | asid->asnum->type == ASIdentifierChoice_inherit) || | ||
| 679 | (asid->rdi != NULL && | ||
| 680 | asid->rdi->type == ASIdentifierChoice_inherit))); | ||
| 681 | } | ||
| 682 | |||
| 683 | /* | ||
| 684 | * Figure out whether parent contains child. | ||
| 685 | */ | ||
| 686 | static int asid_contains(ASIdOrRanges *parent, ASIdOrRanges *child) | ||
| 687 | { | ||
| 688 | ASN1_INTEGER *p_min, *p_max, *c_min, *c_max; | ||
| 689 | int p, c; | ||
| 690 | |||
| 691 | if (child == NULL || parent == child) | ||
| 692 | return 1; | ||
| 693 | if (parent == NULL) | ||
| 694 | return 0; | ||
| 695 | |||
| 696 | p = 0; | ||
| 697 | for (c = 0; c < sk_ASIdOrRange_num(child); c++) { | ||
| 698 | extract_min_max(sk_ASIdOrRange_value(child, c), &c_min, &c_max); | ||
| 699 | for (;; p++) { | ||
| 700 | if (p >= sk_ASIdOrRange_num(parent)) | ||
| 701 | return 0; | ||
| 702 | extract_min_max(sk_ASIdOrRange_value(parent, p), &p_min, &p_max); | ||
| 703 | if (ASN1_INTEGER_cmp(p_max, c_max) < 0) | ||
| 704 | continue; | ||
| 705 | if (ASN1_INTEGER_cmp(p_min, c_min) > 0) | ||
| 706 | return 0; | ||
| 707 | break; | ||
| 708 | } | ||
| 709 | } | ||
| 710 | |||
| 711 | return 1; | ||
| 712 | } | ||
| 713 | |||
| 714 | /* | ||
| 715 | * Test whether a is a subet of b. | ||
| 716 | */ | ||
| 717 | int v3_asid_subset(ASIdentifiers *a, ASIdentifiers *b) | ||
| 718 | { | ||
| 719 | return (a == NULL || | ||
| 720 | a == b || | ||
| 721 | (b != NULL && | ||
| 722 | !v3_asid_inherits(a) && | ||
| 723 | !v3_asid_inherits(b) && | ||
| 724 | asid_contains(b->asnum->u.asIdsOrRanges, | ||
| 725 | a->asnum->u.asIdsOrRanges) && | ||
| 726 | asid_contains(b->rdi->u.asIdsOrRanges, | ||
| 727 | a->rdi->u.asIdsOrRanges))); | ||
| 728 | } | ||
| 729 | |||
| 730 | /* | ||
| 731 | * Validation error handling via callback. | ||
| 732 | */ | ||
| 733 | #define validation_err(_err_) \ | ||
| 734 | do { \ | ||
| 735 | if (ctx != NULL) { \ | ||
| 736 | ctx->error = _err_; \ | ||
| 737 | ctx->error_depth = i; \ | ||
| 738 | ctx->current_cert = x; \ | ||
| 739 | ret = ctx->verify_cb(0, ctx); \ | ||
| 740 | } else { \ | ||
| 741 | ret = 0; \ | ||
| 742 | } \ | ||
| 743 | if (!ret) \ | ||
| 744 | goto done; \ | ||
| 745 | } while (0) | ||
| 746 | |||
| 747 | /* | ||
| 748 | * Core code for RFC 3779 3.3 path validation. | ||
| 749 | */ | ||
| 750 | static int v3_asid_validate_path_internal(X509_STORE_CTX *ctx, | ||
| 751 | STACK_OF(X509) *chain, | ||
| 752 | ASIdentifiers *ext) | ||
| 753 | { | ||
| 754 | ASIdOrRanges *child_as = NULL, *child_rdi = NULL; | ||
| 755 | int i, ret = 1, inherit_as = 0, inherit_rdi = 0; | ||
| 756 | X509 *x; | ||
| 757 | |||
| 758 | OPENSSL_assert(chain != NULL && sk_X509_num(chain) > 0); | ||
| 759 | OPENSSL_assert(ctx != NULL || ext != NULL); | ||
| 760 | OPENSSL_assert(ctx == NULL || ctx->verify_cb != NULL); | ||
| 761 | |||
| 762 | /* | ||
| 763 | * Figure out where to start. If we don't have an extension to | ||
| 764 | * check, we're done. Otherwise, check canonical form and | ||
| 765 | * set up for walking up the chain. | ||
| 766 | */ | ||
| 767 | if (ext != NULL) { | ||
| 768 | i = -1; | ||
| 769 | x = NULL; | ||
| 770 | } else { | ||
| 771 | i = 0; | ||
| 772 | x = sk_X509_value(chain, i); | ||
| 773 | OPENSSL_assert(x != NULL); | ||
| 774 | if ((ext = x->rfc3779_asid) == NULL) | ||
| 775 | goto done; | ||
| 776 | } | ||
| 777 | if (!v3_asid_is_canonical(ext)) | ||
| 778 | validation_err(X509_V_ERR_INVALID_EXTENSION); | ||
| 779 | if (ext->asnum != NULL) { | ||
| 780 | switch (ext->asnum->type) { | ||
| 781 | case ASIdentifierChoice_inherit: | ||
| 782 | inherit_as = 1; | ||
| 783 | break; | ||
| 784 | case ASIdentifierChoice_asIdsOrRanges: | ||
| 785 | child_as = ext->asnum->u.asIdsOrRanges; | ||
| 786 | break; | ||
| 787 | } | ||
| 788 | } | ||
| 789 | if (ext->rdi != NULL) { | ||
| 790 | switch (ext->rdi->type) { | ||
| 791 | case ASIdentifierChoice_inherit: | ||
| 792 | inherit_rdi = 1; | ||
| 793 | break; | ||
| 794 | case ASIdentifierChoice_asIdsOrRanges: | ||
| 795 | child_rdi = ext->rdi->u.asIdsOrRanges; | ||
| 796 | break; | ||
| 797 | } | ||
| 798 | } | ||
| 799 | |||
| 800 | /* | ||
| 801 | * Now walk up the chain. Extensions must be in canonical form, no | ||
| 802 | * cert may list resources that its parent doesn't list. | ||
| 803 | */ | ||
| 804 | for (i++; i < sk_X509_num(chain); i++) { | ||
| 805 | x = sk_X509_value(chain, i); | ||
| 806 | OPENSSL_assert(x != NULL); | ||
| 807 | if (x->rfc3779_asid == NULL) { | ||
| 808 | if (child_as != NULL || child_rdi != NULL) | ||
| 809 | validation_err(X509_V_ERR_UNNESTED_RESOURCE); | ||
| 810 | continue; | ||
| 811 | } | ||
| 812 | if (!v3_asid_is_canonical(x->rfc3779_asid)) | ||
| 813 | validation_err(X509_V_ERR_INVALID_EXTENSION); | ||
| 814 | if (x->rfc3779_asid->asnum == NULL && child_as != NULL) { | ||
| 815 | validation_err(X509_V_ERR_UNNESTED_RESOURCE); | ||
| 816 | child_as = NULL; | ||
| 817 | inherit_as = 0; | ||
| 818 | } | ||
| 819 | if (x->rfc3779_asid->asnum != NULL && | ||
| 820 | x->rfc3779_asid->asnum->type == ASIdentifierChoice_asIdsOrRanges) { | ||
| 821 | if (inherit_as || | ||
| 822 | asid_contains(x->rfc3779_asid->asnum->u.asIdsOrRanges, child_as)) { | ||
| 823 | child_as = x->rfc3779_asid->asnum->u.asIdsOrRanges; | ||
| 824 | inherit_as = 0; | ||
| 825 | } else { | ||
| 826 | validation_err(X509_V_ERR_UNNESTED_RESOURCE); | ||
| 827 | } | ||
| 828 | } | ||
| 829 | if (x->rfc3779_asid->rdi == NULL && child_rdi != NULL) { | ||
| 830 | validation_err(X509_V_ERR_UNNESTED_RESOURCE); | ||
| 831 | child_rdi = NULL; | ||
| 832 | inherit_rdi = 0; | ||
| 833 | } | ||
| 834 | if (x->rfc3779_asid->rdi != NULL && | ||
| 835 | x->rfc3779_asid->rdi->type == ASIdentifierChoice_asIdsOrRanges) { | ||
| 836 | if (inherit_rdi || | ||
| 837 | asid_contains(x->rfc3779_asid->rdi->u.asIdsOrRanges, child_rdi)) { | ||
| 838 | child_rdi = x->rfc3779_asid->rdi->u.asIdsOrRanges; | ||
| 839 | inherit_rdi = 0; | ||
| 840 | } else { | ||
| 841 | validation_err(X509_V_ERR_UNNESTED_RESOURCE); | ||
| 842 | } | ||
| 843 | } | ||
| 844 | } | ||
| 845 | |||
| 846 | /* | ||
| 847 | * Trust anchor can't inherit. | ||
| 848 | */ | ||
| 849 | OPENSSL_assert(x != NULL); | ||
| 850 | if (x->rfc3779_asid != NULL) { | ||
| 851 | if (x->rfc3779_asid->asnum != NULL && | ||
| 852 | x->rfc3779_asid->asnum->type == ASIdentifierChoice_inherit) | ||
| 853 | validation_err(X509_V_ERR_UNNESTED_RESOURCE); | ||
| 854 | if (x->rfc3779_asid->rdi != NULL && | ||
| 855 | x->rfc3779_asid->rdi->type == ASIdentifierChoice_inherit) | ||
| 856 | validation_err(X509_V_ERR_UNNESTED_RESOURCE); | ||
| 857 | } | ||
| 858 | |||
| 859 | done: | ||
| 860 | return ret; | ||
| 861 | } | ||
| 862 | |||
| 863 | #undef validation_err | ||
| 864 | |||
| 865 | /* | ||
| 866 | * RFC 3779 3.3 path validation -- called from X509_verify_cert(). | ||
| 867 | */ | ||
| 868 | int v3_asid_validate_path(X509_STORE_CTX *ctx) | ||
| 869 | { | ||
| 870 | return v3_asid_validate_path_internal(ctx, ctx->chain, NULL); | ||
| 871 | } | ||
| 872 | |||
| 873 | /* | ||
| 874 | * RFC 3779 3.3 path validation of an extension. | ||
| 875 | * Test whether chain covers extension. | ||
| 876 | */ | ||
| 877 | int v3_asid_validate_resource_set(STACK_OF(X509) *chain, | ||
| 878 | ASIdentifiers *ext, | ||
| 879 | int allow_inheritance) | ||
| 880 | { | ||
| 881 | if (ext == NULL) | ||
| 882 | return 1; | ||
| 883 | if (chain == NULL || sk_X509_num(chain) == 0) | ||
| 884 | return 0; | ||
| 885 | if (!allow_inheritance && v3_asid_inherits(ext)) | ||
| 886 | return 0; | ||
| 887 | return v3_asid_validate_path_internal(NULL, chain, ext); | ||
| 888 | } | ||
| 889 | |||
| 890 | #endif /* OPENSSL_NO_RFC3779 */ | ||
