From: James Hartley Subject: RE: [PATCH V3 1/2] crypto: Add Imagination Technologies hw hash accelerator Date: Thu, 12 Mar 2015 00:13:53 +0000 Message-ID: <72BC0C8BD7BB6F45988A99382E5FBAE544464A96@hhmail02.hh.imgtec.org> References: <1425610912-9930-1-git-send-email-james.hartley@imgtec.com> <1425610912-9930-2-git-send-email-james.hartley@imgtec.com> <72BC0C8BD7BB6F45988A99382E5FBAE544463666@hhmail02.hh.imgtec.org> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Cc: "linux-crypto@vger.kernel.org" To: Andrew Bresticker Return-path: Received: from mailapp01.imgtec.com ([195.59.15.196]:10591 "EHLO mailapp01.imgtec.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750960AbbCLAN5 (ORCPT ); Wed, 11 Mar 2015 20:13:57 -0400 In-Reply-To: Content-Language: en-US Sender: linux-crypto-owner@vger.kernel.org List-ID: SGkgQW5kcmV3LCANCg0KPiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPiBGcm9tOiBhYnJl c3RpY0Bnb29nbGUuY29tIFttYWlsdG86YWJyZXN0aWNAZ29vZ2xlLmNvbV0gT24gQmVoYWxmIE9m DQo+IEFuZHJldyBCcmVzdGlja2VyDQo+IFNlbnQ6IDEwIE1hcmNoIDIwMTUgMTg6MDINCj4gVG86 IEphbWVzIEhhcnRsZXkNCj4gQ2M6IGxpbnV4LWNyeXB0b0B2Z2VyLmtlcm5lbC5vcmcNCj4gU3Vi amVjdDogUmU6IFtQQVRDSCBWMyAxLzJdIGNyeXB0bzogQWRkIEltYWdpbmF0aW9uIFRlY2hub2xv Z2llcyBodyBoYXNoDQo+IGFjY2VsZXJhdG9yDQo+IA0KPiBIaSBKYW1lcywNCj4gDQo+ID4+ID4g K3N0YXRpYyBpcnFyZXR1cm5fdCBpbWdfaXJxX2hhbmRsZXIoaW50IGlycSwgdm9pZCAqZGV2X2lk KSB7DQo+ID4+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