Home
last modified time | relevance | path

Searched full:curves (Results 1 – 25 of 169) sorted by relevance

1234567

/freebsd-src/crypto/openssl/test/ssl-tests/
H A D14-curves.cnf.in15 my @curves = ("prime256v1", "secp384r1", "secp521r1");
19 push @curves, @curves_no_fips if !$fips_mode;
21 #Curves *only* suitable for use in TLSv1.3
25 push @curves, @curves_tls_1_3;
55 foreach (0..$#curves) {
56 my $curve = $curves[$_];
60 "Curves" => $curve,
66 "Curves" => $curve
80 "Curves" => $curve,
86 "Curves" => $curve
[all …]
H A D14-curves.cnf112 Curves = prime256v1
118 Curves = prime256v1
141 Curves = secp384r1
147 Curves = secp384r1
170 Curves = secp521r1
176 Curves = secp521r1
199 Curves = X25519
205 Curves = X25519
228 Curves = X448
234 Curves = X448
[all …]
/freebsd-src/crypto/openssl/crypto/evp/
H A Dec_support.c21 /* prime field curves */
22 /* secg curves */
36 /* X9.62 curves */
44 /* characteristic two field curves */
45 /* NIST/SECG curves */
64 /* X9.62 curves */
82 * the WAP/WTLS curves [unlike SECG, spec has its own OIDs for curves
96 /* IPSec curves */
99 /* brainpool curves */
/freebsd-src/crypto/openssl/doc/man3/
H A DEC_GROUP_new.pod90 B<irreducible polynomial>. All such curves with OpenSSL use a trinomial or a
138 above, there are also a number of predefined curves that are available. In order
139 to obtain a list of all of the predefined curves, call the function
142 I<r> array with information about the built-in curves. If I<nitems> is less than
143 the total number of curves available, then the first I<nitems> curves will be
144 returned. Otherwise the total number of curves will be provided. The return
145 value is the total number of curves available (whether that number has been
147 do nothing other than return the total number of curves available.
185 EC_get_builtin_curves() returns the number of built-in curves that are
H A DEC_GROUP_copy.pod147 built-in curves within the library provide seed values that can be obtained. It is also possible to…
159 … the discriminant is given by the formula 4*a^3 + 27*b^2 whilst for F2^m curves the discriminant is
167 …() determines if the group's domain parameters match one of the built-in curves supported by the l…
170 … lookup the name of the curve that matches the group domain parameters. The built-in curves contain
171 aliases, so that multiple NID's can map to the same domain parameters. For such curves it is unspec…
173 …nist_only> is 1 it will only look for NIST approved curves, otherwise it searches all built-in cur…
179 …C_GROUP_get_trinomial_basis() and EC_GROUP_get_pentanomial_basis() should only be called for curves
218 EC_GROUP_get_field_type() returns either B<NID_X9_62_prime_field> for prime curves
219 or B<NID_X9_62_characteristic_two_field> for binary curves;
227 …eturns an internal pointer to the group field. For curves over GF(p), this is the modulus; for cur…
[all …]
H A DEC_GFp_simple_method.pod38 For F2^m curves there is only one implementation choice, i.e. EC_GF2_simple_method.
40 For Fp curves the lowest common denominator implementation is the EC_GFp_simple_method implementati…
43 offers an implementation optimised for use with NIST recommended curves (NIST curves are available …
47 optimised implementations for the NIST P224, P256 and P521 curves respectively. Note, however, that…
H A DEVP_PKEY_get_field_type.pod20 for prime curves or B<NID_X9_62_characteristic_two_field> for binary curves;
/freebsd-src/secure/lib/libcrypto/man/man3/
H A DEC_GROUP_new.3227 \&\fBirreducible polynomial\fR. All such curves with OpenSSL use a trinomial or a
275 above, there are also a number of predefined curves that are available. In order
276 to obtain a list of all of the predefined curves, call the function
279 \&\fIr\fR array with information about the built-in curves. If \fInitems\fR is less than
280 the total number of curves available, then the first \fInitems\fR curves will be
281 returned. Otherwise the total number of curves will be provided. The return
282 value is the total number of curves available (whether that number has been
284 do nothing other than return the total number of curves available.
323 \&\fBEC_get_builtin_curves()\fR returns the number of built-in curves that are
H A DEC_GROUP_copy.3286 built-in curves within the library provide seed values that can be obtained. It is also possible to…
298 … the discriminant is given by the formula 4*a^3 + 27*b^2 whilst for F2^m curves the discriminant is
306 …fR determines if the group's domain parameters match one of the built-in curves supported by the l…
309 … lookup the name of the curve that matches the group domain parameters. The built-in curves contain
310 aliases, so that multiple \s-1NID\s0's can map to the same domain parameters. For such curves it is…
312 …\fR is 1 it will only look for \s-1NIST\s0 approved curves, otherwise it searches all built-in cur…
318 …et_trinomial_basis()\fR and \fBEC_GROUP_get_pentanomial_basis()\fR should only be called for curves
356 \&\fBEC_GROUP_get_field_type()\fR returns either \fBNID_X9_62_prime_field\fR for prime curves
357 or \fBNID_X9_62_characteristic_two_field\fR for binary curves;
365 …rns an internal pointer to the group field. For curves over \s-1GF\s0(p), this is the modulus; for…
[all …]
H A DEC_GFp_simple_method.3174 For F2^m curves there is only one implementation choice, i.e. EC_GF2_simple_method.
176 For Fp curves the lowest common denominator implementation is the EC_GFp_simple_method implementati…
179 offers an implementation optimised for use with \s-1NIST\s0 recommended curves (\s-1NIST\s0 curves
183 optimised implementations for the \s-1NIST P224, P256\s0 and P521 curves respectively. Note, howeve…
/freebsd-src/crypto/openssl/apps/
H A Decparam.c71 EC_builtin_curve *curves = NULL; in list_builtin_curves() local
74 curves = app_malloc((int)sizeof(*curves) * crv_len, "list curves"); in list_builtin_curves()
75 if (!EC_get_builtin_curves(curves, crv_len)) in list_builtin_curves()
79 const char *comment = curves[n].comment; in list_builtin_curves()
80 const char *sname = OBJ_nid2sn(curves[n].nid); in list_builtin_curves()
92 OPENSSL_free(curves); in list_builtin_curves()
313 * for named curves. This can be achieved using: in ecparam_main()
/freebsd-src/crypto/openssl/test/recipes/
H A D70-test_tls13cookie.t49 $proxy->serverflags("-curves X25519") if !disabled("ec");
64 $proxy->clientflags("-curves ffdhe3072:ffdhe2048");
65 $proxy->serverflags("-curves ffdhe2048");
67 $proxy->clientflags("-curves P-256:X25519");
68 $proxy->serverflags("-curves X25519");
H A D70-test_tls13hrr.t49 $proxy->serverflags("-curves ffdhe3072");
51 $proxy->serverflags("-curves P-256");
62 $proxy->serverflags("-curves ffdhe3072");
64 $proxy->serverflags("-curves P-256");
76 $proxy->serverflags("-curves ffdhe3072");
78 $proxy->serverflags("-curves P-256");
H A D70-test_tls13psk.t69 $proxy->serverflags("-curves ffdhe3072");
71 $proxy->serverflags("-curves P-256");
88 $proxy->serverflags("-curves ffdhe3072");
90 $proxy->serverflags("-curves P-256");
H A D70-test_tls13kexmodes.t275 $proxy->serverflags("-curves P-256");
291 $proxy->serverflags("-curves P-256");
307 $proxy->clientflags("-allow_no_dhe_kex -curves P-384 -sess_in ".$session);
308 $proxy->serverflags("-allow_no_dhe_kex -curves P-256");
321 $proxy->clientflags("-curves P-384 -sess_in ".$session);
322 $proxy->serverflags("-curves P-256");
/freebsd-src/crypto/openssl/test/
H A Decdsatest.c32 static EC_builtin_curve *curves = NULL; variable
101 return TEST_skip("skip non approved curves"); in x9_62_tests()
199 nid = curves[n].nid; in test_builtin()
201 /* skip built-in curves where ord(G) is not prime */ in test_builtin()
208 * skip SM2 curve if 'as' is equal to EVP_PKEY_EC or, skip all curves in test_builtin()
394 TEST_note("Elliptic curves are disabled."); in setup_tests()
400 /* get a list of all internal curves */ in setup_tests()
402 if (!TEST_ptr(curves = OPENSSL_malloc(sizeof(*curves) * crv_len)) in setup_tests()
403 || !TEST_true(EC_get_builtin_curves(curves, crv_len))) { in setup_tests()
421 OPENSSL_free(curves); in cleanup_tests()
H A Dec_internal_test.c22 static EC_builtin_curve *curves = NULL; variable
172 int nid = curves[n].nid; in field_tests_default()
400 int nid = curves[n].nid; in ecpkparams_i2d2i_test()
439 if (!TEST_ptr(curves = OPENSSL_malloc(sizeof(*curves) * crv_len)) in setup_tests()
440 || !TEST_true(EC_get_builtin_curves(curves, crv_len))) in setup_tests()
461 OPENSSL_free(curves); in cleanup_tests()
/freebsd-src/crypto/openssl/demos/bio/
H A Dconnect.cnf11 # Only support 3 curves
12 Curves = P-521:P-384:P-256
H A Daccept.cnf11 # Only support 3 curves
12 Curves = P-521:P-384:P-256
H A Dcmod.cnf21 # Only support 3 curves
22 Curves = P-521:P-384:P-256
/freebsd-src/contrib/bearssl/src/ssl/
H A Dssl_hs_client.t0394 \ Length of Supported Curves extension.
395 : ext-supported-curves-length ( -- len )
396 supported-curves dup if
407 supported-curves if 6 else 0 then ;
432 ext-supported-curves-length + ext-point-format-length +
517 \ TODO: add an API to specify preference order for curves.
518 \ Right now we send Curve25519 first, then other curves in
520 ext-supported-curves-length dup if
524 supported-curves 0
714 ext-supported-curves-length { ok-curves }
[all …]
H A Dssl_hs_server.t0405 addr-ctx: curves
524 \ Read the Supported Curves extension.
525 : read-supported-curves ( lim -- lim )
532 \ Get all supported curves.
533 0 addr-curves set32
536 1 swap << addr-curves get32 or addr-curves set32
732 0x800000 addr-curves set32
755 \ Supported Curves.
757 read-supported-curves
842 \ Filter supported curves. If there is no common curve between
[all …]
/freebsd-src/contrib/bearssl/inc/
H A Dbearssl_ec.h39 * # Elliptic Curves
46 * Only "named curves" are supported. Each EC implementation supports
47 * one or several named curves, identified by symbolic identifiers.
53 * range, it is convenient to encode support of some curves in a 32-bit
61 * A 32-bit word that documents the identifiers of the curves supported
133 * than 9 bytes for all supported curves; conversely, conversion of an
144 * identifiers assigned to these curves for TLS:
272 * \brief Supported curves.
422 * secp384r1 and secp521r1 (aka NIST curves P-256, P-384 and P-521).
431 * secp384r1 and secp521r1 (aka NIST curves P-256, P-384 and P-521).
[all …]
/freebsd-src/contrib/bearssl/tools/
H A Dnames.c326 } curves[] = { variable
560 for (u = 0; curves[u].name; u ++) { in get_curve_name()
561 if (curves[u].id == id) { in get_curve_name()
562 return curves[u].name; in get_curve_name()
676 for (u = 0; curves[u].name; u ++) { in list_curves()
679 for (v = 0; curves[u].sid[v]; v ++) { in list_curves()
687 printf("%s", curves[u].sid[v]); in list_curves()
1031 for (u = 0; curves[u].name; u ++) { in get_curve_by_name()
1032 for (v = 0; curves[u].sid[v]; v ++) { in get_curve_by_name()
1033 if (eqstr(curves[u].sid[v], str)) { in get_curve_by_name()
[all …]
/freebsd-src/contrib/bearssl/src/ec/
H A Decdsa_i15_vrfy_raw.c38 * IMPORTANT: this code is fit only for curves with a prime in br_ecdsa_i15_vrfy_raw()
109 * the fact that for all the curves we support, the least in br_ecdsa_i15_vrfy_raw()
156 * we work with curves of prime order, so the curve order is in br_ecdsa_i15_vrfy_raw()

1234567