ecrdsa_defs.h (03ab8e6297acd1bc0eedaa050e2a1635c576fd11) | ecrdsa_defs.h (c0d6bd1fd367a5374bff7e3f3bdf47beb84893c8) |
---|---|
1/* SPDX-License-Identifier: GPL-2.0+ */ 2/* 3 * Definitions of EC-RDSA Curve Parameters 4 * 5 * Copyright (c) 2019 Vitaly Chikunov <vt@altlinux.org> 6 * 7 * This program is free software; you can redistribute it and/or modify it 8 * under the terms of the GNU General Public License as published by the Free --- 33 unchanged lines hidden (view full) --- 42 0xFFFFFFFFFFFFFD94ull, 0xFFFFFFFFFFFFFFFFull, 43 0xFFFFFFFFFFFFFFFFull, 0xFFFFFFFFFFFFFFFFull }; 44static u64 cp256a_b[] = { 45 0x00000000000000a6ull, 0x0000000000000000ull, 46 0x0000000000000000ull, 0x0000000000000000ull }; 47 48static struct ecc_curve gost_cp256a = { 49 .name = "cp256a", | 1/* SPDX-License-Identifier: GPL-2.0+ */ 2/* 3 * Definitions of EC-RDSA Curve Parameters 4 * 5 * Copyright (c) 2019 Vitaly Chikunov <vt@altlinux.org> 6 * 7 * This program is free software; you can redistribute it and/or modify it 8 * under the terms of the GNU General Public License as published by the Free --- 33 unchanged lines hidden (view full) --- 42 0xFFFFFFFFFFFFFD94ull, 0xFFFFFFFFFFFFFFFFull, 43 0xFFFFFFFFFFFFFFFFull, 0xFFFFFFFFFFFFFFFFull }; 44static u64 cp256a_b[] = { 45 0x00000000000000a6ull, 0x0000000000000000ull, 46 0x0000000000000000ull, 0x0000000000000000ull }; 47 48static struct ecc_curve gost_cp256a = { 49 .name = "cp256a", |
50 .nbits = 256, |
|
50 .g = { 51 .x = cp256a_g_x, 52 .y = cp256a_g_y, 53 .ndigits = 256 / 64, 54 }, 55 .p = cp256a_p, 56 .n = cp256a_n, 57 .a = cp256a_a, --- 17 unchanged lines hidden (view full) --- 75 0x0000000000000C96ull, 0x0000000000000000ull, 76 0x0000000000000000ull, 0x8000000000000000ull, }; 77static u64 cp256b_b[] = { 78 0x2F49D4CE7E1BBC8Bull, 0xE979259373FF2B18ull, 79 0x66A7D3C25C3DF80Aull, 0x3E1AF419A269A5F8ull, }; 80 81static struct ecc_curve gost_cp256b = { 82 .name = "cp256b", | 51 .g = { 52 .x = cp256a_g_x, 53 .y = cp256a_g_y, 54 .ndigits = 256 / 64, 55 }, 56 .p = cp256a_p, 57 .n = cp256a_n, 58 .a = cp256a_a, --- 17 unchanged lines hidden (view full) --- 76 0x0000000000000C96ull, 0x0000000000000000ull, 77 0x0000000000000000ull, 0x8000000000000000ull, }; 78static u64 cp256b_b[] = { 79 0x2F49D4CE7E1BBC8Bull, 0xE979259373FF2B18ull, 80 0x66A7D3C25C3DF80Aull, 0x3E1AF419A269A5F8ull, }; 81 82static struct ecc_curve gost_cp256b = { 83 .name = "cp256b", |
84 .nbits = 256, |
|
83 .g = { 84 .x = cp256b_g_x, 85 .y = cp256b_g_y, 86 .ndigits = 256 / 64, 87 }, 88 .p = cp256b_p, 89 .n = cp256b_n, 90 .a = cp256b_a, --- 21 unchanged lines hidden (view full) --- 112 0x7998F7B9022D7598ull, 0xCF846E86789051D3ull, 113 0xAB1EC85E6B41C8AAull, 0x9B9F605F5A858107ull, }; 114static u64 cp256c_b[] = { 115 0x000000000000805aull, 0x0000000000000000ull, 116 0x0000000000000000ull, 0x0000000000000000ull, }; 117 118static struct ecc_curve gost_cp256c = { 119 .name = "cp256c", | 85 .g = { 86 .x = cp256b_g_x, 87 .y = cp256b_g_y, 88 .ndigits = 256 / 64, 89 }, 90 .p = cp256b_p, 91 .n = cp256b_n, 92 .a = cp256b_a, --- 21 unchanged lines hidden (view full) --- 114 0x7998F7B9022D7598ull, 0xCF846E86789051D3ull, 115 0xAB1EC85E6B41C8AAull, 0x9B9F605F5A858107ull, }; 116static u64 cp256c_b[] = { 117 0x000000000000805aull, 0x0000000000000000ull, 118 0x0000000000000000ull, 0x0000000000000000ull, }; 119 120static struct ecc_curve gost_cp256c = { 121 .name = "cp256c", |
122 .nbits = 256, |
|
120 .g = { 121 .x = cp256c_g_x, 122 .y = cp256c_g_y, 123 .ndigits = 256 / 64, 124 }, 125 .p = cp256c_p, 126 .n = cp256c_n, 127 .a = cp256c_a, --- 33 unchanged lines hidden (view full) --- 161static u64 tc512a_b[] = { 162 0x503190785A71C760ull, 0x862EF9D4EBEE4761ull, 163 0x4CB4574010DA90DDull, 0xEE3CB090F30D2761ull, 164 0x79BD081CFD0B6265ull, 0x34B82574761CB0E8ull, 165 0xC1BD0B2B6667F1DAull, 0xE8C2505DEDFC86DDull, }; 166 167static struct ecc_curve gost_tc512a = { 168 .name = "tc512a", | 123 .g = { 124 .x = cp256c_g_x, 125 .y = cp256c_g_y, 126 .ndigits = 256 / 64, 127 }, 128 .p = cp256c_p, 129 .n = cp256c_n, 130 .a = cp256c_a, --- 33 unchanged lines hidden (view full) --- 164static u64 tc512a_b[] = { 165 0x503190785A71C760ull, 0x862EF9D4EBEE4761ull, 166 0x4CB4574010DA90DDull, 0xEE3CB090F30D2761ull, 167 0x79BD081CFD0B6265ull, 0x34B82574761CB0E8ull, 168 0xC1BD0B2B6667F1DAull, 0xE8C2505DEDFC86DDull, }; 169 170static struct ecc_curve gost_tc512a = { 171 .name = "tc512a", |
172 .nbits = 512, |
|
169 .g = { 170 .x = tc512a_g_x, 171 .y = tc512a_g_y, 172 .ndigits = 512 / 64, 173 }, 174 .p = tc512a_p, 175 .n = tc512a_n, 176 .a = tc512a_a, --- 29 unchanged lines hidden (view full) --- 206static u64 tc512b_b[] = { 207 0xFB8CCBC7C5140116ull, 0x50F78BEE1FA3106Eull, 208 0x7F8B276FAD1AB69Cull, 0x3E965D2DB1416D21ull, 209 0xBF85DC806C4B289Full, 0xB97C7D614AF138BCull, 210 0x7E3E06CF6F5E2517ull, 0x687D1B459DC84145ull, }; 211 212static struct ecc_curve gost_tc512b = { 213 .name = "tc512b", | 173 .g = { 174 .x = tc512a_g_x, 175 .y = tc512a_g_y, 176 .ndigits = 512 / 64, 177 }, 178 .p = tc512a_p, 179 .n = tc512a_n, 180 .a = tc512a_a, --- 29 unchanged lines hidden (view full) --- 210static u64 tc512b_b[] = { 211 0xFB8CCBC7C5140116ull, 0x50F78BEE1FA3106Eull, 212 0x7F8B276FAD1AB69Cull, 0x3E965D2DB1416D21ull, 213 0xBF85DC806C4B289Full, 0xB97C7D614AF138BCull, 214 0x7E3E06CF6F5E2517ull, 0x687D1B459DC84145ull, }; 215 216static struct ecc_curve gost_tc512b = { 217 .name = "tc512b", |
218 .nbits = 512, |
|
214 .g = { 215 .x = tc512b_g_x, 216 .y = tc512b_g_y, 217 .ndigits = 512 / 64, 218 }, 219 .p = tc512b_p, 220 .n = tc512b_n, 221 .a = tc512b_a, 222 .b = tc512b_b 223}; 224 225#endif | 219 .g = { 220 .x = tc512b_g_x, 221 .y = tc512b_g_y, 222 .ndigits = 512 / 64, 223 }, 224 .p = tc512b_p, 225 .n = tc512b_n, 226 .a = tc512b_a, 227 .b = tc512b_b 228}; 229 230#endif |