linux/crypto/ecrdsa_defs.h

/* SPDX-License-Identifier: GPL-2.0+ */
/*
 * Definitions of EC-RDSA Curve Parameters
 *
 * Copyright (c) 2019 Vitaly Chikunov <[email protected]>
 *
 * This program is free software; you can redistribute it and/or modify it
 * under the terms of the GNU General Public License as published by the Free
 * Software Foundation; either version 2 of the License, or (at your option)
 * any later version.
 */

#ifndef _CRYTO_ECRDSA_DEFS_H
#define _CRYTO_ECRDSA_DEFS_H

#include <crypto/internal/ecc.h>

#define ECRDSA_MAX_SIG_SIZE
#define ECRDSA_MAX_DIGITS

/*
 * EC-RDSA uses its own set of curves.
 *
 * cp256{a,b,c} curves first defined for GOST R 34.10-2001 in RFC 4357 (as
 * 256-bit {A,B,C}-ParamSet), but inherited for GOST R 34.10-2012 and
 * proposed for use in R 50.1.114-2016 and RFC 7836 as the 256-bit curves.
 */
/* OID_gostCPSignA 1.2.643.2.2.35.1 */
static u64 cp256a_g_x[] =;
static u64 cp256a_g_y[] =;
static u64 cp256a_p[] =;
static u64 cp256a_n[] =;
static u64 cp256a_a[] =;
static u64 cp256a_b[] =;

static struct ecc_curve gost_cp256a =;

/* OID_gostCPSignB 1.2.643.2.2.35.2 */
static u64 cp256b_g_x[] =;
static u64 cp256b_g_y[] =;
static u64 cp256b_p[] =;
static u64 cp256b_n[] =;
static u64 cp256b_a[] =;
static u64 cp256b_b[] =;

static struct ecc_curve gost_cp256b =;

/* OID_gostCPSignC 1.2.643.2.2.35.3 */
static u64 cp256c_g_x[] =;
static u64 cp256c_g_y[] =;
static u64 cp256c_p[] =;
static u64 cp256c_n[] =;
static u64 cp256c_a[] =;
static u64 cp256c_b[] =;

static struct ecc_curve gost_cp256c =;

/* tc512{a,b} curves first recommended in 2013 and then standardized in
 * R 50.1.114-2016 and RFC 7836 for use with GOST R 34.10-2012 (as TC26
 * 512-bit ParamSet{A,B}).
 */
/* OID_gostTC26Sign512A 1.2.643.7.1.2.1.2.1 */
static u64 tc512a_g_x[] =;
static u64 tc512a_g_y[] =;
static u64 tc512a_p[] =;
static u64 tc512a_n[] =;
static u64 tc512a_a[] =;
static u64 tc512a_b[] =;

static struct ecc_curve gost_tc512a =;

/* OID_gostTC26Sign512B 1.2.643.7.1.2.1.2.2 */
static u64 tc512b_g_x[] =;
static u64 tc512b_g_y[] =;
static u64 tc512b_p[] =;
static u64 tc512b_n[] =;
static u64 tc512b_a[] =;
static u64 tc512b_b[] =;

static struct ecc_curve gost_tc512b =;

#endif