RE: [PATCH 3/4] image-fit-sig: Remove padding check

2024-09-23 Thread ChiaWei Wang
Hi Simon, > -Original Message- > From: Simon Glass > Sent: Saturday, September 21, 2024 12:02 AM> > > Hi, > > On Mon, 2 Sept 2024 at 07:33, Chia-Wei Wang > wrote: > > > > The padding algorithm is not mandatory for all signing algorithm. > > > > For example, ECDSA does not require a pad

Re: [PATCH 3/4] image-fit-sig: Remove padding check

2024-09-20 Thread Simon Glass
Hi, On Mon, 2 Sept 2024 at 07:33, Chia-Wei Wang wrote: > > The padding algorithm is not mandatory for all signing algorithm. > > For example, ECDSA does not require a padding method. The RSA case > which needs PKCS padding, the belonging info->crypto() also has the > check on the validity of info

[PATCH 3/4] image-fit-sig: Remove padding check

2024-09-01 Thread Chia-Wei Wang
The padding algorithm is not mandatory for all signing algorithm. For example, ECDSA does not require a padding method. The RSA case which needs PKCS padding, the belonging info->crypto() also has the check on the validity of info->padding(). Thus, remove the info->padding check from the upper, g