Re: [PATCH v2] KEYS: trusted: Use ASN.1 encoded OID

2024-05-23 Thread Jarkko Sakkinen
On Thu May 23, 2024 at 4:39 PM EEST, David Howells wrote: > Jarkko Sakkinen wrote: > > > There's no reason to encode OID_TPMSealedData at run-time, as it never > > changes. > > > > Replace it with the encoded version, which has exactly the same size: > > > > 67 81 05 0A 01 05 > > > > Includ

Re: [PATCH v2] KEYS: trusted: Use ASN.1 encoded OID

2024-05-23 Thread Jarkko Sakkinen
On Thu May 23, 2024 at 4:36 PM EEST, David Howells wrote: > Jarkko Sakkinen wrote: > > > There's no reason to encode OID_TPMSealedData at run-time, as it never > > changes. > > > > Replace it with the encoded version, which has exactly the same size: > > > > 67 81 05 0A 01 05 > > > > Includ

Re: [PATCH v2] KEYS: trusted: Use ASN.1 encoded OID

2024-05-23 Thread Jarkko Sakkinen
On Thu May 23, 2024 at 4:41 PM EEST, Ben Boeckel wrote: > On Thu, May 23, 2024 at 16:23:37 +0300, Jarkko Sakkinen wrote: > > There's no reason to encode OID_TPMSealedData at run-time, as it never > > changes. > > > > Replace it with the encoded version, which has exactly the same size: > > > >

Re: [PATCH v2] KEYS: trusted: Use ASN.1 encoded OID

2024-05-23 Thread Ben Boeckel
On Thu, May 23, 2024 at 16:23:37 +0300, Jarkko Sakkinen wrote: > There's no reason to encode OID_TPMSealedData at run-time, as it never > changes. > > Replace it with the encoded version, which has exactly the same size: > > 67 81 05 0A 01 05 Is it the same size? It looks considerably smal

Re: [PATCH v2] KEYS: trusted: Use ASN.1 encoded OID

2024-05-23 Thread David Howells
Jarkko Sakkinen wrote: > There's no reason to encode OID_TPMSealedData at run-time, as it never > changes. > > Replace it with the encoded version, which has exactly the same size: > > 67 81 05 0A 01 05 > > Include OBJECT IDENTIFIER (0x06) tag and length as the epilogue so that > the OID

Re: [PATCH v2] KEYS: trusted: Use ASN.1 encoded OID

2024-05-23 Thread David Howells
Jarkko Sakkinen wrote: > There's no reason to encode OID_TPMSealedData at run-time, as it never > changes. > > Replace it with the encoded version, which has exactly the same size: > > 67 81 05 0A 01 05 > > Include OBJECT IDENTIFIER (0x06) tag and length as the epilogue so that > the OID

[PATCH v2] KEYS: trusted: Use ASN.1 encoded OID

2024-05-23 Thread Jarkko Sakkinen
There's no reason to encode OID_TPMSealedData at run-time, as it never changes. Replace it with the encoded version, which has exactly the same size: 67 81 05 0A 01 05 Include OBJECT IDENTIFIER (0x06) tag and length as the epilogue so that the OID can be simply copied to the blob. Signe