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 X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6A71BC47404 for ; Fri, 4 Oct 2019 14:59:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3B1A2222C2 for ; Fri, 4 Oct 2019 14:59:39 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="zPVDZCeJ" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389487AbfJDO7i (ORCPT ); Fri, 4 Oct 2019 10:59:38 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:36282 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389598AbfJDO7i (ORCPT ); Fri, 4 Oct 2019 10:59:38 -0400 Received: by mail-wr1-f66.google.com with SMTP id y19so7640477wrd.3 for ; Fri, 04 Oct 2019 07:59:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=RLniEQxAH4/gfhYKz1Mqv7ZTj9FDz7v+FD5BGhHrkMM=; b=zPVDZCeJ4kuATkm+D9lHaW4RXOz/dmF4dM5BAKgFfZ5jq/X6d/oskwqG1GJ9r7lOwm UQQxoOPiVrTIeGI9COY+TZbLF8V/vv+StaNGFZHZJp07UbPTDUMuq3QE0u5/Ey6ft5ZK 2z6UrPqlnGpp77h7jgXJPIuBG21HnhNhs6efsIZfHLprqkBLXjlJyht1Dbm/nmhol31O ZJXTcHo8aP5bF8c/wjLS3p3rwPAGPG81GwXfRfBUv2YDILycWuUkHkgHOiLxTZW9RO5A 6fA5kjINCYoqtAqG2D8ZjDpN0yq8RcnNS8umHKSbuIbprfCXl2m0nZdS1bguJDyYbDO3 y/4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=RLniEQxAH4/gfhYKz1Mqv7ZTj9FDz7v+FD5BGhHrkMM=; b=T05OAmloZJ8n0dITSoRA4HQjOOb5h1AaVVl6YhoPERuST+uHSMRKbPno/dzCyVfE6S RUJpvZHBjG8JiZmHYlsD/CVEcZgi0T9j02QPSXU6i3CA+qtffhFcg4o/4KuSD8M7qRRM CP6vyCuSjk/0HthaBgV1KXnCzdGT7YMEkIfpkZcdkwfcTEio/w8zQlIjJbQlC2NxBhb2 CLPaBVmoltfq/C1y0XHHcI7HTaDYC+ccXClk2BZ4iOmjbQkEqjVwKVs7Jfh3bA9fl7be lohpfxlDQy+ue9jojq9V1UuudO7ZtkyQIJaA2CbsHaA6PrnJz8wq5uLj6VRlq5tNZjLU Aa6w== X-Gm-Message-State: APjAAAVYVAOZIjFXTJqRtz3zX/uxq6kc0rum0uiCWchJyApLLNNtVVoP 674tLL5dOVv2VqQ0W939GEV14pBXEI0dsTHTKHdKbc7ibNKQeQ== X-Google-Smtp-Source: APXvYqzDfcN3qCMIDJWnE73Rz5HNGzWVFddcomQeUluwgy+eFHBfcJMGVV9gtbW0kuRdSw476eV5qXLGXSGWny1H56M= X-Received: by 2002:adf:e5cb:: with SMTP id a11mr11769702wrn.200.1570201176479; Fri, 04 Oct 2019 07:59:36 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Ard Biesheuvel Date: Fri, 4 Oct 2019 16:59:24 +0200 Message-ID: Subject: Re: [PATCH v2 00/20] crypto: crypto API library interfaces for WireGuard To: "Jason A. Donenfeld" Cc: Andy Lutomirski , "open list:HARDWARE RANDOM NUMBER GENERATOR CORE" , Herbert Xu , David Miller , Greg KH , Linus Torvalds , Samuel Neves , Dan Carpenter , Arnd Bergmann , Eric Biggers , Andy Lutomirski , Will Deacon , Marc Zyngier , Catalin Marinas , Martin Willi , Peter Zijlstra , Josh Poimboeuf Content-Type: text/plain; charset="UTF-8" Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Fri, 4 Oct 2019 at 16:55, Jason A. Donenfeld wrote: > > On Fri, Oct 4, 2019 at 4:53 PM Andy Lutomirski wrote: > > I think it might be better to allow two different modules to export the same symbol but only allow one of them to be loaded. Or use static calls. > > Static calls perform well and are well understood. This would be my preference. How so? No code exists yet in mainline, and the x86 code is still heavily being discussed, requires voodoo code patching and tooling changes. Implementations for other architectures have not even been proposed yet, with the exception of the code I wrote for arm64.