Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp2179294ybx; Fri, 8 Nov 2019 00:53:55 -0800 (PST) X-Google-Smtp-Source: APXvYqzcu+4Rj3ih1Xi++vi2KAmvuM0p2tn+zcusDk2okZIrZfC9SW+pELq146Vm4W0i0XXpb+3R X-Received: by 2002:a17:906:1e52:: with SMTP id i18mr7408791ejj.329.1573203235211; Fri, 08 Nov 2019 00:53:55 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1573203235; cv=pass; d=google.com; s=arc-20160816; b=M7Fy5gyf8F02Mu2gBPl4xCF6VB6QjWeFE+E3Z0VxpU1EKsuWHpOZq/1SYt38eBHm6n Wwter+xK1PMaCOeuoA5c7KABz+XoNQLJ4j0oNx4px/3rHmjoN7gdK/D91iJsKLx92WWi yizin0+LfUHdvufqpPDU/atve4a7q5pGCRtUfXrAX2wLjHQtoX1YqLID4X66LL897qEx I4mvEQxG33VtUNH3JrnB/L7MxgAUbKfLhgVzFiuk9+Cp7thP4vLqc5f+nRIM8vPRFoni SH6uTJl1MJfcci9as6tMw80lnVU4C29ekK4Be5OUn90TJ2R7eAhaDuWdSpP0rUpCn2Jz Wwbw== 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=zjritXvQpQE/9/fco8rG4bZNmnKRHZyMbrdc15o4HzM=; b=fae7342r1tduwg02VzQ89pCd2uascpK72G1YO4N2pLYzLYc2T6Ob3mfTjxMqy37n3U dolZ3Xaf/YYXGM2xs4BJBbX+IZecuISO4HMyuEJ4eq3i0pvGFI9IdYtKB0l/VnMcFR55 vUCaeNUwHbUOaFhSS6m+hq22v6/uiPenUakbFO7cpL3/Nv7GUq4pB4EU5YiglVorFUGG 6BW+4GM648206KBZ5i9AdmICfb7PFNuK/Q0WW36O9r7rvWNsnh/6iypMz5P77ShWpW96 qToBN3cZdXz/aruM650K2BbHmJ/oaHdlDNSgqog2KashL3iCmzIKCZx5R41jjsu/8WID o+SA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@verimatrix.com header.s=selector2 header.b="wz/Xq+hW"; 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 q17si3338163ejm.165.2019.11.08.00.53.30; Fri, 08 Nov 2019 00:53:55 -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="wz/Xq+hW"; 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 S1726672AbfKHIxY (ORCPT + 99 others); Fri, 8 Nov 2019 03:53:24 -0500 Received: from mail-eopbgr770078.outbound.protection.outlook.com ([40.107.77.78]:53754 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726072AbfKHIxY (ORCPT ); Fri, 8 Nov 2019 03:53:24 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bjor+aCwQz1/iiuUCHTmReUezIFG5A5I6jzYenF//Lt9MEJW+PBYJ+bSRTeNaoB979mLFhKdyD//kTCW03swTVKiZY401RW/pQcvYEKbCIiRuVAwam3d664N2WgOoeY8rX3uEy4u4hEdcvqz4Hy2JILs22KtLpRsFxXejF2vJPw/GdkVtVpD9i4AT1gIjfOaGCscJBP1lKiLda/aPhIDa0FNsFDh9kRqYPSoVaDThm24UoJt8QskbA8UKDtFS/xnPLR1eVYerDMkuRc/YWDLfgwShyXu87AZ+XHiEvPkJbkDZaUojFG6g4YYbxGIj2tIa71NreRUVUBgWWWxNmdFeg== 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=zjritXvQpQE/9/fco8rG4bZNmnKRHZyMbrdc15o4HzM=; b=Q00r4vOzFT2xq+R5HrATn33X5gUlJ0/s2YlbSPmBbtTlrOmhKiOttU0DM5ie3JL94CbCN/v1E4wdBlC4mYGAHSjdRyUDtcBlIAYNJeHWeXCI1cfpdizexctVWJbXif/L6VCXp460lyjp3wO5zHAX7Y3NLRVZiM+dLdhV+QYU6CCnhsDDKGX/+mOrRSie9d+yfcxKD+nCwSlYtJZhLrV5ebqSa8mRpzyoB+HMWFMntVNdRsK8pN38yhuyzIVa0H6ekCALp30Bb5ug6WwjGOQr4Thttd07pBDinSkovPlghGdzjOUSyG/yyinAQBAJZbMjuh0TS8o60qqEMr4ccK6qDg== 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=zjritXvQpQE/9/fco8rG4bZNmnKRHZyMbrdc15o4HzM=; b=wz/Xq+hWYOUg6Tr/jR9D3ovqXIC6Zccg790g3w+Nx7iajd0xxgaTd/7qvZCjLS08nbPJCQFQWj1AviMlHOLKkXSReqjRgAtMvXuNx1yoQO7TJS6rMngi01XUbN5t4g9jGfKaZpE//9e8rYUB5QyMSBvVdfDWLeLgR0Y/4Yanbc4= Received: from MN2PR20MB2973.namprd20.prod.outlook.com (52.132.172.86) by MN2PR20MB2526.namprd20.prod.outlook.com (20.179.146.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2408.24; Fri, 8 Nov 2019 08:53:21 +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 08:53:21 +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: [PATCHv2] crypto: inside-secure - Fixed authenc w/ (3)DES fails on Macchiatobin Thread-Topic: [PATCHv2] crypto: inside-secure - Fixed authenc w/ (3)DES fails on Macchiatobin Thread-Index: AQHVlhGWHKZ5/9YotkeSJM0MtAN2HKeA90uAgAAALLA= Date: Fri, 8 Nov 2019 08:53:21 +0000 Message-ID: References: <1573202847-8292-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: e9450f4a-d46b-48c3-262c-08d764291b7c x-ms-traffictypediagnostic: MN2PR20MB2526: x-ms-exchange-purlcount: 2 x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:792; x-forefront-prvs: 0215D7173F x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(4636009)(396003)(346002)(376002)(136003)(39850400004)(366004)(199004)(189003)(13464003)(54534003)(486006)(478600001)(15974865002)(476003)(86362001)(66476007)(81166006)(229853002)(8676002)(81156014)(14444005)(5660300002)(33656002)(66556008)(11346002)(64756008)(7736002)(446003)(8936002)(66446008)(66946007)(66066001)(14454004)(256004)(54906003)(76116006)(74316002)(305945005)(2906002)(6436002)(6246003)(186003)(9686003)(76176011)(7696005)(6116002)(25786009)(26005)(52536014)(99286004)(110136005)(6306002)(71190400001)(316002)(55016002)(3846002)(4326008)(102836004)(6506007)(53546011)(71200400001)(18886075002);DIR:OUT;SFP:1101;SCL:1;SRVR:MN2PR20MB2526;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: gU3WoCPayr21XPcJOYJ4bzLnP7uf6BVMDhIm/HGNw9URk7EgJDYX0YQwNwrShuTnMSHA+m0FmbxWWZAc8hHQLn46/jwm6QCPoVz41JMPSmEV3Hnj9E0t0oVki8Xzf+JYpYa2mDF3ZSN5qJTeMlmE+05EvYLMIDEY9bpNlqPcCSP2Nb6LNBn9IK0c7u5+YNxI8nI01B0GV5ZCLzwoZWGzIivD208nAIj8n8tbABDPQNWP+jp2L/DD7DMk+7bs6S5p9U2iVbiAYFm9/9XVuIPfy124fVotgnDHJ/OfjJzpzs7Lsjtc2teet3dB6EYWqleWRtMXagsJPw2/6bs6MNmMakHxmodxxzCWl9XUb4NCNodonXQ7SOHOszHYO4ZTNGVzqtNeVVAKH8hJluSPVpCr1/iJ/pOwMUJlZIQtGvEHuqwOjyDh3WGfu4+U1kQZf7MeVLADIL9S9re9yRwPU5yvCJdOO9atBLJj37U9ATO18qo= 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: e9450f4a-d46b-48c3-262c-08d764291b7c X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Nov 2019 08:53:21.1853 (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: q3gnFOL+fo1GAvvnTVKeavzIbkU4F8sXwNKZGZ4Nn4tfz/jsrB3RZ1KZAdoJ4D/MAamENhD5D0Vadu/8uLIp/4LvYDCjmwbZPhJay9VyWqs= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR20MB2526 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org PiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPiBGcm9tOiBBcmQgQmllc2hldXZlbCA8YXJk LmJpZXNoZXV2ZWxAbGluYXJvLm9yZz4NCj4gU2VudDogRnJpZGF5LCBOb3ZlbWJlciA4LCAyMDE5 IDk6NTIgQU0NCj4gVG86IFBhc2NhbCB2YW4gTGVldXdlbiA8cGFzY2FsdmFubEBnbWFpbC5jb20+ DQo+IENjOiBvcGVuIGxpc3Q6SEFSRFdBUkUgUkFORE9NIE5VTUJFUiBHRU5FUkFUT1IgQ09SRSA8 bGludXgtY3J5cHRvQHZnZXIua2VybmVsLm9yZz47DQo+IEFudG9pbmUgVGVuYXJ0IDxhbnRvaW5l LnRlbmFydEBib290bGluLmNvbT47IEhlcmJlcnQgWHUgPGhlcmJlcnRAZ29uZG9yLmFwYW5hLm9y Zy5hdT47DQo+IERhdmlkIFMuIE1pbGx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A+ICAgICAgICAgaWYgKHByaXYt PmZsYWdzICYgRUlQMTk3X1RSQ19DQUNIRSAmJiBjdHgtPmJhc2UuY3R4cl9kbWEpIHsNCj4gPiAg ICAgICAgICAgICAgICAgZm9yIChpID0gMDsgaSA8IGtleXMuZW5ja2V5bGVuIC8gc2l6ZW9mKHUz Mik7IGkrKykgew0KPiA+IC0gICAgICAgICAgICAgICAgICAgICAgIGlmIChsZTMyX3RvX2NwdShj dHgtPmtleVtpXSkgIT0gYWVzLmtleV9lbmNbaV0pIHsNCj4gPiArICAgICAgICAgICAgICAgICAg ICAgICBpZiAobGUzMl90b19jcHUoY3R4LT5rZXlbaV0pICE9DQo+ID4gKyAgICAgICAgICAgICAg ICAgICAgICAgICAgICgodTMyICopa2V5cy5lbmNrZXkpW2ldKSB7DQo+ID4gICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICBjdHgtPmJhc2UubmVlZHNfaW52ID0gdHJ1ZTsNCj4gPiAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgIGJyZWFrOw0KPiA+ICAgICAgICAgICAgICAgICAg ICAgICAgIH0NCj4gPiBAQCAtNDU5LDcgKzQ2MCw3IEBAIHN0YXRpYyBpbnQgc2FmZXhjZWxfYWVh ZF9zZXRrZXkoc3RydWN0IGNyeXB0b19hZWFkICpjdGZtLCBjb25zdCB1OA0KPiAqa2V5LA0KPiA+ DQo+ID4gICAgICAgICAvKiBOb3cgY29weSB0aGUga2V5cyBpbnRvIHRoZSBjb250ZXh0ICovDQo+ ID4gICAgICAgICBmb3IgKGkgPSAwOyBpIDwga2V5cy5lbmNrZXlsZW4gLyBzaXplb2YodTMyKTsg aSsrKQ0KPiA+IC0gICAgICAgICAgICAgICBjdHgtPmtleVtpXSA9IGNwdV90b19sZTMyKGFlcy5r ZXlfZW5jW2ldKTsNCj4gPiArICAgICAgICAgICAgICAgY3R4LT5rZXlbaV0gPSBjcHVfdG9fbGUz MigoKHUzMiAqKWtleXMuZW5ja2V5KVtpX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