From patchwork Tue Feb 3 04:44:43 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 44186 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f69.google.com (mail-la0-f69.google.com [209.85.215.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 70B372034D for ; Tue, 3 Feb 2015 04:45:37 +0000 (UTC) Received: by mail-la0-f69.google.com with SMTP id gm9sf18875398lab.0 for ; Mon, 02 Feb 2015 20:45:36 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:in-reply-to :references:subject:precedence:list-id:list-unsubscribe:list-archive :list-post:list-help:list-subscribe:mime-version:content-type :content-transfer-encoding:errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=cs8j/RFinQY/uwOQ5+3AuGJLl7OZfAitM06yKJENGQ4=; b=YHCL25gHMfyKYjmrGYjFziTMVWSfXRTJTDRPEzJBQyH2R6Qbjr0Cbx752rKps0//kj PT7DFAZoErZ0AmRPbeiA0K5+ww66u+0F/fhSyKI9zgbP/ZeDFXMiCVu5pl4UdnpnyhQh IWtlhQz0s1sgJKqpGq7vsfo7AlffEZph+kK3fodG+llVcLgJat/Wrr/b7jChwn92NaHV 71cItx6aCrdsr3Xb6xYKx4DINxT/wEwNmTSUmNVwlN309zO8YbTtE4HKqHBWCIy4Gs05 Uf10KzK6xZp/IKFAbBdc+z4zPObw7rL9avj90ZWqeLzYw6DUCpQvSHvdirGhSb+WeOpJ zOmA== X-Gm-Message-State: ALoCoQm/4kizdXD4Rhsdsu+RRUuEvC4gVTwd7UwDin2HkjO5qWikhkx+ocaq0d6+wtBvJW06VhY2 X-Received: by 10.180.105.129 with SMTP id gm1mr1629785wib.3.1422938736439; Mon, 02 Feb 2015 20:45:36 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.205.11 with SMTP id lc11ls466125lac.19.gmail; Mon, 02 Feb 2015 20:45:36 -0800 (PST) X-Received: by 10.112.234.164 with SMTP id uf4mr17873475lbc.83.1422938736115; Mon, 02 Feb 2015 20:45:36 -0800 (PST) Received: from mail-la0-f42.google.com (mail-la0-f42.google.com. [209.85.215.42]) by mx.google.com with ESMTPS id rc4si18421848lac.23.2015.02.02.20.45.35 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 02 Feb 2015 20:45:35 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.42 as permitted sender) client-ip=209.85.215.42; Received: by mail-la0-f42.google.com with SMTP id ms9so47900798lab.1 for ; Mon, 02 Feb 2015 20:45:35 -0800 (PST) X-Received: by 10.112.243.12 with SMTP id wu12mr22944527lbc.91.1422938735672; Mon, 02 Feb 2015 20:45:35 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.35.133 with SMTP id h5csp1712246lbj; Mon, 2 Feb 2015 20:45:35 -0800 (PST) X-Received: by 10.224.20.198 with SMTP id g6mr14977807qab.89.1422938734425; Mon, 02 Feb 2015 20:45:34 -0800 (PST) Received: from ip-10-35-177-41.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id n4si27779553qat.4.2015.02.02.20.45.33 (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 02 Feb 2015 20:45:34 -0800 (PST) Received-SPF: none (google.com: lng-odp-bounces@lists.linaro.org does not designate permitted sender hosts) client-ip=54.225.227.206; Received: from localhost ([127.0.0.1] helo=ip-10-35-177-41.ec2.internal) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YIVMh-00060i-0H; Tue, 03 Feb 2015 04:45:31 +0000 Received: from mail-oi0-f47.google.com ([209.85.218.47]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YIVMT-0005zG-Nt for lng-odp@lists.linaro.org; Tue, 03 Feb 2015 04:45:17 +0000 Received: by mail-oi0-f47.google.com with SMTP id a141so47592255oig.6 for ; Mon, 02 Feb 2015 20:45:12 -0800 (PST) X-Received: by 10.202.78.88 with SMTP id c85mr13321748oib.98.1422938712494; Mon, 02 Feb 2015 20:45:12 -0800 (PST) Received: from localhost.localdomain (cpe-24-28-70-239.austin.res.rr.com. [24.28.70.239]) by mx.google.com with ESMTPSA id vs5sm10277537oeb.14.2015.02.02.20.45.11 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 02 Feb 2015 20:45:12 -0800 (PST) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Mon, 2 Feb 2015 22:44:43 -0600 Message-Id: <1422938699-12877-4-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1422938699-12877-1-git-send-email-bill.fischofer@linaro.org> References: <1422938699-12877-1-git-send-email-bill.fischofer@linaro.org> X-Topics: crypto patch Subject: [lng-odp] [PATCHv5 03/19] api: crypto: add strong typing handle display functions X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: lng-odp-bounces@lists.linaro.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: bill.fischofer@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.42 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 Add functions odp_crypto_session_to_u64() and odp_crypto_compl_to_u64() Signed-off-by: Bill Fischofer --- include/odp/api/crypto.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/include/odp/api/crypto.h b/include/odp/api/crypto.h index 545c1a5..03bf5fd 100644 --- a/include/odp/api/crypto.h +++ b/include/odp/api/crypto.h @@ -344,6 +344,32 @@ int odp_hw_random_get(uint8_t *buf, size_t *len, odp_bool_t use_entropy); /** + * Get printable value for an odp_crypto_session_t + * + * @param hdl odp_crypto_session_t handle to be printed + * @return uint64_t value that can be used to print/display this + * handle + * + * @note This routine is intended to be used for diagnostic purposes + * to enable applications to generate a printable value that represents + * an odp_crypto_session_t handle. + */ +uint64_t odp_crypto_session_to_u64(odp_crypto_session_t hdl); + +/** + * Get printable value for an odp_crypto_compl_t + * + * @param hdl odp_crypto_compl_t handle to be printed + * @return uint64_t value that can be used to print/display this + * handle + * + * @note This routine is intended to be used for diagnostic purposes + * to enable applications to generate a printable value that represents + * an odp_crypto_compl_t handle. + */ +uint64_t odp_crypto_compl_to_u64(odp_crypto_compl_t hdl); + +/** * @} */