Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1021690ybe; Fri, 13 Sep 2019 09:51:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqzwwnHthoOI0vN+PbNwLxgzmFsH7Hb/Q+o/QiKg9QO0c5uso5OI0iJ7lQewcv+3vpI36alR X-Received: by 2002:a50:884c:: with SMTP id c12mr48455122edc.134.1568393466961; Fri, 13 Sep 2019 09:51:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1568393466; cv=pass; d=google.com; s=arc-20160816; b=Zd3eqpHyhPzfqcuRDmPElcsi9dyLnUrnfocmxwTA2+e2rbJ39sRA2a0aB8j2v1Nj7f YqtFxfz3/eV3tMDgEecYuNEO9cpW7QPy9LoCDTZCZKdug+0jaO4jVeIbgdUPKZPwxwKw EH397p+/CquMbvDL7E6Ga+yeF+vCtMwUB7FCmWG7HxJEDbT21yt5CWkUpGa1Rj7/4usS W2GcDLhuXxFV0AnihKMREajfyR5SHUM1BFDRoK2NR0kjcTiI3/2Wb2ePwtTB0msqhJQY EL4HLHtu9u9Z2xcN9K/1KZBdTFcWvAF2zPFCjxp/qJADi69HRx97TS1nxr6dlJ+aKKF/ Twag== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=FyIxHkYVqgHLA80PptZEvXEC5agwUDnrCK1p54jXzPk=; b=q3KxAvxJlL4viPRJ5GK/CQ2JmBQK0hwj4eyDoVGB4omD/UtNFCxWkMvmYwnv+Tditw +yEzN4roKV5wCBnKGJYxNMmPuJ3vb5QXjhXnpj70DDTXpheEnSBhhZ8BDlrw0NshV/Z6 B4gEhXGH33gJlQL3aZOjTCbxdhDUa8DtO4Pf0D9Yd7go1BKidyW5eL+XVVz/S5MPHcs0 ZMNu50FWKbCdeNruIkpVS0tpUhLD4bStZOfUxP9h9xGS05oD7WmOyclYDMdxSv2nUU68 alOE8HBYS2xKPz23jaRdnBZ88Nk9i5aR1U6Gg1p2cbissBZ87ffNacKe+RgG481K8A0Y C/Iw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@verimatrix.com header.s=selector2 header.b=X3LyYMMo; arc=pass (i=1 spf=pass spfdomain=verimatrix.com dkim=pass dkdomain=verimatrix.com dmarc=pass fromdomain=verimatrix.com); spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=verimatrix.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w11si8259542edi.442.2019.09.13.09.50.42; Fri, 13 Sep 2019 09:51:06 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@verimatrix.com header.s=selector2 header.b=X3LyYMMo; arc=pass (i=1 spf=pass spfdomain=verimatrix.com dkim=pass dkdomain=verimatrix.com dmarc=pass fromdomain=verimatrix.com); spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=verimatrix.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730609AbfIMQRV (ORCPT + 99 others); Fri, 13 Sep 2019 12:17:21 -0400 Received: from mail-eopbgr710052.outbound.protection.outlook.com ([40.107.71.52]:60802 "EHLO NAM05-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730605AbfIMQRV (ORCPT ); Fri, 13 Sep 2019 12:17:21 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=frTx5MMnI5ZKanDwfLVbFH13Du0h+XiaA4h9xRkWHUxUYHhDo2mPt90UdaCEPh+EKVLuEdHl3IMFUksQfTxle5l1b1Rvw8y8LIOMZm5lYVVNmFpZf6dKGz0dxtZkGGskYViNQG0I5q1a+O92uvL6+J49gyI57YCLWnxgoHmwIrs7jkA7dDlb9arfSVYItwztfaNT/8wZIBorhLGotsWxOrZTSSis0H3fg9mN9xbeJCsPsqWqcP6g65+MMMFWbtUnoeMc8DZlsy9k0jWrtLzzQQG1UbC5TqzzIo334CEZ3g6uzBVuNreKLgxrTui4mb73Vtl9LU+4T5rvGDjuZlwzBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=FyIxHkYVqgHLA80PptZEvXEC5agwUDnrCK1p54jXzPk=; b=IQfioE5de+RGdUSV+MpEnDkBx09JOoJLqrpr0pugZIxSgFsFebfOOw63PhQZ3uRrZRoXX1Vbd0Rutlhx/8zykdZpEEE/P6NXt+3U45V/DJHwhf5aHJfF1LQDCrDxGXG/KX5TUIHuq/KqbQ5RC8Sb865DzdWsvkGqn0uHUIoG0Ept1ICkEOfqk80gz+Kf98+looH85NFO4n9asAdg4Vmfw3PxGdI5ofJg1WGmhNyGBoJHU+lod7sItCRuUs1opOYhnrz6AEFG8khyYJK50Ph5+7E0XqXvWy7NWccvVZw9bFSNrjzsbChT+yLWB6oCN3TSNHroj5tjBw40I1BKrM15IA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=verimatrix.com; dmarc=pass action=none header.from=verimatrix.com; dkim=pass header.d=verimatrix.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=verimatrix.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=FyIxHkYVqgHLA80PptZEvXEC5agwUDnrCK1p54jXzPk=; b=X3LyYMMoS/11OD0dLDa+Do+gc+SEVzInixJ//To5Ym6SS1IDV2Yi+KDSq9z0Qgx/YPqNA+MpBDq1wC/uFiay1eRD9VpAmF6Gyp3xyrn4vu3+K3KG1y4URdO6tCoD+bkdensZnTuIReCZIOldvewxVjmAWPsL/PnTos7XuABztCQ= Received: from MN2PR20MB2973.namprd20.prod.outlook.com (52.132.172.146) by MN2PR20MB3054.namprd20.prod.outlook.com (52.132.173.159) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2263.15; Fri, 13 Sep 2019 16:17:14 +0000 Received: from MN2PR20MB2973.namprd20.prod.outlook.com ([fe80::6d07:5f09:97bf:c717]) by MN2PR20MB2973.namprd20.prod.outlook.com ([fe80::6d07:5f09:97bf:c717%7]) with mapi id 15.20.2263.021; Fri, 13 Sep 2019 16:17:08 +0000 From: Pascal Van Leeuwen To: Ard Biesheuvel , Pascal van Leeuwen CC: "open list:HARDWARE RANDOM NUMBER GENERATOR CORE" , Antoine Tenart , Herbert Xu , "David S. Miller" Subject: RE: [PATCH 1/3] crypto: inside-secure - Added support for authenc HMAC-SHA1/DES-CBC Thread-Topic: [PATCH 1/3] crypto: inside-secure - Added support for authenc HMAC-SHA1/DES-CBC Thread-Index: AQHVakTJFPzpgTjNwEGLLTrQOP3DlqcpurqAgAAMuHA= Date: Fri, 13 Sep 2019 16:17:08 +0000 Message-ID: References: <1568383406-8009-1-git-send-email-pvanleeuwen@verimatrix.com> <1568383406-8009-2-git-send-email-pvanleeuwen@verimatrix.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=pvanleeuwen@verimatrix.com; x-originating-ip: [188.204.2.113] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 0a1dfed3-57f0-4f92-b580-08d73865d361 x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600166)(711020)(4605104)(1401327)(2017052603328)(7193020);SRVR:MN2PR20MB3054; x-ms-traffictypediagnostic: MN2PR20MB3054: x-ms-exchange-purlcount: 1 x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:7691; x-forefront-prvs: 0159AC2B97 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(4636009)(376002)(396003)(39850400004)(346002)(136003)(366004)(189003)(199004)(13464003)(7736002)(9686003)(55016002)(66476007)(66446008)(229853002)(64756008)(8676002)(7696005)(26005)(52536014)(8936002)(446003)(54906003)(102836004)(186003)(110136005)(66556008)(2906002)(76176011)(14454004)(316002)(76116006)(3846002)(6116002)(6506007)(66946007)(305945005)(53546011)(15974865002)(14444005)(99286004)(476003)(66066001)(11346002)(86362001)(256004)(81156014)(74316002)(5660300002)(6436002)(478600001)(486006)(81166006)(71200400001)(71190400001)(33656002)(6246003)(4326008)(53936002)(25786009)(18886075002);DIR:OUT;SFP:1101;SCL:1;SRVR:MN2PR20MB3054;H:MN2PR20MB2973.namprd20.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: verimatrix.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: 8Uq61s1sLhrMbjYosHE4jNp3lVRjVIr1VO4ssGCg+N00Y/nQIvhlT1xy1Fi0xmvFWQsJDsXZrtgFPSoY3uyL0jeS7xnWR4OYY6XBSi6BcmR+JdhsLN1IZoFdI8kAcdPVQH01J7XzV0hm+YsAGYBvfgEDe14zvYDCzQRTqPYuWOCuaOGFgtMZP6OAYd+coTeOqPDDoNp84zHfNC6BW/tkpKq8AKbN5VBzl62uQGNFbhvpFbMeAYrXw3JdYIwYL4jYa3/FJNEtdxHgs+dPZOjjJt3M4R/KcPL2rl/ux/HJpo209T+J+lmnn2oRRTCQKF0+f1NtxnuNwse2ALf3DbAQTzbQxdfyAqUWwxzfQMgJpkMGRaRy7BlEVmSfg2/j7Mb7MBHP6YJgi/3WsR/Hfb8hymvvhIsITmglhMX3zkr4fXY= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: verimatrix.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0a1dfed3-57f0-4f92-b580-08d73865d361 X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Sep 2019 16:17:08.2239 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: dcb260f9-022d-4495-8602-eae51035a0d0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 3kMnmxwAFUuUn2McGv6fad7Ib9hx3CUDSeTeT4ro2NbtroGr2b0feb6OKnqKoniEt7c61osVxCe7gP2FYrbFVTo5rcFzL9vbWIKqr83K15U= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR20MB3054 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org PiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPiBGcm9tOiBBcmQgQmllc2hldXZlbCA8YXJk LmJpZXNoZXV2ZWxAbGluYXJvLm9yZz4NCj4gU2VudDogRnJpZGF5LCBTZXB0ZW1iZXIgMTMsIDIw MTkgNToyNyBQTQ0KPiBUbzogUGFzY2FsIHZhbiBMZWV1d2VuIDxwYXNjYWx2YW5sQGdtYWlsLmNv bT4NCj4gQ2M6IG9wZW4gbGlzdDpIQVJEV0FSRSBSQU5ET00gTlVNQkVSIEdFTkVSQVRPUiBDT1JF IDxsaW51eC1jcnlwdG9Admdlci5rZXJuZWwub3JnPjsNCj4gQW50b2luZSBUZW5hcnQgPGF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cnlwdG9fYWVhZCAqY3RmbSwgY29uc3QNCj4gdTggKmtleSwNCj4gPg0KPiA+ICAgICAg ICAgLyogRW5jcnlwdGlvbiBrZXkgKi8NCj4gPiAgICAgICAgIHN3aXRjaCAoY3R4LT5hbGcpIHsN Cj4gPiArICAgICAgIGNhc2UgU0FGRVhDRUxfREVTOg0KPiA+ICsgICAgICAgICAgICAgICBpZiAo a2V5cy5lbmNrZXlsZW4gIT0gREVTX0tFWV9TSVpFKQ0KPiA+ICsgICAgICAgICAgICAgICAgICAg ICAgIGdvdG8gYmFka2V5Ow0KPiA+ICsgICAgICAgICAgICAgICBlcnIgPSBkZXNfZWtleSh0bXAs IGtleSk7DQo+ID4gKyAgICAgICAgICAgICAgIGlmICh1bmxpa2VseSghZXJyICYmICh0Zm0tPmNy dF9mbGFncyAmDQo+ID4gKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBDUllQ VE9fVEZNX1JFUV9GT1JCSURfV0VBS19LRVlTKSkpIHsNCj4gPiArICAgICAgICAgICAgICAgICAg ICAgICB0Zm0tPmNydF9mbGFncyB8PSBDUllQVE9fVEZNX1JFU19XRUFLX0tFWTsNCj4gPiArICAg ICAgICAgICAgICAgICAgICAgICBnb3RvIGJhZGtleV9leHBmbGFnczsNCj4gPiArICAgICAgICAg ICAgICAgfQ0KPiA+ICsgICAgICAgICAgICAgICBicmVhazsNCj4gPiAgICAgICAgIGNhc2UgU0FG RVhDRUxfM0RFUzoNCj4gPiAgICAgICAgICAgICAgICAgaWYgKGtleXMuZW5ja2V5bGVuICE9IERF UzNfRURFX0tFWV9TSVpFKQ0KPiA+ICAgICAgICAgICAgICAgICAgICAgICAgIGdvdG8gYmFka2V5 Ow0KPiA+IEBAIC0xODU0LDYgKzE4NjUsNDAgQEAgc3RydWN0IHNhZmV4Y2VsX2FsZ190ZW1wbGF0 ZQ0KPiBzYWZleGNlbF9hbGdfYXV0aGVuY19obWFjX3NoYTFfY2JjX2RlczNfZWRlID0gew0K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ICsgICAgICAgICAgICAgICAuYmFzZSA9IHsNCj4gPiArICAgICAgICAgICAg ICAgICAgICAgICAuY3JhX25hbWUgPSAiYXV0aGVuYyhobWFjKHNoYTEpLGNiYyhkZXMpKSIsDQo+ ID4gKyAgICAgICAgICAgICAgICAgICAgICAgLmNyYV9kcml2ZXJfbmFtZSA9ICJzYWZleGNlbC1h dXRoZW5jLWhtYWMtc2hhMS1jYmMtZGVzIiwNCj4gPiArICAgICAgICAgICAgICAgICAgICAgICAu Y3JhX3ByaW9yaXR5ID0gU0FGRVhDRUxfQ1JBX1BSSU9SSVRZLA0KPiA+ICsgICAgICAgICAgICAg ICAgICAgICAgIC5jcmFfZmxhZ3MgPSBDUllQVE9fQUxHX0FTWU5DIHwNCj4gPiArICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgQ1JZUFRPX0FMR19LRVJOX0RSSVZFUl9PTkxZLA0K PiA+ICsgICAgICAgICAgICAgICAgICAgICAgIC5jcmFfYmxvY2tzaXplID0gREVTX0JMT0NLX1NJ WkUsDQo+ID4gKyAgICAgICAgICAgICAgICAgICAgICAgLmNyYV9jdHhzaXplID0gc2l6ZW9mKHN0 cnVjdCBzYWZleGNlbF9jaXBoZXJfY3R4KSwNCj4gPiArICAgICAgICAgICAgICAgICAgICAgICAu Y3JhX2FsaWdubWFzayA9IDAsDQo+ID4gKyAgICAgICAgICAgICAgICAgICAgICAgLmNyYV9pbml0 ID0gc2FmZXhjZWxfYWVhZF9zaGExX2Rlc19jcmFfaW5pdCwNCj4gPiArICAgICAgICAgICAgICAg ICAgICAgICAuY3JhX2V4aXQgPSBzYWZleGNlbF9hZWFkX2NyYV9leGl0LA0KPiA+ICsgICAgICAg ICAgICAgICAgICAgICAgIC5jcmFfbW9kdWxlID0gVEhJU19NT0RVTEUsDQo+ID4gKyAgICAgICAg ICAgICAgIH0sDQo+ID4gKyAgICAgICB9LA0KPiA+ICt9Ow0KPiA+ICsNCj4gPiAgc3RhdGljIGlu dCBzY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