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 */
50 .nbits = 256,
54 .ndigits = 256 / 64,
56 .p = cp256a_p,
69 static u64 cp256b_p[] = { /* p = 2^255 + 3225 */
75 static u64 cp256b_a[] = { /* a = p - 3 */
84 .nbits = 256,
88 .ndigits = 256 / 64,
90 .p = cp256b_p,
106 /* pre-computed value for Barrett's reduction */
113 static u64 cp256c_a[] = { /* a = p - 3 */
122 .nbits = 256,
126 .ndigits = 256 / 64,
128 .p = cp256c_p,
135 * R 50.1.114-2016 and RFC 7836 for use with GOST R 34.10-2012 (as TC26
136 * 512-bit ParamSet{A,B}).
149 static u64 tc512a_p[] = { /* p = 2^512 - 569 */
159 static u64 tc512a_a[] = { /* a = p - 3 */
178 .p = tc512a_p,
195 static u64 tc512b_p[] = { /* p = 2^511 + 111 */
205 static u64 tc512b_a[] = { /* a = p - 3 */
224 .p = tc512b_p,