Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp5369303imm; Tue, 18 Sep 2018 08:28:07 -0700 (PDT) X-Google-Smtp-Source: ANB0VdY99xljoG8otSz00nYMFECXLHWhbEBZKmILQHVLUi//vGP2Do2j7r+fHhqc0RCkrkKTft0b X-Received: by 2002:a63:ea49:: with SMTP id l9-v6mr28325148pgk.427.1537284487802; Tue, 18 Sep 2018 08:28:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537284487; cv=none; d=google.com; s=arc-20160816; b=HvP++A5QDBQZTGXt/lPRPRW+UPCU67IqH2RytPsEHbv6ZeDL9cCI0zz+v2zGJ+rM5O xiNIbmyU/j8Qf45UA5ZOJiQREpJU/225rXQvRdLYjG5P9S4tcuAV5eLFkOBaBQx9SYIP M5iQprrT4VoFT+6Jr/XskuwBNhhXXApWQkABTK9pRXQXOEmO+fF3l+/rj16GOleP63GV bUIge7qSRxa/Hb563Di7XzvsNhG2lz5b/ZTZJRk+HsAxWbN0OZq6egycvFV22WO4HN00 1l1UO7c96cx/jW3vkVs9lFmnT3X6cXX9JvtDh8FKnPOsZ84n6AssaYG4F8obYl8sCNUi us7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to:date :cc:to:from:subject:message-id:dkim-signature; bh=kF0JoqTXCs6Uj+O8sm8OhdY84OLdvocvFtC0dXKQ+c0=; b=bfnQ2PoBJ3WZm/DIBF3DAQ6ManSfbLYKG2G6uTPN/Wbt2cglkwnyh2ZOhIKTP9zNIj WIP7OLey658Vm4+Ou9DisvxB3K8RJFemhb0Wa2vcE3CaEBQ8+9oiHxN2vf4Z/xYvC+/v 9qysi24LCokBr9GEA9ruNsPty3wAD7VYXSjjxtkDHkwj3YONTQBVsC+ykKpWfdySbdzE iK6I6C9oS9iEhpDejWvSmxppm4ITmnWah43WPGgATHadDEvOHF94zdMNpBv6atZ8PNrs nXdc2h0Vru1zpCPCK/rcqBjKKwOuXizcJRIb1t0dgaZbGvjX2wmlMBOnU3WWIZOWNRb/ dJwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=Ucax1Vdv; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 43-v6si19140183plc.496.2018.09.18.08.27.48; Tue, 18 Sep 2018 08:28:07 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=Ucax1Vdv; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729501AbeIRVAG (ORCPT + 99 others); Tue, 18 Sep 2018 17:00:06 -0400 Received: from merlin.infradead.org ([205.233.59.134]:54730 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727756AbeIRVAG (ORCPT ); Tue, 18 Sep 2018 17:00:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Mime-Version:Content-Type:References: In-Reply-To:Date:Cc:To:From:Subject:Message-ID:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=kF0JoqTXCs6Uj+O8sm8OhdY84OLdvocvFtC0dXKQ+c0=; b=Ucax1VdvhNmwW3jRRwRFyJpZk t8qONcCt4xIY3ptc2MYrji/XE0o54mza8a5JC9Ch6Hgdsj4dzv4bAPEVoxiA/VKpURsJjqvP6L/6/ gBqpwPepVCG5sPH/lvoZ+LqDPju1t01FMrhh1OQpumMKuLIZrRNg40d39GhAg4DgWOogC3Q2TFPGz WDq3t9BW8EFlNPnnWU2m4Qj8xAwP+ZJfdeF7oeZAi2vMqfsmHSvlgITRt+d0hzy0qirz4hjPoAiJC 9WdTMj70ZVXul2ymsGn8xQHnOtL1JYSfiCCXo/v9gQLKvHIkrWQxzAF2OoM4km/G0W+WiOwDzfsv/ pyIU2b9xg==; Received: from [2001:8b0:10b:1:786a:113:d72e:bf66] (helo=u3832b3a9db3152.ant.amazon.com) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1g2Htw-0003f7-JM; Tue, 18 Sep 2018 15:26:56 +0000 Message-ID: <8e488408b9cc97e67ce1659b0b4cb0a9d8ed4131.camel@infradead.org> Subject: Re: [PATCH 00/22] KEYS: Support TPM-wrapped key and crypto ops From: David Woodhouse To: David Howells Cc: jmorris@namei.org, denkenz@gmail.com, keyrings@vger.kernel.org, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org Date: Tue, 18 Sep 2018 16:26:54 +0100 In-Reply-To: <20342.1537282931@warthog.procyon.org.uk> References: <1537253993.20009.62.camel@infradead.org> <153618445730.7946.10001472635835806478.stgit@warthog.procyon.org.uk> <20342.1537282931@warthog.procyon.org.uk> Content-Type: multipart/signed; micalg="sha-256"; protocol="application/x-pkcs7-signature"; boundary="=-r1U8OTGdPA68lSkFDh54" X-Mailer: Evolution 3.28.1-2 Mime-Version: 1.0 X-SRS-Rewrite: SMTP reverse-path rewritten from by merlin.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-r1U8OTGdPA68lSkFDh54 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, 2018-09-18 at 16:02 +0100, David Howells wrote: > It's meant to be stripping off the PEM wrapper and outputting the DER, bu= t see > below. >=20 > > If I run it on a '-----BEGIN TSS KEY BLOB-----' file I have lying aroun= d, I > > get no output at all. >=20 > I lost a bit from the cover note. It needs "-out -" attaching. >=20 > openssl asn1parse -inform pem -in modulekey1.priv -noout -out - |= wc -c Ah, OK. So it's just a complex base64 decoder :) --=-r1U8OTGdPA68lSkFDh54 Content-Type: application/x-pkcs7-signature; name="smime.p7s" Content-Disposition: attachment; filename="smime.p7s" Content-Transfer-Encoding: base64 MIAGCSqGSIb3DQEHAqCAMIACAQExDzANBglghkgBZQMEAgEFADCABgkqhkiG9w0BBwEAAKCCEFQw ggUxMIIEGaADAgECAhBNRhEyk/HZ7naOeTHWrzuAMA0GCSqGSIb3DQEBCwUAMIGXMQswCQYDVQQG EwJHQjEbMBkGA1UECBMSR3JlYXRlciBNYW5jaGVzdGVyMRAwDgYDVQQHEwdTYWxmb3JkMRowGAYD VQQKExFDT01PRE8gQ0EgTGltaXRlZDE9MDsGA1UEAxM0Q09NT0RPIFJTQSBDbGllbnQgQXV0aGVu dGljYXRpb24gYW5kIFNlY3VyZSBFbWFpbCBDQTAeFw0xNzEyMjEwMDAwMDBaFw0xODEyMjEyMzU5 NTlaMCQxIjAgBgkqhkiG9w0BCQEWE2R3bXcyQGluZnJhZGVhZC5vcmcwggEiMA0GCSqGSIb3DQEB AQUAA4IBDwAwggEKAoIBAQDgzLNWa18DNpGUj/ZeH0Sgz53ESIbzdPw3OJeuNP6jZhxZojbyfxbM hETscxI/Hj6UZ4a7sHm5BkVjlsB1Af2Za/PXUt8MmLAcPMHkMPGunvkUibEvblDvpqMkQZlaZM+t 5PqFmWkbehLaEvbpNY7dmEAAeKh4klTzJzrr5AAzaCQ32cA2e3+DEIv5O5l9ViMIjy/JM+xMQrfX 3PZ0chY1PaVWjg59d4Uno+5LRDbgCnPkKJX4ysBGadibjBGQ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