Home
last modified time | relevance | path

Searched refs:new_ctx (Results 1 – 9 of 9) sorted by relevance

/external/openssl/crypto/ec/
Dec2_oct.c94 BN_CTX *new_ctx = NULL; in ec_GF2m_simple_set_compressed_coordinates() local
103 ctx = new_ctx = BN_CTX_new(); in ec_GF2m_simple_set_compressed_coordinates()
155 if (new_ctx != NULL) in ec_GF2m_simple_set_compressed_coordinates()
156 BN_CTX_free(new_ctx); in ec_GF2m_simple_set_compressed_coordinates()
169 BN_CTX *new_ctx = NULL; in ec_GF2m_simple_point2oct() local
213 ctx = new_ctx = BN_CTX_new(); in ec_GF2m_simple_point2oct()
281 if (new_ctx != NULL) in ec_GF2m_simple_point2oct()
282 BN_CTX_free(new_ctx); in ec_GF2m_simple_point2oct()
288 if (new_ctx != NULL) in ec_GF2m_simple_point2oct()
289 BN_CTX_free(new_ctx); in ec_GF2m_simple_point2oct()
[all …]
Decp_smpl.c179 BN_CTX *new_ctx = NULL; in ec_GFp_simple_group_set_curve() local
191 ctx = new_ctx = BN_CTX_new(); in ec_GFp_simple_group_set_curve()
224 if (new_ctx != NULL) in ec_GFp_simple_group_set_curve()
225 BN_CTX_free(new_ctx); in ec_GFp_simple_group_set_curve()
233 BN_CTX *new_ctx = NULL; in ec_GFp_simple_group_get_curve() local
246 ctx = new_ctx = BN_CTX_new(); in ec_GFp_simple_group_get_curve()
275 if (new_ctx) in ec_GFp_simple_group_get_curve()
276 BN_CTX_free(new_ctx); in ec_GFp_simple_group_get_curve()
292 BN_CTX *new_ctx = NULL; in ec_GFp_simple_group_check_discriminant() local
296 ctx = new_ctx = BN_CTX_new(); in ec_GFp_simple_group_check_discriminant()
[all …]
Decp_oct.c73 BN_CTX *new_ctx = NULL; in ec_GFp_simple_set_compressed_coordinates() local
82 ctx = new_ctx = BN_CTX_new(); in ec_GFp_simple_set_compressed_coordinates()
193 if (new_ctx != NULL) in ec_GFp_simple_set_compressed_coordinates()
194 BN_CTX_free(new_ctx); in ec_GFp_simple_set_compressed_coordinates()
203 BN_CTX *new_ctx = NULL; in ec_GFp_simple_point2oct() local
247 ctx = new_ctx = BN_CTX_new(); in ec_GFp_simple_point2oct()
312 if (new_ctx != NULL) in ec_GFp_simple_point2oct()
313 BN_CTX_free(new_ctx); in ec_GFp_simple_point2oct()
319 if (new_ctx != NULL) in ec_GFp_simple_point2oct()
320 BN_CTX_free(new_ctx); in ec_GFp_simple_point2oct()
[all …]
Dec2_smpl.c270 BN_CTX *new_ctx = NULL; in ec_GF2m_simple_group_check_discriminant() local
274 ctx = new_ctx = BN_CTX_new(); in ec_GF2m_simple_group_check_discriminant()
297 if (new_ctx != NULL) in ec_GF2m_simple_group_check_discriminant()
298 BN_CTX_free(new_ctx); in ec_GF2m_simple_group_check_discriminant()
422 BN_CTX *new_ctx = NULL; in ec_GF2m_simple_add() local
440 ctx = new_ctx = BN_CTX_new(); in ec_GF2m_simple_add()
513 if (new_ctx != NULL) in ec_GF2m_simple_add()
514 BN_CTX_free(new_ctx); in ec_GF2m_simple_add()
553 BN_CTX *new_ctx = NULL; in ec_GF2m_simple_is_on_curve() local
569 ctx = new_ctx = BN_CTX_new(); in ec_GF2m_simple_is_on_curve()
[all …]
Dec_check.c63 BN_CTX *new_ctx = NULL; in EC_GROUP_check() local
68 ctx = new_ctx = BN_CTX_new(); in EC_GROUP_check()
118 if (new_ctx != NULL) in EC_GROUP_check()
119 BN_CTX_free(new_ctx); in EC_GROUP_check()
Decp_nist.c133 BN_CTX *new_ctx = NULL; in ec_GFp_nist_group_set_curve() local
137 if ((ctx = new_ctx = BN_CTX_new()) == NULL) return 0; in ec_GFp_nist_group_set_curve()
162 if (new_ctx != NULL) in ec_GFp_nist_group_set_curve()
163 BN_CTX_free(new_ctx); in ec_GFp_nist_group_set_curve()
Decp_mont.c206 BN_CTX *new_ctx = NULL; in ec_GFp_mont_group_set_curve() local
224 ctx = new_ctx = BN_CTX_new(); in ec_GFp_mont_group_set_curve()
256 if (new_ctx != NULL) in ec_GFp_mont_group_set_curve()
257 BN_CTX_free(new_ctx); in ec_GFp_mont_group_set_curve()
Dec_mult.c349 BN_CTX *new_ctx = NULL; in ec_wNAF_mul() local
394 ctx = new_ctx = BN_CTX_new(); in ec_wNAF_mul()
714 if (new_ctx != NULL) in ec_wNAF_mul()
715 BN_CTX_free(new_ctx); in ec_wNAF_mul()
769 BN_CTX *new_ctx = NULL; in ec_wNAF_precompute_mult() local
791 ctx = new_ctx = BN_CTX_new(); in ec_wNAF_precompute_mult()
914 if (new_ctx != NULL) in ec_wNAF_precompute_mult()
915 BN_CTX_free(new_ctx); in ec_wNAF_precompute_mult()
Dec2_mult.c320 BN_CTX *new_ctx = NULL; in ec_GF2m_simple_mul() local
328 ctx = new_ctx = BN_CTX_new(); in ec_GF2m_simple_mul()
371 if (new_ctx != NULL) in ec_GF2m_simple_mul()
372 BN_CTX_free(new_ctx); in ec_GF2m_simple_mul()