Message ID | 20231215142251.52393-6-Michael.Glembotzki@iris-sensing.com |
---|---|
State | Changes Requested |
Headers | show
Return-Path: <swupdate+bncBDY5JUXLVIEBBTOC6GVQMGQEJ7VYZUA@googlegroups.com> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.a=rsa-sha256 header.s=20230601 header.b=MWL+2Dn4; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=b/d59ugf; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com (client-ip=2a00:1450:4864:20::13a; helo=mail-lf1-x13a.google.com; envelope-from=swupdate+bncbdy5juxlviebbtoc6gvqmgqej7vyzua@googlegroups.com; receiver=patchwork.ozlabs.org) Received: from mail-lf1-x13a.google.com (mail-lf1-x13a.google.com [IPv6:2a00:1450:4864:20::13a]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4SsBJy0Rvgz1ySd for <incoming@patchwork.ozlabs.org>; Sat, 16 Dec 2023 01:23:13 +1100 (AEDT) Received: by mail-lf1-x13a.google.com with SMTP id 2adb3069b0e04-50d12eaf22bsf613074e87.3 for <incoming@patchwork.ozlabs.org>; Fri, 15 Dec 2023 06:23:13 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1702650190; cv=pass; d=google.com; s=arc-20160816; b=i8wjMwe+oq1NY/OwnkliRedxeBQ+kphxP1d6Fhi5Z72pBiWdyGOGrVuLyYDuIdjel+ Qhrj8BxpmO5CKZbNW+UrEWRKcarb7nO9g5qloPiWXiwMY21r7+1/2jtdaYVrBqg1AcEU OMhd0o9BRJ1fgVaKgHrmsvgaH/y0F9GKI0yMm2rp9GhUpaHnuG2kjgsZuA3CZgMMkpLY emZ/aSQm7tpYQ9N4HyHxGNli+muI8pt3f98ZbxoD+scSkzK1Ax2h79PrhMBd+lE0c9d+ h7X3ZxKMfC6/QlxWTx4uhGdYvv0Iep0eK4O7y8xETMC0EiZHPkxXvkHP2OxIIHMjx5wa IEMw== 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 :dkim-signature; bh=eBnRn6LnoDbYex9D1sw00a7HD9lRaKH03pny2xQqSYE=; fh=zydHuzCQWrku2OPQyZfraJZFcOpEXLQ/YBcu3QNiBd0=; b=v6ZRLZznVcDX1zeZPxcIXtOzBXP77YYYStL6hn7GXgP4f6P0gdoGBwU8MGfDfizGNW Lc0isZ9FncO5T1oItBPUa9ZWQnzqJ9uz5GSfG4NiJcA1kWUM183OWWHjcgZpbBglN7LI VhJr6uHepgDb2/V0Ta9acPoBRQLYP4pj4lP+7PvJ4JIcvMqWuj94P0CYaWaVFqMiDI0J eOuZ7bbuvTuKjt/f/eoP5hGaH4QhGpVOGyGfmv+deGW+Zcz6u6u/nirvn8xvY5j6Q5u9 IDXwcliGsUxAZaIGuoQuKjHb6amskiCq9cZvlDycw1UhNgSaQn3Eg+1QfmcQ/T8sxzBz TNOg== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=bOPpg3JB; spf=pass (google.com: domain of m.glembo@gmail.com designates 2a00:1450:4864:20::12c as permitted sender) smtp.mailfrom=m.glembo@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1702650190; x=1703254990; darn=patchwork.ozlabs.org; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:sender:from:to:cc:subject:date:message-id :reply-to; bh=eBnRn6LnoDbYex9D1sw00a7HD9lRaKH03pny2xQqSYE=; b=MWL+2Dn45qfAogcr3uuWLhczBIKxZRsITJejqbcGsrpiUF5Ac4QjKSJFBFGgOs3moY D0DhgndHOCYX7ROtckjugP/DRBax/Exs5F5jC7FayABrOC0p9/ArmEJw6MmXG+RFku1t 1BdRJ0Ur0kpYmw7Y/ReJ1d/qEjcDvM23LR0g4DN8Wi0kwRHauHE2iIoj+zzDtIJK2lA4 R3oTQwlHKqWFsDDiJID2pxoLdVUVw8VQzkH0f5zaDbb5aT3MYZlH7itr2TWIo9+uVGhE CkVaEO/QldegwGv08omS8RJrfqU0LOQM0trEnBHDHMi0s7LtMiZ4PIrOJPW/aw2fVa5j DyIQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702650190; x=1703254990; darn=patchwork.ozlabs.org; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=eBnRn6LnoDbYex9D1sw00a7HD9lRaKH03pny2xQqSYE=; b=b/d59ugfHe/9NUKYRIkaozbliA6F/NPCi5CYTElY0x5TPAFP0X4ocfjJSaej9OhPRF a2ETCRRkrr5S/b34j7GaRTkWdZ5eeSQtfQSV5m6YN2CfJPY0NdU7xB2s/v+0+WxzNURq yG6gvNO3n4eX1FUIWB28/Ne5iUAv7wtyoQ/4+kZOoBhOq5gqI1++Z5kDLDVZ9XBSbsAb rnMMZyogO6aSa4jcdVSI/fCtFqvGMwW1KXQ3ywXbUlHuNPMGR5ZaMSa1ggA4rsROLVEG mkgL1/JUjeKPl/bZbrL+RXBXevtq0JFZprK/w37pp2j+TJMzJj4L52O3GvDL1ABCaFT4 uQ0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702650190; x=1703254990; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :x-beenthere:x-gm-message-state:sender:from:to:cc:subject:date :message-id:reply-to; bh=eBnRn6LnoDbYex9D1sw00a7HD9lRaKH03pny2xQqSYE=; b=ChoGEF53KSNwPS/gRIok7X8YduQOuqqpNYpkM1i+PWDL/lhlQeSSCupcdyRhLA/6UD LLqMFWvCPflZw2FMovmtBVi3UAU9Mjwh0BpMbRTKloDX4FVF9jFLieGTKN9gSyQwmiJI tvB4/DTYtj5f5IPkBNOEXNxt4L6K8P1ACzzF38aIFcJd70gb4fMCfQaWvmN3aMbqYIMu mfppn6vl8vZ+mSUN8SuKoxCqzpvlkNrQ0PQL1Xh3EKmAwD7fdgqBoJwqZNazk6yur+yw V+KYVwMXi1RWnNmYXYY1kr4VzH+J0nEaWVHiEWQqWY8ZWvZ3Ftw26e0FfVGuVxysq5C7 uATQ== Sender: swupdate@googlegroups.com X-Gm-Message-State: AOJu0YwQw6bBzlBAqFBxOtSP8HHudjxVsPVkl4W2sQhlEHbVX11SpE/3 czIExhdvavFQZ49akg+gLyE= X-Google-Smtp-Source: AGHT+IFXVO2xlISYkC3YaQfjiJrSv4cq+Ef6zlZGy4SbYFGZltQTbscNRxdfo9htQEb7ces6iZONDw== X-Received: by 2002:a05:6512:3584:b0:50b:f486:a65e with SMTP id m4-20020a056512358400b0050bf486a65emr4974393lfr.106.1702650189693; Fri, 15 Dec 2023 06:23:09 -0800 (PST) X-BeenThere: swupdate@googlegroups.com Received: by 2002:a05:6512:3ca4:b0:50b:f85b:719d with SMTP id h36-20020a0565123ca400b0050bf85b719dls122840lfv.1.-pod-prod-04-eu; Fri, 15 Dec 2023 06:23:07 -0800 (PST) X-Received: by 2002:ac2:4ec7:0:b0:50b:e20c:e54e with SMTP id p7-20020ac24ec7000000b0050be20ce54emr5050292lfr.115.1702650187296; Fri, 15 Dec 2023 06:23:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702650187; cv=none; d=google.com; s=arc-20160816; b=EjoDukS9WNZHXfOEm/EjWGDreRhPqgH92zWkQT77BZDzuwqyo22Wfysqzf5ceRpTHj LtoOFzPfZwkMTTVa3BattGiiOJdr6t+eMUzwyQ5xy4a+J172kcmyqEzG7r2ScfOtlEQb zOl3YOp6D//E0LYOoSkPu7j6sydbn5LfMMr67CGLnq9617bLne30JDIH3zZ3uObBTCZc wGE1GnBtuv5yc0AeH5bYD3UdRbBE71Fd/K+KA7WsLgZevYfYJ1dUfppKAU7xvCeieewG x0xHSS9bNSgKvgVufn9XimloVOtoDpv+ZgWvWTrIvHOsBeg+bjtcFgytb6UsvnSi4lYc 35vg== 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:dkim-signature; bh=EIcMJMia8qoN4zEs86apJGGf46Iy7u5lspILzESAa8E=; fh=zydHuzCQWrku2OPQyZfraJZFcOpEXLQ/YBcu3QNiBd0=; b=gJcinvaIO4om0zL5Ws3SZ9d1j7itBedwOJwaVGqX2s5Y5rPw/9CMPXTRmMijPNET60 8KV6yavXpn37DdMs4R4A/yy9OP9zcJIUg7txt8iGuLtkKaaA6+WBBCJTtyMvgAEvr3F6 2JjEu5pGgVE6GyT5l2nHjQxLEjzTgaMEoA3COZjkU7i5FT78u8VEyFFKvjrSE5TIiMp8 1wMIu0ZHEuSrbM/rFbhsHFGggxxgOLOWUJ+l8DHG4vD/QRtUxUgUGH2FoG0Mm7FKuWqB /PkkXVt1gmEinp4BVfnJrZMdNEAtxJi1KTZmTLTozj5FtF3yxA1pFFgFmXXfsp5on2Sz TF0Q== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=bOPpg3JB; spf=pass (google.com: domain of m.glembo@gmail.com designates 2a00:1450:4864:20::12c as permitted sender) smtp.mailfrom=m.glembo@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com. [2a00:1450:4864:20::12c]) by gmr-mx.google.com with ESMTPS id f14-20020a056512360e00b0050bfb2c1afdsi649890lfs.11.2023.12.15.06.23.07 for <swupdate@googlegroups.com> (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 15 Dec 2023 06:23:07 -0800 (PST) Received-SPF: pass (google.com: domain of m.glembo@gmail.com designates 2a00:1450:4864:20::12c as permitted sender) client-ip=2a00:1450:4864:20::12c; Received: by mail-lf1-x12c.google.com with SMTP id 2adb3069b0e04-50bdec453c8so734743e87.3 for <swupdate@googlegroups.com>; Fri, 15 Dec 2023 06:23:07 -0800 (PST) X-Received: by 2002:a05:6512:33c8:b0:50b:e08a:4d00 with SMTP id d8-20020a05651233c800b0050be08a4d00mr7823801lfg.84.1702650186402; Fri, 15 Dec 2023 06:23:06 -0800 (PST) Received: from PC-2635.irisgmbh.local (dslb-002-203-161-041.002.203.pools.vodafone-ip.de. [2.203.161.41]) by smtp.gmail.com with ESMTPSA id vx6-20020a170907a78600b00a1e852ab3f0sm10944029ejc.15.2023.12.15.06.23.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 06:23:05 -0800 (PST) From: Michael Glembotzki <m.glembo@gmail.com> To: swupdate@googlegroups.com Cc: Michael Glembotzki <Michael.Glembotzki@iris-sensing.com> Subject: [swupdate] [V3][PATCH 05/10] sslapi: Add priv key/cert to swupdate_digest for asym decryption Date: Fri, 15 Dec 2023 15:19:42 +0100 Message-ID: <20231215142251.52393-6-Michael.Glembotzki@iris-sensing.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231215142251.52393-1-Michael.Glembotzki@iris-sensing.com> References: <20231215142251.52393-1-Michael.Glembotzki@iris-sensing.com> MIME-Version: 1.0 X-Original-Sender: m.glembo@gmail.com X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=bOPpg3JB; spf=pass (google.com: domain of m.glembo@gmail.com designates 2a00:1450:4864:20::12c as permitted sender) smtp.mailfrom=m.glembo@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 |
Add support for asymmetric decryption
|
expand
|
diff --git a/include/sslapi.h b/include/sslapi.h index 0dce615..de86695 100644 --- a/include/sslapi.h +++ b/include/sslapi.h @@ -108,6 +108,10 @@ struct swupdate_digest { #else EVP_CIPHER_CTX *ctxdec; #endif +#ifdef CONFIG_ASYM_ENCRYPTED_SW_DESCRIPTION + EVP_PKEY *rkey; /* recipient private key */ + X509 *rcert; /* recipient cert */ +#endif }; #if OPENSSL_VERSION_NUMBER < 0x10100000L
Signed-off-by: Michael Glembotzki <Michael.Glembotzki@iris-sensing.com> --- include/sslapi.h | 4 ++++ 1 file changed, 4 insertions(+)