Home
last modified time | relevance | path

Searched refs:pre_comp (Results 1 – 7 of 7) sorted by relevance

/freebsd/crypto/openssl/crypto/ec/
H A Dec_mult.c432 const EC_PRE_COMP *pre_comp = NULL; in ossl_ec_wNAF_mul() local
477 pre_comp = group->pre_comp.ec; in ossl_ec_wNAF_mul()
478 if (pre_comp && pre_comp->numblocks in ossl_ec_wNAF_mul()
479 && (EC_POINT_cmp(group, generator, pre_comp->points[0], ctx) == in ossl_ec_wNAF_mul()
481 blocksize = pre_comp->blocksize; in ossl_ec_wNAF_mul()
492 if (numblocks > pre_comp->numblocks) in ossl_ec_wNAF_mul()
493 numblocks = pre_comp->numblocks; in ossl_ec_wNAF_mul()
495 pre_points_per_block = (size_t)1 << (pre_comp->w - 1); in ossl_ec_wNAF_mul()
498 if (pre_comp->num != (pre_comp->numblocks * pre_points_per_block)) { in ossl_ec_wNAF_mul()
504 pre_comp = NULL; in ossl_ec_wNAF_mul()
[all …]
H A Decp_nistp224.c1105 const felem pre_comp[][3], felem out[3]) in select_point()
1112 const limb *inlimbs = &pre_comp[i][0][0]; in select_point()
1142 const int mixed, const felem pre_comp[][17][3], in batch_mul()
1211 select_point(digit, 17, pre_comp[num], tmp); in batch_mul()
1423 felem (*pre_comp)[17][3] = NULL; in ossl_ec_GFp_nistp224_points_mul() local
1444 pre = group->pre_comp.nistp224; in ossl_ec_GFp_nistp224_points_mul()
1485 pre_comp = OPENSSL_zalloc(sizeof(*pre_comp) * num_points); in ossl_ec_GFp_nistp224_points_mul()
1489 if ((secrets == NULL) || (pre_comp == NULL) in ossl_ec_GFp_nistp224_points_mul()
1536 felem_assign(pre_comp[i][1][0], x_out); in ossl_ec_GFp_nistp224_points_mul()
1537 felem_assign(pre_comp[i][1][1], y_out); in ossl_ec_GFp_nistp224_points_mul()
[all …]
H A Decp_nistp521.c1547 const felem pre_comp[][3], felem out[3]) in select_point()
1555 const limb *inlimbs = &pre_comp[i][0][0]; in select_point()
1585 const int mixed, const felem pre_comp[][17][3], in batch_mul()
1644 select_point(digit, 17, pre_comp[num], tmp); in batch_mul()
1927 felem (*pre_comp)[17][3] = NULL; in ossl_ec_GFp_nistp521_points_mul() local
1949 pre = group->pre_comp.nistp521; in ossl_ec_GFp_nistp521_points_mul()
1990 pre_comp = OPENSSL_zalloc(sizeof(*pre_comp) * num_points); in ossl_ec_GFp_nistp521_points_mul()
1994 if ((secrets == NULL) || (pre_comp == NULL) in ossl_ec_GFp_nistp521_points_mul()
2044 memcpy(pre_comp[i][1][0], x_out, sizeof(felem)); in ossl_ec_GFp_nistp521_points_mul()
2045 memcpy(pre_comp[i][1][1], y_out, sizeof(felem)); in ossl_ec_GFp_nistp521_points_mul()
[all …]
H A Decp_nistp256.c1637 const smallfelem pre_comp[16][3], smallfelem out[3]) in select_point()
1645 const u64 *inlimbs = (u64 *)&pre_comp[i][0][0]; in select_point()
1675 const int mixed, const smallfelem pre_comp[][17][3], in batch_mul()
1748 select_point(digit, 17, pre_comp[num], tmp); in batch_mul()
2034 smallfelem (*pre_comp)[17][3] = NULL; in ossl_ec_GFp_nistp256_points_mul() local
2057 pre = group->pre_comp.nistp256; in ossl_ec_GFp_nistp256_points_mul()
2097 pre_comp = OPENSSL_malloc(sizeof(*pre_comp) * num_points); in ossl_ec_GFp_nistp256_points_mul()
2101 if ((secrets == NULL) || (pre_comp == NULL) in ossl_ec_GFp_nistp256_points_mul()
2112 memset(pre_comp, 0, sizeof(*pre_comp) * num_points); in ossl_ec_GFp_nistp256_points_mul()
2153 felem_shrink(pre_comp[i][1][0], x_out); in ossl_ec_GFp_nistp256_points_mul()
[all …]
H A Dec_lib.c95 EC_nistz256_pre_comp_free(group->pre_comp.nistz256); in EC_pre_comp_free()
100 EC_nistp224_pre_comp_free(group->pre_comp.nistp224); in EC_pre_comp_free()
103 EC_nistp256_pre_comp_free(group->pre_comp.nistp256); in EC_pre_comp_free()
106 EC_nistp521_pre_comp_free(group->pre_comp.nistp521); in EC_pre_comp_free()
115 EC_ec_pre_comp_free(group->pre_comp.ec); in EC_pre_comp_free()
118 group->pre_comp.ec = NULL; in EC_pre_comp_free()
180 dest->pre_comp.ec = NULL; in EC_GROUP_copy()
184 dest->pre_comp.nistz256 = EC_nistz256_pre_comp_dup(src->pre_comp.nistz256); in EC_GROUP_copy()
189 dest->pre_comp.nistp224 = EC_nistp224_pre_comp_dup(src->pre_comp.nistp224); in EC_GROUP_copy()
192 dest->pre_comp.nistp256 = EC_nistp256_pre_comp_dup(src->pre_comp.nistp256); in EC_GROUP_copy()
[all …]
H A Decp_nistz256.c824 NISTZ256_PRE_COMP *pre_comp; in ecp_nistz256_mult_precompute() local
848 if ((pre_comp = ecp_nistz256_pre_comp_new(group)) == NULL) in ecp_nistz256_mult_precompute()
917 pre_comp->group = group; in ecp_nistz256_mult_precompute()
918 pre_comp->w = w; in ecp_nistz256_mult_precompute()
919 pre_comp->precomp = preComputedTable; in ecp_nistz256_mult_precompute()
920 pre_comp->precomp_storage = precomp_storage; in ecp_nistz256_mult_precompute()
922 SETPRECOMP(group, nistz256, pre_comp); in ecp_nistz256_mult_precompute()
923 pre_comp = NULL; in ecp_nistz256_mult_precompute()
930 EC_nistz256_pre_comp_free(pre_comp); in ecp_nistz256_mult_precompute()
962 const NISTZ256_PRE_COMP *pre_comp = NULL; in ecp_nistz256_points_mul() local
[all …]
H A Dec_local.h276 } pre_comp; member
283 g->pre_comp_type = PCT_##type, g->pre_comp.type = pre
285 g->pre_comp_type == PCT_##type && g->pre_comp.type != NULL