Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp339970rwd; Tue, 16 May 2023 01:37:03 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4/69NQnHAQIaHBe5DZOdvB8ZLt6i5/cyKF4ctIBwznPHFZZ2L+7/NGfIIQK61/QokNM5Td X-Received: by 2002:a17:90a:fd8c:b0:250:3ba9:ebde with SMTP id cx12-20020a17090afd8c00b002503ba9ebdemr36120512pjb.45.1684226223404; Tue, 16 May 2023 01:37:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684226223; cv=none; d=google.com; s=arc-20160816; b=BsI2ghKcQk2E/RVBHOdubCe5RrYLwPdHQbPQphM0sM/sZUpIpoA8lQsgzhVxVIjhLI XLLzYq6X/c1zwXG0/Nnh5IexKNGlBUhSYurgw0G106OHUlhMFcxtjiaP3Gzh+jrmHL7+ UzAVCXSTdXWr7lvcB+0hVoYHrNJ1c+++LprZiAe3vyyFNtpcbev1+Bv+HDhLSBdBvG+w Em5Df6NxsYCRN//rDsYJWqrnzCFlKO4fHKxob9XsJpU1NribNiPtVuakfvVtpa9kft1y PXeJuQZX490cgBwjWr5GG6I+tjs+xWDFu88pDiincf2rXnkv9ixuQWKG1kFK17ZhRU87 33eg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:subject:from :content-language:to:user-agent:mime-version:date:message-id; bh=TFlyTkXSC99D9s/FGQ/AakdmjxehrbywZYmiBtnTK7Y=; b=ucYfU3dZHZ81RvirsRpllkNvS9ZMQP+456J05k3CCrhh4nVp2SPcAtUxASjTBIg3mS IxmS9u+VfyDXkn3qjXxGbAwJB+q81D0Rue0ZOSTiPRegwzXV/mRTrJehipdtJt9IQPaz /unW62MBizwzrxk4FrwBAbUJrNWNiYEDzrunZiQSAe4e0vTUOTpge9hQHZYapbHK/ExZ +88mjYAnqbOT4SvIMgkbmupXbE9d0yt+4y4VaaG79s7nL1JEYDsrvalo5Pvw5/ViDQ0L dRnqYC+iY7/S411lNK18kvJJ1zeNGXLUpQVzGAYoAYEc0FfpptxHysMvPnV88oI0zUcZ by1A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w3-20020a17090a1b8300b0025054d888c5si1282881pjc.114.2023.05.16.01.36.50; Tue, 16 May 2023 01:37:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-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; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230019AbjEPIeF (ORCPT + 99 others); Tue, 16 May 2023 04:34:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52650 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230257AbjEPIeE (ORCPT ); Tue, 16 May 2023 04:34:04 -0400 X-Greylist: delayed 586 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Tue, 16 May 2023 01:33:42 PDT Received: from psionic.psi5.com (psionic.psi5.com [185.187.169.70]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DE55D4C12 for ; Tue, 16 May 2023 01:33:42 -0700 (PDT) Received: from [192.168.10.129] (unknown [39.110.247.193]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (Client did not present a certificate) by psionic.psi5.com (Postfix) with ESMTPSA id 1EFB23F07A for ; Tue, 16 May 2023 10:23:23 +0200 (CEST) Message-ID: <6a12ff63-268b-88fe-a4b4-2c21fe510a79@hogyros.de> Date: Tue, 16 May 2023 17:23:16 +0900 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 To: linux-crypto@vger.kernel.org Content-Language: en-US From: Simon Richter Subject: async import/export for ahash Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_05,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-crypto@vger.kernel.org Hi, I have an ahash implementation on hardware with separate memory, so I need to send a command and wait for a response to export the hash state. As far as I can see, the export function is synchronous. Am I allowed to sleep here? Simon