Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
btwise
openssl
提交
f15c448a
O
openssl
项目概览
btwise
/
openssl
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
openssl
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
f15c448a
编写于
5月 03, 2005
作者:
N
Nils Larsch
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
remove BN_ncopy, it was only used in bn_nist.c and wasn't particular
useful anyway
上级
fcb41c0e
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
0 addition
and
42 deletion
+0
-42
crypto/bn/bn.h
crypto/bn/bn.h
+0
-2
crypto/bn/bn_lib.c
crypto/bn/bn_lib.c
+0
-40
未找到文件。
crypto/bn/bn.h
浏览文件 @
f15c448a
...
...
@@ -390,8 +390,6 @@ BIGNUM *BN_new(void);
void
BN_init
(
BIGNUM
*
);
void
BN_clear_free
(
BIGNUM
*
a
);
BIGNUM
*
BN_copy
(
BIGNUM
*
a
,
const
BIGNUM
*
b
);
/* BN_ncopy(): like BN_copy() but copies at most the first n BN_ULONGs */
BIGNUM
*
BN_ncopy
(
BIGNUM
*
a
,
const
BIGNUM
*
b
,
size_t
n
);
void
BN_swap
(
BIGNUM
*
a
,
BIGNUM
*
b
);
BIGNUM
*
BN_bin2bn
(
const
unsigned
char
*
s
,
int
len
,
BIGNUM
*
ret
);
int
BN_bn2bin
(
const
BIGNUM
*
a
,
unsigned
char
*
to
);
...
...
crypto/bn/bn_lib.c
浏览文件 @
f15c448a
...
...
@@ -531,46 +531,6 @@ BIGNUM *BN_copy(BIGNUM *a, const BIGNUM *b)
return
(
a
);
}
BIGNUM
*
BN_ncopy
(
BIGNUM
*
a
,
const
BIGNUM
*
b
,
size_t
n
)
{
int
i
,
min
;
BN_ULONG
*
A
;
const
BN_ULONG
*
B
;
bn_check_top
(
b
);
if
(
a
==
b
)
return
a
;
min
=
(
b
->
top
<
(
int
)
n
)
?
b
->
top
:
(
int
)
n
;
if
(
!
min
)
{
BN_zero
(
a
);
return
a
;
}
if
(
bn_wexpand
(
a
,
min
)
==
NULL
)
return
NULL
;
A
=
a
->
d
;
B
=
b
->
d
;
for
(
i
=
min
>>
2
;
i
>
0
;
i
--
,
A
+=
4
,
B
+=
4
)
{
BN_ULONG
a0
,
a1
,
a2
,
a3
;
a0
=
B
[
0
];
a1
=
B
[
1
];
a2
=
B
[
2
];
a3
=
B
[
3
];
A
[
0
]
=
a0
;
A
[
1
]
=
a1
;
A
[
2
]
=
a2
;
A
[
3
]
=
a3
;
}
switch
(
min
&
3
)
{
case
3
:
A
[
2
]
=
B
[
2
];
case
2
:
A
[
1
]
=
B
[
1
];
case
1
:
A
[
0
]
=
B
[
0
];
case
0
:
;
}
a
->
top
=
min
;
a
->
neg
=
b
->
neg
;
bn_correct_top
(
a
);
return
(
a
);
}
void
BN_swap
(
BIGNUM
*
a
,
BIGNUM
*
b
)
{
int
flags_old_a
,
flags_old_b
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录