48 lines
1.4 KiB
C
48 lines
1.4 KiB
C
/* clu_sign.h
|
|
*
|
|
* Copyright (C) 2006-2017 wolfSSL Inc.
|
|
*
|
|
* This file is part of wolfSSL. (formerly known as CyaSSL)
|
|
*
|
|
* wolfSSL 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.
|
|
*
|
|
* wolfSSL is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, write to the Free Software
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
|
*/
|
|
|
|
#include <wolfssl/options.h>
|
|
#ifdef HAVE_ED25519
|
|
#include <wolfssl/wolfcrypt/ed25519.h>
|
|
#endif
|
|
#ifndef NO_RSA
|
|
#include <wolfssl/wolfcrypt/rsa.h>
|
|
#endif
|
|
#ifdef HAVE_ECC
|
|
#include <wolfssl/wolfcrypt/ecc.h>
|
|
#include <wolfssl/wolfcrypt/asn_public.h>
|
|
#endif
|
|
|
|
enum {
|
|
RSA_SIG_VER,
|
|
ECC_SIG_VER,
|
|
ED25519_SIG_VER,
|
|
};
|
|
|
|
int wolfCLU_sign_data(char*, char*, char*, int);
|
|
|
|
|
|
int wolfCLU_sign_data_rsa(byte*, char*, word32, char*);
|
|
int wolfCLU_sign_data_ecc(byte*, char*, word32, char*);
|
|
int wolfCLU_sign_data_ed25519(byte*, char*, word32, char*);
|
|
|
|
|