From: Fabien DESSENNE Subject: Re: [PATCH 6/6] crypto: stm32-cryp: convert to the new crypto engine API Date: Thu, 11 Jan 2018 07:45:25 +0000 Message-ID: <2b382b5d-8dc5-b414-99d5-d42c1ed6a3cf@st.com> References: <20180103201109.16077-1-clabbe.montjoie@gmail.com> <20180103201109.16077-7-clabbe.montjoie@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 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 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" Return-path: Received: from mx08-00178001.pphosted.com ([91.207.212.93]:59115 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932100AbeAKHqF (ORCPT ); Thu, 11 Jan 2018 02:46:05 -0500 In-Reply-To: Content-Language: en-US Content-ID: <5758224F1ECE1448A16066F9657450AA@st.com> Sender: linux-crypto-owner@vger.kernel.org List-ID: KEFkZGluZyBteSB0ZXN0ZWQgYnkpDQoNCg0KT24gMTAvMDEvMTggMTU6MjUsIEZhYmllbiBERVNT RU5ORSB3cm90ZToNCj4NCj4gT24gMDMvMDEvMTggMjE6MTEsIENvcmVudGluIExhYmJlIHdyb3Rl Og0KPj4gVGhpcyBwYXRjaCBjb252ZXJ0IHRoZSBzdG0zMi1jcnlwIGRyaXZlciB0byB0aGUgbmV3 IGNyeXB0byBlbmdpbmUgQVBJLg0KPj4gU2lnbmVkLW9mZi1ieTogQ29yZW50aW4gTGFiYmUgPGNs YWJiZS5tb250am9pZUBnbWFpbC5jb20+DQoNClRlc3RlZC1ieTogRmFiaWVuIERlc3Nlbm5l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