Compare commits
9 Commits
OpenSSL-fi
...
OpenSSL-fi
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
005563bbce | ||
|
|
3b43568d5b | ||
|
|
2659a2aa7c | ||
|
|
200f249b8c | ||
|
|
4089bd6080 | ||
|
|
baab0cf780 | ||
|
|
7e98d95f56 | ||
|
|
b0ee17ad47 | ||
|
|
4f6c4c1896 |
@@ -356,6 +356,7 @@ my %table=(
|
|||||||
"linux-ia64-ecc","ecc:-DL_ENDIAN -DTERMIO -O2 -Wall -no_cpprt::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC4_CHUNK DES_INT:${ia64_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
"linux-ia64-ecc","ecc:-DL_ENDIAN -DTERMIO -O2 -Wall -no_cpprt::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC4_CHUNK DES_INT:${ia64_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
||||||
"linux-ia64-icc","icc:-DL_ENDIAN -DTERMIO -O2 -Wall -no_cpprt::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC4_CHUNK DES_RISC1 DES_INT:${ia64_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
"linux-ia64-icc","icc:-DL_ENDIAN -DTERMIO -O2 -Wall -no_cpprt::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC4_CHUNK DES_RISC1 DES_INT:${ia64_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
||||||
"linux-x86_64", "gcc:-m64 -DL_ENDIAN -DTERMIO -O3 -Wall::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC4_CHUNK DES_INT DES_UNROLL:${x86_64_asm}:elf:dlfcn:linux-shared:-fPIC:-m64:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR):::64",
|
"linux-x86_64", "gcc:-m64 -DL_ENDIAN -DTERMIO -O3 -Wall::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC4_CHUNK DES_INT DES_UNROLL:${x86_64_asm}:elf:dlfcn:linux-shared:-fPIC:-m64:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR):::64",
|
||||||
|
"linux-x86_64-cross", "gcc:-m64 -DL_ENDIAN -DTERMIO -O3 -Wall -DFIPS_REF_POINT_IS_CROSS_COMPILER_AWARE::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC4_CHUNK DES_INT DES_UNROLL:${x86_64_asm}:elf:dlfcn:linux-shared:-fPIC:-m64:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR):::64",
|
||||||
"linux64-s390x", "gcc:-m64 -DB_ENDIAN -DTERMIO -O3 -Wall::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC4_CHAR RC4_CHUNK DES_INT DES_UNROLL:${s390x_asm}:64:dlfcn:linux-shared:-fPIC:-m64:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR):::64",
|
"linux64-s390x", "gcc:-m64 -DB_ENDIAN -DTERMIO -O3 -Wall::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC4_CHAR RC4_CHUNK DES_INT DES_UNROLL:${s390x_asm}:64:dlfcn:linux-shared:-fPIC:-m64:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR):::64",
|
||||||
#### So called "highgprs" target for z/Architecture CPUs
|
#### So called "highgprs" target for z/Architecture CPUs
|
||||||
# "Highgprs" is kernel feature first implemented in Linux 2.6.32, see
|
# "Highgprs" is kernel feature first implemented in Linux 2.6.32, see
|
||||||
@@ -397,6 +398,8 @@ my %table=(
|
|||||||
"linux-alpha+bwx-gcc","gcc:-O3 -DL_ENDIAN -DTERMIO::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC4_CHAR RC4_CHUNK DES_RISC1 DES_UNROLL:${alpha_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
"linux-alpha+bwx-gcc","gcc:-O3 -DL_ENDIAN -DTERMIO::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC4_CHAR RC4_CHUNK DES_RISC1 DES_UNROLL:${alpha_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
||||||
"linux-alpha-ccc","ccc:-fast -readonly_strings -DL_ENDIAN -DTERMIO::-D_REENTRANT:::SIXTY_FOUR_BIT_LONG RC4_CHUNK DES_INT DES_PTR DES_RISC1 DES_UNROLL:${alpha_asm}",
|
"linux-alpha-ccc","ccc:-fast -readonly_strings -DL_ENDIAN -DTERMIO::-D_REENTRANT:::SIXTY_FOUR_BIT_LONG RC4_CHUNK DES_INT DES_PTR DES_RISC1 DES_UNROLL:${alpha_asm}",
|
||||||
"linux-alpha+bwx-ccc","ccc:-fast -readonly_strings -DL_ENDIAN -DTERMIO::-D_REENTRANT:::SIXTY_FOUR_BIT_LONG RC4_CHAR RC4_CHUNK DES_INT DES_PTR DES_RISC1 DES_UNROLL:${alpha_asm}",
|
"linux-alpha+bwx-ccc","ccc:-fast -readonly_strings -DL_ENDIAN -DTERMIO::-D_REENTRANT:::SIXTY_FOUR_BIT_LONG RC4_CHAR RC4_CHUNK DES_INT DES_PTR DES_RISC1 DES_UNROLL:${alpha_asm}",
|
||||||
|
# eCos ARMv4/5
|
||||||
|
"ecos-armv4", "gcc:-D__ECOS__ -I\$(ECOSCFG)/include -Wall -Wpointer-arith -Wstrict-prototypes -Wundef -Wno-write-strings -mno-thumb-interwork -mcpu=arm926ej-s -g -O2 -fno-exceptions::-D_REENTRANT::-nostartfiles -L\$(ECOSCFG)/lib -Ttarget.ld::".eval{my $asm=$armv4_asm;$asm=~s/armcap.o//;$asm},
|
||||||
|
|
||||||
# Android: linux-* but without -DTERMIO and pointers to headers and libs.
|
# Android: linux-* but without -DTERMIO and pointers to headers and libs.
|
||||||
"android","gcc:-mandroid -I\$(ANDROID_DEV)/include -B\$(ANDROID_DEV)/lib -O3 -fomit-frame-pointer -Wall::-D_REENTRANT::-ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_INT DES_UNROLL BF_PTR:${no_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
"android","gcc:-mandroid -I\$(ANDROID_DEV)/include -B\$(ANDROID_DEV)/lib -O3 -fomit-frame-pointer -Wall::-D_REENTRANT::-ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_INT DES_UNROLL BF_PTR:${no_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
||||||
@@ -431,6 +434,7 @@ my %table=(
|
|||||||
# QNX
|
# QNX
|
||||||
"qnx4", "cc:-DL_ENDIAN -DTERMIO::(unknown):::${x86_gcc_des} ${x86_gcc_opts}:",
|
"qnx4", "cc:-DL_ENDIAN -DTERMIO::(unknown):::${x86_gcc_des} ${x86_gcc_opts}:",
|
||||||
"QNX6", "gcc:-DTERMIOS::::-lsocket::${no_asm}:dlfcn:bsd-gcc-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
"QNX6", "gcc:-DTERMIOS::::-lsocket::${no_asm}:dlfcn:bsd-gcc-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
||||||
|
"QNX6-armv4", "gcc:-DTERMIOS -O2 -Wall:::::BN_LLONG RC4_CHAR RC4_CHUNK DES_INT DES_UNROLL BF_PTR:${armv4_asm}:dlfcn:bsd-gcc-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
||||||
"QNX6-i386", "gcc:-DL_ENDIAN -DTERMIOS -O2 -Wall::::-lsocket:${x86_gcc_des} ${x86_gcc_opts}:${x86_elf_asm}:dlfcn:bsd-gcc-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
"QNX6-i386", "gcc:-DL_ENDIAN -DTERMIOS -O2 -Wall::::-lsocket:${x86_gcc_des} ${x86_gcc_opts}:${x86_elf_asm}:dlfcn:bsd-gcc-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
||||||
|
|
||||||
# BeOS
|
# BeOS
|
||||||
|
|||||||
11
config
11
config
@@ -134,6 +134,10 @@ case "${SYSTEM}:${RELEASE}:${VERSION}:${MACHINE}" in
|
|||||||
echo "${MACHINE}-dg-dgux"; exit 0
|
echo "${MACHINE}-dg-dgux"; exit 0
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
ecos:*)
|
||||||
|
echo "${MACHINE}-whatever-ecos"; exit 0
|
||||||
|
;;
|
||||||
|
|
||||||
HI-UX:*)
|
HI-UX:*)
|
||||||
echo "${MACHINE}-hi-hiux"; exit 0
|
echo "${MACHINE}-hi-hiux"; exit 0
|
||||||
;;
|
;;
|
||||||
@@ -162,6 +166,10 @@ case "${SYSTEM}:${RELEASE}:${VERSION}:${MACHINE}" in
|
|||||||
echo "mips4-sgi-irix64"; exit 0
|
echo "mips4-sgi-irix64"; exit 0
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
Linux:[2-9].*:cross:x86_64)
|
||||||
|
echo "${MACHINE}-cross-linux"; exit 0
|
||||||
|
;;
|
||||||
|
|
||||||
Linux:[2-9].*)
|
Linux:[2-9].*)
|
||||||
echo "${MACHINE}-whatever-linux2"; exit 0
|
echo "${MACHINE}-whatever-linux2"; exit 0
|
||||||
;;
|
;;
|
||||||
@@ -645,6 +653,7 @@ case "$GUESSOS" in
|
|||||||
|
|
||||||
options="$options -DB_ENDIAN -mschedule=$CPUSCHEDULE -march=$CPUARCH"
|
options="$options -DB_ENDIAN -mschedule=$CPUSCHEDULE -march=$CPUARCH"
|
||||||
OUT="linux-generic32" ;;
|
OUT="linux-generic32" ;;
|
||||||
|
armv[45]*-*-ecos) OUT="ecos-armv4" ;;
|
||||||
armv[1-3]*-*-linux2) OUT="linux-generic32" ;;
|
armv[1-3]*-*-linux2) OUT="linux-generic32" ;;
|
||||||
armv[7-9]*-*-linux2) OUT="linux-armv4"; options="$options -march=armv7-a" ;;
|
armv[7-9]*-*-linux2) OUT="linux-armv4"; options="$options -march=armv7-a" ;;
|
||||||
arm*-*-linux2) OUT="linux-armv4" ;;
|
arm*-*-linux2) OUT="linux-armv4" ;;
|
||||||
@@ -679,6 +688,7 @@ case "$GUESSOS" in
|
|||||||
fi ;;
|
fi ;;
|
||||||
*-*-linux1) OUT="linux-aout" ;;
|
*-*-linux1) OUT="linux-aout" ;;
|
||||||
*-*-linux2) OUT="linux-generic32" ;;
|
*-*-linux2) OUT="linux-generic32" ;;
|
||||||
|
*-cross-linux) OUT="linux-x86_64-cross" ;;
|
||||||
sun4[uv]*-*-solaris2)
|
sun4[uv]*-*-solaris2)
|
||||||
OUT="solaris-sparcv9-$CC"
|
OUT="solaris-sparcv9-$CC"
|
||||||
ISA64=`(isalist) 2>/dev/null | grep sparcv9`
|
ISA64=`(isalist) 2>/dev/null | grep sparcv9`
|
||||||
@@ -848,6 +858,7 @@ case "$GUESSOS" in
|
|||||||
j90-cray-unicos) OUT="cray-j90" ;;
|
j90-cray-unicos) OUT="cray-j90" ;;
|
||||||
nsr-tandem-nsk) OUT="tandem-c89" ;;
|
nsr-tandem-nsk) OUT="tandem-c89" ;;
|
||||||
beos-*) OUT="$GUESSOS" ;;
|
beos-*) OUT="$GUESSOS" ;;
|
||||||
|
armv4-*-qnx6) OUT="QNX6-armv4" ;;
|
||||||
x86pc-*-qnx6) OUT="QNX6-i386" ;;
|
x86pc-*-qnx6) OUT="QNX6-i386" ;;
|
||||||
*-*-qnx6) OUT="QNX6" ;;
|
*-*-qnx6) OUT="QNX6" ;;
|
||||||
x86-*-android|i?86-*-android) OUT="android-x86" ;;
|
x86-*-android|i?86-*-android) OUT="android-x86" ;;
|
||||||
|
|||||||
@@ -956,8 +956,6 @@ static int aes_gcm_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out,
|
|||||||
|
|
||||||
if (!gctx->iv_set)
|
if (!gctx->iv_set)
|
||||||
return -1;
|
return -1;
|
||||||
if (!ctx->encrypt && gctx->taglen < 0)
|
|
||||||
return -1;
|
|
||||||
if (in)
|
if (in)
|
||||||
{
|
{
|
||||||
if (out == NULL)
|
if (out == NULL)
|
||||||
@@ -999,6 +997,8 @@ static int aes_gcm_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out,
|
|||||||
{
|
{
|
||||||
if (!ctx->encrypt)
|
if (!ctx->encrypt)
|
||||||
{
|
{
|
||||||
|
if (gctx->taglen < 0)
|
||||||
|
return -1;
|
||||||
if (CRYPTO_gcm128_finish(&gctx->gcm,
|
if (CRYPTO_gcm128_finish(&gctx->gcm,
|
||||||
ctx->buf, gctx->taglen) != 0)
|
ctx->buf, gctx->taglen) != 0)
|
||||||
return -1;
|
return -1;
|
||||||
|
|||||||
@@ -177,6 +177,7 @@ for($i=0;$i<5;$i++) {
|
|||||||
$code.=<<___;
|
$code.=<<___;
|
||||||
teq $Xi,sp
|
teq $Xi,sp
|
||||||
bne .L_00_15 @ [((11+4)*5+2)*3]
|
bne .L_00_15 @ [((11+4)*5+2)*3]
|
||||||
|
sub sp,sp,#25*4
|
||||||
___
|
___
|
||||||
&BODY_00_15(@V); unshift(@V,pop(@V));
|
&BODY_00_15(@V); unshift(@V,pop(@V));
|
||||||
&BODY_16_19(@V); unshift(@V,pop(@V));
|
&BODY_16_19(@V); unshift(@V,pop(@V));
|
||||||
@@ -186,7 +187,6 @@ ___
|
|||||||
$code.=<<___;
|
$code.=<<___;
|
||||||
|
|
||||||
ldr $K,.LK_20_39 @ [+15+16*4]
|
ldr $K,.LK_20_39 @ [+15+16*4]
|
||||||
sub sp,sp,#25*4
|
|
||||||
cmn sp,#0 @ [+3], clear carry to denote 20_39
|
cmn sp,#0 @ [+3], clear carry to denote 20_39
|
||||||
.L_20_39_or_60_79:
|
.L_20_39_or_60_79:
|
||||||
___
|
___
|
||||||
|
|||||||
@@ -34,10 +34,13 @@ const void *FIPS_text_end(void);
|
|||||||
defined(__mips__)|| defined(__mips))) || \
|
defined(__mips__)|| defined(__mips))) || \
|
||||||
(defined(__NetBSD__) && (defined(__powerpc__) || defined(__i386))) || \
|
(defined(__NetBSD__) && (defined(__powerpc__) || defined(__i386))) || \
|
||||||
(defined(__linux) && ((defined(__PPC__) && !defined(__PPC64__)) || \
|
(defined(__linux) && ((defined(__PPC__) && !defined(__PPC64__)) || \
|
||||||
defined(__arm__) || defined(__arm))) || \
|
defined(__arm__) || defined(__arm)) || \
|
||||||
|
defined(__mips__)) || \
|
||||||
(defined(__APPLE__) /* verified on all MacOS X & iOS flavors */)|| \
|
(defined(__APPLE__) /* verified on all MacOS X & iOS flavors */)|| \
|
||||||
(defined(_TMS320C6X)) || \
|
(defined(_TMS320C6X)) || \
|
||||||
(defined(_WIN32) && defined(_MSC_VER))
|
(defined(__ECOS__)) || \
|
||||||
|
(defined(_WIN32) && defined(_MSC_VER)) || \
|
||||||
|
(defined(__QNX__) && defined(__ARM__))
|
||||||
# define FIPS_REF_POINT_IS_CROSS_COMPILER_AWARE
|
# define FIPS_REF_POINT_IS_CROSS_COMPILER_AWARE
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -127,8 +127,14 @@ elsif ($FLAVOR =~ /CE/)
|
|||||||
$base_cflags.=" $wcecdefs";
|
$base_cflags.=" $wcecdefs";
|
||||||
$base_cflags.=' -I$(WCECOMPAT)/include' if (defined($ENV{'WCECOMPAT'}));
|
$base_cflags.=' -I$(WCECOMPAT)/include' if (defined($ENV{'WCECOMPAT'}));
|
||||||
$base_cflags.=' -I$(PORTSDK_LIBPATH)/../../include' if (defined($ENV{'PORTSDK_LIBPATH'}));
|
$base_cflags.=' -I$(PORTSDK_LIBPATH)/../../include' if (defined($ENV{'PORTSDK_LIBPATH'}));
|
||||||
|
if ($ENV{PLATFORM} =~ /wce7/i) {
|
||||||
|
$opt_cflags=' /MT /O1i'; # optimize for space, but with intrinsics...
|
||||||
|
$dbg_cflags=' /MT /Od -DDEBUG -D_DEBUG';
|
||||||
|
} else {
|
||||||
$opt_cflags=' /MC /O1i'; # optimize for space, but with intrinsics...
|
$opt_cflags=' /MC /O1i'; # optimize for space, but with intrinsics...
|
||||||
$dbg_clfags=' /MC /Od -DDEBUG -D_DEBUG';
|
$dbg_cflags=' /MC /Od -DDEBUG -D_DEBUG';
|
||||||
|
}
|
||||||
|
|
||||||
$lflags="/nologo /opt:ref $wcelflag";
|
$lflags="/nologo /opt:ref $wcelflag";
|
||||||
}
|
}
|
||||||
else # Win32
|
else # Win32
|
||||||
|
|||||||
Reference in New Issue
Block a user