From patchwork Tue Oct 25 22:03:10 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 79286 Delivered-To: patch@linaro.org Received: by 10.140.97.247 with SMTP id m110csp98918qge; Tue, 25 Oct 2016 15:03:28 -0700 (PDT) X-Received: by 10.200.54.144 with SMTP id a16mr20270064qtc.126.1477433008375; Tue, 25 Oct 2016 15:03:28 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id u63si14677735qka.196.2016.10.25.15.03.27; Tue, 25 Oct 2016 15:03:28 -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 3092C60EF8; Tue, 25 Oct 2016 22:03:24 +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 197EE607BE; Tue, 25 Oct 2016 22:03:20 +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 54A0760885; Tue, 25 Oct 2016 22:03:17 +0000 (UTC) Received: from mail-oi0-f43.google.com (mail-oi0-f43.google.com [209.85.218.43]) by lists.linaro.org (Postfix) with ESMTPS id 92A17607CD for ; Tue, 25 Oct 2016 22:03:15 +0000 (UTC) Received: by mail-oi0-f43.google.com with SMTP id i127so67804238oia.2 for ; Tue, 25 Oct 2016 15:03:15 -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=IWjORhTEsK+utStu+4vxXNZsEb3VZWjkBUysCz7D8kY=; b=ZdWFihOmmPqN24K8wGmmxPauPk4tVbMAggDzZ63HnbNLkJWxz+ES7MyzCTIDR1LEXi PcRInm8oLK9ZOlkw8UUR2Odn1cRNXsvShjci0L+t5uUsOw0oCb36aa7UBcMYt6P0xZWJ rIO+/gi5Psj68FTYB9ymVD9DVTslPxnpDGHpYVF7UeIEdajrwTqdPD2LroGWl8AAQLkl Z0xaOavizuBCXF7ZzNZaMMeqGcDQ2KS3ckSXDUz5ZKy90K+OejI9cTzUU9dka0N2Qrnl 2soFDUVwd23hZmLDG54/VZZbdcSlS2GKaXPKXYM/wO22VSgAZxZap14qMC2ENYUoKut4 kDVg== X-Gm-Message-State: ABUngvfqjV8FY9vaaV8S4HV7VSXTmUUj4QrHDxngmfU9XpFcDOg7aAIjwT4wBtpF1uRO0Uhj88k= X-Received: by 10.157.43.143 with SMTP id u15mr6899380ota.89.1477432994800; Tue, 25 Oct 2016 15:03:14 -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 s23sm7363519ots.1.2016.10.25.15.03.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 25 Oct 2016 15:03:14 -0700 (PDT) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Tue, 25 Oct 2016 17:03:10 -0500 Message-Id: <1477432992-21770-2-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1477432992-21770-1-git-send-email-bill.fischofer@linaro.org> References: <1477432992-21770-1-git-send-email-bill.fischofer@linaro.org> X-Topics: crypto patch Subject: [lng-odp] [API-NEXT PATCHv2 2/4] api: crypto: add random kind 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 max_kind and max_kind_size to the odp_crypto_capability_t struct Signed-off-by: Bill Fischofer --- include/odp/api/spec/crypto.h | 8 ++++++++ 1 file changed, 8 insertions(+) -- 2.7.4 diff --git a/include/odp/api/spec/crypto.h b/include/odp/api/spec/crypto.h index 0cb8814..cf81071 100644 --- a/include/odp/api/spec/crypto.h +++ b/include/odp/api/spec/crypto.h @@ -19,6 +19,8 @@ extern "C" { #endif +#include + /** @defgroup odp_crypto ODP CRYPTO * Macros, enums, types and operations to utilise crypto. * @{ @@ -332,6 +334,12 @@ typedef struct odp_crypto_capability_t { /** Authentication algorithms implemented with HW offload */ odp_crypto_auth_algos_t hw_auths; + /** Highest kind of random data available */ + odp_rand_kind_t max_kind; + + /** Max bytes that can be requested at a time for highest + * random kind. Specify as 0 for no limit. */ + uint32_t max_kind_size; } odp_crypto_capability_t; /**