Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp853995iob; Wed, 4 May 2022 09:14:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzDUXod23y0aBbX44gyQiQkSt/Dazd6ary40Yw2ksy8rX5jwhtAKGFAjYt6PZISzG/vij+w X-Received: by 2002:a17:903:11c9:b0:154:be2d:eb9 with SMTP id q9-20020a17090311c900b00154be2d0eb9mr22219436plh.91.1651680885619; Wed, 04 May 2022 09:14:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651680885; cv=none; d=google.com; s=arc-20160816; b=CSJY5plqhSjTemnhLHmh6WSmWQFnSHrAa4VcdmsDg1dN6tcIDbxPY8HyorZpSIo2tb XDMn+z4RbdGFGclGDkivZQH6l5j6NBqVAPoVM/VSkRUdQUML6n1uGMWpyxJw0RK04EYD t40cxG3P/I0NmMgqZX9q+OoY872NRpfmQI9jNrOh2rfTpRP6Ycae/Zit2eCARISoKINs 56+BoW8bUfjy8rCdTqlAiOF1jePpEYomovGMJrNqrONApXbVIbC0jANCIpaqcBRlCLT+ +Rz3nECicQAPKPkujXt5OxyQnfdjLUaCaaH5F//kfLnTLebrngmHKFQNaZKFUYu3zMt1 EOzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=mu7frDY3tF1mpPfvDkSZ+QoF/RCrkyl1/4guVXYmJNM=; b=wdPpO290k4W3FWaK+X8yR7BkjWiZ5TLOUbwc9fBPfmu/+oZPncxspGpW7FlbYxQQAC dXCGVJrOm11plpHKXupoUfIDUnnLSPl0EvF8zoQ7qci1/SK0S8EVWfF9e8E6kAZWcKGb TCbERpYnCR30Urz5G8eGjda/nW010+jtJ9gXF/PyTuT200q5TzrgcTV1onITD4Zed6nZ CQzxQX5WzjS0NO/jZmRhBVV+2Xa3v0O7I9zIe6gTyE9lEVT86kryttSXu6ibrnI+9i0c i8Gle/x7PCfgDpWR5vhIsFhrE+V1Ci2Pd2ze8VaNShhc2zi8JL65+GdkDOX8YC5djpXn 99Zg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zx2c4.com header.s=20210105 header.b=XRHm7UCv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zx2c4.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g8-20020a056a001a0800b0051050f27cccsi625189pfv.302.2022.05.04.09.14.29; Wed, 04 May 2022 09:14:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@zx2c4.com header.s=20210105 header.b=XRHm7UCv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zx2c4.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347872AbiEDJya (ORCPT + 99 others); Wed, 4 May 2022 05:54:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32780 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347832AbiEDJyK (ORCPT ); Wed, 4 May 2022 05:54:10 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 22951183BA; Wed, 4 May 2022 02:50:35 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id D3D25B82330; Wed, 4 May 2022 09:50:33 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 65B35C385AF; Wed, 4 May 2022 09:50:32 +0000 (UTC) Authentication-Results: smtp.kernel.org; dkim=pass (1024-bit key) header.d=zx2c4.com header.i=@zx2c4.com header.b="XRHm7UCv" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zx2c4.com; s=20210105; t=1651657829; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=mu7frDY3tF1mpPfvDkSZ+QoF/RCrkyl1/4guVXYmJNM=; b=XRHm7UCvVR4SkJlHIC4MC9fzP8jGzY9bC6MB7LKcWyM2oxz75UAmXryEZuG+uXtEt+TS6m 7BAEw/STne95pFe9MsLMoE+2DBW1cTXOv9w+WUq95lhrV5h8AlAwgLvsRQZIkmVFBqGCvw uuHyzaCbjNRtOiRO4a1R394qbiLNAuM= Received: by mail.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id 5ecf50f8 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Wed, 4 May 2022 09:50:29 +0000 (UTC) Received: by mail-yw1-f179.google.com with SMTP id 00721157ae682-2ec42eae76bso9208577b3.10; Wed, 04 May 2022 02:50:28 -0700 (PDT) X-Gm-Message-State: AOAM532f2AD+BUC3f6X3qR/wpdS7R3sEXnCkqlYTEATIGfrI8HKmZnfi qONlLhCU97ZbFl+8kU7/3rlxBnkiv7WE8O0WGW8= X-Received: by 2002:a81:cc3:0:b0:2f7:d52b:92bf with SMTP id 186-20020a810cc3000000b002f7d52b92bfmr18719777ywm.231.1651657827651; Wed, 04 May 2022 02:50:27 -0700 (PDT) MIME-Version: 1.0 References: <24c9a856-be10-e9b3-b26d-e6ced9e13c63@gmail.com> In-Reply-To: <24c9a856-be10-e9b3-b26d-e6ced9e13c63@gmail.com> From: "Jason A. Donenfeld" Date: Wed, 4 May 2022 11:50:16 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2] hex2bin: make the function hex_to_bin constant-time To: Milan Broz Cc: Andy Shevchenko , Mikulas Patocka , Stafford Horne , Linus Torvalds , Andy Shevchenko , device-mapper development , Linux Kernel Mailing List , Linux Crypto Mailing List , Herbert Xu , "David S. Miller" , Mike Snitzer , Mimi Zohar Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 4, 2022 at 11:47 AM Milan Broz wrote: > BTW we use exactly the same code from Mikulas in cryptsetup now (actually the report > was initiated from here :) and I added some tests for this code, > you can probably adapt it (we just use generic wrapper around it): I use something pretty similar in wireguard-tools: https://git.zx2c4.com/wireguard-tools/tree/src/encoding.c#n74 The code is fine. This is looking like a different issue somewhere else in the OpenRISC stack...