Lines Matching refs:NULL

52     EC_PRE_COMP *ret = NULL;  in ec_pre_comp_new()
55 return NULL; in ec_pre_comp_new()
58 if (ret == NULL) in ec_pre_comp_new()
67 return NULL; in ec_pre_comp_new()
75 if (pre != NULL) in EC_ec_pre_comp_dup()
84 if (pre == NULL) in EC_ec_pre_comp_free()
93 if (pre->points != NULL) { in EC_ec_pre_comp_free()
96 for (pts = pre->points; *pts != NULL; pts++) in EC_ec_pre_comp_free()
144 EC_POINT *p = NULL; in ossl_ec_scalar_mul_ladder()
145 EC_POINT *s = NULL; in ossl_ec_scalar_mul_ladder()
146 BIGNUM *k = NULL; in ossl_ec_scalar_mul_ladder()
147 BIGNUM *lambda = NULL; in ossl_ec_scalar_mul_ladder()
148 BIGNUM *cardinality = NULL; in ossl_ec_scalar_mul_ladder()
152 if (point != NULL && EC_POINT_is_at_infinity(group, point)) in ossl_ec_scalar_mul_ladder()
166 if (((p = EC_POINT_new(group)) == NULL) in ossl_ec_scalar_mul_ladder()
167 || ((s = EC_POINT_new(group)) == NULL)) { in ossl_ec_scalar_mul_ladder()
172 if (point == NULL) { in ossl_ec_scalar_mul_ladder()
191 if (k == NULL) { in ossl_ec_scalar_mul_ladder()
209 if ((bn_wexpand(k, group_top + 2) == NULL) in ossl_ec_scalar_mul_ladder()
210 || (bn_wexpand(lambda, group_top + 2) == NULL)) { in ossl_ec_scalar_mul_ladder()
250 if ((bn_wexpand(s->X, group_top) == NULL) in ossl_ec_scalar_mul_ladder()
251 || (bn_wexpand(s->Y, group_top) == NULL) in ossl_ec_scalar_mul_ladder()
252 || (bn_wexpand(s->Z, group_top) == NULL) in ossl_ec_scalar_mul_ladder()
253 || (bn_wexpand(r->X, group_top) == NULL) in ossl_ec_scalar_mul_ladder()
254 || (bn_wexpand(r->Y, group_top) == NULL) in ossl_ec_scalar_mul_ladder()
255 || (bn_wexpand(r->Z, group_top) == NULL) in ossl_ec_scalar_mul_ladder()
256 || (bn_wexpand(p->X, group_top) == NULL) in ossl_ec_scalar_mul_ladder()
257 || (bn_wexpand(p->Y, group_top) == NULL) in ossl_ec_scalar_mul_ladder()
258 || (bn_wexpand(p->Z, group_top) == NULL)) { in ossl_ec_scalar_mul_ladder()
264 if (!p->Z_is_one && (group->meth->make_affine == NULL in ossl_ec_scalar_mul_ladder()
408 const EC_POINT *generator = NULL; in ossl_ec_wNAF_mul()
409 EC_POINT *tmp = NULL; in ossl_ec_wNAF_mul()
417 size_t *wsize = NULL; /* individual window sizes */ in ossl_ec_wNAF_mul()
418 signed char **wNAF = NULL; /* individual wNAFs */ in ossl_ec_wNAF_mul()
419 size_t *wNAF_len = NULL; in ossl_ec_wNAF_mul()
422 EC_POINT **val = NULL; /* precomputation */ in ossl_ec_wNAF_mul()
424 EC_POINT ***val_sub = NULL; /* pointers to sub-arrays of 'val' or in ossl_ec_wNAF_mul()
426 const EC_PRE_COMP *pre_comp = NULL; in ossl_ec_wNAF_mul()
438 if ((scalar != group->order) && (scalar != NULL) && (num == 0)) { in ossl_ec_wNAF_mul()
447 return ossl_ec_scalar_mul_ladder(group, r, scalar, NULL, ctx); in ossl_ec_wNAF_mul()
449 if ((scalar == NULL) && (num == 1) && (scalars[0] != group->order)) { in ossl_ec_wNAF_mul()
462 if (scalar != NULL) { in ossl_ec_wNAF_mul()
464 if (generator == NULL) { in ossl_ec_wNAF_mul()
498 pre_comp = NULL; in ossl_ec_wNAF_mul()
514 if (wNAF != NULL) in ossl_ec_wNAF_mul()
515 wNAF[0] = NULL; /* preliminary pivot */ in ossl_ec_wNAF_mul()
517 if (wsize == NULL || wNAF_len == NULL || wNAF == NULL || val_sub == NULL) in ossl_ec_wNAF_mul()
531 wNAF[i + 1] = NULL; /* make sure we always have a pivot */ in ossl_ec_wNAF_mul()
535 if (wNAF[i] == NULL) in ossl_ec_wNAF_mul()
544 if (pre_comp == NULL) { in ossl_ec_wNAF_mul()
551 signed char *tmp_wNAF = NULL; in ossl_ec_wNAF_mul()
577 wNAF[num + 1] = NULL; in ossl_ec_wNAF_mul()
625 wNAF[i + 1] = NULL; in ossl_ec_wNAF_mul()
627 if (wNAF[i] == NULL) { in ossl_ec_wNAF_mul()
635 if (*tmp_points == NULL) { in ossl_ec_wNAF_mul()
655 if (val == NULL) in ossl_ec_wNAF_mul()
657 val[num_val] = NULL; /* pivot element */ in ossl_ec_wNAF_mul()
665 if (*v == NULL) in ossl_ec_wNAF_mul()
675 if ((tmp = EC_POINT_new(group)) == NULL) in ossl_ec_wNAF_mul()
705 if (group->meth->points_make_affine == NULL in ossl_ec_wNAF_mul()
781 if (wNAF != NULL) { in ossl_ec_wNAF_mul()
784 for (w = wNAF; *w != NULL; w++) in ossl_ec_wNAF_mul()
789 if (val != NULL) { in ossl_ec_wNAF_mul()
790 for (v = val; *v != NULL; v++) in ossl_ec_wNAF_mul()
822 EC_POINT *tmp_point = NULL, *base = NULL, **var; in ossl_ec_wNAF_precompute_mult()
825 EC_POINT **points = NULL; in ossl_ec_wNAF_precompute_mult()
830 BN_CTX *new_ctx = NULL; in ossl_ec_wNAF_precompute_mult()
835 if ((pre_comp = ec_pre_comp_new(group)) == NULL) in ossl_ec_wNAF_precompute_mult()
839 if (generator == NULL) { in ossl_ec_wNAF_precompute_mult()
845 if (ctx == NULL) in ossl_ec_wNAF_precompute_mult()
848 if (ctx == NULL) in ossl_ec_wNAF_precompute_mult()
855 if (order == NULL) in ossl_ec_wNAF_precompute_mult()
885 if (points == NULL) in ossl_ec_wNAF_precompute_mult()
889 var[num] = NULL; /* pivot */ in ossl_ec_wNAF_precompute_mult()
891 if ((var[i] = EC_POINT_new(group)) == NULL) { in ossl_ec_wNAF_precompute_mult()
897 if ((tmp_point = EC_POINT_new(group)) == NULL in ossl_ec_wNAF_precompute_mult()
898 || (base = EC_POINT_new(group)) == NULL) { in ossl_ec_wNAF_precompute_mult()
944 if (group->meth->points_make_affine == NULL in ossl_ec_wNAF_precompute_mult()
953 points = NULL; in ossl_ec_wNAF_precompute_mult()
956 pre_comp = NULL; in ossl_ec_wNAF_precompute_mult()
969 for (p = points; *p != NULL; p++) in ossl_ec_wNAF_precompute_mult()