Lines Matching +full:p +full:- +full:256
1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Definitions of EC-RDSA Curve Parameters
22 * EC-RDSA uses its own set of curves.
24 * cp256{a,b,c} curves first defined for GOST R 34.10-2001 in RFC 4357 (as
25 * 256-bit {A,B,C}-ParamSet), but inherited for GOST R 34.10-2012 and
26 * proposed for use in R 50.1.114-2016 and RFC 7836 as the 256-bit curves.
35 static u64 cp256a_p[] = { /* p = 2^256 - 617 */
41 static u64 cp256a_a[] = { /* a = p - 3 */
53 .ndigits = 256 / 64,
55 .p = cp256a_p,
68 static u64 cp256b_p[] = { /* p = 2^255 + 3225 */
74 static u64 cp256b_a[] = { /* a = p - 3 */
86 .ndigits = 256 / 64,
88 .p = cp256b_p,
104 /* pre-computed value for Barrett's reduction */
111 static u64 cp256c_a[] = { /* a = p - 3 */
123 .ndigits = 256 / 64,
125 .p = cp256c_p,
132 * R 50.1.114-2016 and RFC 7836 for use with GOST R 34.10-2012 (as TC26
133 * 512-bit ParamSet{A,B}).
146 static u64 tc512a_p[] = { /* p = 2^512 - 569 */
156 static u64 tc512a_a[] = { /* a = p - 3 */
174 .p = tc512a_p,
191 static u64 tc512b_p[] = { /* p = 2^511 + 111 */
201 static u64 tc512b_a[] = { /* a = p - 3 */
219 .p = tc512b_p,