From patchwork Fri Nov 11 13:17:50 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Balakrishna Garapati X-Patchwork-Id: 81828 Delivered-To: patch@linaro.org Received: by 10.140.97.165 with SMTP id m34csp1262739qge; Fri, 11 Nov 2016 05:18:43 -0800 (PST) X-Received: by 10.200.51.27 with SMTP id t27mr3235983qta.71.1478870323268; Fri, 11 Nov 2016 05:18:43 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id j7si6733913qkc.125.2016.11.11.05.18.42; Fri, 11 Nov 2016 05:18:43 -0800 (PST) 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 DA14160842; Fri, 11 Nov 2016 13:18:42 +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_H3, RCVD_IN_MSPIKE_WL 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 60AD860ED4; Fri, 11 Nov 2016 13:18:01 +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 CDC6260E87; Fri, 11 Nov 2016 13:17:56 +0000 (UTC) Received: from mail-lf0-f47.google.com (mail-lf0-f47.google.com [209.85.215.47]) by lists.linaro.org (Postfix) with ESMTPS id 8B83260E87 for ; Fri, 11 Nov 2016 13:17:55 +0000 (UTC) Received: by mail-lf0-f47.google.com with SMTP id o141so12201900lff.1 for ; Fri, 11 Nov 2016 05:17:55 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=eNPgPT6/ywas5RryWIy/PxIQVHSglVX0NS5Sjg7T8dg=; b=idaStTrtOJDspgXW8uWklIeUcCIMnAA6D5o2Cuxyu0tORUgDnibe5zTGXK1lcDvEkt Wow9wXfS4lKZHZjBF+35kOIvM/gUkJxk3SEJMARUvNZVC1l7iuK/gy5l0sA70Ux1Nbdj AYUJP4Gslk9WH/QG58YSCAZYJc3cPZvHcsPJpP1ztrvNO1uYL9AgFbA+7J6nNRiW/HS6 0IYNGj8wZj2Jfbx3O68YAZyiouPUABkkL+cW7WEMjlay7tlDpIcYT9Ur+qbLI4S4cCLp xetE5z1VSAKf9YI8KRB+nIMuteBYYaKWKSaSafoQZ5mS7cPe4wbIF2p7BbZZk2WWTgm3 MOLw== X-Gm-Message-State: ABUngvdOxZZZsY1Ujq9X+qhnATLdgvgKgBqhXZpyoGQ1ZlvRSUUQzkV1YwPBYAUjTQEoMIng8lo= X-Received: by 10.25.0.136 with SMTP id 130mr1724847lfa.20.1478870274109; Fri, 11 Nov 2016 05:17:54 -0800 (PST) Received: from elxahtkds32.localdomain (host-95-192-162-123.mobileonline.telia.com. [95.192.162.123]) by smtp.gmail.com with ESMTPSA id 67sm2220310ljf.35.2016.11.11.05.17.53 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 11 Nov 2016 05:17:53 -0800 (PST) From: Balakrishna Garapati To: lng-odp@lists.linaro.org Date: Fri, 11 Nov 2016 14:17:50 +0100 Message-Id: <1478870270-2833-3-git-send-email-balakrishna.garapati@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1478870270-2833-1-git-send-email-balakrishna.garapati@linaro.org> References: <1478870270-2833-1-git-send-email-balakrishna.garapati@linaro.org> X-Topics: patch Subject: [lng-odp] [API-NEXT PATCH 2/2] linux-generic: Support for md5 512 bit key size 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" Signed-off-by: Balakrishna Garapati --- platform/linux-generic/include/odp_crypto_internal.h | 2 +- platform/linux-generic/odp_crypto.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) -- 1.9.1 diff --git a/platform/linux-generic/include/odp_crypto_internal.h b/platform/linux-generic/include/odp_crypto_internal.h index 7b104af..d79d09d 100644 --- a/platform/linux-generic/include/odp_crypto_internal.h +++ b/platform/linux-generic/include/odp_crypto_internal.h @@ -60,7 +60,7 @@ struct odp_crypto_generic_session { odp_auth_alg_t alg; union { struct { - uint8_t key[16]; + uint8_t key[64]; uint32_t bytes; } md5; struct { diff --git a/platform/linux-generic/odp_crypto.c b/platform/linux-generic/odp_crypto.c index 9e09d42..e2b7a73 100644 --- a/platform/linux-generic/odp_crypto.c +++ b/platform/linux-generic/odp_crypto.c @@ -613,6 +613,7 @@ int odp_crypto_capability(odp_crypto_capability_t *capa) capa->auths.bit.null = 1; capa->auths.bit.md5_96 = 1; + capa->auths.bit.md5_512 = 1; capa->auths.bit.sha256_128 = 1; capa->auths.bit.aes128_gcm = 1;