Re: [PATCH v9 7/9] platform: cznic: turris-omnia-mcu: Add support for digital message signing via debugfs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, May 9, 2024 at 9:57 PM Marek Behún <kabel@xxxxxxxxxx> wrote:
> On Wed, 8 May 2024 14:33:12 +0300
> Andy Shevchenko <andy@xxxxxxxxxx> wrote:
> > On Wed, May 08, 2024 at 12:31:16PM +0200, Marek Behún wrote:


...

> > > +#define OMNIA_MCU_CRYPTO_PUBLIC_KEY_LEN    33
> >
> > 33? Hmm... does it mean (32 + 1)?
>
> Rather (1 + 32), the first byte is 0x02 or 0x03, determining whether
> the y coordinate of the public key elliptic curve point is positive or
> negative, and the rest 32 bytes are the x coordinate.

I hope you used that in v10, i.e.  (1 + 32) with a summary of the
above in the comment.

-- 
With Best Regards,
Andy Shevchenko





[Index of Archives]     [Kernel]     [Gnu Classpath]     [Gnu Crypto]     [DM Crypt]     [Netfilter]     [Bugtraq]
  Powered by Linux