Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965365AbeAJOZK (ORCPT + 1 other); Wed, 10 Jan 2018 09:25:10 -0500 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:39146 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S965159AbeAJOZI (ORCPT ); Wed, 10 Jan 2018 09:25:08 -0500 From: Fabien DESSENNE To: Corentin Labbe , Alexandre TORGUE , "arei.gonglei@huawei.com" , "corbet@lwn.net" , "davem@davemloft.net" , "herbert@gondor.apana.org.au" , "jasowang@redhat.com" , "mcoquelin.stm32@gmail.com" , "mst@redhat.com" CC: "linux-arm-kernel@lists.infradead.org" , "linux-crypto@vger.kernel.org" , "linux-doc@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "virtualization@lists.linux-foundation.org" , Benjamin GAIGNARD , Lionel DEBIEVE Subject: Re: [PATCH 5/6] crypto: stm32-hash: convert to the new crypto engine API Thread-Topic: [PATCH 5/6] crypto: stm32-hash: convert to the new crypto engine API Thread-Index: AQHThM9RbKT8VQFhb06Gf1vtJ7ojKKNtIvGA Date: Wed, 10 Jan 2018 14:24:08 +0000 Message-ID: <17d0497d-5c13-f93e-4249-8adff5e71b19@st.com> References: <20180103201109.16077-1-clabbe.montjoie@gmail.com> <20180103201109.16077-6-clabbe.montjoie@gmail.com> In-Reply-To: <20180103201109.16077-6-clabbe.montjoie@gmail.com> Accept-Language: fr-FR, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 x-ms-exchange-messagesentrepresentingtype: 1 x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.75.127.51] Content-Type: text/plain; charset="utf-8" Content-ID: Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-01-10_07:,, signatures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