libdef/libecc: update to latest version
modified external/libder/derdump/derdump.c
@@ -6,6 +6,7 @@
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -26,10 +27,14 @@ main(int argc, char *argv[])
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -43,7 +48,8 @@ main(int argc, char *argv[])
|
|
|
|
|
|
| - | |
| + | |
| + | |
|
|
|
|
|
modified external/libder/libder/libder_obj.c
@@ -276,7 +276,7 @@ libder_obj_unlink(struct libder_object *obj)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -296,9 +296,13 @@ libder_obj_append(struct libder_object *parent, struct libder_object *child)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -313,7 +317,6 @@ libder_obj_append(struct libder_object *parent, struct libder_object *child)
|
|
|
|
|
|
| - | |
|
|
|
|
|
@@ -717,6 +720,8 @@ libder_obj_coalesce_children(struct libder_object *obj, struct libder_ctx *ctx)
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
@@ -733,18 +738,18 @@ libder_obj_coalesce_children(struct libder_object *obj, struct libder_ctx *ctx)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -781,7 +786,6 @@ libder_obj_coalesce_children(struct libder_object *obj, struct libder_ctx *ctx)
|
|
|
|
|
|
| - | |
|
|
|
|
|
@@ -789,6 +793,7 @@ libder_obj_coalesce_children(struct libder_object *obj, struct libder_ctx *ctx)
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -805,6 +810,8 @@ libder_obj_coalesce_children(struct libder_object *obj, struct libder_ctx *ctx)
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
@@ -893,6 +900,10 @@ libder_obj_normalize_boolean(struct libder_object *obj)
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -931,6 +942,8 @@ libder_obj_normalize_integer(struct libder_object *obj)
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
@@ -952,7 +965,7 @@ libder_obj_tag_compare(const struct libder_tag *lhs, const struct libder_tag *rh
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -1001,7 +1014,7 @@ libder_obj_tag_compare(const struct libder_tag *lhs, const struct libder_tag *rh
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified external/libder/libder/libder_private.h
@@ -83,7 +83,7 @@ static inline void
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -117,7 +117,7 @@ libder_type_is(const struct libder_tag *type, uint8_t utype)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified external/libder/libder/libder_write.c
@@ -177,6 +177,7 @@ libder_write(struct libder_ctx *ctx, struct libder_object *root, uint8_t *buf,
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -204,6 +205,7 @@ libder_write(struct libder_ctx *ctx, struct libder_object *root, uint8_t *buf,
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -214,7 +216,8 @@ libder_write(struct libder_ctx *ctx, struct libder_object *root, uint8_t *buf,
|
|
|
|
|
|
| - | |
| + | |
| + | |
|
|
|
|
|
modified external/libder/tests/fuzz_stream.c
@@ -34,7 +34,7 @@ supply_thread(void *data)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified external/libder/tests/make_corpus.c
@@ -82,7 +82,7 @@ write_one(const struct fuzz_params *params, const struct seed *seed, int dirfd,
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified external/libder/tests/test_privkey.c
@@ -68,7 +68,6 @@ test_construction(struct libder_ctx *ctx, const uint8_t *buf, size_t bufsz)
|
|
|
|
|
|
| - | |
|
|
|
|
|
@@ -129,6 +128,7 @@ main(int argc, char *argv[])
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -147,7 +147,7 @@ main(int argc, char *argv[])
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified external/libder/tests/test_pubkey.c
@@ -97,6 +97,7 @@ main(int argc, char *argv[])
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -115,7 +116,7 @@ main(int argc, char *argv[])
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified external/libecc/include/libecc/nn/nn_logical.h
@@ -16,6 +16,10 @@
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -30,5 +34,49 @@ ATTRIBUTE_WARN_UNUSED_RET int nn_not(nn_t B, nn_src_t A);
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
modified external/libecc/include/libecc/words/types.h
@@ -52,6 +52,14 @@
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified external/libecc/src/arithmetic_tests/arithmetic_tests.c
@@ -1222,7 +1222,7 @@ int main(int argc, char *argv[])
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified external/libecc/src/curves/prj_pt.c
@@ -1319,7 +1319,7 @@ ATTRIBUTE_WARN_UNUSED_RET static int _prj_pt_mul_ltr_monty_dbl_add_always(prj_pt
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -1375,7 +1375,7 @@ ATTRIBUTE_WARN_UNUSED_RET static int _prj_pt_mul_ltr_monty_dbl_add_always(prj_pt
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -1393,13 +1393,13 @@ ATTRIBUTE_WARN_UNUSED_RET static int _prj_pt_mul_ltr_monty_dbl_add_always(prj_pt
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
| - | |
| + | |
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -1466,7 +1466,7 @@ ATTRIBUTE_WARN_UNUSED_RET static int _prj_pt_mul_ltr_monty_dbl_add_always(prj_pt
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -1529,7 +1529,7 @@ err1:
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -1571,7 +1571,7 @@ ATTRIBUTE_WARN_UNUSED_RET static int _prj_pt_mul_ltr_monty_ladder(prj_pt_t out,
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -1630,7 +1630,7 @@ ATTRIBUTE_WARN_UNUSED_RET static int _prj_pt_mul_ltr_monty_ladder(prj_pt_t out,
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -1658,13 +1658,13 @@ ATTRIBUTE_WARN_UNUSED_RET static int _prj_pt_mul_ltr_monty_ladder(prj_pt_t out,
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
| - | |
| + | |
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified external/libecc/src/nn/nn_logical.c
@@ -570,7 +570,7 @@ int nn_getbit(nn_src_t in, bitcnt_t bit, u8 *bitval)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified external/libecc/src/nn/nn_mod_pow.c
@@ -41,7 +41,7 @@ ATTRIBUTE_WARN_UNUSED_RET static int _nn_exp_monty_ladder_ltr(nn_t out, nn_src_t
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -65,7 +65,7 @@ ATTRIBUTE_WARN_UNUSED_RET static int _nn_exp_monty_ladder_ltr(nn_t out, nn_src_t
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -101,13 +101,13 @@ ATTRIBUTE_WARN_UNUSED_RET static int _nn_exp_monty_ladder_ltr(nn_t out, nn_src_t
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
| - | |
| + | |
|
|
| - | |
| + | |
|
|
|
|
|
modified external/libecc/src/sig/sig_algs.c
@@ -1030,7 +1030,7 @@ ATTRIBUTE_WARN_UNUSED_RET static int _bubble_sort(verify_batch_scratch_pad *elem
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified external/libecc/src/wycheproof_tests/libecc_wycheproof.c
@@ -114,14 +114,14 @@ static int check_wycheproof_ecdsa(void)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -135,7 +135,7 @@ static int check_wycheproof_ecdsa(void)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -232,14 +232,14 @@ static int check_wycheproof_eddsa(void)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -254,7 +254,7 @@ static int check_wycheproof_eddsa(void)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -321,7 +321,7 @@ static int check_wycheproof_xdh(void)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -332,7 +332,7 @@ static int check_wycheproof_xdh(void)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -343,7 +343,7 @@ static int check_wycheproof_xdh(void)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -354,7 +354,7 @@ static int check_wycheproof_xdh(void)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -391,7 +391,7 @@ static int check_wycheproof_xdh(void)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -446,7 +446,7 @@ static int check_wycheproof_xdh(void)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -478,7 +478,7 @@ static int check_wycheproof_xdh(void)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -664,7 +664,7 @@ static int check_wycheproof_ecdh(void)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -689,7 +689,7 @@ static int check_wycheproof_ecdh(void)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -707,7 +707,7 @@ static int check_wycheproof_ecdh(void)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -763,7 +763,7 @@ static int check_wycheproof_hmac(void)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -781,7 +781,7 @@ static int check_wycheproof_hmac(void)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -803,35 +803,35 @@ int main(int argc, char *argv[])
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
| - | |
| + | |
|
|
| - | |
| + | |
|
|
|
|
|
|
| - | |
| + | |
|
|
| - | |
| + | |
|
|
|
|
|
|
| - | |
| + | |
|
|
| - | |
| + | |
|
|
|
|
|
|
| - | |
| + | |
|
|
| - | |
| + | |
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified external/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
@@ -367941,13 +367941,13 @@ ATTRIBUTE_USED static const wycheproof_ecdsa_test *wycheproof_ecdsa_all_tests[]
|
|
|
|
|
|
| - | |
| + | |
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -557616,13 +557616,13 @@ ATTRIBUTE_USED static const wycheproof_ecdh_test *wycheproof_ecdh_all_tests[] =
|
|
|
|
|
|
| - | |
| + | |
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -565463,11 +565463,11 @@ ATTRIBUTE_USED static const wycheproof_eddsa_test *wycheproof_eddsa_all_tests[]
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -692009,11 +692009,11 @@ ATTRIBUTE_USED static const wycheproof_xdh_test *wycheproof_xdh_all_tests[] = {
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -728064,11 +728064,11 @@ ATTRIBUTE_USED static const wycheproof_hmac_test *wycheproof_hmac_all_tests[] =
|
|
|
|
|
|
| - | |
| + | |
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
|