Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932195AbeAKHpk (ORCPT + 1 other); Thu, 11 Jan 2018 02:45:40 -0500 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:57305 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932102AbeAKHpi (ORCPT ); Thu, 11 Jan 2018 02:45:38 -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: AQHThM9RbKT8VQFhb06Gf1vtJ7ojKKNtIvGAgAEi0AA= Date: Thu, 11 Jan 2018 07:44:56 +0000 Message-ID: <1a40ba6d-f66d-9471-742c-53351f7554e9@st.com> References: <20180103201109.16077-1-clabbe.montjoie@gmail.com> <20180103201109.16077-6-clabbe.montjoie@gmail.com> <17d0497d-5c13-f93e-4249-8adff5e71b19@st.com> In-Reply-To: <17d0497d-5c13-f93e-4249-8adff5e71b19@st.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.50] Content-Type: text/plain; charset="utf-8" Content-ID: <4A9A05B77473CD4C96F54A54C28D3CA5@st.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-01-11_03:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: KGFkZGluZyBteSB0ZXN0ZWQgbXkpDQoNCg0KT24gMTAvMDEvMTggMTU6MjQsIEZhYmllbiBERVNT RU5ORSB3cm90ZToNCj4NCj4gT24gMDMvMDEvMTggMjE6MTEsIENvcmVudGluIExhYmJlIHdyb3Rl Og0KPj4gVGhpcyBwYXRjaCBjb252ZXJ0IHRoZSBzdG0zMi1oYXNoIGRyaXZlciB0byB0aGUgbmV3 IGNyeXB0byBlbmdpbmUgQVBJLg0KPj4NCj4+IFNpZ25lZC1vZmYtYnk6IENvcmVudGluIExhYmJl IDxjbGFiYmUubW9udGpvaWVAZ21haWwuY29tPg0KDQpUZXN0ZWQtYnk6IEZhYmllbiBEZXNzZW5u ZSA8ZmFiaWVuLmRlc3Nlbm5lQHN0LmNvbT4NCg0KPj4gLS0tDQo+PiAgICBkcml2ZXJzL2NyeXB0 by9zdG0zMi9zdG0zMi1oYXNoLmMgfCAxOCArKysrKysrKysrKysrLS0tLS0NCj4+ICAgIDEgZmls ZSBjaGFuZ2VkLCAxMyBpbnNlcnRpb25zKCspLCA1IGRlbGV0aW9ucygtKQ0KPj4NCj4+IGRpZmYg LS1naXQgYS9kcml2ZXJzL2NyeXB0by9zdG0zMi9zdG0zMi1oYXNoLmMgYi9kcml2ZXJzL2NyeXB0 by9zdG0zMi9zdG0zMi1oYXNoLmMNCj4+IGluZGV4IDRjYTRhMjY0YTgzMy4uOTc5MGMyYzkzNmM3 IDEwMDY0NA0KPj4gLS0tIGEvZHJpdmVycy9jcnlwdG8vc3RtMzIvc3RtMzItaGFzaC5jDQo+PiAr KysgYi9kcml2ZXJzL2NyeXB0by9zdG0zMi9zdG0zMi1oYXNoLmMNCj4+IEBAIC0xMjIsNiArMTIy LDcgQEAgZW51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