Home
last modified time | relevance | path

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

/third_party/openssl/crypto/ec/
Dec_lib.c44 ret->cofactor = BN_new(); in EC_GROUP_new()
45 if (ret->cofactor == NULL) in EC_GROUP_new()
56 BN_free(ret->cofactor); in EC_GROUP_new()
106 BN_free(group->cofactor); in EC_GROUP_free()
125 BN_clear_free(group->cofactor); in EC_GROUP_clear_free()
208 if (!BN_copy(dest->cofactor, src->cofactor)) in EC_GROUP_copy()
293 BN_zero(group->cofactor); in ec_guess_cofactor()
316 if (!BN_rshift1(group->cofactor, group->order) /* n/2 */ in ec_guess_cofactor()
317 || !BN_add(group->cofactor, group->cofactor, q) /* q + n/2 */ in ec_guess_cofactor()
319 || !BN_add(group->cofactor, group->cofactor, BN_value_one()) in ec_guess_cofactor()
[all …]
Deck_prn.c73 const BIGNUM *order = NULL, *cofactor = NULL; in ECPKParameters_print() local
139 cofactor = EC_GROUP_get0_cofactor(x); in ECPKParameters_print()
205 if ((cofactor != NULL) && !ASN1_bn_print(bp, "Cofactor: ", cofactor, in ECPKParameters_print()
Dec_curve.c23 unsigned int cofactor; /* promoted to BN_ULONG */ member
3087 || !BN_set_word(x, (BN_ULONG)data->cofactor)) { in ec_group_new_from_data()
3246 const BIGNUM *cofactor = NULL; in ec_curve_nid_from_params() local
3258 cofactor = EC_GROUP_get0_cofactor(group); in ec_curve_nid_from_params()
3319 && (BN_is_zero(cofactor) in ec_curve_nid_from_params()
3320 || BN_is_word(cofactor, (const BN_ULONG)curve.data->cofactor)) in ec_curve_nid_from_params()
Dec_asn1.c137 ASN1_INTEGER *cofactor; member
214 ASN1_OPT(ECPARAMETERS, cofactor, ASN1_INTEGER)
516 ret->cofactor = BN_to_ASN1_INTEGER(tmp, orig = ret->cofactor); in EC_GROUP_get_ecparameters()
517 if (ret->cofactor == NULL) { in EC_GROUP_get_ecparameters()
518 ret->cofactor = orig; in EC_GROUP_get_ecparameters()
801 if (params->cofactor == NULL) { in EC_GROUP_new_from_ecparameters()
804 } else if ((b = ASN1_INTEGER_to_BN(params->cofactor, b)) == NULL) { in EC_GROUP_new_from_ecparameters()
Dec_ameth.c705 int kdf_nid, kdfmd_nid, cofactor; in ecdh_cms_set_kdf_param() local
715 cofactor = 0; in ecdh_cms_set_kdf_param()
717 cofactor = 1; in ecdh_cms_set_kdf_param()
721 if (EVP_PKEY_CTX_set_ecdh_cofactor_mode(pctx, cofactor) <= 0) in ecdh_cms_set_kdf_param()
Dec_mult.c159 if (BN_is_zero(group->cofactor)) { in ec_scalar_mul_ladder()
196 if (!BN_mul(cardinality, group->order, group->cofactor, ctx)) { in ec_scalar_mul_ladder()
431 if (!BN_is_zero(group->order) && !BN_is_zero(group->cofactor)) { in ec_wNAF_mul()
Dec_pmeth.c263 if (BN_is_one(ec_key->group->cofactor)) in pkey_ec_ctrl()
Dec_local.h209 BIGNUM *order, *cofactor; member
Dec2_smpl.c858 if (num > 1 || BN_is_zero(group->order) || BN_is_zero(group->cofactor)) in ec_GF2m_simple_points_mul()
/third_party/boost/libs/hana/example/cppcon_2014/matrix/
Ddet.hpp43 auto cofactor = [=](auto&& m, auto i, auto j) { in __anon6601b1220102()
52 hana::on(hana::make_tuple, hana::partial(cofactor, m, hana::size_c<0>)) in __anon6601b1220202()
/third_party/openssl/doc/man3/
DEC_GROUP_copy.pod27 const BIGNUM *order, const BIGNUM *cofactor);
33 int EC_GROUP_get_cofactor(const EC_GROUP *group, BIGNUM *cofactor, BN_CTX *ctx);
72 parameters include the B<generator>, the B<order> and the B<cofactor>. The B<generator> is a well d…
74 n-1 where n is the B<order>. The B<order> multiplied by the B<cofactor> gives the number of points …
82 EC_GROUP_get_cofactor() retrieves the cofactor of B<group> and copies its value
83 into B<cofactor>. It fails in case B<group> is not fully initialized or if the
84 cofactor is not set (or set to zero).
181 …UP_get_cofactor() returns 0 if the cofactor is not set (or is set to zero) for B<group> or if copy…
193 EC_GROUP_get0_cofactor() returns an internal pointer to the group cofactor.
DEVP_PKEY_CTX_ctrl.pod381 The EVP_PKEY_CTX_set_ecdh_cofactor_mode() macro sets the cofactor mode to
383 cofactor key derivation, 0 to disable it and -1 to clear the stored cofactor
384 mode and fallback to the private key cofactor mode.
386 The EVP_PKEY_CTX_get_ecdh_cofactor_mode() macro returns the cofactor mode for
387 B<ctx> used for ECDH key derivation. Possible values are 1 when cofactor key
/third_party/boost/libs/qvm/test/
Dgold.hpp119 cofactor( T * * a, T (&b)[N][N] ) in cofactor() function
189 ::test_qvm::detail::cofactor(m,b); in inverse()
/third_party/openssl/include/openssl/
Dec.h154 const BIGNUM *order, const BIGNUM *cofactor);
194 int EC_GROUP_get_cofactor(const EC_GROUP *group, BIGNUM *cofactor,
/third_party/openssl/crypto/objects/
Dobjects.txt1578 : dh-cofactor-kdf
/third_party/openssl/crypto/err/
Dopenssl.txt2198 EC_R_UNKNOWN_COFACTOR:164:unknown cofactor
/third_party/openssl/
DCHANGES533 this change, EC_GROUP_set_generator would accept order and/or cofactor as
534 NULL. After this change, only the cofactor parameter can be NULL. It also
/third_party/openssl/test/recipes/30-test_evp_data/
Devppkey.txt17260 # for cofactor-order points, ECC CDH (co-factor ECDH) should fail. Test that.