1 Star 0 Fork 0

code4lala / openssl3demo

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

run

git clone https://github.com/openssl/openssl
pushd openssl
    git checkout openssl-3.1.0
    ./Configure
    make -j256
popd

openssl-3.0.7 results sometimes pubKeyParam->data first byte is 0x03 (strange behavior)

[D][PrintBuffer][80]PrintBuffer tag = derPubKey, len = 92, 0x5c
[D][PrintLine][70]00000000 00 00 00 00 00 00 00 00 00 00 00 00 41 00 00 00 ............A...
[D][PrintLine][70]00000010 00 00 00 00 01 00 00 00 00 00 00 00 01 00 00 00 ................
[D][PrintLine][70]00000020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
[D][PrintLine][70]00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
[D][PrintLine][70]00000040 00 00 00 00 00 00 00 00 00 00 00 00 41 00 00 00 ............A...
[D][PrintLine][70]00000050 00 00 00 00 00 00 00 00 00 00 00 00             ............
[I][main][58]EVP_PKEY_todata ok!
[I][main][59]params->key = point-format
[I][main][60]params->data_type = 4
[I][main][61]params->data_size = 12
[I][main][62]params->return_size = 0xffffffffffffffff
[D][PrintBuffer][80]PrintBuffer tag = params->data, len = 12, 0xc
[D][PrintLine][70]00000000 75 6E 63 6F 6D 70 72 65 73 73 65 64             uncompressed
[I][main][69]pubKeyParam->key = pub
[I][main][70]pubKeyParam->data_type = 5
[I][main][71]pubKeyParam->data_size = 33
[I][main][72]pubKeyParam->return_size = 0xffffffffffffffff
[D][PrintBuffer][80]PrintBuffer tag = pubKeyParam->data, len = 33, 0x21
[D][PrintLine][70]00000000 03 FB 93 5E 36 49 6C 9B 53 B7 5A 02 98 61 CF 5C ...^6Il.S.Z..a.\
[D][PrintLine][70]00000010 E1 44 2D 52 72 8B 4C E9 A7 6A CB D7 4C 73 74 5B .D-Rr.L..j..Lst[
[D][PrintLine][70]00000020 6C                                              l

openssl-3.0.7 results sometimes pubKeyParam->data first byte is 0x02

[D][PrintBuffer][80]PrintBuffer tag = derPubKey, len = 92, 0x5c
[D][PrintLine][70]00000000 00 00 00 00 00 00 00 00 00 00 00 00 41 00 00 00 ............A...
[D][PrintLine][70]00000010 00 00 00 00 01 00 00 00 00 00 00 00 01 00 00 00 ................
[D][PrintLine][70]00000020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
[D][PrintLine][70]00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
[D][PrintLine][70]00000040 00 00 00 00 00 00 00 00 00 00 00 00 41 00 00 00 ............A...
[D][PrintLine][70]00000050 00 00 00 00 00 00 00 00 00 00 00 00             ............
[I][main][58]EVP_PKEY_todata ok!
[I][main][59]params->key = point-format
[I][main][60]params->data_type = 4
[I][main][61]params->data_size = 12
[I][main][62]params->return_size = 0xffffffffffffffff
[D][PrintBuffer][80]PrintBuffer tag = params->data, len = 12, 0xc
[D][PrintLine][70]00000000 75 6E 63 6F 6D 70 72 65 73 73 65 64             uncompressed
[I][main][69]pubKeyParam->key = pub
[I][main][70]pubKeyParam->data_type = 5
[I][main][71]pubKeyParam->data_size = 33
[I][main][72]pubKeyParam->return_size = 0xffffffffffffffff
[D][PrintBuffer][80]PrintBuffer tag = pubKeyParam->data, len = 33, 0x21
[D][PrintLine][70]00000000 02 AA FA BD 8D 0D B1 45 46 78 75 25 83 46 70 A4 .......EFxu%.Fp.
[D][PrintLine][70]00000010 D3 A7 68 28 5C EA E5 56 E2 FA E7 F0 4A B5 BB 31 ..h(\..V....J..1
[D][PrintLine][70]00000020 AC                                              .

openssl-3.1.0 results pubKeyParam->data first byte is always 0x04

[D][PrintBuffer][80]PrintBuffer tag = derPubKey, len = 92, 0x5c
[D][PrintLine][70]00000000 00 00 00 00 00 00 00 00 00 00 00 00 91 00 00 00 ................
[D][PrintLine][70]00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
[D][PrintLine][70]00000020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
[D][PrintLine][70]00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
[D][PrintLine][70]00000040 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
[D][PrintLine][70]00000050 00 00 00 00 00 00 00 00 00 00 00 00             ............
[I][main][58]EVP_PKEY_todata ok!
[I][main][59]params->key = point-format
[I][main][60]params->data_type = 4
[I][main][61]params->data_size = 12
[I][main][62]params->return_size = 0xffffffffffffffff
[D][PrintBuffer][80]PrintBuffer tag = params->data, len = 12, 0xc
[D][PrintLine][70]00000000 75 6E 63 6F 6D 70 72 65 73 73 65 64             uncompressed
[I][main][69]pubKeyParam->key = pub
[I][main][70]pubKeyParam->data_type = 5
[I][main][71]pubKeyParam->data_size = 65
[I][main][72]pubKeyParam->return_size = 0xffffffffffffffff
[D][PrintBuffer][80]PrintBuffer tag = pubKeyParam->data, len = 65, 0x41
[D][PrintLine][70]00000000 04 01 61 56 7D E6 19 BF DB 27 41 D8 C2 30 C4 C8 ..aV}....'A..0..
[D][PrintLine][70]00000010 F4 36 86 F0 B2 7E 2F 34 23 91 E5 FD 85 E8 4D 86 .6...~/4#.....M.
[D][PrintLine][70]00000020 20 E0 8B 20 D1 47 20 A9 80 CF 13 C0 20 C9 E5 7F  .. .G ..... ...
[D][PrintLine][70]00000030 6F FF 01 7B 8C 76 7A 3E 53 D6 F8 22 B7 2A 31 FF o..{.vz>S..".*1.
[D][PrintLine][70]00000040 C5                                              .

空文件

简介

openssl3demo 展开 收起
C 等 2 种语言
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/code4lala/openssl3demo.git
git@gitee.com:code4lala/openssl3demo.git
code4lala
openssl3demo
openssl3demo
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891