summaryrefslogtreecommitdiff
path: root/eddsa-verify.c
Commit message (Collapse)AuthorAgeFilesLines
* Use ecc_mod_mul_canonical for point comparison.Niels Möller2021-03-131-7/+2
| | | | * eddsa-verify.c (equal_h): Use ecc_mod_mul_canonical.
* Separate result area for ecc_mod_mul and ecc_mod_sqr.Niels Möller2020-11-011-2/+2
| | | | | | | | * ecc-mod-arith.c (ecc_mod_mul, ecc_mod_sqr): Separate argument for scratch area, reducing required size of result area. Update all callers to naïvely keep using result in scratch area. (ecc_mod_pow_2k, ecc_mod_pow_2k_mul): Simplified, also reducing required size of result area.
* Use function pointer to represent eddsa dom prefix.Niels Möller2020-01-021-1/+1
|
* Update eddsa internals to support ed448.Niels Möller2020-01-021-1/+2
|
* Reorganize eddsa, based on patch by Daiki Ueno.Niels Möller2019-12-301-6/+6
| | | | | | | | | | | | | | | | | | | | * eddsa-internal.h (struct ecc_eddsa): New struct for eddsa parameters. * ed25519-sha512.c (_nettle_ed25519_sha512): New parameter struct. * eddsa-expand.c (_eddsa_expand_key): Replace input struct nettle_hash with struct ecc_eddsa, and generalize for ed448. Update all callers. * eddsa-sign.c (_eddsa_sign): Likewise. * eddsa-verify.c (_eddsa_verify): Likewise. * eddsa-compress.c (_eddsa_compress): Store sign bit in most significant bit of last byte, as specified by RFC 8032. * eddsa-decompress.c (_eddsa_decompress): Corresponding update. Also generalize to support ed448, and make validity checks stricter. * testsuite/eddsa-sign-test.c (test_ed25519_sign): New function. (test_main): Use it. * testsuite/eddsa-verify-test.c (test_ed25519): New function. (test_main): Use it.
* Use function pointer rather than calling ecc_add_eh directly.Niels Möller2019-12-181-1/+1
| | | | | * eddsa-verify.c (_eddsa_verify): Use function pointer rather than calling ecc_add_eh directly. Preparation for eddsa over curve448.
* abi: explicitly export intended symbols and hide othersNikos Mavrogiannopoulos2018-07-071-0/+1
| | | | | | | | | | | | | This adds all exported symbols in the map files explicitly under the following rules: - Symbols mentioned in internal headers go in a section which is valid only for testing, and linking with these symbols will break in library updates. - Symbols mentioned in installed headers go in the exported sections and are considered part of the ABI. - All internal symbols move to internal headers. - The _nettle_md5_compress and _nettle_sha1_compress become exported without the _nettle prefix, due to existing usage.
* Tweaked argument order for _eddsa_verify.Niels Möller2014-10-181-1/+1
|
* Better point compare for _eddsa_varify.Niels Möller2014-10-141-17/+30
|
* Implemented _eddsa_verify. Almost correct.Niels Möller2014-10-141-0/+120