Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
54540811
提交
54540811
authored
3月 31, 2013
作者:
Jeff Lenk
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
upgrade windows openssl to 1.0.1c
上级
4f47c495
全部展开
显示空白字符变更
内嵌
并排
正在显示
97 个修改的文件
包含
41108 行增加
和
3202 行删除
+41108
-3202
Freeswitch.2008.express.unsupported.sln
Freeswitch.2008.express.unsupported.sln
+0
-0
Freeswitch.2008.unsupported.sln
Freeswitch.2008.unsupported.sln
+0
-0
Download OPENSSL.2010.vcxproj
libs/win32/Download OPENSSL.2010.vcxproj
+2
-2
Download OPENSSL.2012.vcxproj
libs/win32/Download OPENSSL.2012.vcxproj
+3
-3
aes.h
libs/win32/openssl/include/aes.h
+147
-2
asn1.h
libs/win32/openssl/include/asn1.h
+1404
-2
asn1_mac.h
libs/win32/openssl/include/asn1_mac.h
+578
-2
asn1t.h
libs/win32/openssl/include/asn1t.h
+960
-2
bio.h
libs/win32/openssl/include/bio.h
+847
-2
blowfish.h
libs/win32/openssl/include/blowfish.h
+129
-2
bn.h
libs/win32/openssl/include/bn.h
+891
-2
buffer.h
libs/win32/openssl/include/buffer.h
+119
-2
camellia.h
libs/win32/openssl/include/camellia.h
+130
-2
cast.h
libs/win32/openssl/include/cast.h
+107
-2
cmac.h
libs/win32/openssl/include/cmac.h
+82
-0
cms.h
libs/win32/openssl/include/cms.h
+501
-2
comp.h
libs/win32/openssl/include/comp.h
+80
-2
conf.h
libs/win32/openssl/include/conf.h
+263
-2
conf_api.h
libs/win32/openssl/include/conf_api.h
+89
-2
crypto.h
libs/win32/openssl/include/crypto.h
+604
-2
des.h
libs/win32/openssl/include/des.h
+248
-2
des_old.h
libs/win32/openssl/include/des_old.h
+446
-2
dh.h
libs/win32/openssl/include/dh.h
+280
-2
dsa.h
libs/win32/openssl/include/dsa.h
+327
-2
dso.h
libs/win32/openssl/include/dso.h
+409
-2
dtls1.h
libs/win32/openssl/include/dtls1.h
+283
-2
e_os.h
libs/win32/openssl/include/e_os.h
+734
-2
e_os2.h
libs/win32/openssl/include/e_os2.h
+315
-2
ebcdic.h
libs/win32/openssl/include/ebcdic.h
+19
-2
ec.h
libs/win32/openssl/include/ec.h
+1159
-2
ecdh.h
libs/win32/openssl/include/ecdh.h
+125
-2
ecdsa.h
libs/win32/openssl/include/ecdsa.h
+260
-2
engine.h
libs/win32/openssl/include/engine.h
+842
-2
err.h
libs/win32/openssl/include/err.h
+386
-2
evp.h
libs/win32/openssl/include/evp.h
+1402
-2
hmac.h
libs/win32/openssl/include/hmac.h
+110
-2
idea.h
libs/win32/openssl/include/idea.h
+103
-2
krb5_asn.h
libs/win32/openssl/include/krb5_asn.h
+256
-2
kssl.h
libs/win32/openssl/include/kssl.h
+183
-2
lhash.h
libs/win32/openssl/include/lhash.h
+241
-2
md2.h
libs/win32/openssl/include/md2.h
+95
-2
md4.h
libs/win32/openssl/include/md4.h
+120
-2
md5.h
libs/win32/openssl/include/md5.h
+120
-2
mdc2.h
libs/win32/openssl/include/mdc2.h
+98
-2
modes.h
libs/win32/openssl/include/modes.h
+135
-2
o_dir.h
libs/win32/openssl/include/o_dir.h
+53
-2
o_str.h
libs/win32/openssl/include/o_str.h
+68
-2
obj_mac.h
libs/win32/openssl/include/obj_mac.h
+4032
-2
objects.h
libs/win32/openssl/include/objects.h
+1138
-2
ocsp.h
libs/win32/openssl/include/ocsp.h
+623
-2
opensslv.h
libs/win32/openssl/include/opensslv.h
+89
-2
ossl_typ.h
libs/win32/openssl/include/ossl_typ.h
+202
-2
pem.h
libs/win32/openssl/include/pem.h
+641
-2
pem2.h
libs/win32/openssl/include/pem2.h
+70
-2
pkcs12.h
libs/win32/openssl/include/pkcs12.h
+331
-2
pkcs7.h
libs/win32/openssl/include/pkcs7.h
+499
-2
pqueue.h
libs/win32/openssl/include/pqueue.h
+94
-2
rand.h
libs/win32/openssl/include/rand.h
+149
-2
rc2.h
libs/win32/openssl/include/rc2.h
+103
-2
rc4.h
libs/win32/openssl/include/rc4.h
+90
-2
rc5.h
libs/win32/openssl/include/rc5.h
+118
-2
ripemd.h
libs/win32/openssl/include/ripemd.h
+107
-2
rsa.h
libs/win32/openssl/include/rsa.h
+582
-2
safestack.h
libs/win32/openssl/include/safestack.h
+2663
-2
seed.h
libs/win32/openssl/include/seed.h
+139
-2
sha.h
libs/win32/openssl/include/sha.h
+214
-2
srp.h
libs/win32/openssl/include/srp.h
+172
-0
ssl.h
libs/win32/openssl/include/ssl.h
+2573
-2
ssl2.h
libs/win32/openssl/include/ssl2.h
+272
-2
ssl23.h
libs/win32/openssl/include/ssl23.h
+83
-2
ssl3.h
libs/win32/openssl/include/ssl3.h
+678
-2
stack.h
libs/win32/openssl/include/stack.h
+108
-2
store.h
libs/win32/openssl/include/store.h
+561
-2
symhacks.h
libs/win32/openssl/include/symhacks.h
+477
-2
tls1.h
libs/win32/openssl/include/tls1.h
+735
-2
ts.h
libs/win32/openssl/include/ts.h
+858
-2
txt_db.h
libs/win32/openssl/include/txt_db.h
+112
-2
ui.h
libs/win32/openssl/include/ui.h
+383
-2
ui_compat.h
libs/win32/openssl/include/ui_compat.h
+83
-2
whrlpool.h
libs/win32/openssl/include/whrlpool.h
+41
-2
x509.h
libs/win32/openssl/include/x509.h
+1297
-2
x509_vfy.h
libs/win32/openssl/include/x509_vfy.h
+567
-2
x509v3.h
libs/win32/openssl/include/x509v3.h
+1007
-2
libeay32.2010.vcxproj
libs/win32/openssl/libeay32.2010.vcxproj
+696
-668
libeay32.2010.vcxproj.filters
libs/win32/openssl/libeay32.2010.vcxproj.filters
+726
-636
libeay32.2012.vcxproj
libs/win32/openssl/libeay32.2012.vcxproj
+698
-670
libeay32.2012.vcxproj.filters
libs/win32/openssl/libeay32.2012.vcxproj.filters
+726
-636
libeay32.def
libs/win32/openssl/libeay32.def
+118
-1
openssl.2010.vcxproj
libs/win32/openssl/openssl.2010.vcxproj
+57
-56
openssl.2010.vcxproj.filters
libs/win32/openssl/openssl.2010.vcxproj.filters
+55
-52
openssl.2012.vcxproj
libs/win32/openssl/openssl.2012.vcxproj
+59
-58
openssl.2012.vcxproj.filters
libs/win32/openssl/openssl.2012.vcxproj.filters
+55
-52
ssleay32.2010.vcxproj
libs/win32/openssl/ssleay32.2010.vcxproj
+61
-59
ssleay32.2010.vcxproj.filters
libs/win32/openssl/ssleay32.2010.vcxproj.filters
+53
-47
ssleay32.2012.vcxproj
libs/win32/openssl/ssleay32.2012.vcxproj
+63
-61
ssleay32.2012.vcxproj.filters
libs/win32/openssl/ssleay32.2012.vcxproj.filters
+53
-47
ssleay32.def
libs/win32/openssl/ssleay32.def
+44
-0
没有找到文件。
Freeswitch.2008.express.sln
→
Freeswitch.2008.express.
unsupported.
sln
浏览文件 @
54540811
File moved
Freeswitch.2008.sln
→
Freeswitch.2008.
unsupported.
sln
浏览文件 @
54540811
File moved
libs/win32/Download OPENSSL.2010.vcxproj
浏览文件 @
54540811
...
@@ -52,11 +52,11 @@
...
@@ -52,11 +52,11 @@
<CustomBuild
Include=
"OPENSSL\cleancount"
>
<CustomBuild
Include=
"OPENSSL\cleancount"
>
<FileType>
Document
</FileType>
<FileType>
Document
</FileType>
<Message
Condition=
"'$(Configuration)|$(Platform)'=='Debug|Win32'"
>
Downloading OPENSSL
</Message>
<Message
Condition=
"'$(Configuration)|$(Platform)'=='Debug|Win32'"
>
Downloading OPENSSL
</Message>
<Command
Condition=
"'$(Configuration)|$(Platform)'=='Debug|Win32'"
>
if not exist "$(ProjectDir)..\openssl-1.0.
0a" cscript /nologo "$(ProjectDir)util.vbs" GetUnzip http://files.freeswitch.org/downloads/libs/openssl-1.0.0a
.tar.gz "$(ProjectDir).."
<Command
Condition=
"'$(Configuration)|$(Platform)'=='Debug|Win32'"
>
if not exist "$(ProjectDir)..\openssl-1.0.
1c" cscript /nologo "$(ProjectDir)util.vbs" GetUnzip http://files.freeswitch.org/downloads/libs/openssl-1.0.1c
.tar.gz "$(ProjectDir).."
</Command>
</Command>
<Outputs
Condition=
"'$(Configuration)|$(Platform)'=='Debug|Win32'"
>
$(ProjectDir)..\OPENSSL;%(Outputs)
</Outputs>
<Outputs
Condition=
"'$(Configuration)|$(Platform)'=='Debug|Win32'"
>
$(ProjectDir)..\OPENSSL;%(Outputs)
</Outputs>
<Message
Condition=
"'$(Configuration)|$(Platform)'=='Release|Win32'"
>
Downloading OPENSSL
</Message>
<Message
Condition=
"'$(Configuration)|$(Platform)'=='Release|Win32'"
>
Downloading OPENSSL
</Message>
<Command
Condition=
"'$(Configuration)|$(Platform)'=='Release|Win32'"
>
if not exist "$(ProjectDir)..\openssl-1.0.
0a" cscript /nologo "$(ProjectDir)util.vbs" GetUnzip http://files.freeswitch.org/downloads/libs/openssl-1.0.0a
.tar.gz "$(ProjectDir).."
<Command
Condition=
"'$(Configuration)|$(Platform)'=='Release|Win32'"
>
if not exist "$(ProjectDir)..\openssl-1.0.
1c" cscript /nologo "$(ProjectDir)util.vbs" GetUnzip http://files.freeswitch.org/downloads/libs/openssl-1.0.1c
.tar.gz "$(ProjectDir).."
</Command>
</Command>
<Outputs
Condition=
"'$(Configuration)|$(Platform)'=='Release|Win32'"
>
$(ProjectDir)..\OPENSSL;%(Outputs)
</Outputs>
<Outputs
Condition=
"'$(Configuration)|$(Platform)'=='Release|Win32'"
>
$(ProjectDir)..\OPENSSL;%(Outputs)
</Outputs>
</CustomBuild>
</CustomBuild>
...
...
libs/win32/Download OPENSSL.2012.vcxproj
浏览文件 @
54540811
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<Project
DefaultTargets=
"Build"
ToolsVersion=
"4.0"
xmlns=
"http://schemas.microsoft.com/developer/msbuild/2003"
>
<Project
DefaultTargets=
"Build"
ToolsVersion=
"4.0"
xmlns=
"http://schemas.microsoft.com/developer/msbuild/2003"
>
<ItemGroup
Label=
"ProjectConfigurations"
>
<ItemGroup
Label=
"ProjectConfigurations"
>
<ProjectConfiguration
Include=
"Debug|Win32"
>
<ProjectConfiguration
Include=
"Debug|Win32"
>
...
@@ -54,7 +54,7 @@
...
@@ -54,7 +54,7 @@
<CustomBuild
Include=
"OPENSSL\cleancount"
>
<CustomBuild
Include=
"OPENSSL\cleancount"
>
<FileType>
Document
</FileType>
<FileType>
Document
</FileType>
<Message
Condition=
"'$(Configuration)|$(Platform)'=='Debug|Win32'"
>
Downloading OPENSSL
</Message>
<Message
Condition=
"'$(Configuration)|$(Platform)'=='Debug|Win32'"
>
Downloading OPENSSL
</Message>
<Command
Condition=
"'$(Configuration)|$(Platform)'=='Debug|Win32'"
>
if not exist "$(ProjectDir)..\openssl-1.0.
0a" cscript /nologo "$(ProjectDir)util.vbs" GetUnzip http://files.freeswitch.org/downloads/libs/openssl-1.0.0a
.tar.gz "$(ProjectDir).."
<Command
Condition=
"'$(Configuration)|$(Platform)'=='Debug|Win32'"
>
if not exist "$(ProjectDir)..\openssl-1.0.
1c" cscript /nologo "$(ProjectDir)util.vbs" GetUnzip http://files.freeswitch.org/downloads/libs/openssl-1.0.1c
.tar.gz "$(ProjectDir).."
</Command>
</Command>
<Outputs
Condition=
"'$(Configuration)|$(Platform)'=='Debug|Win32'"
>
$(ProjectDir)..\OPENSSL;%(Outputs)
</Outputs>
<Outputs
Condition=
"'$(Configuration)|$(Platform)'=='Debug|Win32'"
>
$(ProjectDir)..\OPENSSL;%(Outputs)
</Outputs>
<Message
Condition=
"'$(Configuration)|$(Platform)'=='Release|Win32'"
>
Downloading OPENSSL
</Message>
<Message
Condition=
"'$(Configuration)|$(Platform)'=='Release|Win32'"
>
Downloading OPENSSL
</Message>
...
...
libs/win32/openssl/include/aes.h
浏览文件 @
54540811
/* file generated by 'generate-global-headers.bat' */
/* crypto/aes/aes.h -*- mode:C; c-file-style: "eay" -*- */
#include "..\../crypto/aes/aes.h"
/* ====================================================================
* Copyright (c) 1998-2002 The OpenSSL Project. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
*
* 3. All advertising materials mentioning features or use of this
* software must display the following acknowledgment:
* "This product includes software developed by the OpenSSL Project
* for use in the OpenSSL Toolkit. (http://www.openssl.org/)"
*
* 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
* endorse or promote products derived from this software without
* prior written permission. For written permission, please contact
* openssl-core@openssl.org.
*
* 5. Products derived from this software may not be called "OpenSSL"
* nor may "OpenSSL" appear in their names without prior written
* permission of the OpenSSL Project.
*
* 6. Redistributions of any form whatsoever must retain the following
* acknowledgment:
* "This product includes software developed by the OpenSSL Project
* for use in the OpenSSL Toolkit (http://www.openssl.org/)"
*
* THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
* EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR
* ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
* OF THE POSSIBILITY OF SUCH DAMAGE.
* ====================================================================
*
*/
#ifndef HEADER_AES_H
#define HEADER_AES_H
#include <openssl/opensslconf.h>
#ifdef OPENSSL_NO_AES
#error AES is disabled.
#endif
#include <stddef.h>
#define AES_ENCRYPT 1
#define AES_DECRYPT 0
/* Because array size can't be a const in C, the following two are macros.
Both sizes are in bytes. */
#define AES_MAXNR 14
#define AES_BLOCK_SIZE 16
#ifdef __cplusplus
extern
"C"
{
#endif
/* This should be a hidden type, but EVP requires that the size be known */
struct
aes_key_st
{
#ifdef AES_LONG
unsigned
long
rd_key
[
4
*
(
AES_MAXNR
+
1
)];
#else
unsigned
int
rd_key
[
4
*
(
AES_MAXNR
+
1
)];
#endif
int
rounds
;
};
typedef
struct
aes_key_st
AES_KEY
;
const
char
*
AES_options
(
void
);
int
AES_set_encrypt_key
(
const
unsigned
char
*
userKey
,
const
int
bits
,
AES_KEY
*
key
);
int
AES_set_decrypt_key
(
const
unsigned
char
*
userKey
,
const
int
bits
,
AES_KEY
*
key
);
int
private_AES_set_encrypt_key
(
const
unsigned
char
*
userKey
,
const
int
bits
,
AES_KEY
*
key
);
int
private_AES_set_decrypt_key
(
const
unsigned
char
*
userKey
,
const
int
bits
,
AES_KEY
*
key
);
void
AES_encrypt
(
const
unsigned
char
*
in
,
unsigned
char
*
out
,
const
AES_KEY
*
key
);
void
AES_decrypt
(
const
unsigned
char
*
in
,
unsigned
char
*
out
,
const
AES_KEY
*
key
);
void
AES_ecb_encrypt
(
const
unsigned
char
*
in
,
unsigned
char
*
out
,
const
AES_KEY
*
key
,
const
int
enc
);
void
AES_cbc_encrypt
(
const
unsigned
char
*
in
,
unsigned
char
*
out
,
size_t
length
,
const
AES_KEY
*
key
,
unsigned
char
*
ivec
,
const
int
enc
);
void
AES_cfb128_encrypt
(
const
unsigned
char
*
in
,
unsigned
char
*
out
,
size_t
length
,
const
AES_KEY
*
key
,
unsigned
char
*
ivec
,
int
*
num
,
const
int
enc
);
void
AES_cfb1_encrypt
(
const
unsigned
char
*
in
,
unsigned
char
*
out
,
size_t
length
,
const
AES_KEY
*
key
,
unsigned
char
*
ivec
,
int
*
num
,
const
int
enc
);
void
AES_cfb8_encrypt
(
const
unsigned
char
*
in
,
unsigned
char
*
out
,
size_t
length
,
const
AES_KEY
*
key
,
unsigned
char
*
ivec
,
int
*
num
,
const
int
enc
);
void
AES_ofb128_encrypt
(
const
unsigned
char
*
in
,
unsigned
char
*
out
,
size_t
length
,
const
AES_KEY
*
key
,
unsigned
char
*
ivec
,
int
*
num
);
void
AES_ctr128_encrypt
(
const
unsigned
char
*
in
,
unsigned
char
*
out
,
size_t
length
,
const
AES_KEY
*
key
,
unsigned
char
ivec
[
AES_BLOCK_SIZE
],
unsigned
char
ecount_buf
[
AES_BLOCK_SIZE
],
unsigned
int
*
num
);
/* NB: the IV is _two_ blocks long */
void
AES_ige_encrypt
(
const
unsigned
char
*
in
,
unsigned
char
*
out
,
size_t
length
,
const
AES_KEY
*
key
,
unsigned
char
*
ivec
,
const
int
enc
);
/* NB: the IV is _four_ blocks long */
void
AES_bi_ige_encrypt
(
const
unsigned
char
*
in
,
unsigned
char
*
out
,
size_t
length
,
const
AES_KEY
*
key
,
const
AES_KEY
*
key2
,
const
unsigned
char
*
ivec
,
const
int
enc
);
int
AES_wrap_key
(
AES_KEY
*
key
,
const
unsigned
char
*
iv
,
unsigned
char
*
out
,
const
unsigned
char
*
in
,
unsigned
int
inlen
);
int
AES_unwrap_key
(
AES_KEY
*
key
,
const
unsigned
char
*
iv
,
unsigned
char
*
out
,
const
unsigned
char
*
in
,
unsigned
int
inlen
);
#ifdef __cplusplus
}
#endif
#endif
/* !HEADER_AES_H */
libs/win32/openssl/include/asn1.h
浏览文件 @
54540811
差异被折叠。
点击展开。
libs/win32/openssl/include/asn1_mac.h
浏览文件 @
54540811
差异被折叠。
点击展开。
libs/win32/openssl/include/asn1t.h
浏览文件 @
54540811
差异被折叠。
点击展开。
libs/win32/openssl/include/bio.h
浏览文件 @
54540811
差异被折叠。
点击展开。
libs/win32/openssl/include/blowfish.h
浏览文件 @
54540811
/* file generated by 'generate-global-headers.bat' */
/* crypto/bf/blowfish.h */
#include "..\../crypto/bf/blowfish.h"
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
*
* This library is free for commercial and non-commercial use as long as
* the following conditions are aheared to. The following conditions
* apply to all code found in this distribution, be it the RC4, RSA,
* lhash, DES, etc., code; not just the SSL code. The SSL documentation
* included with this distribution is covered by the same copyright terms
* except that the holder is Tim Hudson (tjh@cryptsoft.com).
*
* Copyright remains Eric Young's, and as such any Copyright notices in
* the code are not to be removed.
* If this package is used in a product, Eric Young should be given attribution
* as the author of the parts of the library used.
* This can be in the form of a textual message at program startup or
* in documentation (online or textual) provided with the package.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. All advertising materials mentioning features or use of this software
* must display the following acknowledgement:
* "This product includes cryptographic software written by
* Eric Young (eay@cryptsoft.com)"
* The word 'cryptographic' can be left out if the rouines from the library
* being used are not cryptographic related :-).
* 4. If you include any Windows specific code (or a derivative thereof) from
* the apps directory (application code) you must include an acknowledgement:
* "This product includes software written by Tim Hudson (tjh@cryptsoft.com)"
*
* THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* The licence and distribution terms for any publically available version or
* derivative of this code cannot be changed. i.e. this code cannot simply be
* copied and put under another distribution licence
* [including the GNU Public Licence.]
*/
#ifndef HEADER_BLOWFISH_H
#define HEADER_BLOWFISH_H
#include <openssl/e_os2.h>
#ifdef __cplusplus
extern
"C"
{
#endif
#ifdef OPENSSL_NO_BF
#error BF is disabled.
#endif
#define BF_ENCRYPT 1
#define BF_DECRYPT 0
/*
* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
* ! BF_LONG has to be at least 32 bits wide. If it's wider, then !
* ! BF_LONG_LOG2 has to be defined along. !
* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
*/
#if defined(__LP32__)
#define BF_LONG unsigned long
#elif defined(OPENSSL_SYS_CRAY) || defined(__ILP64__)
#define BF_LONG unsigned long
#define BF_LONG_LOG2 3
/*
* _CRAY note. I could declare short, but I have no idea what impact
* does it have on performance on none-T3E machines. I could declare
* int, but at least on C90 sizeof(int) can be chosen at compile time.
* So I've chosen long...
* <appro@fy.chalmers.se>
*/
#else
#define BF_LONG unsigned int
#endif
#define BF_ROUNDS 16
#define BF_BLOCK 8
typedef
struct
bf_key_st
{
BF_LONG
P
[
BF_ROUNDS
+
2
];
BF_LONG
S
[
4
*
256
];
}
BF_KEY
;
#ifdef OPENSSL_FIPS
void
private_BF_set_key
(
BF_KEY
*
key
,
int
len
,
const
unsigned
char
*
data
);
#endif
void
BF_set_key
(
BF_KEY
*
key
,
int
len
,
const
unsigned
char
*
data
);
void
BF_encrypt
(
BF_LONG
*
data
,
const
BF_KEY
*
key
);
void
BF_decrypt
(
BF_LONG
*
data
,
const
BF_KEY
*
key
);
void
BF_ecb_encrypt
(
const
unsigned
char
*
in
,
unsigned
char
*
out
,
const
BF_KEY
*
key
,
int
enc
);
void
BF_cbc_encrypt
(
const
unsigned
char
*
in
,
unsigned
char
*
out
,
long
length
,
const
BF_KEY
*
schedule
,
unsigned
char
*
ivec
,
int
enc
);
void
BF_cfb64_encrypt
(
const
unsigned
char
*
in
,
unsigned
char
*
out
,
long
length
,
const
BF_KEY
*
schedule
,
unsigned
char
*
ivec
,
int
*
num
,
int
enc
);
void
BF_ofb64_encrypt
(
const
unsigned
char
*
in
,
unsigned
char
*
out
,
long
length
,
const
BF_KEY
*
schedule
,
unsigned
char
*
ivec
,
int
*
num
);
const
char
*
BF_options
(
void
);
#ifdef __cplusplus
}
#endif
#endif
libs/win32/openssl/include/bn.h
浏览文件 @
54540811
差异被折叠。
点击展开。
libs/win32/openssl/include/buffer.h
浏览文件 @
54540811
差异被折叠。
点击展开。
libs/win32/openssl/include/camellia.h
浏览文件 @
54540811
差异被折叠。
点击展开。
libs/win32/openssl/include/cast.h
浏览文件 @
54540811
差异被折叠。
点击展开。
libs/win32/openssl/include/cmac.h
0 → 100644
浏览文件 @
54540811
差异被折叠。
点击展开。
libs/win32/openssl/include/cms.h
浏览文件 @
54540811
差异被折叠。
点击展开。
libs/win32/openssl/include/comp.h
浏览文件 @
54540811
差异被折叠。
点击展开。
libs/win32/openssl/include/conf.h
浏览文件 @
54540811
差异被折叠。
点击展开。
libs/win32/openssl/include/conf_api.h
浏览文件 @
54540811
差异被折叠。
点击展开。
libs/win32/openssl/include/crypto.h
浏览文件 @
54540811
差异被折叠。
点击展开。
libs/win32/openssl/include/des.h
浏览文件 @
54540811
差异被折叠。
点击展开。
libs/win32/openssl/include/des_old.h
浏览文件 @
54540811
差异被折叠。
点击展开。
libs/win32/openssl/include/dh.h
浏览文件 @
54540811
差异被折叠。
点击展开。
libs/win32/openssl/include/dsa.h
浏览文件 @
54540811
差异被折叠。
点击展开。
libs/win32/openssl/include/dso.h
浏览文件 @
54540811
差异被折叠。
点击展开。
libs/win32/openssl/include/dtls1.h
浏览文件 @
54540811
差异被折叠。
点击展开。
libs/win32/openssl/include/e_os.h
浏览文件 @
54540811
差异被折叠。
点击展开。
libs/win32/openssl/include/e_os2.h
浏览文件 @
54540811
差异被折叠。
点击展开。
libs/win32/openssl/include/ebcdic.h
浏览文件 @
54540811
差异被折叠。
点击展开。
libs/win32/openssl/include/ec.h
浏览文件 @
54540811
差异被折叠。
点击展开。
libs/win32/openssl/include/ecdh.h
浏览文件 @
54540811
差异被折叠。
点击展开。
libs/win32/openssl/include/ecdsa.h
浏览文件 @
54540811
差异被折叠。
点击展开。
libs/win32/openssl/include/engine.h
浏览文件 @
54540811
差异被折叠。
点击展开。
libs/win32/openssl/include/err.h
浏览文件 @
54540811
差异被折叠。
点击展开。
libs/win32/openssl/include/evp.h
浏览文件 @
54540811
差异被折叠。
点击展开。
libs/win32/openssl/include/hmac.h
浏览文件 @
54540811
差异被折叠。
点击展开。
libs/win32/openssl/include/idea.h
浏览文件 @
54540811
差异被折叠。
点击展开。
libs/win32/openssl/include/krb5_asn.h
浏览文件 @
54540811
差异被折叠。
点击展开。
libs/win32/openssl/include/kssl.h
浏览文件 @
54540811
差异被折叠。
点击展开。
libs/win32/openssl/include/lhash.h
浏览文件 @
54540811
差异被折叠。
点击展开。
libs/win32/openssl/include/md2.h
浏览文件 @
54540811
差异被折叠。
点击展开。
libs/win32/openssl/include/md4.h
浏览文件 @
54540811
差异被折叠。
点击展开。
libs/win32/openssl/include/md5.h
浏览文件 @
54540811
差异被折叠。
点击展开。
libs/win32/openssl/include/mdc2.h
浏览文件 @
54540811
差异被折叠。
点击展开。
libs/win32/openssl/include/modes.h
浏览文件 @
54540811
差异被折叠。
点击展开。
libs/win32/openssl/include/o_dir.h
浏览文件 @
54540811
差异被折叠。
点击展开。
libs/win32/openssl/include/o_str.h
浏览文件 @
54540811
差异被折叠。
点击展开。
libs/win32/openssl/include/obj_mac.h
浏览文件 @
54540811
差异被折叠。
点击展开。
libs/win32/openssl/include/objects.h
浏览文件 @
54540811
差异被折叠。
点击展开。
libs/win32/openssl/include/ocsp.h
浏览文件 @
54540811
差异被折叠。
点击展开。
libs/win32/openssl/include/opensslv.h
浏览文件 @
54540811
差异被折叠。
点击展开。
libs/win32/openssl/include/ossl_typ.h
浏览文件 @
54540811
差异被折叠。
点击展开。
libs/win32/openssl/include/pem.h
浏览文件 @
54540811
差异被折叠。
点击展开。
libs/win32/openssl/include/pem2.h
浏览文件 @
54540811
差异被折叠。
点击展开。
libs/win32/openssl/include/pkcs12.h
浏览文件 @
54540811
差异被折叠。
点击展开。
libs/win32/openssl/include/pkcs7.h
浏览文件 @
54540811
差异被折叠。
点击展开。
libs/win32/openssl/include/pqueue.h
浏览文件 @
54540811
差异被折叠。
点击展开。
libs/win32/openssl/include/rand.h
浏览文件 @
54540811
差异被折叠。
点击展开。
libs/win32/openssl/include/rc2.h
浏览文件 @
54540811
差异被折叠。
点击展开。
libs/win32/openssl/include/rc4.h
浏览文件 @
54540811
差异被折叠。
点击展开。
libs/win32/openssl/include/rc5.h
浏览文件 @
54540811
差异被折叠。
点击展开。
libs/win32/openssl/include/ripemd.h
浏览文件 @
54540811
差异被折叠。
点击展开。
libs/win32/openssl/include/rsa.h
浏览文件 @
54540811
差异被折叠。
点击展开。
libs/win32/openssl/include/safestack.h
浏览文件 @
54540811
差异被折叠。
点击展开。
libs/win32/openssl/include/seed.h
浏览文件 @
54540811
差异被折叠。
点击展开。
libs/win32/openssl/include/sha.h
浏览文件 @
54540811
差异被折叠。
点击展开。
libs/win32/openssl/include/srp.h
0 → 100644
浏览文件 @
54540811
差异被折叠。
点击展开。
libs/win32/openssl/include/ssl.h
浏览文件 @
54540811
差异被折叠。
点击展开。
libs/win32/openssl/include/ssl2.h
浏览文件 @
54540811
差异被折叠。
点击展开。
libs/win32/openssl/include/ssl23.h
浏览文件 @
54540811
差异被折叠。
点击展开。
libs/win32/openssl/include/ssl3.h
浏览文件 @
54540811
差异被折叠。
点击展开。
libs/win32/openssl/include/stack.h
浏览文件 @
54540811
差异被折叠。
点击展开。
libs/win32/openssl/include/store.h
浏览文件 @
54540811
差异被折叠。
点击展开。
libs/win32/openssl/include/symhacks.h
浏览文件 @
54540811
差异被折叠。
点击展开。
libs/win32/openssl/include/tls1.h
浏览文件 @
54540811
差异被折叠。
点击展开。
libs/win32/openssl/include/ts.h
浏览文件 @
54540811
差异被折叠。
点击展开。
libs/win32/openssl/include/txt_db.h
浏览文件 @
54540811
差异被折叠。
点击展开。
libs/win32/openssl/include/ui.h
浏览文件 @
54540811
差异被折叠。
点击展开。
libs/win32/openssl/include/ui_compat.h
浏览文件 @
54540811
差异被折叠。
点击展开。
libs/win32/openssl/include/whrlpool.h
浏览文件 @
54540811
差异被折叠。
点击展开。
libs/win32/openssl/include/x509.h
浏览文件 @
54540811
差异被折叠。
点击展开。
libs/win32/openssl/include/x509_vfy.h
浏览文件 @
54540811
差异被折叠。
点击展开。
libs/win32/openssl/include/x509v3.h
浏览文件 @
54540811
差异被折叠。
点击展开。
libs/win32/openssl/libeay32.2010.vcxproj
浏览文件 @
54540811
差异被折叠。
点击展开。
libs/win32/openssl/libeay32.2010.vcxproj.filters
浏览文件 @
54540811
差异被折叠。
点击展开。
libs/win32/openssl/libeay32.2012.vcxproj
浏览文件 @
54540811
差异被折叠。
点击展开。
libs/win32/openssl/libeay32.2012.vcxproj.filters
浏览文件 @
54540811
差异被折叠。
点击展开。
libs/win32/openssl/libeay32.def
浏览文件 @
54540811
差异被折叠。
点击展开。
libs/win32/openssl/openssl.2010.vcxproj
浏览文件 @
54540811
差异被折叠。
点击展开。
libs/win32/openssl/openssl.2010.vcxproj.filters
浏览文件 @
54540811
差异被折叠。
点击展开。
libs/win32/openssl/openssl.2012.vcxproj
浏览文件 @
54540811
差异被折叠。
点击展开。
libs/win32/openssl/openssl.2012.vcxproj.filters
浏览文件 @
54540811
差异被折叠。
点击展开。
libs/win32/openssl/ssleay32.2010.vcxproj
浏览文件 @
54540811
差异被折叠。
点击展开。
libs/win32/openssl/ssleay32.2010.vcxproj.filters
浏览文件 @
54540811
差异被折叠。
点击展开。
libs/win32/openssl/ssleay32.2012.vcxproj
浏览文件 @
54540811
差异被折叠。
点击展开。
libs/win32/openssl/ssleay32.2012.vcxproj.filters
浏览文件 @
54540811
差异被折叠。
点击展开。
libs/win32/openssl/ssleay32.def
浏览文件 @
54540811
差异被折叠。
点击展开。
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论