# openssl3demo **Repository Path**: code4lala/openssl3demo ## Basic Information - **Project Name**: openssl3demo - **Description**: openssl3demo - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-04-04 - **Last Updated**: 2025-04-10 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README run ``` sh 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 . ```