Received: by 10.223.185.116 with SMTP id b49csp5191674wrg; Wed, 7 Mar 2018 07:45:34 -0800 (PST) X-Google-Smtp-Source: AG47ELuvu62GJkCUH0etF2JvMIXHOsZ/vOpxF8mOBFRfbXlJU4DKR14LPhrduqMA1PJM0AsaCI8+ X-Received: by 10.98.88.5 with SMTP id m5mr22963859pfb.231.1520437534509; Wed, 07 Mar 2018 07:45:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520437534; cv=none; d=google.com; s=arc-20160816; b=nklHgT3Wd1mOLS5KF2jsZ57CcN26GyYX/zEFHv33hNv36rvUvp2AahOC81LEvuFjTm YL+BsCAaJHFc/bPKcyfhvOj1MkKkHiNtiZnSyPzIZAWtc2Ucy6iTyEmBLQAz4boZtrys F0Wr/s0V3FA7Aua8sDKT6Xdzd5yTZRQE8GBk0o6+v3bzv41LLKsiJhFp5lqWUl9bjUrK uZ9O4wlVZLv7dyK8He4geOsynTLe7cdqByeQYTysHXEGli9vXa1wbbT3Dd9seLsPQu/R 4LBc/2A+uhIEk/IKw7yqcrFLDfeMkIjHPo4o408fmW/OUQY5ocBJTyU1SbO6xkrY03qy JROg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:content-id:mime-version :subject:cc:to:references:in-reply-to:from:organization :arc-authentication-results; bh=RsOqhqjnlZ3D42qLQGp4EsGqT01rHhzmrnrMDhepZbg=; b=q+Amii0KGcUM73ngwA6yxvFXp0SIeVOx9t3/BaeSdGmOWbEpORcNgxpH82RgpS8kuj +7NMFN2FP77jU0ig20omyerVxkbTISGhAEsTIzPP+hRge2LhiD8xFfP1hCpqnQFCdyfZ V4ltmM386sqXzwdGr+qYSM/3pe6KqWDyj7K6+C4L3RHSgl0bb9/XHTYz0KQ6WYaCtbtw MMyKNwgFerBnywdwP8qc3FW3wmJYzQoZizADm/Z9YblBn1K/M3rj1UXtfHTnD7Yj2GeI Jh6Bt9m/pRk2sYoGRcAkztYJ15LpeY8NyvqSCkMXsd/dfGG+dXjJKDi24XmqdlN0v3Do Irdw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k11-v6si12974165plt.531.2018.03.07.07.45.20; Wed, 07 Mar 2018 07:45:34 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933932AbeCGPoS (ORCPT + 99 others); Wed, 7 Mar 2018 10:44:18 -0500 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:36990 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S933728AbeCGPoR (ORCPT ); Wed, 7 Mar 2018 10:44:17 -0500 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 60A998182D17; Wed, 7 Mar 2018 15:44:16 +0000 (UTC) Received: from warthog.procyon.org.uk (ovpn-121-88.rdu2.redhat.com [10.10.121.88]) by smtp.corp.redhat.com (Postfix) with ESMTP id 275267C4C; Wed, 7 Mar 2018 15:44:14 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: <88da0c24-385c-64a9-6d56-36696d433bc7@maciej.szmigiero.name> References: <88da0c24-385c-64a9-6d56-36696d433bc7@maciej.szmigiero.name> To: "Maciej S. Szmigiero" Cc: dhowells@redhat.com, Herbert Xu , "David S. Miller" , Tom Lendacky , Gary Hook , keyrings@vger.kernel.org, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] X.509: unpack RSA signatureValue field from BIT STRING MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <30084.1520437454.1@warthog.procyon.org.uk> Date: Wed, 07 Mar 2018 15:44:14 +0000 Message-ID: <30085.1520437454@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.8]); Wed, 07 Mar 2018 15:44:16 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.8]); Wed, 07 Mar 2018 15:44:16 +0000 (UTC) for IP:'10.11.54.5' DOMAIN:'int-mx05.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'dhowells@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Maciej S. Szmigiero wrote: > + if (!strcmp(ctx->cert->sig->pkey_algo, "rsa")) { I'm going to change this to '== 0' rather than '!'. David