From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 46D91C433EF for ; Thu, 13 Jan 2022 13:53:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:Subject:Message-ID:Date:From: In-Reply-To:References:MIME-Version:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=VLFuclLDJ//2MFQXpktI7w91FKo0RWRuve7R5Ro3X8w=; b=bvYPB5ApUIey/w mE6k5wi6ALSEq3KJ3it8pteWmW77JbVY+LPKFVlLdIzmiK/kr0p53yw4KLeWuoEd0XsbmCTULCeyU hns+cp0dWt4jJEjPh/uJr9FLFIKVWEYzjYInIWlmcvGzSuCqHLibOyQdmWtE5v9A3A+OlzS+gVu3a 9nFuFWqZp64RuPONTHasbozNP1OdaqHXAPv3f5dngct3m5LWMWLaPdJtwT23NeTAReLrns8dBbsjq PmxY/WhQADKiGi77g/C+bNzB3xt2YnDhYamAhOps7jy6j+qUsOPCtWNRQqjdM4Eu78kq9Hfq5lUSz ERUp9FlQdzNi15XWtayg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n80Wg-006BB1-R5; Thu, 13 Jan 2022 13:52:26 +0000 Received: from ams.source.kernel.org ([145.40.68.75]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n80Wc-006BAR-Kd for linux-arm-kernel@lists.infradead.org; Thu, 13 Jan 2022 13:52:24 +0000 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 59E47B821C2 for ; Thu, 13 Jan 2022 13:52:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EF412C36AED for ; Thu, 13 Jan 2022 13:52:19 +0000 (UTC) Authentication-Results: smtp.kernel.org; dkim=pass (1024-bit key) header.d=zx2c4.com header.i=@zx2c4.com header.b="X2K1asOs" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zx2c4.com; s=20210105; t=1642081938; 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=+HnxwxIg0LqDwtqJxlZb0tkSdEZpTj87dXEoQdp4jbc=; b=X2K1asOs8CZkOFeJ/xlr5FzfmcaK2VTiwkBmfyE63qTa6BCskRDDhI0PPHdlMS52Hd1uHR yUDh3NXFyAZgFb/IvKcZwDeAFen581M72aCEHvnTa7/5k54UkX4BKzfIZQxygr8+xLH44G xvBCaUAiIoRbHV6A6gI0u1FzFZmjeXU= Received: by mail.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id 8fc1aefd (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO) for ; Thu, 13 Jan 2022 13:52:17 +0000 (UTC) Received: by mail-yb1-f180.google.com with SMTP id z22so14636998ybi.11 for ; Thu, 13 Jan 2022 05:52:17 -0800 (PST) X-Gm-Message-State: AOAM533SO12fhFWdRiQ+ZWzS9EVWb3HTdezIWqT9+ausquS+s2lX5N+O oXT9E3xHWNxIYnrVbXubNsijDv1KViqYBfH/WrQ= X-Google-Smtp-Source: ABdhPJx075ckPm8u10NFk7l6ZEDk8au+LHn/xQrtbX6tIf0oiodM5FoePF9c218w/oEwIIcvEJvF8xuDcoHPSxvIHOA= X-Received: by 2002:a25:a0c4:: with SMTP id i4mr6353017ybm.457.1642081936890; Thu, 13 Jan 2022 05:52:16 -0800 (PST) MIME-Version: 1.0 References: <20220113131239.1610455-1-ardb@kernel.org> In-Reply-To: From: "Jason A. Donenfeld" Date: Thu, 13 Jan 2022 14:52:06 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] arm64: random: implement arch_get_random_int/_long based on RNDR To: Ard Biesheuvel Cc: Linux ARM , Catalin Marinas , Will Deacon , Mark Rutland , Andre Przywara , Mark Brown X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220113_055222_839872_7D8C8583 X-CRM114-Status: GOOD ( 20.27 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, Jan 13, 2022 at 2:49 PM Ard Biesheuvel wrote: > Sure, but I just retained the original style. > If I was interested in rewriting this header file, I might consider > all these options. For now, I am just trying to focus the change on > the parts that actually matter. Okay, no problem. > No it does not. RNDR and RNDRRS both return the output of a DRBG, the > only difference is the reseed interval. > > Specifically, this means that, even though the ARM ARM references NIST > SP800-90B directly, the RNDRRS construction is a black box containing > a entropy source + DRBG, and so we shouldn't pretend that RNDRRS > itself can be treated as a source of true entropy. This is especially > relevant when it comes to seeding a DRBG of a certain security > strength N >= the security strength of the hidden DRBG, as > concatenating multiple RNDRRS results does not satisfy the > requirements for seeding a DRBG of security strength N. Huh, interesting. I wonder why that arm.com documentation page is wrong. Jason _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel