Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
36f1f1ca
Commit
36f1f1ca
authored
Sep 15, 2005
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk-internal.mysql.com:/home/bk/mysql-5.0
into neptunus.(none):/home/msvensson/mysql/bug12526/my50-bug12526
parents
b34d5bd2
21e1efc7
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
6 deletions
+20
-6
config/ac-macros/yassl.m4
config/ac-macros/yassl.m4
+11
-0
extra/yassl/taocrypt/src/Makefile.am
extra/yassl/taocrypt/src/Makefile.am
+5
-2
extra/yassl/taocrypt/src/integer.cpp
extra/yassl/taocrypt/src/integer.cpp
+4
-4
No files found.
config/ac-macros/yassl.m4
View file @
36f1f1ca
...
@@ -20,6 +20,17 @@ AC_DEFUN([MYSQL_CHECK_YASSL], [
...
@@ -20,6 +20,17 @@ AC_DEFUN([MYSQL_CHECK_YASSL], [
-L\$(top_builddir)/extra/yassl/taocrypt/src -ltaocrypt"
-L\$(top_builddir)/extra/yassl/taocrypt/src -ltaocrypt"
openssl_includes="-I\$(top_srcdir)/extra/yassl/include"
openssl_includes="-I\$(top_srcdir)/extra/yassl/include"
AC_DEFINE([HAVE_OPENSSL], [1], [Defined by configure. Using yaSSL for OpenSSL emulation.])
AC_DEFINE([HAVE_OPENSSL], [1], [Defined by configure. Using yaSSL for OpenSSL emulation.])
# System specific checks
yassl_integer_extra_cxxflags=""
case $SYSTEM_TYPE--$CXX_VERSION in
sparc*solaris*--*Sun*C++*5.6*)
# Disable inlining when compiling taocrypt/src/integer.cpp
yassl_integer_extra_cxxflags="+d"
;;
esac
AC_SUBST([yassl_integer_extra_cxxflags])
else
else
yassl_dir=""
yassl_dir=""
AC_MSG_RESULT(no)
AC_MSG_RESULT(no)
...
...
extra/yassl/taocrypt/src/Makefile.am
View file @
36f1f1ca
INCLUDES
=
-I
../include
-I
../../mySTL
INCLUDES
=
-I
../include
-I
../../mySTL
noinst_LTLIBRARIES
=
libtaocrypt.la
noinst_LTLIBRARIES
=
libtaocrypt.la
libtaoint.la
libtaocrypt_la_SOURCES
=
aes.cpp aestables.cpp algebra.cpp arc4.cpp asn.cpp
\
libtaocrypt_la_SOURCES
=
aes.cpp aestables.cpp algebra.cpp arc4.cpp asn.cpp
\
coding.cpp dh.cpp des.cpp dsa.cpp file.cpp hash.cpp
integer.cpp
\
coding.cpp dh.cpp des.cpp dsa.cpp file.cpp hash.cpp
\
md2.cpp md5.cpp misc.cpp random.cpp ripemd.cpp rsa.cpp sha.cpp
\
md2.cpp md5.cpp misc.cpp random.cpp ripemd.cpp rsa.cpp sha.cpp
\
template_instnt.cpp
template_instnt.cpp
libtaocrypt_la_LIBADD
=
libtaoint.la
libtaoint_la_SOURCES
=
integer.cpp
libtaoint_la_CXXFLAGS
=
@yassl_integer_extra_cxxflags@
EXTRA_DIST
=
../include/
*
.hpp
EXTRA_DIST
=
../include/
*
.hpp
AM_CXXFLAGS
=
-DYASSL_PURE_C
AM_CXXFLAGS
=
-DYASSL_PURE_C
extra/yassl/taocrypt/src/integer.cpp
View file @
36f1f1ca
...
@@ -568,13 +568,13 @@ public:
...
@@ -568,13 +568,13 @@ public:
static
word
Add
(
word
*
C
,
const
word
*
A
,
const
word
*
B
,
unsigned
int
N
);
static
word
Add
(
word
*
C
,
const
word
*
A
,
const
word
*
B
,
unsigned
int
N
);
static
word
Subtract
(
word
*
C
,
const
word
*
A
,
const
word
*
B
,
unsigned
int
N
);
static
word
Subtract
(
word
*
C
,
const
word
*
A
,
const
word
*
B
,
unsigned
int
N
);
static
void
Multiply2
(
word
*
C
,
const
word
*
A
,
const
word
*
B
);
static
inline
void
Multiply2
(
word
*
C
,
const
word
*
A
,
const
word
*
B
);
static
word
Multiply2Add
(
word
*
C
,
const
word
*
A
,
const
word
*
B
);
static
inline
word
Multiply2Add
(
word
*
C
,
const
word
*
A
,
const
word
*
B
);
static
void
Multiply4
(
word
*
C
,
const
word
*
A
,
const
word
*
B
);
static
void
Multiply4
(
word
*
C
,
const
word
*
A
,
const
word
*
B
);
static
void
Multiply8
(
word
*
C
,
const
word
*
A
,
const
word
*
B
);
static
void
Multiply8
(
word
*
C
,
const
word
*
A
,
const
word
*
B
);
static
inline
unsigned
int
MultiplyRecursionLimit
()
{
return
8
;}
static
inline
unsigned
int
MultiplyRecursionLimit
()
{
return
8
;}
static
void
Multiply2Bottom
(
word
*
C
,
const
word
*
A
,
const
word
*
B
);
static
inline
void
Multiply2Bottom
(
word
*
C
,
const
word
*
A
,
const
word
*
B
);
static
void
Multiply4Bottom
(
word
*
C
,
const
word
*
A
,
const
word
*
B
);
static
void
Multiply4Bottom
(
word
*
C
,
const
word
*
A
,
const
word
*
B
);
static
void
Multiply8Bottom
(
word
*
C
,
const
word
*
A
,
const
word
*
B
);
static
void
Multiply8Bottom
(
word
*
C
,
const
word
*
A
,
const
word
*
B
);
static
inline
unsigned
int
MultiplyBottomRecursionLimit
()
{
return
8
;}
static
inline
unsigned
int
MultiplyBottomRecursionLimit
()
{
return
8
;}
...
@@ -668,7 +668,7 @@ void Portable::Multiply2(word *C, const word *A, const word *B)
...
@@ -668,7 +668,7 @@ void Portable::Multiply2(word *C, const word *A, const word *B)
C
[
3
]
=
t
.
GetHighHalf
();
C
[
3
]
=
t
.
GetHighHalf
();
}
}
void
Portable
::
Multiply2Bottom
(
word
*
C
,
const
word
*
A
,
const
word
*
B
)
inline
void
Portable
::
Multiply2Bottom
(
word
*
C
,
const
word
*
A
,
const
word
*
B
)
{
{
DWord
t
=
DWord
::
Multiply
(
A
[
0
],
B
[
0
]);
DWord
t
=
DWord
::
Multiply
(
A
[
0
],
B
[
0
]);
C
[
0
]
=
t
.
GetLowHalf
();
C
[
0
]
=
t
.
GetLowHalf
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment