Home
last modified time | relevance | path

Searched refs:field (Results 1 – 21 of 21) sorted by relevance

/crypto/ec/
A Decp_oct.c54 if (!BN_nnmod(x, x_, group->field, ctx)) in ossl_ec_GFp_simple_set_compressed_coordinates()
63 if (!BN_mod_sqr(tmp2, x_, group->field, ctx)) in ossl_ec_GFp_simple_set_compressed_coordinates()
65 if (!BN_mod_mul(tmp1, tmp2, x_, group->field, ctx)) in ossl_ec_GFp_simple_set_compressed_coordinates()
71 if (!BN_mod_lshift1_quick(tmp2, x, group->field)) in ossl_ec_GFp_simple_set_compressed_coordinates()
105 if (!BN_mod_sqrt(y, tmp1, group->field, ctx)) { in ossl_ec_GFp_simple_set_compressed_coordinates()
127 kron = BN_kronecker(x, group->field, ctx); in ossl_ec_GFp_simple_set_compressed_coordinates()
140 if (!BN_usub(y, group->field, y)) in ossl_ec_GFp_simple_set_compressed_coordinates()
189 field_len = BN_num_bytes(group->field); in ossl_ec_GFp_simple_point2oct()
312 field_len = BN_num_bytes(group->field); in ossl_ec_GFp_simple_oct2point()
336 if (BN_ucmp(x, group->field) >= 0) { in ossl_ec_GFp_simple_oct2point()
[all …]
A Decp_smpl.c100 group->field = BN_new(); in ossl_ec_GFp_simple_group_init()
104 BN_free(group->field); in ossl_ec_GFp_simple_group_init()
115 BN_free(group->field); in ossl_ec_GFp_simple_group_finish()
122 BN_clear_free(group->field); in ossl_ec_GFp_simple_group_clear_finish()
129 if (!BN_copy(dest->field, src->field)) in ossl_ec_GFp_simple_group_copy()
167 if (!BN_copy(group->field, p)) in ossl_ec_GFp_simple_group_set_curve()
169 BN_set_negative(group->field, 0); in ossl_ec_GFp_simple_group_set_curve()
255 const BIGNUM *p = group->field; in ossl_ec_GFp_simple_group_check_discriminant()
633 p = group->field; in ossl_ec_GFp_simple_add()
817 p = group->field; in ossl_ec_GFp_simple_dbl()
[all …]
A Dec2_smpl.c30 group->field = BN_new(); in ossl_ec_GF2m_simple_group_init()
35 BN_free(group->field); in ossl_ec_GF2m_simple_group_init()
49 BN_free(group->field); in ossl_ec_GF2m_simple_group_finish()
60 BN_clear_free(group->field); in ossl_ec_GF2m_simple_group_clear_finish()
77 if (!BN_copy(dest->field, src->field)) in ossl_ec_GF2m_simple_group_copy()
108 if (!BN_copy(group->field, p)) in ossl_ec_GF2m_simple_group_set_curve()
110 i = BN_GF2m_poly2arr(group->field, group->poly, 6) - 1; in ossl_ec_GF2m_simple_group_set_curve()
147 if (!BN_copy(p, group->field)) in ossl_ec_GF2m_simple_group_get_curve()
173 return BN_num_bits(group->field) - 1; in ossl_ec_GF2m_simple_group_get_degree()
712 return BN_GF2m_mod_div(r, a, b, group->field, ctx); in ossl_ec_GF2m_simple_field_div()
[all …]
A Decp_nist.c144 if (!group->field_mod_func(r, r, group->field, ctx)) in ossl_ec_GFp_nist_field_mul()
169 if (!group->field_mod_func(r, r, group->field, ctx)) in ossl_ec_GFp_nist_field_sqr()
A Dec_asn1.c188 static int ec_asn1_group2fieldid(const EC_GROUP *group, X9_62_FIELDID *field) in ec_asn1_group2fieldid() argument
193 if (group == NULL || field == NULL) in ec_asn1_group2fieldid()
197 ASN1_OBJECT_free(field->fieldType); in ec_asn1_group2fieldid()
198 ASN1_TYPE_free(field->p.other); in ec_asn1_group2fieldid()
202 if ((field->fieldType = OBJ_nid2obj(nid)) == NULL) { in ec_asn1_group2fieldid()
218 field->p.prime = BN_to_ASN1_INTEGER(tmp, NULL); in ec_asn1_group2fieldid()
219 if (field->p.prime == NULL) { in ec_asn1_group2fieldid()
234 field->p.char_two = X9_62_CHARACTERISTIC_TWO_new(); in ec_asn1_group2fieldid()
235 char_two = field->p.char_two; in ec_asn1_group2fieldid()
A Decp_mont.c244 if (!BN_sub(e, group->field, e)) in ossl_ec_GFp_mont_field_inv()
250 if (!BN_mod_exp_mont(r, a, e, group->field, ctx, group->field_data1)) in ossl_ec_GFp_mont_field_inv()
A Dec_lib.c328 if (BN_num_bits(group->order) <= (BN_num_bits(group->field) + 1) / 2 + 3) { in ec_guess_cofactor()
345 if (!BN_set_bit(q, BN_num_bits(group->field) - 1)) in ec_guess_cofactor()
348 if (!BN_copy(q, group->field)) in ec_guess_cofactor()
376 if (group->field == NULL || BN_is_zero(group->field) in EC_GROUP_set_generator()
377 || BN_is_negative(group->field)) { in EC_GROUP_set_generator()
388 || BN_num_bits(order) > BN_num_bits(group->field) + 1) { in EC_GROUP_set_generator()
500 return group->field; in EC_GROUP_get0_field()
A Dec_key.c509 || BN_cmp(x, key->group->field) >= 0 in ec_key_public_range_check()
511 || BN_cmp(y, key->group->field) >= 0) { in ec_key_public_range_check()
A Dec_curve.c3404 len = BN_num_bytes(group->field); in ossl_ec_curve_nid_from_params()
A Dec_mult.c249 group_top = bn_get_top(group->field); in ossl_ec_scalar_mul_ladder()
A Dec_local.h233 BIGNUM *field; member
/crypto/bn/
A Dbn_nist.c370 field = &ossl_bignum_nist_p_192; /* just to make sure */ in BN_nist_mod_192()
373 return BN_nnmod(r, a, field, ctx); in BN_nist_mod_192()
375 i = BN_ucmp(field, a); in BN_nist_mod_192()
510 return BN_nnmod(r, a, field, ctx); in BN_nist_mod_224()
512 i = BN_ucmp(field, a); in BN_nist_mod_224()
682 return BN_nnmod(r, a, field, ctx); in BN_nist_mod_256()
684 i = BN_ucmp(field, a); in BN_nist_mod_256()
919 return BN_nnmod(r, a, field, ctx); in BN_nist_mod_384()
921 i = BN_ucmp(field, a); in BN_nist_mod_384()
1171 return BN_nnmod(r, a, field, ctx); in BN_nist_mod_521()
[all …]
A Dbn_gf2m.c780 BIGNUM *field; in BN_GF2m_mod_inv_arr() local
785 if ((field = BN_CTX_get(ctx)) == NULL) in BN_GF2m_mod_inv_arr()
787 if (!BN_GF2m_arr2poly(p, field)) in BN_GF2m_mod_inv_arr()
790 ret = BN_GF2m_mod_inv(r, xx, field, ctx); in BN_GF2m_mod_inv_arr()
838 BIGNUM *field; in BN_GF2m_mod_div_arr() local
845 if ((field = BN_CTX_get(ctx)) == NULL) in BN_GF2m_mod_div_arr()
847 if (!BN_GF2m_arr2poly(p, field)) in BN_GF2m_mod_div_arr()
850 ret = BN_GF2m_mod_div(r, yy, xx, field, ctx); in BN_GF2m_mod_div_arr()
/crypto/x509/
A Dx509_vpm.c142 #define test_x509_verify_param_copy(field, def) \ argument
143 (to_overwrite || (src->field != def && (to_default || dest->field == def)))
147 #define x509_verify_param_copy(field, def) \ argument
148 if (test_x509_verify_param_copy(field, def)) \
149 dest->field = src->field;
A Dx509name.c170 int X509_NAME_add_entry_by_txt(X509_NAME *name, const char *field, int type, in X509_NAME_add_entry_by_txt() argument
176 ne = X509_NAME_ENTRY_create_by_txt(NULL, field, type, bytes, len); in X509_NAME_add_entry_by_txt()
243 const char *field, int type, in X509_NAME_ENTRY_create_by_txt() argument
250 obj = OBJ_txt2obj(field, 0); in X509_NAME_ENTRY_create_by_txt()
253 "name=%s", field); in X509_NAME_ENTRY_create_by_txt()
/crypto/txt_db/
A Dtxt_db.c147 int TXT_DB_create_index(TXT_DB *db, int field, int (*qual) (OPENSSL_STRING *), in TXT_DB_create_index() argument
154 if (field >= db->num_fields) { in TXT_DB_create_index()
181 lh_OPENSSL_STRING_free(db->index[field]); in TXT_DB_create_index()
182 db->index[field] = idx; in TXT_DB_create_index()
183 db->qual[field] = qual; in TXT_DB_create_index()
/crypto/ts/
A Dts_conf.c455 const char *field, int flag, TS_RESP_CTX *ctx) in ts_CONF_add_flag() argument
457 const char *value = NCONF_get_string(conf, section, field); in ts_CONF_add_flag()
463 ts_CONF_invalid(section, field); in ts_CONF_add_flag()
/crypto/asn1/
A Dtasn_enc.c383 const ASN1_VALUE *field; member
438 tder->field = skitem; in asn1_set_seq_out()
453 (void)sk_const_ASN1_VALUE_set(sk, i, tder->field); in asn1_set_seq_out()
A Dasn1_local.h38 ASN1_VALUE **field; member
/crypto/err/
A Dopenssl.txt33 ASN1_R_FIELD_MISSING:121:field missing
615 EC_R_FIELD_TOO_LARGE:143:field too large
630 EC_R_INVALID_FIELD:103:invalid field
674 EC_R_UNSUPPORTED_FIELD:131:unsupported field
889 OCSP_R_ERROR_IN_NEXTUPDATE_FIELD:122:error in nextupdate field
890 OCSP_R_ERROR_IN_THISUPDATE_FIELD:123:error in thisupdate field
1348 SM2_R_INVALID_FIELD:105:invalid field
1873 X509_R_INVALID_FIELD_NAME:119:invalid field name
/crypto/objects/
A Dobjects.txt54 X9-62_id-fieldType 1 : prime-field
55 X9-62_id-fieldType 2 : characteristic-two-field
56 X9-62_characteristic-two-field 3 : id-characteristic-two-basis

Completed in 59 milliseconds