Message ID | 20220622091549.31115-1-helei.sig11@bytedance.com (mailing list archive) |
---|---|
Headers | show |
Series | crypto: Introduce ECDSA algorithm | expand |
> On Jun 22, 2022, at 5:15 PM, Lei He <helei.sig11@bytedance.com> wrote: > > This patch introduced ECDSA algorithm for crypto. > > V1 -> V2: > - The reserved function prefix '_' is no longer used. > - When parsing ECDSA key: 1) set errp as early as possible, > 2) use g_autoptr to avoid manually freeing memory, 3) simplified the > code parsing public key for gcrypt. > - When parsing the ECDSA private key, save the public key > info (if any) so that the private key can also be used for > verification. > - Fixed a bug, gcrypt-ecdsa can truncate digest correctly now, > and a related unit-test is added. > - Fixed a bug, nettle-ecdsa can correctly add leading-zero (if needed) > when encoding the signature now. > - Minor tweaks to code style and typo fix. > > V1: > - make the built-in ASN.1 decoder support more ASN.1 types. > - support ECDSA key and signature parsing. > - implement the ECDSA algorithm using nettle and gcrypt respectively. > Ping for: <https://patchew.org/QEMU/20220622091549.31115-1-helei.sig11@bytedance.com/>.