Home
last modified time | relevance | path

Searched refs:cofactor (Results 1 – 11 of 11) sorted by relevance

/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/java/security/spec/
DECParameterSpec_ImplTest.java183 int cofactor = 10; in testGetCofactor() local
185 new ECParameterSpec(curve, generator, order, cofactor); in testGetCofactor()
186 assertEquals(cofactor, ps.getCofactor()); in testGetCofactor()
206 int cofactor = 10; in testGetCurve() local
208 new ECParameterSpec(curve, generator, order, cofactor); in testGetCurve()
231 int cofactor = 10; in testGetGenerator() local
233 new ECParameterSpec(curve, generator, order, cofactor); in testGetGenerator()
256 int cofactor = 10; in testGetOrder() local
258 new ECParameterSpec(curve, generator, order, cofactor); in testGetOrder()
/external/openssl/crypto/ec/
Deck_prn.c155 *order=NULL, *cofactor=NULL; in ECPKParameters_print() local
205 (cofactor = BN_new()) == NULL) in ECPKParameters_print()
235 !EC_GROUP_get_cofactor(x, cofactor, NULL)) in ECPKParameters_print()
259 if (buf_len < (i = (size_t)BN_num_bytes(cofactor))) in ECPKParameters_print()
328 if ((cofactor != NULL) && !ASN1_bn_print(bp, "Cofactor: ", cofactor, in ECPKParameters_print()
347 if (cofactor) in ECPKParameters_print()
348 BN_free(cofactor); in ECPKParameters_print()
Dec_lib.c104 BN_init(&ret->cofactor); in EC_GROUP_new()
135 BN_free(&group->cofactor); in EC_GROUP_free()
158 BN_clear_free(&group->cofactor); in EC_GROUP_clear_free()
220 if (!BN_copy(&dest->cofactor, &src->cofactor)) return 0; in EC_GROUP_copy()
284 …_generator(EC_GROUP *group, const EC_POINT *generator, const BIGNUM *order, const BIGNUM *cofactor) in EC_GROUP_set_generator() argument
304 if (cofactor != NULL) in EC_GROUP_set_generator()
305 { if (!BN_copy(&group->cofactor, cofactor)) return 0; } in EC_GROUP_set_generator()
307 BN_zero(&group->cofactor); in EC_GROUP_set_generator()
328 int EC_GROUP_get_cofactor(const EC_GROUP *group, BIGNUM *cofactor, BN_CTX *ctx) in EC_GROUP_get_cofactor() argument
330 if (!BN_copy(cofactor, &group->cofactor)) in EC_GROUP_get_cofactor()
[all …]
Dec_asn1.c177 ASN1_INTEGER *cofactor; member
248 ASN1_OPT(ECPARAMETERS, cofactor, ASN1_INTEGER)
668 ret->cofactor = BN_to_ASN1_INTEGER(tmp, ret->cofactor); in ec_asn1_group2parameters()
669 if (ret->cofactor == NULL) in ec_asn1_group2parameters()
976 if (params->cofactor == NULL) in ec_asn1_parameters2group()
985 if ((b = ASN1_INTEGER_to_BN(params->cofactor, b)) == NULL) in ec_asn1_parameters2group()
Dec_curve.c82 unsigned int cofactor; /* promoted to BN_ULONG */ member
2014 || !BN_set_word(x, (BN_ULONG)data->cofactor)) in ec_group_new_from_data()
Dec.h238 …generator(EC_GROUP *group, const EC_POINT *generator, const BIGNUM *order, const BIGNUM *cofactor);
260 int EC_GROUP_get_cofactor(const EC_GROUP *group, BIGNUM *cofactor, BN_CTX *ctx);
Dec_lcl.h193 BIGNUM order, cofactor; member
/external/wpa_supplicant_8/src/eap_common/
Deap_pwd_common.c93 BIGNUM *x_candidate = NULL, *rnd = NULL, *cofactor = NULL; in compute_password_element() local
130 ((cofactor = BN_new()) == NULL) || in compute_password_element()
149 if (!EC_GROUP_get_cofactor(grp->group, cofactor, NULL)) { in compute_password_element()
243 if (BN_cmp(cofactor, BN_value_one())) { in compute_password_element()
246 cofactor, NULL)) { in compute_password_element()
275 BN_free(cofactor); in compute_password_element()
/external/wpa_supplicant_8/src/eap_peer/
Deap_pwd.c271 BIGNUM *mask = NULL, *x = NULL, *y = NULL, *cofactor = NULL; in eap_pwd_perform_commit_exchange() local
277 ((cofactor = BN_new()) == NULL) || in eap_pwd_perform_commit_exchange()
284 if (!EC_GROUP_get_cofactor(data->grp->group, cofactor, NULL)) { in eap_pwd_perform_commit_exchange()
345 if (BN_cmp(cofactor, BN_value_one())) { in eap_pwd_perform_commit_exchange()
347 data->server_element, cofactor, NULL)) { in eap_pwd_perform_commit_exchange()
372 if (BN_cmp(cofactor, BN_value_one())) { in eap_pwd_perform_commit_exchange()
373 if (!EC_POINT_mul(data->grp->group, K, NULL, K, cofactor, in eap_pwd_perform_commit_exchange()
446 BN_free(cofactor); in eap_pwd_perform_commit_exchange()
/external/wpa_supplicant_8/src/eap_server/
Deap_server_pwd.c624 BIGNUM *x = NULL, *y = NULL, *cofactor = NULL; in eap_pwd_process_commit_resp() local
632 ((cofactor = BN_new()) == NULL) || in eap_pwd_process_commit_resp()
643 if (!EC_GROUP_get_cofactor(data->grp->group, cofactor, NULL)) { in eap_pwd_process_commit_resp()
665 if (BN_cmp(cofactor, BN_value_one())) { in eap_pwd_process_commit_resp()
667 data->peer_element, cofactor, NULL)) { in eap_pwd_process_commit_resp()
692 if (BN_cmp(cofactor, BN_value_one())) { in eap_pwd_process_commit_resp()
693 if (!EC_POINT_mul(data->grp->group, K, NULL, K, cofactor, in eap_pwd_process_commit_resp()
723 BN_free(cofactor); in eap_pwd_process_commit_resp()
/external/openssl/include/openssl/
Dec.h238 …generator(EC_GROUP *group, const EC_POINT *generator, const BIGNUM *order, const BIGNUM *cofactor);
260 int EC_GROUP_get_cofactor(const EC_GROUP *group, BIGNUM *cofactor, BN_CTX *ctx);