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

2024-05-23 Thread Jarkko Sakkinen
On Thu May 23, 2024 at 5:26 PM EEST, Jarkko Sakkinen wrote: > On Thu May 23, 2024 at 5:20 PM EEST, Jarkko Sakkinen wrote: > > There's no reason to encode OID_TPMSealedData at run-time, as it never > > changes. > > > > Replace it with an encoded u8-array, which has the same number of > > elements: >

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

2024-05-23 Thread Jarkko Sakkinen
On Thu May 23, 2024 at 5:20 PM EEST, Jarkko Sakkinen wrote: > There's no reason to encode OID_TPMSealedData at run-time, as it never > changes. > > Replace it with an encoded u8-array, which has the same number of > elements: > > 67 81 05 0A 01 05 > > Include OBJECT IDENTIFIER (0x06) tag and

[PATCH v3] 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 an encoded u8-array, which has the same number of elements: 67 81 05 0A 01 05 Include OBJECT IDENTIFIER (0x06) tag and length as the prologue so that the OID can be simply copied to the blob l