Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp2187411ybx; Fri, 8 Nov 2019 01:03:20 -0800 (PST) X-Google-Smtp-Source: APXvYqwKcO3OwS94rhKY0m4r8DH+X9VlkOYoaQRD+RkoDeZo4u/gKqMW1tyP2Vefx3B1SMaOq1JZ X-Received: by 2002:a17:906:1d02:: with SMTP id n2mr7494424ejh.219.1573203800650; Fri, 08 Nov 2019 01:03:20 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1573203800; cv=pass; d=google.com; s=arc-20160816; b=W4UU5c0sWVRqKDHqPfV2oopP4pegwuNVEJ7JVlJdz8JBC2miwDwRRcrWoQCjucl8+I raw1xps5uWDLAT6tUHVTRb3P4cV0NPq3FHzRluc+sMhGSO42XdR70DJkqRhZdtdGu7+t 9gBnOLrJ0gnxjPx+BGWM96DSbAFLDiFaxF/nExkIlSdID1w+0w3YqBGjC/PiuqYx7ChA Q+y5kblmtpb2b6jDnwJL45jZ7DHwPyK9O8AE0WUJgxACFvmcxZGoso1Kq5YHi5Q59fK/ bZYily14yYlyIdUjh0YDzXXyq248oQ2QePvYtOgJnXyY5eITQNMu4STqxfb8qwfdZkMC SpmQ== 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=JR50DWQFnHf3j5LqfGDEJ+K+cskbyPaACS1iRr6aBbg=; b=w4As+1uSMh35StTu5fKXi8F+e5d52fHaosWhEi1z0BBLCUbeG2Wth+KWl0tnWH7k/0 +oakA4WR0KE82KvEVChKc91nHcPpSErrawHejo6frYr8rIqT1ysOWQRkXQ4WEXywRzJm MnQo8VoQc/nNqt9a+zrFzRryQEyCa/X9PE6+zgtYNmx9E/GbxLDkP64Cd17iK7VTd7m5 Cs3MhlaW2q7/K9xg6g32D3Exd3Y28wgmH4AMzQ/yncJdhkQKT1ILLSq3/glEefsBV+is iosrRbskcwZiRIXNwJoFOMWz9s1UpIDUYoEypUE48GETbiTZgpKFTL3u1ULl28CBw8nx Zrmg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@verimatrix.com header.s=selector2 header.b=TEu0InnZ; 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 y32si3791995ede.209.2019.11.08.01.02.55; Fri, 08 Nov 2019 01:03:20 -0800 (PST) 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=TEu0InnZ; 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 S1730614AbfKHJCe (ORCPT + 99 others); Fri, 8 Nov 2019 04:02:34 -0500 Received: from mail-eopbgr790052.outbound.protection.outlook.com ([40.107.79.52]:43058 "EHLO NAM03-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728513AbfKHJCe (ORCPT ); Fri, 8 Nov 2019 04:02:34 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=He5LD8KwLOYLC7tm2LBkA60SdjWnivSf4LuBAm7W0GpZqLvZ4KYQlyLwPW4Zd0QRXU8s13GJRrfBXrFUl71SZexlOhgO7deELoY1sbtf00qar3bbuP+dCMmXDh6m7hBorZzEqFUTEmGN1wqlViHFkkFwLctte44XDF6eFOaer0dyB8OgZkKwrEv7joN/4E1xG/oA9nPbuWxDyX1Eqm6miVBMoiI5M4c9axMkGpUHmBN3evjhzrU0FEwITDx9+oJpJwz9B9hk01bdfS4Fu/7GiOtLCl7ZNNN+rFXYo5Kj4g9r5VJi++RzgvSPvE9HLRSApAz9LxCZ2dSA3HFnh/INWQ== 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=JR50DWQFnHf3j5LqfGDEJ+K+cskbyPaACS1iRr6aBbg=; b=HFVthD1DXK1uwVjy8VBkiA/wq52u2ZGvpJohGCBQ89CnZVBaGrMsthWU2bo014cooUdBzEN/DoolGOrhTFFHj+fOAkwi5RtHJtx/VfSa/vGvALuo97C51E3EjUAimSxSTugyp9+sjH9N8ylie9hOxVKu+4uhXMGBRG1qEi+EexvEoVtuw5BdCmwu1u1j5SLQVcRwUswrN1dWbcIN2DbjWSIKUndeo5Ss3yalrQjuO88PbOxZcy7ZwdbYfr911k8suP8ZFBUfIgGM4Ur6C7bM3+28sqOckbRpg6Q+fwc2X+m/I85YTcT7tDFtpcsYPtaakCqVKQVKuvTbnl2iDdQPcA== 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=JR50DWQFnHf3j5LqfGDEJ+K+cskbyPaACS1iRr6aBbg=; b=TEu0InnZXx9Ib0RE/0Dzp3dTYRjoY5+gi/BZM7xUYSJBeWJ8MCZX8P18x6Ku5ffhTYHqvzkF4bZh7rKMXtQ4+u1ZsJGTSMdm93oHtzskNTtF4hztb2lp3MFbfCf/hh9bMe4Q36GNXDTYKy3nE+0ne18vhvZIpwdnMt7+YW4I0e0= Received: from MN2PR20MB2973.namprd20.prod.outlook.com (52.132.172.86) by MN2PR20MB2782.namprd20.prod.outlook.com (20.178.252.75) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2430.22; Fri, 8 Nov 2019 09:02:30 +0000 Received: from MN2PR20MB2973.namprd20.prod.outlook.com ([fe80::18b4:f48a:593b:eac9]) by MN2PR20MB2973.namprd20.prod.outlook.com ([fe80::18b4:f48a:593b:eac9%3]) with mapi id 15.20.2430.020; Fri, 8 Nov 2019 09:02:30 +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: [PATCHv3] crypto: inside-secure - Fixed authenc w/ (3)DES fails on Macchiatobin Thread-Topic: [PATCHv3] crypto: inside-secure - Fixed authenc w/ (3)DES fails on Macchiatobin Thread-Index: AQHVlhKC2naCkqPq7kubgQ2BLcz+YKeA+QSAgAAAxMA= Date: Fri, 8 Nov 2019 09:02:30 +0000 Message-ID: References: <1573203234-8428-1-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: 93e62c43-5661-43b0-af6c-08d7642a629f x-ms-traffictypediagnostic: MN2PR20MB2782: x-ms-exchange-purlcount: 1 x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:506; x-forefront-prvs: 0215D7173F x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(4636009)(376002)(366004)(136003)(346002)(199004)(13464003)(54534003)(189003)(256004)(26005)(53546011)(508600001)(86362001)(54906003)(7696005)(15974865002)(3846002)(4326008)(6116002)(99286004)(9686003)(14454004)(6436002)(55016002)(2906002)(76176011)(71190400001)(71200400001)(6246003)(229853002)(102836004)(52536014)(8936002)(66946007)(186003)(8676002)(76116006)(74316002)(66066001)(5660300002)(25786009)(11346002)(110136005)(66446008)(33656002)(476003)(81166006)(305945005)(446003)(81156014)(6506007)(486006)(14444005)(64756008)(66476007)(7736002)(66556008)(18886075002);DIR:OUT;SFP:1101;SCL:1;SRVR:MN2PR20MB2782;H:MN2PR20MB2973.namprd20.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: verimatrix.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 1hMHaJlj2hqYkDfISRiX1iU9RKRjwrwaUFDaoAyyOs3RIJ4wiz8g0cXTxYZRwReiTHU9NN8d7n9fhvyclUUARHAwHVyuLtOogqnFR0hXFesnouOsHNveKYeXM6kjokCTKVMfurH6+kNdiF5BfzfEoRSAWM83QHsVMUs/3mGlGhfDMwsK5sqpk0RQZgE00eVWBCoFxhPxBz8uo87Bhp4aj1YH5qHqz9hT/UYK/gh+YvN6CTPlVayK+7ATX4SyGIOfQf21gL5Q1lHGQtGLspcmNlchsAb8Va98WRWfVW+8rvl4Jtmaf8tjI+BeuAJc4NfZdUum2aG7BooflxUJY2BlEOybjiHRBygdHv3VMy3gZ5yXRPG5wLzVjtDi7ODoyvvY9BcuLuX03ZmWPHh/heYidaCo7YucTjrXWvBih2+S8fnnoRiGAdhfZc9CtUiEhYojrTW1e+v88ZZnX4YteEQksu8DSk02Bo8BbgYnbQu/nes= 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: 93e62c43-5661-43b0-af6c-08d7642a629f X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Nov 2019 09:02:30.0401 (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: avSSYRa4vZrdzloN2hChGK8P+JI/8AQXwNjynXZga/p8AfrXKMQeuV68ZEJN5FCQmpIlBgRl2gXy8P9/5CWnn/gwD43hToe2eGhguR8XHjw= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR20MB2782 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org DQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogQXJkIEJpZXNoZXV2ZWwg PGFyZC5iaWVzaGV1dmVsQGxpbmFyby5vcmc+DQo+IFNlbnQ6IEZyaWRheSwgTm92ZW1iZXIgOCwg MjAxOSA5OjU4IEFNDQo+IFRvOiBQYXNjYWwgdmFuIExlZXV3ZW4gPHBhc2NhbHZhbmxAZ21haWwu Y29tPg0KPiBDYzogb3BlbiBsaXN0OkhBUkRXQVJFIFJBTkRPTSBOVU1CRVIgR0VORVJBVE9SIENP UkUgPGxpbnV4LWNyeXB0b0B2Z2VyLmtlcm5lbC5vcmc+Ow0KPiBBbnRvaW5lIFRlbmFydCA8YW50 b2luZS50ZW5hcnRAYm9vdGxpbi5jb20+OyBIZXJiZXJ0IFh1IDxoZXJiZXJ0QGdvbmRvci5hcGFu YS5vcmcuYXU+Ow0KPiBEYXZpZCBTL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AgICAgaWYgKHBy aXYtPmZsYWdzICYgRUlQMTk3X1RSQ19DQUNIRSAmJiBjdHgtPmJhc2UuY3R4cl9kbWEpIHsNCj4g PiAgICAgICAgICAgICAgICAgZm9yIChpID0gMDsgaSA8IGtleXMuZW5ja2V5bGVuIC8gc2l6ZW9m KHUzMik7IGkrKykgew0KPiA+IC0gICAgICAgICAgICAgICAgICAgICAgIGlmIChsZTMyX3RvX2Nw dShjdHgtPmtleVtpXSkgIT0gYWVzLmtleV9lbmNbaV0pIHsNCj4gPiArICAgICAgICAgICAgICAg ICAgICAgICBpZiAobGUzMl90b19jcHUoY3R4LT5rZXlbaV0pICE9DQo+ID4gKyAgICAgICAgICAg ICAgICAgICAgICAgICAgICgodTMyICopa2V5cy5lbmNrZXkpW2ldKSB7DQo+ID4gICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICBjdHgtPmJhc2UubmVlZHNfaW52ID0gdHJ1ZTsNCj4gPiAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGJyZWFrOw0KPiA+ICAgICAgICAgICAgICAg ICAgICAgICAgIH0NCj4gPiBAQCAtNDU5LDcgKzQ2MCw3IEBAIHN0YXRpYyBpbnQgc2FmZXhjZWxf YWVhZF9zZXRrZXkoc3RydWN0IGNyeXB0b19hZWFkICpjdGZtLCBjb25zdCB1OA0KPiAqa2V5LA0K PiA+DQo+ID4gICAgICAgICAvKiBOb3cgY29weSB0aGUga2V5cyBpbnRvIHRoZSBjb250ZXh0ICov DQo+ID4gICAgICAgICBmb3IgKGkgPSAwOyBpIDwga2V5cy5lbmNrZXlsZW4gLyBzaXplb2YodTMy KTsgaSsrKQ0KPiA+IC0gICAgICAgICAgICAgICBjdHgtPmtleVtpXSA9IGNwdV90b19sZTMyKGFl cy5rZXlfZW5jW2ldKTsNCj4gPiArICAgICAgICAgICAgICAgY3R4LT5rZXlbaV0gPSBjcHVfdG9f bGUzMigoKHUzMiAqKWtleXMuZW5ja2V5KVtpXSk7DQo+ID4g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