From 066ef8fc92b7e12e226a48554d3d28709d2d2de6 Mon Sep 17 00:00:00 2001 From: liuhao365 Date: Fri, 17 Jan 2025 10:11:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Ditrustee=E5=9B=BD=E5=AF=86?= =?UTF-8?q?=E6=94=AF=E6=8C=81bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build/signtools/signtool_v3.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/signtools/signtool_v3.py b/build/signtools/signtool_v3.py index 906320f..ac7414c 100755 --- a/build/signtools/signtool_v3.py +++ b/build/signtools/signtool_v3.py @@ -364,7 +364,7 @@ def read_key_pem(file_path, arr): def encrypt_aes_key(pubkey_path, in_data, out_path, cfg): ''' encrypt aes key ''' - if cfg.enc_cont_alg == '1': + if cfg.enc_key_alg == '1': from gmssl import sm2 array = ['-----BEGIN PUBLIC KEY-----', 27, '-----END PUBLIC KEY-----', 52, 183] pubkey = read_key_pem(pubkey_path, array) -- Gitee