From patchwork Tue Oct 25 12:49:02 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 79168 Delivered-To: patch@linaro.org Received: by 10.140.97.247 with SMTP id m110csp3093776qge; Tue, 25 Oct 2016 05:49:15 -0700 (PDT) X-Received: by 10.36.30.74 with SMTP id 71mr1450712itt.81.1477399755810; Tue, 25 Oct 2016 05:49:15 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id g25si12631721ioj.164.2016.10.25.05.49.15; Tue, 25 Oct 2016 05:49:15 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id D4B8060AC8; Tue, 25 Oct 2016 12:49:14 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2 autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id DAD94609FB; Tue, 25 Oct 2016 12:49:12 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id DB03E60A56; Tue, 25 Oct 2016 12:49:10 +0000 (UTC) Received: from mail-oi0-f44.google.com (mail-oi0-f44.google.com [209.85.218.44]) by lists.linaro.org (Postfix) with ESMTPS id B0E87609FB for ; Tue, 25 Oct 2016 12:49:08 +0000 (UTC) Received: by mail-oi0-f44.google.com with SMTP id i127so42036292oia.2 for ; Tue, 25 Oct 2016 05:49:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=rZAiih7xdWdbabvaqKkS+9yBSdekv8IEBHH6eN/fSR8=; b=KihMwXlNkZ7B6KjPwp6/Olpee9o9uCpvPNkL2quatNOVSGIhMgeWPZC/EgwBtIdPpx E9dnkWynJ5XAUNLDmbqee3bFhZS1CHJ7d5UuZR52nJLfDvK4SC1o7/33smRq6wXyd9r/ iqUo7WUfIw/pEbA4aVgVpZQSaXs/z4+iy4v6xaHzSVUXF7d/H4lmAyZLJiMa2oC4zCOt stBAqOZiaOK85wEcwLXqbZAA0Or8z4xYop5+GgubX0KIglxpWSrxd86DDi9vXGyJP5W9 zYY2aLGcv3+LjMPfkPA2KM6lVDeXRVXigEceMM/X2IhjqDL8pyY4qwUcZUUEX/j+I3i5 IzEQ== X-Gm-Message-State: AA6/9Rk1VM1V1W2qkHOjokjoClvwFU3yWIwXh9nczFWhRnmFRDIzFx+t814Z6xN8toedWHxDJII= X-Received: by 10.202.212.195 with SMTP id l186mr23195343oig.175.1477399748219; Tue, 25 Oct 2016 05:49:08 -0700 (PDT) Received: from localhost.localdomain (cpe-70-121-83-241.austin.res.rr.com. [70.121.83.241]) by smtp.gmail.com with ESMTPSA id g17sm6296544otd.38.2016.10.25.05.49.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 25 Oct 2016 05:49:07 -0700 (PDT) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Tue, 25 Oct 2016 07:49:02 -0500 Message-Id: <1477399744-16516-2-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1477399744-16516-1-git-send-email-bill.fischofer@linaro.org> References: <1477399744-16516-1-git-send-email-bill.fischofer@linaro.org> X-Topics: crypto patch Subject: [lng-odp] [API-NEXT PATCH 2/4] api: crypto: add entropy info to odp_crypto_capabilities() api X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" Add the fields entropy_available and entropy_size to the odp_crypto_capability_t struct Signed-off-by: Bill Fischofer --- include/odp/api/spec/crypto.h | 5 +++++ 1 file changed, 5 insertions(+) -- 2.7.4 diff --git a/include/odp/api/spec/crypto.h b/include/odp/api/spec/crypto.h index 0cb8814..1de6173 100644 --- a/include/odp/api/spec/crypto.h +++ b/include/odp/api/spec/crypto.h @@ -332,6 +332,11 @@ typedef struct odp_crypto_capability_t { /** Authentication algorithms implemented with HW offload */ odp_crypto_auth_algos_t hw_auths; + /** True random availability */ + odp_bool_t entropy_available; + + /** Max entropy bytes that can be requested at a time */ + uint32_t entropy_size; } odp_crypto_capability_t; /**