Message ID | 20220406081837.2222008-9-sbabic@denx.de |
---|---|
State | Accepted |
Headers | show
Return-Path: <swupdate+bncBCXPLOXJ6IKRB3EZWWJAMGQEL7362AY@googlegroups.com> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.a=rsa-sha256 header.s=20210112 header.b=rz6SihKH; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com (client-ip=2a00:1450:4864:20::338; helo=mail-wm1-x338.google.com; envelope-from=swupdate+bncbcxploxj6ikrb3ezwwjamgqel7362ay@googlegroups.com; receiver=<UNKNOWN>) Received: from mail-wm1-x338.google.com (mail-wm1-x338.google.com [IPv6:2a00:1450:4864:20::338]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4KYHTr1Kk6z9sFq for <incoming@patchwork.ozlabs.org>; Wed, 6 Apr 2022 18:18:56 +1000 (AEST) Received: by mail-wm1-x338.google.com with SMTP id f19-20020a7bcd13000000b0038c01defd5asf969270wmj.7 for <incoming@patchwork.ozlabs.org>; Wed, 06 Apr 2022 01:18:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1649233133; cv=pass; d=google.com; s=arc-20160816; b=m0WhH3bBW1E/oNrgreGZSXYJIeqL7TLykkapksWktuLkBM7SC0R5NDN6QSSsldnquE VeFwUPPIFS745KaK+AHWkuZoAbJX6d98nFPhjzRweT2Coh8Wh6W92a6ufUnhpuC5dkJD sgJLwcCQdz0k0+1NACpFhLuI7Km+N9J2/L0wxdE5tJBUdEMpClcCCqPOmP7v5L9Roq2L ds+YZv0KbznA6Mo0AJ8pCxs00v3YLw0t7IY6fBk0kjtC5iyF28P41a8FzuzHjbHFfK7y P6SRzXXBcwxsNtGrbFY9MxeNNbF0gUmJf5LtrjiKNkIdTFg+3y9P6hb3N06xVzQKjkJP G2zA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:dkim-signature; bh=A14splTaKjdgPEbELGvsqVzGuNHYE6KiKg+5WEB8wHU=; b=cCN9ia/OZz0Hp40iDS/qzflmBqb93QYwPcxMxxGchHrDgYKPol4hjaqpeW4FjGnE+e e3LNaG+tUZ2TGfW7HTOs9a8T+NANzCIn0hj+0DaXxrGEK9pQllGK3FTNWc+Ccnlyhu0Z ul3HRpGtF3iq+DWfKxcy8IkNFbW8gqiXHDswFNisamKeM0tGA9Ryco5xJTgPRdzvZJsW dRJhGZIWUhw3J4nSP5nFTLg0otq3+ZlQMfXMQROb8312mlxpDJF0uvMz3abFmx7bcbDq VfMqPomtkwN1lnM67gz82PilWdWbO/IAEmTJrB9lL4gL4On6vJL6ODFKvpX923Ubk3gq s1Wg== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=neutral (google.com: 212.18.0.9 is neither permitted nor denied by domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=A14splTaKjdgPEbELGvsqVzGuNHYE6KiKg+5WEB8wHU=; b=rz6SihKHwErAPS4eXOlYgxl5/O+SshYTbE1Wl2PMTPi1wVnWfGBeZuAF+ByXIl9pmu 6Y81HIJOhLn9QcAQafuqelJsvd0inZK1MHd/BXsWtimk5Anx89ZqQjp6tnW+M7On9Kjp TCq+mAAgN+yzJNbWUb2zVGNWDwFApR+cfbnYhktovsEf07go+r7JsOAxrWwSzb8wTvQV gydx44zFfX+Yy71bXIXUk1PbWirpWNJaYQfY3sn1zsQxYbdz3NlZq1qxsE5J3Xm4WhIJ LKeQMX4oSETKwLzehmyh0QtYhXZg690f5H2dkGXQ/EX+n/9hYfYU42i5PL8++XUJnZOu GewA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=A14splTaKjdgPEbELGvsqVzGuNHYE6KiKg+5WEB8wHU=; b=2FyI9Pc1gW6TUaJMtNUCb8lmmTQ9e+/VoSLQyqLSsQg68wLuhnFgozo7TYSc1PF9kv lyNxn3YMebmGRWjb+qcdfJuBYgnFZLTyOr2h79r7+tQVI9ELsTsme7DIG2igyZMQBAoO SjrRyXcHD5BFG+v7ORxf0llPuZlvirZlbT2P0+tNYhixUgMbyOba+g39MnK6KK0O2wMd EBQqmT1NyOhXPocOUxBDkHDx8e0m0xcMKGWRds0zhu5Vcx4uKOh9b1wx4AC2wpXTKklm UhL1khXwhAEDxddezqAR5GFbG4i6rizTnwbq8PPyWCHScUZ0wG7GeG2inlA38CUlWfH3 cBEQ== Sender: swupdate@googlegroups.com X-Gm-Message-State: AOAM532gNZuqOztm6CAuxforS4e1NTPTF8hVsIAVC0ZXUNCsGWgZMEtl BKdWwabq6kY5LAW0s2iXWuU= X-Google-Smtp-Source: ABdhPJxs8auzkckZR0gM4+VkH6BJMq+RkZ6ES7GLaMxCIgFZE+LgDVLy2pdkVkXqHZO2CGye/fEA9Q== X-Received: by 2002:a05:6000:186f:b0:205:857d:dee8 with SMTP id d15-20020a056000186f00b00205857ddee8mr5692755wri.532.1649233133210; Wed, 06 Apr 2022 01:18:53 -0700 (PDT) X-BeenThere: swupdate@googlegroups.com Received: by 2002:a5d:5306:0:b0:206:e61:ce02 with SMTP id e6-20020a5d5306000000b002060e61ce02ls1061126wrv.2.gmail; Wed, 06 Apr 2022 01:18:52 -0700 (PDT) X-Received: by 2002:adf:a3da:0:b0:206:1479:8b79 with SMTP id m26-20020adfa3da000000b0020614798b79mr5696766wrb.147.1649233132473; Wed, 06 Apr 2022 01:18:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649233132; cv=none; d=google.com; s=arc-20160816; b=WUFY7qNTn8KT2tkFXSvMCE+pOxrTOKIJ1Cl/fRolu7BZ95ib9rvwRfwKUNH682hkbS tIWOvF2SbYgkKzie+PF3d7V1HpOySBCHVMg1F5Cq2+ZkFR4ZoS6QPM88z+p2qgXeSgaD 55ymWrRCStes9GNsMIhXV0RQL76ml1M26dF+9OOSWqFUkT3Kc8CoAtN9+3n60YaS/vVY oRyv6ySPjgnN8QssBUI0yDJfx58eqBY8a4j8XnffYaqNA7/ACqZCD5fxLUfAL1CvZAof W3V5ZpVSWfACL1g0NA0l8ZlxrGV3fWqtFN0arVvArfeRgy0a+GhO+tMkwsC3xgHsjXwU dOyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=olMuhStWEjIP74FKkFwV0TPPASm7sx1h63L7YJmkP+0=; b=HBjdNsbGqdRMruFWqlVvQ3lqTSVNobtgCkdunMxDxqgm36kYvn6/vU5JDRDlcsQ+nB e1emARV5Qq2TWDjN63Lunv3CJMhdMDGRk45v3ya8F4cMgYnjNKw9Mv/b+Qeiak5OExvO ovkF/yFjoLgpH2gx+NBnZVu+hIRZICpxnHw9xy3EkFKduEfKVwn3ryVLP26iEuTlX1RE e5uNUzM/3+2x3IO/ZAwn8KaXLhDRq7eZGv/ixnuZK5YIwdWiDp7Wl6nZ0SsvaIerjIWW CMeWpJWJoDN6HGIuko4OOpAuNQycKoTZXoOVxRTv5U5MHDyvXkid+8VJdEHuT6XoNg0z psbQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=neutral (google.com: 212.18.0.9 is neither permitted nor denied by domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de Received: from mail-out.m-online.net (mail-out.m-online.net. [212.18.0.9]) by gmr-mx.google.com with ESMTPS id c2-20020a05600c0a4200b0038cac42709csi306970wmq.1.2022.04.06.01.18.52 for <swupdate@googlegroups.com> (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 Apr 2022 01:18:52 -0700 (PDT) Received-SPF: neutral (google.com: 212.18.0.9 is neither permitted nor denied by domain of sbabic@denx.de) client-ip=212.18.0.9; Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4KYHTm1r0Sz1r1ff; Wed, 6 Apr 2022 10:18:52 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4KYHTm1h50z1qqkB; Wed, 6 Apr 2022 10:18:52 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id W8CI9YB42csn; Wed, 6 Apr 2022 10:18:51 +0200 (CEST) Received: from babic.homelinux.org (host-88-217-136-221.customer.m-online.net [88.217.136.221]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPS; Wed, 6 Apr 2022 10:18:51 +0200 (CEST) Received: from localhost (mail.babic.homelinux.org [127.0.0.1]) by babic.homelinux.org (Postfix) with ESMTP id 6E4F945400DB; Wed, 6 Apr 2022 10:18:51 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at babic.homelinux.org Received: from babic.homelinux.org ([IPv6:::1]) by localhost (mail.babic.homelinux.org [IPv6:::1]) (amavisd-new, port 10024) with ESMTP id qZEowbD2PYTr; Wed, 6 Apr 2022 10:18:49 +0200 (CEST) Received: from paperino.fritz.box (paperino.fritz.box [192.168.178.48]) by babic.homelinux.org (Postfix) with ESMTP id 135C54542C9B; Wed, 6 Apr 2022 10:18:40 +0200 (CEST) From: Stefano Babic <sbabic@denx.de> To: swupdate@googlegroups.com Cc: Stefano Babic <sbabic@denx.de> Subject: [swupdate] [meta swupdate] [V2 08/12] class: move swupdate_encrypt_file to lib Date: Wed, 6 Apr 2022 10:18:33 +0200 Message-Id: <20220406081837.2222008-9-sbabic@denx.de> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220406081837.2222008-1-sbabic@denx.de> References: <20220406081837.2222008-1-sbabic@denx.de> MIME-Version: 1.0 X-Original-Sender: sbabic@denx.de X-Original-Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 212.18.0.9 is neither permitted nor denied by domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list swupdate@googlegroups.com; contact swupdate+owners@googlegroups.com List-ID: <swupdate.googlegroups.com> X-Spam-Checked-In-Group: swupdate@googlegroups.com X-Google-Group-Id: 605343134186 List-Post: <https://groups.google.com/group/swupdate/post>, <mailto:swupdate@googlegroups.com> List-Help: <https://groups.google.com/support/>, <mailto:swupdate+help@googlegroups.com> List-Archive: <https://groups.google.com/group/swupdate List-Subscribe: <https://groups.google.com/group/swupdate/subscribe>, <mailto:swupdate+subscribe@googlegroups.com> List-Unsubscribe: <mailto:googlegroups-manage+605343134186+unsubscribe@googlegroups.com>, <https://groups.google.com/group/swupdate/subscribe> |
Series |
Support to call functions inside sw-description
|
expand
|
diff --git a/classes/swupdate-common.bbclass b/classes/swupdate-common.bbclass index e96e927..7d60a6f 100644 --- a/classes/swupdate-common.bbclass +++ b/classes/swupdate-common.bbclass @@ -68,12 +68,6 @@ def swupdate_extract_keys(keyfile_path): return key,iv -def swupdate_encrypt_file(f, out, key, ivt): - import subprocess - encargs = ["openssl", "enc", "-aes-256-cbc", "-in", f, "-out", out] - encargs += ["-K", key, "-iv", ivt, "-nosalt"] - subprocess.run(encargs, check=True) - def swupdate_write_sha256(s): import re write_lines = []
Signed-off-by: Stefano Babic <sbabic@denx.de> --- classes/swupdate-common.bbclass | 6 ------ 1 file changed, 6 deletions(-)