From f6b4054b28463036281c4ecf550cfc577d6e0eee Mon Sep 17 00:00:00 2001 From: kubodera_yuichi Date: Thu, 7 Jan 2010 08:17:39 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9C=AC=E7=95=AA=E7=92=B0=E5=A2=83=E3=81=AB?= =?UTF-8?q?=E8=BF=91=E3=81=A5=E3=81=91=E3=82=8B=E3=81=9F=E3=82=81=E3=81=AB?= =?UTF-8?q?sha1=E3=81=AE=E7=AE=87=E6=89=80=E3=82=92=E5=89=8A=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-09-30%20-%20paladin.7z/paladin/ctr_eFuse@154 ff987cc8-cf2f-4642-8568-d52cce064691 --- cr_device_cert.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cr_device_cert.c b/cr_device_cert.c index d7de75a..f38933d 100644 --- a/cr_device_cert.c +++ b/cr_device_cert.c @@ -231,8 +231,8 @@ int GenerateCTRDeviceCert( EC_KEY *pECkey, u32 device_id, u8 bonding_option, u8 SHA256( deviceCert.issuerName, (int)&deviceCert + sizeof(CR_DeviceCert) - (int)deviceCert.issuerName, sha256Buf ); DEBUG_PRINT_ARRAY( "sha256(HSM)", (const char *)sha256Buf, 32 ); - u8 sha1Buf[ 20 ]; - SHA1( deviceCert.issuerName, (int)&deviceCert + sizeof(CR_DeviceCert) - (int)deviceCert.issuerName, sha1Buf ); + //u8 sha1Buf[ 20 ]; + //SHA1( deviceCert.issuerName, (int)&deviceCert + sizeof(CR_DeviceCert) - (int)deviceCert.issuerName, sha1Buf ); //DEBUG_PRINT_ARRAY( "sha1(HSM)", (const char *)sha1buf, 20 ); ret_code = hsm_ecdsa_sign( deviceCert.eccSignature, sha256Buf, bonding_option );