Re: [PATCH v2 19/58] qom: implement property helper for sha384

2023-08-21 Thread Isaku Yamahata
On Mon, Aug 21, 2023 at 10:25:35AM +0100, "Daniel P. Berrangé" wrote: > On Fri, Aug 18, 2023 at 05:50:02AM -0400, Xiaoyao Li wrote: > > From: Isaku Yamahata > > > > Implement property_add_sha384() which converts hex string <-> uint8_t[48] > > It will be used for TDX which uses sha384 for measur

Re: [PATCH v2 19/58] qom: implement property helper for sha384

2023-08-21 Thread Daniel P . Berrangé
On Fri, Aug 18, 2023 at 05:50:02AM -0400, Xiaoyao Li wrote: > From: Isaku Yamahata > > Implement property_add_sha384() which converts hex string <-> uint8_t[48] > It will be used for TDX which uses sha384 for measurement. I think it is likely a better idea to use base64 for the encoding the bina

[PATCH v2 19/58] qom: implement property helper for sha384

2023-08-18 Thread Xiaoyao Li
From: Isaku Yamahata Implement property_add_sha384() which converts hex string <-> uint8_t[48] It will be used for TDX which uses sha384 for measurement. Signed-off-by: Isaku Yamahata Signed-off-by: Xiaoyao Li --- include/qom/object.h | 17 ++ qom/object.c | 76 +++