From patchwork Wed Feb 22 15:08:23 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petri Savolainen X-Patchwork-Id: 94330 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp956424qgi; Wed, 22 Feb 2017 07:10:58 -0800 (PST) X-Received: by 10.55.190.5 with SMTP id o5mr28269160qkf.111.1487776258677; Wed, 22 Feb 2017 07:10:58 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id r62si1072791qkd.168.2017.02.22.07.10.58; Wed, 22 Feb 2017 07:10:58 -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 sp=NONE dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 458D2608B9; Wed, 22 Feb 2017 15:10:58 +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=BAD_ENC_HEADER,BAYES_00, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,URIBL_BLOCKED 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 1123F607EC; Wed, 22 Feb 2017 15:10:54 +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 D80AD62C7C; Wed, 22 Feb 2017 15:10:42 +0000 (UTC) Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on0099.outbound.protection.outlook.com [104.47.1.99]) by lists.linaro.org (Postfix) with ESMTPS id D765B62CDE for ; Wed, 22 Feb 2017 15:09:59 +0000 (UTC) Received: from DB5PR07CA0003.eurprd07.prod.outlook.com (10.167.223.13) by HE1PR0701MB2921.eurprd07.prod.outlook.com (10.168.92.146) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.933.7; Wed, 22 Feb 2017 15:08:42 +0000 Received: from DB5EUR03FT019.eop-EUR03.prod.protection.outlook.com (2a01:111:f400:7e0a::204) by DB5PR07CA0003.outlook.office365.com (2603:10a6:0:2d::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.947.2 via Frontend Transport; Wed, 22 Feb 2017 15:08:41 +0000 Received-SPF: SoftFail (protection.outlook.com: domain of transitioning linaro.org discourages use of 131.228.2.36 as permitted sender) Received: from hybrid2.ext.net.nokia.com (131.228.2.36) by DB5EUR03FT019.mail.protection.outlook.com (10.152.20.163) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.919.10 via Frontend Transport; Wed, 22 Feb 2017 15:08:41 +0000 Received: from fihe3nok1346.nsn-intra.net (10.158.36.134) by fihe3nok1347.nsn-intra.net (10.158.36.135) with Microsoft SMTP Server (TLS) id 15.1.466.34; Wed, 22 Feb 2017 17:08:36 +0200 Received: from mailrelay.int.nokia.com (10.130.128.30) by fihe3nok1346.nsn-intra.net (10.158.36.134) with Microsoft SMTP Server (TLS) id 15.1.466.34 via Frontend Transport; Wed, 22 Feb 2017 17:08:36 +0200 Received: from fihe3nok0735.emea.nsn-net.net (localhost [127.0.0.1]) by fihe3nok0735.emea.nsn-net.net (8.14.9/8.14.5) with ESMTP id v1MF8QZ4022658 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 22 Feb 2017 17:08:26 +0200 Received: from 10.144.19.15 ([10.144.104.219]) by fihe3nok0735.emea.nsn-net.net (8.14.9/8.14.5) with ESMTP id v1MF8Pxl022639 (version=TLSv1/SSLv3 cipher=AES128-SHA256 bits=128 verify=NOT) for ; Wed, 22 Feb 2017 17:08:25 +0200 X-HPESVCS-Source-Ip: 10.144.104.219 From: Petri Savolainen To: Date: Wed, 22 Feb 2017 17:08:23 +0200 Message-ID: <1487776105-32713-3-git-send-email-petri.savolainen@linaro.org> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1487776105-32713-1-git-send-email-petri.savolainen@linaro.org> References: <1487776105-32713-1-git-send-email-petri.savolainen@linaro.org> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:131.228.2.36; IPV:NLI; CTRY:FI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(7916002)(39410400002)(39860400002)(39840400002)(39850400002)(39450400003)(2980300002)(189002)(199003)(53936002)(86362001)(48376002)(110136004)(38730400002)(92566002)(2950100002)(77096006)(5660300001)(5003940100001)(450100001)(2906002)(50466002)(189998001)(8676002)(22756006)(356003)(68736007)(97736004)(81156014)(626004)(33646002)(76176999)(305945005)(50986999)(6916009)(50226002)(36756003)(8936002)(106466001)(2351001)(81166006)(47776003)(105596002)(217873001); DIR:OUT; SFP:1102; SCL:1; SRVR:HE1PR0701MB2921; H:hybrid2.ext.net.nokia.com; FPR:; SPF:SoftFail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; DB5EUR03FT019; 1:rh79xpP/KBaZCllVTrpNg8wBr3CsLNvUclR1bsqZcFi4URNMKI8X862C0PHcONGF7WvhcXBG4PprrhlTcEcpT0tb38kx+BCFv8mm+AdgM7kjUA5uXqW6jxE2WEGBBse8WFOCIeDA73NSkjVKBTi+ojAGvCRipmbWL99BVjvZKpK6+Kyekx5UtlYBY6UeRAwxZyjbyi1uTC5E/4XIW8YCbbNZWCnV1W0Acvt4Qt8izyET+3LnMaPmJB2k7TSJ8dkVwpG9WiaAmQuWZP2JHJIZzyjPKEcapG9p6/17I5ZxJjcZnqHuUMqlXfJt69yoLvngKCbciIuPVP57FB8YwogXQeVuXHZrgfRI+CYR2yGX0GoGcuMDy6DC9UFAMT4fgcQIMfmQb87HneQeOV6Ed0eilHJ4i14ILmrRCMfDQN0Op15Yi6YAR5DchmfU4gT00VR3qXIqk6AVGoUqmZn4w0qCCA== X-MS-Office365-Filtering-Correlation-Id: 14118bee-32d3-48da-6715-08d45b34b01a X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:HE1PR0701MB2921; X-Microsoft-Exchange-Diagnostics: 1; HE1PR0701MB2921; 3:wPcH5P/Kk+JMHahpcI3GbOO9bClCi64tRpGtL0GG/HzgtyngmXmwjv+s/TtrrAkYCF2Zd9/n4nlqgc5Ix4R2ZJoIC120J/t+wQW35yugFZnYpAJPQjSUKBzXlY6Ox+O21IcZUehCwQnDX479gLkPUsR5dXtdDfUnKHTdXb7ZAbGCtxHsQAcvXP4fjDCrSPNhVG/2SI63b7xAaRB5WXwvtGOoqAHZ0uFpFUQgldq8igkVqvL4wZTMk0vg/04LQ6MtRIyhlmChZu3LtgzRIf3xXawu9Zcy58/BW++c5ECyRVXE4Ls+udEMLzsbf2mDw+a5vLyPoxK+HIsBid3s6dqkTqUfzO/mnatuGsU5P4nN0JxvOCToxCqXP9iDfPc8g7hM; 25:1d5S0jFydI5efWSkPBWXjNtV5fjmqFiyZwCuBKoehK+Kl3LEM/NXah1x/h1gWd5I2G0y1A1MhPl0U/z1VVg7COS/+o/UuAJl47ryWsk4njiPdxiiox51YXmvkEOAGIiDcWCn8xFuXd5rWu0SOIwAB9Os8Et4YnhEFyFMZA2FsBLlLj2CB2iiRGYfX3pDy9+SA9WFc2Nt28UMYo5WMaiaDjW6bojqncAclG+ffFlcvG169GfSuGkNKf6T5y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R9PKi66anU4Z9ivWt5GE5v0+1utSny+J8QKhWwE9kudWgkKDhluq9ea5Zqn2ZTNjHEdCwghg795VcpmBdvwlP4= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(8121501046)(5005006)(13016025)(13018025)(10201501046)(3002001)(6055026)(6041248)(20161123555025)(20161123562025)(20161123558025)(20161123564025)(20161123560025)(6072148); SRVR:HE1PR0701MB2921; BCL:0; PCL:0; RULEID:; SRVR:HE1PR0701MB2921; X-Microsoft-Exchange-Diagnostics: 1; HE1PR0701MB2921; 4:1WeITn7YpM5oa7LssznIA7Z07ZbAmN9QChcd+6kR1YwiWJTLHVonZk1EzT1Lc3C2RrHcC7irgex404ZGZAyFERdQgj+sM8qqTwTDuCRb1PiYb5RYANZyvAoVBm0PnaMg+htLkcY2UrB0k1aGQ7WAODGgSwCIWa96AtMKceZgCK3IZeoqiGNdkh8JUbl66rY8R6BT/emyqS4qZNyUHbqSxNdFw0UoIBP8r8pQRj4vgdC+e2Aetpe/VdcppRNLg6JmMjjoIg7osKHUu//WVEmWbE0khTuZbgplsqWMhaFZMksyrfUBeMTbRLe22XWAZPkUgUb1kmMS7LlWQSzTh/YSIgCxsjUUQDt2j2Dhf4wXJlHQXCOLh17BmxOEbT8tEwzpI16C7ely9vStSz64Vni5xXAl7lmzxQqxEiCVRS/BdfGtZOhJOVxmXxqRz/TVIQxwDENMV5LlFClgSncMGdGUBVXhNDOOpopS3J1sBLTns69k9LM3LVCYbcvU0kd22wM4M2v8xwavndyr9HzPSvwAhaCaVgJj0Au43L+ldB5N7gbGa+PPRtWwrvpHCZHevNIRTayYd80hvNZmqdSc3FdSC2PNqLhEr/EzeWo27UdbMkgvvMmjgmI2fye128hVcdSNy/k9lvzi8SXMSTdafTTKwfzi6fN8RIMuh+d4XZeGryA= X-Forefront-PRVS: 022649CC2C X-Microsoft-Exchange-Diag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s9aND0JRLkOJGfvlBt7/9a8bUQz4FMomPv6jmxgRbgoXIWpUOyaGNMaPo+ET8vsOiRFFjl4UoTpM= X-Microsoft-Exchange-Diagnostics: 1; HE1PR0701MB2921; 6:+D+zaoV/MM/7F/5Sur+FaVPdeow/DsKNSHLHVTr++Id73L6qV+y+mb3AUxW2kwdi/TcFka7Gpky3dPMMjVlFtkLYpBQ571BVjdzd/QoyAMbAp3xxQDJzXZRdqDz+ic3ehlwI5Y+1bLDjoLxb6Q9LRo864Wavje8UM0ty7MFsmJssyWLYz5SOEyYLcYvUQ0AUGNzWrmtdiXLk7E1IKU/GQoigFDO4j1B9HwfywFQPjQbVE4tm31LLlD2Igv0C5z36B18qDNZZaJe4PAr2p/T847yoRsnAl535apBvEIegzjCHmZ5TtlY1bK9GL6C+suWIFm4N7YxNLSRis/qB9ulvSA03zEhAAc0X+niaNg/t9Df9XX34KFzxuxd/FpO1oVq+ksQzcZy8FU3ZBOyHM+rSc0cUnWPkTMv1eLoG+KW6pnA=; 5:04r39ZylCONotdOL+JtaIYt23xJMA19iMv06x6l1nW27+js+253n9qZEYcuv0qMacPP0jRNUNK/9tdAxd25wpkDIsVa8ktqjaKmwdUiIZN3tXpLwnSUibyttJZRyXs/1FeDcu9xUJBNn22KbrLgB4YnBZcWIwX+W5z9/cD0qegg=; 24:p7L04sPV6m+4E2eV0xDUKj6PMih79f6auP4mPCu6/rT/onJGwVScF2k3HZNuc680+4qXZ2RLE4G+4vKUcmNdV1Txy0HEPPvoKXhet1yjUck= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; HE1PR0701MB2921; 7:eCNhzzWnrQG2q5cEd4dTl5UD1HzDBjfqyfXZwbFw9xU3XXvDK547D1VPBGdmlm8cEEXDhlRZADJF5Viw4o93woDVgvVpWJuJFDaeYMZgbglicJ9mymvlDOUPXsamoNuRoFTPcDnVPa1Mkw63xdMElgXrELYjRl7Q+bjXh6fUqgeV0zRpojvKpxXX/l6GccvL6TrZlKPRQC4bYYx/GxWnWyzTELKY15W5sXAvY93spH/CaV69zPIQNaPTAVuu12UBTXQe1F8zBKJvuZc5GzXhP1R0cHA8gWzyIMo9+VExAzCsR6tDC3wattzBOimd2XYY5MJw676fXz3vFBSXm5b2RQ== X-OriginatorOrg: nokia.onmicrosoft.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Feb 2017 15:08:41.6092 (UTC) X-MS-Exchange-CrossTenant-Id: 5d471751-9675-428d-917b-70f44f9630b0 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5d471751-9675-428d-917b-70f44f9630b0; Ip=[131.228.2.36]; Helo=[hybrid2.ext.net.nokia.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0701MB2921 Subject: [lng-odp] [API-NEXT PATCH 2/4] api: crypto: add sha-1 and sha-512 enumerations 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" Added enumerations for HMAC-SHA-1 and HMAC-SHA-256 authentication algorithms. Signed-off-by: Petri Savolainen --- include/odp/api/spec/crypto.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) -- 2.8.1 diff --git a/include/odp/api/spec/crypto.h b/include/odp/api/spec/crypto.h index 9855bf9..d30f050 100644 --- a/include/odp/api/spec/crypto.h +++ b/include/odp/api/spec/crypto.h @@ -102,12 +102,24 @@ typedef enum { */ ODP_AUTH_ALG_MD5_HMAC, + /** HMAC-SHA-1 + * + * SHA-1 algorithm in HMAC mode + */ + ODP_AUTH_ALG_SHA1_HMAC, + /** HMAC-SHA-256 * * SHA-256 algorithm in HMAC mode */ ODP_AUTH_ALG_SHA256_HMAC, + /** HMAC-SHA-512 + * + * SHA-512 algorithm in HMAC mode + */ + ODP_AUTH_ALG_SHA512_HMAC, + /** AES in Galois/Counter Mode * * @note Must be paired with cipher ODP_CIPHER_ALG_AES_GCM @@ -171,9 +183,15 @@ typedef union odp_crypto_auth_algos_t { /** ODP_AUTH_ALG_MD5_HMAC */ uint32_t md5_hmac : 1; + /** ODP_AUTH_ALG_SHA1_HMAC */ + uint32_t sha1_hmac : 1; + /** ODP_AUTH_ALG_SHA256_HMAC */ uint32_t sha256_hmac : 1; + /** ODP_AUTH_ALG_SHA512_HMAC */ + uint32_t sha512_hmac : 1; + /** ODP_AUTH_ALG_AES_GCM */ uint32_t aes_gcm : 1;